/* ============================================================
   Tiamigo — marketing site
   Design tokens lifted straight from the app (frontend/lib/theme.ts):
   warm "candlelight" charcoal, coral reserved for Tia + the one CTA,
   each cast member their own accent. Editorial type, not SaaS-template.
   ============================================================ */

:root {
  /* surfaces — warm charcoal, nudged toward candlelight */
  --bg:        #100E12;
  --bg-elev:   #171419;
  --surface:   #1C1820;
  --surface-hi:#252029;
  --border:    #2C2730;
  --border-hi: #3A333E;

  /* text rungs */
  --text:      #F5F2ED;
  --text-sub:  #B4ADB8;
  --text-muted:#8B8590;
  --text-faint:#5E5862;

  /* Tia / brand coral — the single hero accent */
  --tia:       #E0573B;
  --tia-bright:#F26B4E;
  --tia-soft:  #2A1714;
  --tia-border:#5A3326;

  /* meaning colors */
  --yours:     #4CC38A;   /* progress / "yours" */
  --gold:      #E5A53A;   /* a reach */
  --info:      #6BA6FF;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rhythm */
  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ─────────────  reset / base  ───────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* candlelight grain + a faint warm vignette so the dark never reads as flat/AI-default */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(224,87,59,.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.022'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--text); }

::selection { background: var(--tia); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--tia); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.visually-hidden, .nb { /* nb = optional line break, hidden on small screens */ }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 620px) { .nb { display: none; } }

:focus-visible { outline: 2px solid var(--tia-bright); outline-offset: 3px; border-radius: 4px; }

/* ─────────────  typography helpers  ───────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tia-bright);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section__title em { font-style: italic; color: var(--tia-bright); font-weight: 600; }
.section__lede {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-sub);
  max-width: 56ch;
}

/* ─────────────  buttons  ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .72em 1.25em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: .9em 1.6em; font-size: 1.04rem; }
.btn--primary {
  background: var(--tia); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(224,87,59,.6), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn--primary:hover { background: var(--tia-bright); transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(224,87,59,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn--ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,.03); transform: translateY(-2px); }

/* ─────────────  nav  ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(16,14,18,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck { background: rgba(16,14,18,.86); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand__mark { color: var(--tia); display: inline-flex; }
.brand__word { font-family: var(--sans); font-size: 1.2rem; letter-spacing: -.02em; }

.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { color: var(--text-sub); font-size: .96rem; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { }

.nav__toggle { display: none; }
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav__mobile {
    display: flex; flex-direction: column; gap: .25rem; padding: .5rem var(--gut) 1.5rem;
    border-bottom: 1px solid var(--border); background: rgba(16,14,18,.96);
  }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile a { padding: .8rem 0; color: var(--text-sub); border-bottom: 1px solid var(--border); }
  .nav__mobile a:last-child { border: 0; margin-top: .6rem; justify-content: center; }
}

/* ─────────────  hero  ───────────── */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% 0 auto -10%; height: 720px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(224,87,59,.20), transparent 70%),
    radial-gradient(36% 46% at 82% 18%, rgba(138,123,232,.12), transparent 70%);
  filter: blur(8px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.028em;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--tia-bright); }
.hero__lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--text-sub); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.1rem; font-size: .9rem; color: var(--text-muted); }

.hero__strip {
  position: relative; z-index: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center;
  color: var(--text-muted); font-size: .9rem;
}
.hero__strip em { color: var(--text-sub); font-style: normal; font-weight: 500; }
.hero__strip-sep { color: var(--text-faint); }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; justify-self: center; }
}

/* ─────────────  phone + app mockup  ───────────── */
.hero__art { display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; max-width: 84vw;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2630, #14121a);
  border: 1px solid var(--border-hi);
  box-shadow:
    0 50px 90px -30px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 1px 0 rgba(255,255,255,.06) inset;
}
.phone--hero { transform: rotate(1.4deg); }
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #07060a; border-radius: 999px; z-index: 3;
}
.phone__screen {
  position: relative; border-radius: 34px; overflow: hidden;
  background: var(--bg); height: 640px; display: flex; flex-direction: column;
  border: 1px solid #000;
}

.appbar {
  display: flex; align-items: center; gap: .6rem;
  padding: 2.6rem 1rem .85rem; background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.appbar__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff;
  background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent);
}
.appbar__name { font-weight: 700; font-size: .98rem; }
.appbar__status { display: block; font-weight: 500; font-size: .72rem; color: var(--yours); }

