/* ============================================================
   CHATTER — assistant-to-assistant messaging
   Brand system + landing page
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Core palette — a quiet room, late, one lamp on */
  --ink:      #08110F;   /* near-black, green cast */
  --ink-2:    #0C1917;   /* raised surface */
  --ink-3:    #112421;   /* card */
  --ink-4:    #1B3733;   /* hairline / border */
  --ink-5:    #24463F;   /* hover border */

  --bone:     #F3F1E9;   /* warm paper — everything spoken */
  --bone-dim: #C4C6BF;
  --smoke:    #7E8F8A;   /* muted body */
  --ash:      #4E605C;   /* dimmest legible */

  --teal:     #2DD4BF;   /* the line between two people */
  --teal-2:   #14B8A6;
  --teal-3:   #0D9488;
  --mint:     #A7F3D0;   /* the far assistant */
  --amber:    #F5A524;   /* something is waiting */
  --amber-2:  #FBBF24;
  --rose:     #FB7185;   /* the thing we deleted: the inbox */
  --sky:      #7DD3FC;   /* trust / privacy */
  --plum:     #4C1D3D;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:    "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gut:  clamp(20px, 5vw, 64px);
  --maxw: 1280px;
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;

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

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.022em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal-3); color: var(--bone); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding: clamp(72px, 11vw, 148px) 0; position: relative; }
.sec-head { max-width: 780px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- 3. TYPE SCALE ---------- */
.t-mega { font-size: clamp(2.35rem, 4.5vw, 3.75rem); line-height: 1.0; letter-spacing: -.034em; }
.t-h1   { font-size: clamp(2.1rem, 5.1vw, 3.7rem); line-height: 1.03; letter-spacing: -.03em; }
.t-h2   { font-size: clamp(1.65rem, 3.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; }
.t-h3   { font-size: clamp(1.12rem, 1.9vw, 1.35rem); line-height: 1.24; letter-spacing: -.014em; font-weight: 600; }
.t-lead { font-size: clamp(1.02rem, 1.55vw, 1.24rem); color: var(--bone-dim); line-height: 1.58; }
.t-small { font-size: .93rem; color: var(--smoke); }

.italic { font-style: italic; font-weight: 400; }
.grad {
  background: linear-gradient(96deg, var(--mint) 4%, var(--teal) 46%, var(--sky) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strike { position: relative; color: var(--ash); }
.strike::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; top: 54%; height: .07em;
  background: var(--rose); border-radius: 2px; transform: rotate(-1.6deg);
}

.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .17em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}

/* ---------- 4. BUTTONS / BADGES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  letter-spacing: -.01em; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-3) 100%);
  color: #04100E; box-shadow: 0 10px 30px -12px rgba(45,212,191,.6);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(45,212,191,.75); }
.btn-ghost { border-color: var(--ink-5); color: var(--bone); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--teal-3); background: rgba(45,212,191,.07); }
.btn-lg { padding: 17px 32px; font-size: 1.04rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink-4); color: var(--smoke);
}
.badge.hot { border-color: rgba(45,212,191,.42); color: var(--teal); background: rgba(45,212,191,.07); }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; backdrop-filter: blur(16px) saturate(150%);
  background: rgba(8,17,15,.6); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.stuck { border-bottom-color: var(--ink-4); background: rgba(8,17,15,.86); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-word { font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: -.028em; }
.logo-word .dot { color: var(--teal); }
.nav-links { display: flex; gap: 26px; font-size: .93rem; color: var(--bone-dim); font-weight: 500; }
.nav-links a { transition: color .18s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { padding: 10px 20px; font-size: .9rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- 6. HERO ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 84px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 780px; pointer-events: none;
  background:
    radial-gradient(48% 52% at 22% 34%, rgba(45,212,191,.19), transparent 68%),
    radial-gradient(42% 46% at 78% 26%, rgba(125,211,252,.13), transparent 70%),
    radial-gradient(36% 40% at 56% 74%, rgba(245,165,36,.09), transparent 72%);
  filter: blur(14px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-sub { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--ash); font-family: var(--mono); letter-spacing: .01em; }

/* ---------- 7. THE RELAY DEMO ---------- */
.relay {
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 62%);
  border: 1px solid var(--ink-4); border-radius: var(--r-lg);
  padding: 22px; box-shadow: 0 40px 90px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.045);
}
.relay-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--ink-4); }
.relay-av { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.relay-name { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.relay-status { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--smoke); font-family: var(--mono); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.9s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .32; transform: scale(1.35) } }
.wave { margin-left: auto; display: flex; gap: 2.5px; align-items: flex-end; height: 16px; }
.wave i { width: 2.5px; border-radius: 2px; background: var(--teal); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 6px;  animation-delay: 0s }
.wave i:nth-child(2) { height: 13px; animation-delay: .12s }
.wave i:nth-child(3) { height: 9px;  animation-delay: .24s }
.wave i:nth-child(4) { height: 16px; animation-delay: .36s }
.wave i:nth-child(5) { height: 7px;  animation-delay: .48s }
@keyframes wave { 0%,100% { transform: scaleY(.35) } 50% { transform: scaleY(1) } }

