/* ============================================================
   Component-specific styles (loaded after styles.css base tokens)
   ============================================================ */

/* ──── Nav ──── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-en { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); }
.logo-zh { font-family: var(--font-body); font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.nav-links { display: none; gap: 4px; }
@media (min-width: 880px) {
  .nav-links { display: flex; }
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: var(--body-sm);
  font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links a:hover { background: rgba(31,42,38,.05); color: var(--ink); }
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-enquire { display: none; }
@media (min-width: 880px) { .nav-enquire { display: inline-flex; } }
.nav-burger {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
}
@media (min-width: 880px) { .nav-burger { display: none; } }
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.mobile-menu a { padding: 12px 8px; border-radius: var(--r-md); }
.mobile-menu a:hover { background: rgba(31,42,38,.05); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.lang-toggle:hover {
  background: var(--paper);
  border-color: color-mix(in oklab, var(--primary) 24%, var(--line));
}
.lang-toggle .msym { color: var(--mute); }

/* ──── Hero ──── */
.hero { padding-top: var(--s12); padding-bottom: var(--s16); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 60%);
  opacity: .55;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s12);
  align-items: center;
  position: relative;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s16); }
  .hero { padding-top: var(--s16); padding-bottom: var(--s20); }
}
.hero-text h1 {
  font-size: var(--display-lg);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 14px 0 22px;
}
.hero-h1-accent {
  font-style: italic;
  color: var(--primary);
  font-weight: 300;
}
.hero-text .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s8); }
.hero-meta {
  margin-top: var(--s5);
  font-size: var(--body-sm);
  color: var(--mute);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-visual { position: relative; }
.hero-visual .img-frame {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
}
.hero-floater {
  position: absolute;
  bottom: -22px;
  left: -16px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  max-width: 280px;
  transform: rotate(2deg);
}
@media (min-width: 880px) { .hero-floater { left: -40px; bottom: 32px; } }
.hero-floater-mark {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-floater-h { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.hero-floater-sub { font-size: 11.5px; color: var(--mute); margin-top: 2px; }

/* Hero variants */
.hero-centered .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero-centered .hero-text { max-width: 760px; margin: 0 auto; }
.hero-centered .hero-text .lead { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-meta { justify-content: center; }
.hero-centered .hero-visual {
  margin-top: var(--s10);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.hero-centered .hero-visual .img-frame { transform: none; aspect-ratio: 16/9; }
.hero-centered .hero-floater { display: none; }

.hero-fullbleed { padding: 0; }
.hero-fullbleed::before { display: none; }
.hero-fullbleed .hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 80vh;
  position: relative;
}
.hero-fullbleed .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-fullbleed .hero-visual .img-frame {
  border-radius: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
  box-shadow: none;
}
.hero-fullbleed .hero-visual .img-frame::after {
  background: linear-gradient(120deg, rgba(31,42,38,.55), rgba(31,42,38,.15) 60%, transparent);
}
.hero-fullbleed .hero-floater { display: none; }
.hero-fullbleed .hero-text {
  position: relative;
  z-index: 2;
  padding: var(--s16) 0;
  color: #fff;
}
.hero-fullbleed .hero-text h1 { color: #fff; }
.hero-fullbleed .hero-text .lead { color: rgba(255,255,255,.86); }
.hero-fullbleed .hero-text .eyebrow { color: rgba(255,255,255,.7); }
.hero-fullbleed .hero-meta { color: rgba(255,255,255,.78); }

/* ──── Trust Strip ──── */
.trust-strip {
  padding: 18px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  align-items: center;
  justify-content: center;
}
.trust-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.trust-item svg { color: var(--primary); }

/* ──── Section headings ──── */
.section-head { max-width: 720px; margin-bottom: var(--s12); }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  font-size: var(--heading-xl);
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.section-head .lead { margin: 0; max-width: 620px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}
.section-tinted { background: var(--paper); }
.container-narrow { max-width: var(--maxw-narrow); }

/* ──── Pillars ──── */
.pillar-grid {
  display: grid;
  gap: 20px;
}
.pillar-grid-core {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}
.pillar-grid-extras {
  grid-template-columns: repeat(2, 1fr);
  max-width: 67%;
  margin: 0 auto;
}
.pillar-grid-extras .pillar{
  background: color-mix(in oklab, var(--cream-2, #F1ECE1) 70%, transparent);
  border-style: dashed;
}
.pillar { position: relative; }
.pillar-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent, #F2C9A5) 30%, transparent);
  color: #8a4a26;
}
@media (max-width: 900px){
  .pillar-grid-core   { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid-extras { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (max-width: 600px){
  .pillar-grid-core,
  .pillar-grid-extras { grid-template-columns: 1fr; max-width: 100%; }
}
.pillar { display: flex; flex-direction: column; gap: 14px; }
.pillar-num {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 500;
}
.pillar-titles { display: flex; flex-direction: column; gap: 2px; }
.pillar-titles h3 { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.pillar-alt { font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.pillar-desc { font-size: 14.5px; color: var(--mute); line-height: 1.6; margin: 0; }

/* ──── Nutritionist preview cards ──── */
.nutri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.nutri-card { padding: 0; overflow: hidden; }
.nutri-card .img-frame { border-radius: 0; }
.nutri-card .nutri-portrait{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--cream-2);
  overflow: hidden;
}
.nutri-row .nutri-portrait{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  overflow: hidden;
  border-radius: var(--r-xl);
}
.nutri-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s cubic-bezier(.22,.7,.1,1);
}
.nutri-card:hover .nutri-portrait img{ transform: scale(1.03); }
.nutri-row .nutri-portrait:hover img{ transform: scale(1.02); }
.nutri-meta { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.nutri-meta h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.nutri-alt { font-size: 13px; color: var(--mute); margin-left: 4px; }
.nutri-title { font-size: 13px; color: var(--primary); font-weight: 500; }
.nutri-cred { font-size: 12.5px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ──── Pricing cards ──── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pricing-card:hover { transform: translateY(-2px); border-color: var(--mute-2); box-shadow: var(--shadow-md); }
.pricing-card.highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--paper) 30%);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.pricing-badge.sm { position: static; padding: 3px 8px; font-size: 10px; margin-right: 8px; vertical-align: 2px; }
.pricing-name { display: flex; flex-direction: column; gap: 2px; }
.pricing-name-en { font-size: 12.5px; color: var(--mute); letter-spacing: .04em; }
.pricing-tagline { color: var(--mute); font-size: 14.5px; line-height: 1.5; margin: 0; min-height: 44px; }
.pricing-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line); }
.pricing-original { color: var(--mute-2); text-decoration: line-through; font-size: 14px; }
.pricing-amt { font-size: 32px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.pricing-unit { color: var(--mute); font-size: 13px; }
.pricing-card .btn { margin-top: auto; }

/* ──── Comparison table ──── */
.comparison-wrap { margin-top: var(--s12); overflow-x: auto; }
.comparison {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.comparison th, .comparison td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-2);
}
.comparison thead th {
  background: var(--cream-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.comparison .th-highlight { background: var(--primary-soft); color: var(--primary-ink); }
.comparison tbody .th-highlight { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.comparison-feat { color: var(--ink-2); font-weight: 500; }
.cell-yes { color: var(--primary); display: inline-flex; }
.cell-no  { color: var(--mute-2); }
.cell-text { color: var(--ink-2); font-size: 14px; }
.comparison-cta-row td { border-bottom: 0; padding: 18px; }
@media (max-width: 700px) {
  .comparison { display: none; } /* mobile uses cards above */
}
.pricing-grid-lg { padding-top: 16px; }

/* ──── Timeline ──── */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.timeline-step {
  position: relative;
  padding: 24px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.timeline-num {
  font-size: 28px; color: var(--primary);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
.timeline-step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.timeline-step p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.55; }

/* ──── Add-ons ──── */
.addons { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s8); }
.addon {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.addon-price { color: var(--primary); font-size: 18px; font-weight: 500; }

/* ──── Page hero ──── */
.page-hero {
  padding-top: var(--s12);
  padding-bottom: var(--s12);
}
.page-hero.narrow .container { max-width: var(--maxw-narrow); }
.page-hero h1 {
  font-size: var(--heading-xl);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 12px 0 18px;
}
.page-hero .lead { max-width: 640px; }

/* ──── Team page ──── */
.nutri-row { padding: var(--s12) 0; }
.nutri-row-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s10);
  align-items: center;
}
@media (min-width: 880px) {
  .nutri-row-inner { grid-template-columns: 5fr 6fr; gap: var(--s16); }
  .nutri-row.reverse .nutri-row-inner { direction: rtl; }
  .nutri-row.reverse .nutri-row-inner > * { direction: ltr; }
}
.nutri-portrait .img-frame { border-radius: var(--r-xl); }
.nutri-detail h2 {
  font-size: var(--heading-lg);
  margin: 12px 0 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nutri-name-alt { color: var(--mute); font-size: 0.65em; margin-left: 8px; vertical-align: 4px; }
.nutri-credential { color: var(--mute); font-size: 14px; margin: 0 0 14px; }
.nutri-detail .chips { margin: 12px 0 18px; }
.nutri-actions { display: flex; gap: 12px; margin-top: var(--s5); flex-wrap: wrap; }

.philosophy { background: var(--primary-soft); }
.philosophy-quote {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 300;
  font-style: italic;
  color: var(--primary-ink);
  margin: 16px 0 16px;
  letter-spacing: -0.01em;
  border: 0;
}
.philosophy-attr { color: var(--primary-ink); opacity: .8; font-size: 14.5px; margin: 0; }

/* ──── FAQ page ──── */
.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--mute);
}
.faq-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
}
.faq-search button { border: 0; background: transparent; color: var(--mute); padding: 4px; cursor: pointer; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-cats .chip { cursor: pointer; transition: background .15s var(--ease); padding: 6px 14px; }
.faq-cats .chip:hover { background: var(--primary-soft); color: var(--primary-ink); }

.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.faq-item.open .faq-icon { background: var(--primary); color: #fff; }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s var(--ease);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.65;
  padding-right: 50px;
}
.faq-item.open .faq-a { padding-bottom: 20px; }
.empty-state {
  text-align: center;
  color: var(--mute);
  padding: 48px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.still-asking {
  margin-top: var(--s10);
  padding: 24px;
  background: var(--primary-soft);
  border-radius: var(--r-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.still-asking h3 { margin: 0 0 4px; font-size: 20px; color: var(--primary-ink); font-weight: 500; }
.still-asking p { margin: 0; color: var(--primary-ink); opacity: .85; font-size: 14.5px; }

/* ──── Contact page ──── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: var(--s10); }
}
.contact-left { display: flex; flex-direction: column; gap: 16px; }
.contact-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
.contact-card p { color: var(--mute); font-size: 14.5px; margin: 6px 0; }
.contact-methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.contact-methods li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.contact-methods li:first-child { border-top: 0; padding-top: 4px; }
.method-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.method-label { font-size: 12px; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; }
.method-value { font-size: 15px; font-weight: 500; color: var(--ink); }
.method-go {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--mute);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.method-go:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.bank-info { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.bank-info > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bank-label { color: var(--mute); }
.bank-acc { font-size: 18px; letter-spacing: 0.02em; color: var(--ink); }
.bank-note { font-size: 13px; color: var(--mute); margin-top: 6px; }
.contact-form-card { padding: 32px 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ──── Modal ──── */
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  background: var(--cream-2);
  border-radius: 999px;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); }
.success-state { text-align: center; padding: 12px 0; }
.success-mark {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}

/* ──── CTA Banner ──── */
.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: var(--s16) 0;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 880px) {
  .cta-banner-inner { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}
.cta-banner h2 { font-size: var(--heading-lg); margin: 0 0 10px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.cta-banner .lead { color: rgba(255,255,255,.8); margin: 0; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: #fff; color: var(--primary-ink); }
.cta-banner .btn-primary:hover { background: var(--cream); }

/* ──── Footer ──── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: var(--s16) 0 var(--s8);
  margin-top: 0;
}
.footer .logo-en { color: #fff; }
.footer .logo-zh { color: rgba(255,255,255,.6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s10);
}
@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand { max-width: 380px; }
.footer-tag { font-size: 14px; color: rgba(255,255,255,.6); margin: 16px 0; line-height: 1.55; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
}
.footer-socials a:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.78); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col .lang-toggle {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
}
.footer-col .lang-toggle:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.footer-col .lang-toggle .msym { color: rgba(255,255,255,.55); }
.footer-bottom {
  margin-top: var(--s10);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.footer-nsm { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.66); }

/* ─────────────────────────────────────────────────────────────
   HERO FLOW ANIMATION (Wispr-style hero_animation-wrapper-v2)
   left curve text  ·  center CSS device w/ toast cascade  ·  right curve text
   ───────────────────────────────────────────────────────────── */
/* Wrapper: flex 50/50, no scale (avoid overlap with hero CTAs/meta above) */
.flow-anim-wrapper{
  position: relative;
  display: flex;
  align-items: flex-end;          /* both SVG halves bottom-align naturally */
  margin: 2rem auto 3rem;
  pointer-events: none;
  isolation: isolate;
}

/* Halves — flow naturally side by side. SVG fills width, height follows aspect ratio */
.flow-anim-side{
  position: relative;
  width: 50%;
  flex: none;
  font-size: clamp(20px, 2.6vw, 40px);   /* cascades into SVG <text> via em sizing */
  pointer-events: none;
}
.flow-anim-side svg{
  display: block;
  width: 100%;
  height: auto;
}
.flow-anim-left  { margin-top: -1px; }   /* matches Wispr's micro-alignment tweak */

/* path is invisible — only the text running on it shows */
.flow-anim-side path { fill: none; stroke: transparent; }

/* Left: low-contrast stream-of-thought text */
.flow-anim-left text{
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 400;
  fill: var(--ink, #1F2A26);
  opacity: .42;
  letter-spacing: -.005em;
}
.flow-anim-left text textPath{ baseline-shift: -18%; }

/* Right: structured plan text knocked out of thick green stroke */
.flow-anim-right .flow-curve-stroke{
  fill: none;
  stroke: var(--primary, #3F7E5C);
  stroke-width: 70;
  stroke-linecap: round;
  opacity: .96;
}
.flow-anim-right text{
  font-family: var(--font-display);
  font-size: 0.95em;
  font-weight: 600;
  fill: var(--cream, #FAF7F1);
  letter-spacing: .005em;
}
.flow-anim-right text textPath{ baseline-shift: -32%; }

/* Center bg blur — circular glow centered on device */
.flow-anim-bg{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36%;
  height: 60%;
  border-radius: 100%;
  background: color-mix(in oklab, var(--primary, #3F7E5C) 22%, transparent);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Center: device vertically + horizontally centered in wrapper */
.flow-anim-center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(260px, 28%, 380px);
  z-index: 2;
  pointer-events: auto;
}
.flow-device{
  position: relative;
  width: 100%;
  padding: 16px 14px 18px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--paper, #FFFCF5) 100%, white 0%) 0%,
    var(--cream, #FAF7F1) 100%);
  border: 1px solid color-mix(in oklab, var(--primary, #3F7E5C) 14%, transparent);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 1px 2px rgba(0,0,0,.04),
    0 24px 50px -16px color-mix(in oklab, var(--primary-ink, #2D5944) 38%, transparent),
    0 12px 28px -12px rgba(0,0,0,.10);
  pointer-events: auto;
}
.flow-device-notch{
  display: block;
  width: 56px; height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink, #1F2A26) 12%, transparent);
}
.flow-device-head{
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink, #1F2A26) 7%, transparent);
  margin-bottom: 12px;
}
.flow-device-avatar{
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary, #3F7E5C), var(--primary-ink, #2D5944));
  color: var(--cream, #FAF7F1);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 2px 6px -2px color-mix(in oklab, var(--primary-ink, #2D5944) 50%, transparent);
}
.flow-device-name{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1F2A26);
  letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flow-device-sub{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--mute, #5A6B62);
  margin-top: 1px;
}
.flow-device-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success, #5BA47C);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--success, #5BA47C) 25%, transparent);
  animation: flowPulse 2.4s ease-in-out infinite;
}
@keyframes flowPulse{
  0%,100%{ box-shadow: 0 0 0 3px color-mix(in oklab, var(--success, #5BA47C) 25%, transparent); }
  50%   { box-shadow: 0 0 0 6px color-mix(in oklab, var(--success, #5BA47C) 0%,  transparent); }
}

/* ── toast cascade ── */
.flow-toasts{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-toast{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px;
  background: var(--paper, #FFFCF5);
  border: 1px solid color-mix(in oklab, var(--ink, #1F2A26) 6%, transparent);
  border-radius: 14px;
  box-shadow: 0 3px 10px -4px rgba(0,0,0,.06);
  opacity: 0;
  transform: translate(8px, 6px) scale(.97);
  animation: flowToastIn 7.5s cubic-bezier(.22,.7,.1,1) infinite;
  animation-delay: calc(var(--i, 0) * 1.5s);
}
.flow-toast-ico{
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary, #3F7E5C) 14%, transparent);
  color: var(--primary-ink, #2D5944);
}
.flow-toast.peach .flow-toast-ico{
  background: color-mix(in oklab, var(--accent, #F2C9A5) 36%, transparent);
  color: #8a4a26;
}
.flow-toast-body{
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.flow-toast-title{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #1F2A26);
  letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flow-toast-meta{
  font-size: 10.5px;
  color: var(--mute, #5A6B62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flow-toast-chip{
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary, #3F7E5C) 9%, transparent);
  color: var(--primary-ink, #2D5944);
  letter-spacing: .01em;
}
.flow-toast.peach .flow-toast-chip{
  background: color-mix(in oklab, var(--accent, #F2C9A5) 30%, transparent);
  color: #8a4a26;
}

@keyframes flowToastIn{
   0%   { opacity: 0; transform: translate(10px, 8px) scale(.96); filter: blur(2px); }
   8%   { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
  82%   { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
  92%   { opacity: 0; transform: translate(0, -6px) scale(.98); filter: blur(1px); }
  100%  { opacity: 0; transform: translate(0, -10px) scale(.97); filter: blur(2px); }
}

/* ── responsive ── */
/* Tablet: curves shrink in line, device claims more horizontal space */
@media (max-width: 900px){
  .flow-anim-wrapper{ margin: 1.5rem auto 2rem; min-height: 380px; }
  .flow-anim-side{ font-size: clamp(14px, 2.4vw, 22px); }
  .flow-anim-left text{ opacity: .32; }
  .flow-anim-right .flow-curve-stroke{ stroke-width: 50; }
  .flow-anim-bg{ width: 50%; height: 50%; filter: blur(32px); }
  .flow-anim-center{ width: clamp(220px, 48%, 300px); }
  .flow-device-name{ font-size: 12px; }
  .flow-toast-title{ font-size: 12px; }
  .flow-toast-meta{ font-size: 10px; }
}
/* Phone: device dominates; curves become quiet decorative streaks */
@media (max-width: 600px){
  .flow-anim-wrapper{ margin: 1rem auto 1.5rem; min-height: 360px; }
  .flow-anim-side{ font-size: 12px; }
  .flow-anim-left text{ opacity: .25; }
  .flow-anim-right .flow-curve-stroke{ stroke-width: 36; opacity: .85; }
  .flow-anim-bg{ width: 70%; height: 60%; filter: blur(28px); }
  .flow-anim-center{ width: clamp(220px, 76%, 300px); }
  .flow-device{ padding: 12px 12px 14px; border-radius: 22px; }
  .flow-device-notch{ width: 44px; height: 4px; margin-bottom: 10px; }
  .flow-device-avatar{ width: 28px; height: 28px; font-size: 12px; }
  .flow-toasts{ gap: 6px; }
  .flow-toast{ padding: 8px 10px; border-radius: 12px; }
  .flow-toast-ico{ width: 28px; height: 28px; border-radius: 9px; }
  .flow-toast-chip{ font-size: 9.5px; padding: 2px 6px; }
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce){
  .flow-toast{ animation: none; opacity: 1; transform: none; filter: none; }
  .flow-device-dot{ animation: none; }
  .flow-anim-side text animate{ /* SVG SMIL — no CSS toggle, but slow enough to be acceptable */ }
}