.thread { flex: 1; overflow: hidden; padding: 1rem .85rem; display: flex; flex-direction: column; gap: .55rem; }
.bubble {
  max-width: 86%; padding: .62rem .8rem; font-size: .9rem; line-height: 1.45;
  border-radius: 18px;
}
.bubble strong { font-weight: 600; }
.bubble--them {
  align-self: flex-start; border-bottom-left-radius: 5px;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: var(--text);
}
.bubble--me {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: #34303A; color: var(--text);
}

.mcard {
  align-self: stretch; background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 14px; padding: .85rem .9rem; box-shadow: 0 8px 20px -12px #000;
}
.mcard__eyebrow { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mcard__title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: .15rem; }
.mcard__who { font-size: .8rem; color: var(--text-sub); margin-top: .35rem; display: flex; align-items: center; gap: .4rem; }
.mcard__goal { font-size: .84rem; color: var(--text); margin-top: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.chip {
  font-size: .72rem; padding: .28rem .55rem; border-radius: 999px;
  background: var(--tia-soft); border: 1px solid var(--tia-border); color: var(--tia-bright); font-weight: 500;
}

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .7rem .85rem; background: var(--surface); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: blink 1.4s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.composer {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem 1.1rem;
  border-top: 1px solid var(--border); background: var(--bg-elev);
}
.composer__field { flex: 1; padding: .55rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }
.composer__mic { font-size: 1.1rem; }

/* ─────────────  generic section  ───────────── */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section__head { max-width: 60ch; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .section__lede { margin-inline: auto; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head--left .section__lede { margin-inline: 0; }

.rule { border: 0; border-top: 1px solid var(--border); margin-block: clamp(3rem, 6vw, 5rem); }

/* ─────────────  manifesto  ───────────── */
.manifesto { padding-block: clamp(3rem, 7vw, 6rem); border-block: 1px solid var(--border); background: var(--bg-elev); }
.manifesto__quote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.28; letter-spacing: -.015em;
  max-width: 24ch; margin-inline: auto; text-align: center; color: var(--text-sub);
}
.manifesto__quote em { color: var(--text); font-style: italic; }
.u-strike { text-decoration: line-through; text-decoration-color: var(--tia); text-decoration-thickness: 2px; color: var(--text-muted); }

/* ─────────────  the loop  ───────────── */
.loop { list-style: none; padding: 0; max-width: 760px; margin-inline: auto; position: relative; }
.loop::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(var(--border), var(--border-hi), var(--border));
}
.loop__step { display: grid; grid-template-columns: 48px 1fr; gap: 1.4rem; padding-bottom: 2.6rem; position: relative; }
.loop__step:last-child { padding-bottom: 0; }
.loop__marker {
  width: 48px; height: 48px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  background: var(--surface); border: 1px solid var(--border-hi); color: var(--text-sub);
}
.loop__marker--win { background: var(--tia); border-color: var(--tia-bright); color: #fff; box-shadow: 0 8px 22px -8px rgba(224,87,59,.7); }
.loop__body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; margin-bottom: .4rem; }
.loop__body > p { color: var(--text-sub); font-size: 1rem; max-width: 54ch; }
.loop__kicker { margin-top: .9rem; padding-left: 1rem; border-left: 2px solid var(--tia); color: var(--text); font-size: .98rem; font-style: italic; }

.snippet { display: flex; align-items: flex-start; gap: .55rem; margin-top: .9rem; max-width: 90%; }
.snippet--me { justify-content: flex-end; }
.snippet__avatar {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .78rem; margin-top: 2px;
}
.snippet__msg {
  background: color-mix(in srgb, var(--c) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  padding: .55rem .75rem; border-radius: 14px; border-bottom-left-radius: 4px;
  font-size: .92rem; line-height: 1.45; color: var(--text);
}
.snippet__msg em { color: color-mix(in srgb, var(--c) 60%, var(--text)); font-style: italic; font-weight: 500; }
.snippet__msg--me { background: #34303A; border: 1px solid var(--border-hi); border-radius: 14px; border-bottom-right-radius: 4px; }
.snippet--convo { margin-top: .45rem; }

.grade { margin-top: 1rem; display: inline-flex; flex-direction: column; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1.1rem; }
.grade__row { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--text); }
.grade__row--partial { color: var(--text-sub); }
.tick { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }

/* ─────────────  cast  ───────────── */
.section--cast { background: var(--bg-elev); border-block: 1px solid var(--border); }

.tia-card {
  max-width: 760px; margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border));
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.tia-card__face { display: flex; align-items: center; gap: 1.1rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.avatar--lg { width: 62px; height: 62px; font-size: 1.7rem; }
.tia-card__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.tia-card__tag { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tia-bright); background: var(--tia-soft); border: 1px solid var(--tia-border); padding: .2rem .55rem; border-radius: 999px; }
.tia-card__role { color: var(--text-sub); font-size: .96rem; margin-top: .25rem; max-width: 52ch; }
.tia-card__quote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--text); margin-top: 1.3rem; }
.tia-card__sub { font-size: .85rem; color: var(--text-muted); margin-top: .6rem; }