.script { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.line { opacity: 0; transform: translateY(9px); animation: rise .6s var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none } }
.line .who {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ash); display: block; margin-bottom: 4px;
}
.line .said { font-size: 1rem; line-height: 1.5; }
.line.you .said { color: var(--bone); }
.line.you .who { color: var(--smoke); }
.line.bot .said { color: var(--mint); font-family: var(--display); font-style: italic; font-size: 1.08rem; }
.line.bot .who { color: var(--teal); }
.hop {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ash);
}
.hop::before, .hop::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--ink-5), transparent); }
.hop .dotmove { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- 8. TICKER ---------- */
.ticker { border-block: 1px solid var(--ink-4); background: var(--ink-2); overflow: hidden; padding: 15px 0; }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: slide 44s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
.ticker-item {
  font-family: var(--display); font-style: italic; font-size: 1.06rem; color: var(--smoke); white-space: nowrap;
}
.ticker-item::before { content: "“"; color: var(--teal); }
.ticker-item::after { content: "”"; color: var(--teal); }

/* ---------- 9. CARDS / GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 660px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr } }

.card {
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--ink-4);
  border-radius: var(--r); padding: 26px; transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--ink-5); transform: translateY(-3px); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--smoke); font-size: .96rem; }
.card-ico { width: 38px; height: 38px; margin-bottom: 18px; }

/* ---------- 10. THE FOUR BEATS ---------- */
.beats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; position: relative; }
@media (max-width: 900px) { .beats { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .beats { grid-template-columns: 1fr } }
.beat { padding: 30px 24px; border-left: 1px solid var(--ink-4); position: relative; }
.beat:first-child { border-left: 0 }
@media (max-width: 900px) { .beat:nth-child(odd) { border-left: 0 } }
@media (max-width: 560px) { .beat { border-left: 0; border-top: 1px solid var(--ink-4) } .beat:first-child { border-top: 0 } }
.beat-n {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--teal);
  margin-bottom: 16px; display: block;
}
.beat h3 { margin-bottom: 8px; font-size: 1.16rem }
.beat p { color: var(--smoke); font-size: .93rem }

/* ---------- 11. THE NOT-LIST ---------- */
.nots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.not {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px;
  border: 1px solid var(--ink-4); background: var(--ink-2); color: var(--ash);
  font-size: .95rem; font-weight: 500;
}
.not svg { flex: none; opacity: .8 }
.not span { text-decoration: line-through; text-decoration-color: rgba(251,113,133,.62); text-decoration-thickness: 1.5px; }

/* ---------- 12. THE APP ---------- */
.app-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(30px, 5vw, 64px); align-items: center; margin-top: 56px; }
@media (max-width: 920px) { .app-grid { grid-template-columns: 1fr } }
.bar-shot {
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--ink-4);
  border-radius: var(--r-lg); padding: 0; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.95);
}
.bar-top {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: rgba(255,255,255,.035); border-bottom: 1px solid var(--ink-4);
}
.bar-top .tl { display: flex; gap: 6px }
.bar-top .tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-5) }
.bar-top .clock { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--ash) }
.bar-body { padding: 26px 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px }
.orb { position: relative; width: 88px; height: 88px }
.orb .core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6EE7D5, var(--teal-3) 62%);
  box-shadow: 0 6px 28px rgba(13,148,136,.5);
}
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--teal); opacity: 0; animation: breathe 3.4s ease-in-out infinite }
@keyframes breathe { 0% { opacity: .5; transform: scale(.74) } 72% { opacity: 0; transform: scale(1.06) } 100% { opacity: 0 } }
.orb-label { font-size: .92rem; color: var(--smoke) }
.chip {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(245,165,36,.18), rgba(245,165,36,.1));
  border: 1px solid rgba(245,165,36,.24);
}
.chip .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.7s ease-in-out infinite; flex: none }
.chip b { font-size: .92rem; font-weight: 600 }
.chip small { display: block; color: var(--smoke); font-size: .78rem }
.chip .cta { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--amber); font-family: var(--mono) }
.bar-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100% }
.bar-tile { background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 9px }
.bar-tile .g { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none }
.bar-tile .g.on { background: var(--teal-3) }
.bar-tile b { font-size: .84rem; font-weight: 600; display: block }
.bar-tile small { font-size: .72rem; color: var(--ash) }
.feature-list li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--ink-4) }
.feature-list li:first-child { border-top: 0; padding-top: 0 }
.feature-list b { display: block; font-size: 1.02rem; margin-bottom: 3px; letter-spacing: -.01em }
.feature-list p { color: var(--smoke); font-size: .93rem }
.feature-list .tick { flex: none; margin-top: 4px }