.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1rem; }
.cast {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--c);
  border-radius: var(--radius); padding: 1.4rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cast:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c) 50%, #000); }
.cast .avatar { width: 42px; height: 42px; font-size: 1.15rem; margin-bottom: .9rem; }
.cast__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.cast__role { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 60%, var(--text-muted)); margin-top: .15rem; }
.cast__trait { font-size: .92rem; color: var(--text-sub); margin-top: .7rem; }
.cast__quote { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text); margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.cast--more { border-top-color: var(--border-hi); display: flex; flex-direction: column; justify-content: center; background: transparent; border-style: dashed; }
.cast__more-mark { font-size: 2rem; color: var(--text-muted); font-weight: 300; line-height: 1; margin-bottom: .4rem; }

/* ─────────────  progress: cold open  ───────────── */
.coldopen { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .coldopen { grid-template-columns: 1fr; } }
.coldopen__viz { display: flex; flex-direction: column; gap: 1.5rem; }
.wave { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.wave__label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--text-muted); margin-bottom: .9rem; }
.wave--clear .wave__label { color: var(--c, var(--yours)); }
.wave__bars { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.wave__bars span { flex: 1; border-radius: 3px; background: var(--text-faint); }
.wave--garbled .wave__bars span { background: var(--text-faint); opacity: .55; }
.wave--clear .wave__bars span { background: linear-gradient(var(--yours), #2f7d59); }

/* ─────────────  progress: the path  ───────────── */
.path-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .path-block { grid-template-columns: 1fr; } }
.path { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.path__track { list-style: none; padding: 0; position: relative; margin-bottom: 1.6rem; }
.path__track::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--border-hi); }
.path__node { display: flex; align-items: center; gap: .85rem; padding: .55rem 0; position: relative; }
.path__dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; background: var(--surface); border: 2px solid var(--border-hi); z-index: 1; }
.path__node--done .path__dot { background: var(--yours); border-color: var(--yours); }
.path__node--now .path__dot { background: var(--tia); border-color: var(--tia-bright); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tia) 25%, transparent); }
.path__label { font-size: .98rem; color: var(--text-sub); display: flex; align-items: center; gap: .6rem; }
.path__node--now .path__label { color: var(--text); font-weight: 600; }
.path__node--done .path__label { color: var(--text-muted); }
.path__badge { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tia-bright); background: var(--tia-soft); border: 1px solid var(--tia-border); padding: .18rem .5rem; border-radius: 999px; }

.levelcard { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.levelcard__top { display: flex; align-items: center; gap: .8rem; }
.levelcard__badge { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--tia-bright); background: var(--tia-soft); border: 1px solid var(--tia-border); padding: .15rem .7rem; border-radius: 10px; }
.levelcard__cando { font-size: .86rem; color: var(--text-sub); }
.meter { height: 8px; border-radius: 999px; background: var(--surface-hi); margin: .9rem 0 1rem; overflow: hidden; }
.meter__fill { display: block; height: 100%; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, var(--yours), var(--yours-bright, #6FE0A8)); }
.levelcard__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.levelcard__list li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text-sub); }

/* ─────────────  tia reaches out  ───────────── */
.tia-reach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .tia-reach { grid-template-columns: 1fr; } }
.texts { display: flex; flex-direction: column; gap: .8rem; }
.text-note {
  background: color-mix(in srgb, var(--c) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border));
  border-radius: 16px; border-top-left-radius: 5px;
  padding: .85rem 1.05rem; font-size: .98rem; line-height: 1.45; color: var(--text);
  position: relative; max-width: 92%;
}
.text-note:nth-child(even) { align-self: flex-end; border-top-left-radius: 16px; border-top-right-radius: 5px; }
.text-note__time { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .2rem; }

/* ─────────────  more  ───────────── */
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.feature:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.feature__mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); margin-bottom: 1.1rem; }
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: .5rem; }
.feature p { color: var(--text-sub); font-size: .96rem; }

/* ─────────────  alternating section background  ───────────── */
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--border); }

/* ─────────────  the four modes  ───────────── */
.modes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .modes-grid { grid-template-columns: 1fr; } }
.mode {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--c); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mode:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); box-shadow: 0 20px 44px -24px color-mix(in srgb, var(--c) 55%, #000); }
.mode__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); margin-bottom: 1.1rem;
}
.mode__icon svg { width: 24px; height: 24px; }
.mode__tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.mode h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; margin: .15rem 0 .55rem; }
.mode p { color: var(--text-sub); font-size: .97rem; }
.modes__note {
  max-width: 62ch; margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center;
  font-size: 1.06rem; color: var(--text-sub);
}

/* ─────────────  text mode (chat with Tia) + tap-to-translate  ───────────── */
.textmode { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .textmode { grid-template-columns: 1fr; } .textmode__art { justify-self: center; } }
.textmode__proactive { margin-top: 1.6rem; color: var(--text-muted); font-size: .95rem; }
.textmode .texts { margin-top: 1rem; }
.textmode__art { display: flex; justify-content: center; }
.phone--text { transform: rotate(-1.4deg); }

.tword {
  background: color-mix(in srgb, var(--info) 20%, transparent);
  border-radius: 4px; padding: 0 3px;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--info) 55%, transparent);
}
.tchip {
  align-self: flex-end; display: inline-flex; align-items: center; gap: .5rem;
  margin-top: -.2rem; font-size: .78rem; color: var(--text);
  background: var(--bg-elev); border: 1px solid color-mix(in srgb, var(--info) 45%, var(--border));
  padding: .32rem .55rem; border-radius: 10px; box-shadow: 0 6px 16px -10px #000;
}
.tchip b { color: var(--info); font-weight: 600; }
.tchip__tap { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border-hi); border-radius: 6px; padding: .08rem .3rem; }
.tmsg-translate { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .76rem; color: var(--info); font-weight: 500; }
.tmsg-translate__icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-size: .7rem; background: color-mix(in srgb, var(--info) 16%, transparent); border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); }

/* ─────────────  CTA  ───────────── */
.section--cta { position: relative; overflow: hidden; text-align: center; background: var(--bg-elev); border-block: 1px solid var(--border); }
.hero__glow--cta { inset: -40% -10% auto -10%; height: 600px; background: radial-gradient(40% 60% at 50% 20%, rgba(224,87,59,.22), transparent 70%); }
.cta { position: relative; z-index: 1; max-width: 680px; }
.cta__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.025em; }
.cta__lede { color: var(--text-sub); font-size: 1.1rem; margin-top: 1.1rem; }
.signup { display: flex; gap: .6rem; max-width: 460px; margin: 2rem auto 0; }
.signup__input {
  flex: 1; min-width: 0; padding: .9em 1.1em; border-radius: 999px; font-size: 1rem; font-family: var(--sans);
  background: var(--surface); border: 1px solid var(--border-hi); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.signup__input::placeholder { color: var(--text-faint); }
.signup__input:focus { outline: none; border-color: var(--tia); box-shadow: 0 0 0 4px rgba(224,87,59,.18); }
.signup__input[aria-invalid="true"] { border-color: var(--tia); }
.signup__msg { min-height: 1.4em; margin-top: 1rem; font-size: .95rem; color: var(--yours); font-weight: 500; }
.signup__msg.is-error { color: var(--tia-bright); }
.cta__fine { margin-top: 1.4rem; font-size: .88rem; color: var(--text-muted); }
@media (max-width: 520px) { .signup { flex-direction: column; } }

/* store badges (placeholder download buttons) */
.stores { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .7rem 1.3rem; border-radius: 14px;
  background: #000; border: 1px solid var(--border-hi); color: #fff;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.store-badge__icon { display: inline-flex; }
.store-badge__icon svg { width: 26px; height: 26px; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge__small { font-size: .66rem; letter-spacing: .02em; color: #cfcccf; }
.store-badge__big { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
/* coming-soon state: muted, not clickable */
.store-badge--soon { opacity: .5; cursor: default; }
.store-badge--soon:hover { transform: none; border-color: var(--border-hi); }

/* ─────────────  FAQ  ───────────── */
.section--faq { }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
.faq__list { display: flex; flex-direction: column; }
.qa { border-bottom: 1px solid var(--border); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text);
  transition: color .15s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--tia-bright); }
.qa summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--text-muted); transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--tia-bright); }
.qa p { padding: 0 1rem 1.4rem 0; color: var(--text-sub); font-size: 1rem; max-width: 60ch; }

/* ─────────────  footer  ───────────── */
.footer { border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__tag { font-family: var(--serif); font-style: italic; color: var(--text-muted); margin-top: .7rem; font-size: 1rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__links a { color: var(--text-sub); font-size: .94rem; transition: color .15s; }
.footer__links a:hover { color: var(--text); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .86rem; }

/* ─────────────  scroll reveal (progressive enhancement)  ───────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .typing span, .meter__fill { animation: none; }
}