/* ---------- 13. TRUST ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr } }
.trust {
  border: 1px solid var(--ink-4); border-radius: var(--r); padding: 28px;
  background: linear-gradient(170deg, rgba(125,211,252,.05), transparent 60%);
}
.trust h3 { margin-bottom: 10px }
.trust p { color: var(--smoke); font-size: .95rem }
.quote-card {
  margin-top: 30px; border: 1px solid var(--ink-4); border-radius: var(--r);
  background: var(--ink-2); padding: 26px 28px;
}
.quote-card .qh { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px }
.quote-card .qline { font-family: var(--display); font-style: italic; font-size: 1.22rem; line-height: 1.45; color: var(--bone) }
.quote-card .qnote { margin-top: 14px; color: var(--smoke); font-size: .92rem }

/* ---------- 14. PRICING ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; align-items: stretch }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 620px)  { .tiers { grid-template-columns: 1fr } }
.tier {
  display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--ink-4); background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  position: relative;
}
.tier.feature { border-color: rgba(45,212,191,.42); background: linear-gradient(180deg, rgba(45,212,191,.11), var(--ink-2) 55%) }
.tier-flag {
  position: absolute; top: -11px; left: 24px; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .13em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--teal); color: #04100E; font-weight: 700;
}
.tier-name { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; font-weight: 600 }
.tier-for { color: var(--ash); font-size: .84rem; margin-top: 3px; min-height: 2.4em }
.tier-price { margin-top: 18px; display: flex; align-items: baseline; gap: 5px }
.tier-price b { font-family: var(--display); font-size: 2.5rem; font-weight: 600; letter-spacing: -.035em }
.tier-price span { color: var(--smoke); font-size: .92rem }
.tier-sub { color: var(--ash); font-size: .8rem; margin-top: 4px; font-family: var(--mono) }
.tier ul { margin: 22px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.tier li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--bone-dim); line-height: 1.42 }
.tier li svg { flex: none; margin-top: 4px }
.tier li.off { color: var(--ash) }
.price-note { margin-top: 34px; text-align: center; color: var(--smoke); font-size: .95rem }

/* ---------- 15. DOWNLOAD ---------- */
.get-card {
  border: 1px solid var(--ink-4); border-radius: var(--r-xl); padding: clamp(34px, 6vw, 64px);
  background:
    radial-gradient(70% 120% at 50% -10%, rgba(45,212,191,.14), transparent 62%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  text-align: center;
}
.get-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px }
.reqs { margin-top: 22px; font-family: var(--mono); font-size: .78rem; color: var(--ash); letter-spacing: .02em }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; text-align: left }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr } }
.step { border: 1px solid var(--ink-4); border-radius: var(--r); padding: 22px; background: rgba(255,255,255,.018) }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(45,212,191,.14); color: var(--teal);
  display: grid; place-items: center; font-family: var(--mono); font-size: .76rem; font-weight: 700; margin-bottom: 13px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 5px; font-family: var(--sans); font-weight: 600 }
.step p { color: var(--smoke); font-size: .9rem }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 780px; margin: 46px auto 0 }
.qa { border-top: 1px solid var(--ink-4) }
.qa:last-child { border-bottom: 1px solid var(--ink-4) }
.qa summary {
  list-style: none; cursor: pointer; padding: 21px 40px 21px 0; position: relative;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.012em;
}
.qa summary::-webkit-details-marker { display: none }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 1.8px solid var(--smoke); border-bottom: 1.8px solid var(--smoke);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s var(--ease);
}
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg) }
.qa p { padding: 0 0 22px; color: var(--smoke); font-size: .98rem; max-width: 64ch }

/* ---------- 17. FOOTER ---------- */
.foot { border-top: 1px solid var(--ink-4); padding: 52px 0 40px; background: var(--ink-2) }
.foot-in { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: .92rem; color: var(--smoke) }
.foot-links a:hover { color: var(--teal) }
.foot-note { margin-top: 34px; color: var(--ash); font-size: .84rem; max-width: 60ch }

/* ---------- 18. SCROLL REVEAL ---------- */
.fx .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out) }
.fx .rv.in { opacity: 1; transform: none }
