/* Unfold Thread — site styles.
   Layout concept: light and airy, washed in lavender. A floating pill nav, a
   centred hero where a collapsed thread unfolds into a live conversation,
   a bento grid of small animated interface pieces, and soft rounded panels. */
:root {
  /* colour: white and cool lilac greys, light lavender as the brand colour,
     a deeper violet for links and focus, highlighter yellow for search */
  --bg: #FFFFFF;
  --bg-soft: #F8F6FE;
  --bg-soft-2: #F0ECFC;
  --ink: #1C1730;
  --ink-2: #5A5470;
  --ink-3: #6B6582;
  --line: #E8E3F6;
  --lav: #CDBFF7;
  --lav-hover: #BEADF3;
  --lav-soft: #EEE9FD;
  --lav-ink: #1C1730;
  --violet: #5B42C9;
  --violet-hover: #4A33AD;
  --aura-1: #D9CCFB;
  --aura-2: #FAD9EC;
  --aura-3: #D3E3FD;
  --mark: #FCE38A;
  --mark-cur: #F5A623;
  --mark-ink: #1D1C1A;
  --panel: #1C1730;
  --panel-ink: #F1EEFB;
  --panel-2: #B3ACCB;
  --panel-card: rgba(255, 255, 255, .06);
  --panel-line: rgba(255, 255, 255, .1);
  --card-grad: linear-gradient(137deg, #FFFFFF 0%, #F4F1FD 105%);
  --card-shadow: 0 2px 8px rgba(36, 24, 80, .05), inset 0 -2px 4px rgba(255, 255, 255, .6);
  --lift: 0 14px 34px -10px rgba(60, 40, 140, .22);
  --shot-shadow: 0 40px 90px -30px rgba(70, 45, 160, .38), 0 2px 8px rgba(36, 24, 80, .06);
  --spot: rgba(190, 168, 250, .35);

  /* type: one grotesk family, medium weight with tight tracking for headings */
  --sans: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --r-xl: 36px;
  --r-lg: 24px;
  --wrap: 74rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100D1A; --bg-soft: #16122A; --bg-soft-2: #1D1835;
    --ink: #EEEAF9; --ink-2: #ADA6C4; --ink-3: #958EAD; --line: #2A2442;
    --lav: #BFAEF6; --lav-hover: #CFC2FA; --lav-soft: #261F45; --lav-ink: #17112B;
    --violet: #BBA9FA; --violet-hover: #D3C7FD;
    --aura-1: #3A2A78; --aura-2: #4A2346; --aura-3: #1F2F5E;
    --mark: #E8C547;
    --panel: #19152B; --panel-ink: #EEEAF9; --panel-2: #ADA6C4;
    --panel-card: rgba(255, 255, 255, .05); --panel-line: rgba(255, 255, 255, .09);
    --card-grad: linear-gradient(137deg, #1A1530 0%, #130F22 105%);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
    --lift: 0 14px 34px -10px rgba(0, 0, 0, .65);
    --shot-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .4);
    --spot: rgba(150, 120, 250, .18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100D1A; --bg-soft: #16122A; --bg-soft-2: #1D1835;
  --ink: #EEEAF9; --ink-2: #ADA6C4; --ink-3: #958EAD; --line: #2A2442;
  --lav: #BFAEF6; --lav-hover: #CFC2FA; --lav-soft: #261F45; --lav-ink: #17112B;
  --violet: #BBA9FA; --violet-hover: #D3C7FD;
  --aura-1: #3A2A78; --aura-2: #4A2346; --aura-3: #1F2F5E;
  --mark: #E8C547;
  --panel: #19152B; --panel-ink: #EEEAF9; --panel-2: #ADA6C4;
  --panel-card: rgba(255, 255, 255, .05); --panel-line: rgba(255, 255, 255, .09);
  --card-grad: linear-gradient(137deg, #1A1530 0%, #130F22 105%);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
  --lift: 0 14px 34px -10px rgba(0, 0, 0, .65);
  --shot-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .4);
  --spot: rgba(150, 120, 250, .18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: .18em; }
a:hover { color: var(--violet-hover); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.8rem); line-height: 1.03; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: 112px 0; }
@media (max-width: 700px) { .section { padding-block: 80px 0; } }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 44rem; margin: 0 auto 48px; }
.section-head p { color: var(--ink-2); max-width: 36rem; }
.pill-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  background: var(--card-grad); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.pill-label svg { width: 14px; height: 14px; color: var(--violet); }
.pill-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 var(--lav); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--lav); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- aurora: soft drifting lavender light ---------- */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: 8%; top: -18%; background: var(--aura-1); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 34vw; height: 34vw; max-width: 480px; max-height: 480px; right: 6%; top: -6%; background: var(--aura-2); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: 38%; top: 18%; background: var(--aura-3); animation: drift-c 26s ease-in-out infinite alternate; opacity: .7; }
@keyframes drift-a { to { transform: translate(12%, 10%) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-16%, 14%) scale(.9); } }
@keyframes drift-c { to { transform: translate(-10%, -12%) scale(1.15); } }

/* ---------- floating nav ---------- */
.nav-shell { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 20; padding-top: 12px; }
.nav-bar {
  max-width: 52rem; margin-inline: auto; display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: var(--lift);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--lav); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 780px) { .nav-links { display: none; } .nav-bar { justify-content: space-between; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 500 1rem/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
  border: 1px solid transparent; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-primary { background: var(--lav); color: var(--lav-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--violet) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-primary:hover { background: var(--lav-hover); color: var(--lav-ink); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-soft { background: var(--card-grad); color: var(--ink); border-color: var(--line); box-shadow: var(--card-shadow); }
.btn-soft:hover { color: var(--ink); box-shadow: var(--lift); transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .925rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: -76px; padding-top: 76px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero .wrap { padding-block: 72px 0; display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero h1 .w { display: inline-block; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero .lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 38rem; animation: rise .8s ease .55s both; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; animation: rise .8s ease .7s both; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .925rem; color: var(--ink-2); animation: rise .8s ease .85s both; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--violet); }

/* the live demo: a collapsed thread unfolds into the conversation */
.demo-stage { position: relative; width: 100%; max-width: 54rem; margin-top: 48px; text-align: left; perspective: 1600px; }
.folds { position: absolute; inset: 0 0 auto; z-index: 3; display: grid; gap: 6px; padding: 0 24px; animation: folds-away .7s cubic-bezier(.6, 0, .4, 1) 1.15s both; pointer-events: none; }
.folds div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-radius: 14px; font-size: .95rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.folds b { color: var(--ink); font-weight: 600; }
@keyframes folds-away { to { opacity: 0; transform: translateY(-14px) scale(.96); visibility: hidden; } }
.demo {
  position: relative; z-index: 2; border-radius: 26px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shot-shadow);
  animation: unfold 1.2s cubic-bezier(.2, .75, .1, 1) 1.2s both; transform-origin: top center;
}
@keyframes unfold {
  from { clip-path: inset(0 0 86% 0 round 26px); transform: rotateX(-10deg); }
  to { clip-path: inset(0 0 0 0 round 26px); transform: none; }
}
.demo-head { padding: 20px 24px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.demo-title { font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 6px; font-size: .88rem; color: var(--ink-2); }
.demo-meta .stack { display: inline-flex; }
.demo-meta .stack .av { width: 24px; height: 24px; font-size: .55rem; border: 2px solid var(--bg); margin-left: -6px; }
.demo-meta .stack .av:first-child { margin-left: 0; }
.demo-tools { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.demo-tabs { display: flex; gap: 4px; }
.demo-tabs span { padding: 8px 10px 11px; font-size: .92rem; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.demo-tabs span.on { color: var(--ink); border-bottom-color: var(--violet); }
.demo-tabs .n { font-size: .72rem; padding: 1px 6px; border-radius: 999px; background: var(--bg-soft-2); margin-left: 4px; color: var(--ink-2); }
.demo-search { margin-left: auto; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; width: min(260px, 100%); padding: 7px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; }
.demo-search svg { width: 15px; height: 15px; }
.demo-body { padding: 8px 24px 26px; background: var(--bg-soft); display: grid; gap: 14px; }
.demo-body > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(1.55s + var(--i) * 120ms); }
.day { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--ink-3); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gap { justify-self: center; font-size: .82rem; color: var(--ink-2); padding: 4px 12px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--violet) 45%, var(--line)); background: var(--bg); }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg.mine { flex-direction: row-reverse; }
.msg .col { display: grid; gap: 6px; min-width: 0; max-width: min(78%, 520px); }
.msg.mine .col { justify-items: end; }
.by { font-size: .8rem; color: var(--ink-3); }
.by b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: #fff; letter-spacing: 0; }
.bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 14px; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.mine .bubble { background: var(--lav-soft); border-color: transparent; border-radius: 14px 4px 14px 14px; }
.att { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; }
.att small { color: var(--ink-3); font-weight: 400; }
.ext { width: 30px; height: 30px; border-radius: 7px; flex: none; display: grid; place-items: center; font: 700 .58rem/1 var(--sans); color: #fff; letter-spacing: .02em; }

.float {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; font-size: .9rem; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--lift);
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both, bob 6s ease-in-out infinite;
}
.float small { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.float svg { width: 16px; height: 16px; color: var(--violet); }
.float.f1 { left: -56px; top: 30%; border-radius: 999px; animation-delay: 2.4s, 3s; }
.float.f2 { right: -64px; top: 52%; animation-delay: 2.6s, 3.2s; }
.float.f3 { left: 6%; bottom: -24px; animation-delay: 2.8s, 3.4s; }
.float mark { background: var(--mark); color: var(--mark-ink); padding: 0 .25em; border-radius: 4px; }
.float .count { color: var(--ink-3); font-weight: 400; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 1100px) { .float.f1 { left: -10px; } .float.f2 { right: -10px; } }
@media (max-width: 720px) {
  .float { display: none; }
  .demo-head, .demo-body { padding-left: 14px; padding-right: 14px; }
  .folds { padding: 0 12px; }
  .msg .col { max-width: 84%; }
  .demo-search { width: 100%; margin-left: 0; }
}

/* ---------- works-with marquee ---------- */
.works { padding-block: 72px 0; }
.works .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; }
.works p { font-size: .95rem; color: var(--ink-3); }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee li { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--lav); transform: rotate(45deg); }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveal on scroll (only where the browser supports scroll-driven animation) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bento .wide { grid-column: span 2; } }
.card {
  position: relative; isolation: isolate;
  border-radius: var(--r-lg); background: var(--card-grad); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  padding: 26px; display: grid; gap: 8px; align-content: start; min-width: 0; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 60%);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: color-mix(in srgb, var(--lav) 60%, var(--line)); }
.card:hover::before { opacity: 1; }
.card p { color: var(--ink-2); font-size: 1rem; }
.illo { margin-top: 18px; display: grid; gap: 10px; align-content: end; min-height: 172px; }
.illo .bubble { font-size: .88rem; padding: 8px 12px; }
.illo .msg .col { max-width: 82%; }
.illo .av { width: 28px; height: 28px; font-size: .6rem; }

/* timeline card: the gap pill breathes */
.illo .gap { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--lav) 35%, transparent); } }

/* files card: chips slide in one after another, on a loop */
.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; min-width: 0; animation: slide-in 6s ease infinite both; }
.file:nth-child(2) { animation-delay: .25s; } .file:nth-child(3) { animation-delay: .5s; }
.file span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--ink-3); font-weight: 400; margin-left: auto; padding-left: 8px; }
@keyframes slide-in { 0% { opacity: 0; transform: translateX(-16px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(8px); } }

/* search card: the current match steps between results */
.search-mini { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--violet); font-size: .9rem; }
.search-mini svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.search-mini .q { flex: 1; }
.search-mini .q::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.search-mini .count { color: var(--ink-3); font-size: .8rem; position: relative; display: inline-grid; }
.search-mini .count span { grid-area: 1 / 1; }
.search-mini .count span:first-child { animation: swap-a 5s steps(1) infinite; }
.search-mini .count span:last-child { animation: swap-b 5s steps(1) infinite; }
@keyframes swap-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes swap-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.hl { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 .15em; }
.hl.a { animation: cur-a 5s steps(1) infinite; }
.hl.b { animation: cur-b 5s steps(1) infinite; }
@keyframes cur-a { 0% { background: var(--mark); box-shadow: none; } 50% { background: var(--mark-cur); box-shadow: 0 0 0 2px var(--mark-cur); } }
@keyframes cur-b { 0% { background: var(--mark-cur); box-shadow: 0 0 0 2px var(--mark-cur); } 50% { background: var(--mark); box-shadow: none; } }

/* people card: the selection moves between senders */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.chip .av { width: 22px; height: 22px; font-size: .55rem; }
.chip.plain { padding: 4px 11px; }
.chip.s1 { animation: chip-on-1 6s steps(1) infinite; }
.chip.s2 { animation: chip-on-2 6s steps(1) infinite; }
@keyframes chip-on-1 { 0% { background: var(--ink); color: var(--bg); border-color: var(--ink); } 50% { background: var(--bg); color: var(--ink-2); border-color: var(--line); } }
@keyframes chip-on-2 { 0% { background: var(--bg); color: var(--ink-2); border-color: var(--line); } 50% { background: var(--ink); color: var(--bg); border-color: var(--ink); } }
.said { display: grid; }
.said > * { grid-area: 1 / 1; }
.said > :first-child { animation: swap-a 6s steps(1) infinite; }
.said > :last-child { animation: swap-b 6s steps(1) infinite; }

/* quoted card: the switch flips and the quote unfolds */
.toggle-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; animation: track 5s ease infinite; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); animation: knob 5s ease infinite; }
@keyframes track { 0%, 35% { background: var(--line); } 45%, 90% { background: var(--violet); } 100% { background: var(--line); } }
@keyframes knob { 0%, 35% { transform: none; } 45%, 90% { transform: translateX(14px); } 100% { transform: none; } }
.quoted { border-left: 3px solid var(--lav); padding: 2px 0 2px 10px; color: var(--ink-3); font-size: .85rem; overflow: hidden; animation: quote 5s ease infinite; }
@keyframes quote { 0%, 35% { max-height: 0; opacity: 0; } 45%, 90% { max-height: 4em; opacity: 1; } 100% { max-height: 0; opacity: 0; } }

/* ---------- product showcase ---------- */
.showcase { margin-top: 16px; border-radius: var(--r-xl); position: relative; isolation: isolate; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); padding: clamp(20px, 4vw, 48px); display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .showcase { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); } }
.showcase .copy { display: grid; gap: 14px; }
.showcase .copy h3 { font-size: 1.6rem; letter-spacing: -.035em; }
.showcase .copy p { color: var(--ink-2); }
.showcase picture { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shot-shadow); border: 1px solid var(--line); background: var(--bg); transition: transform .5s ease; }
.showcase:hover picture { transform: translateY(-4px) rotate(-.4deg); }
.showcase .aurora span { filter: blur(90px); opacity: .55; }

/* ---------- how it works ---------- */
.how { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } .how .intro { position: sticky; top: 120px; } }
.how .intro { display: grid; gap: 16px; justify-items: start; }
.how .intro p { color: var(--ink-2); max-width: 28rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 44px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(var(--lav), transparent); z-index: 0; }
.steps li { position: relative; counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--card-grad); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: transform .3s ease, box-shadow .3s ease; }
.steps li:hover { transform: translateX(4px); box-shadow: var(--lift); }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 600; font-size: 1.05rem; color: var(--lav-ink); background: var(--lav);
}
.steps p { color: var(--ink-2); font-size: 1rem; margin-top: 4px; }
kbd { font: 600 .85em/1 var(--sans); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--bg); color: var(--ink); }

/* ---------- who it's for ---------- */
.who { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.who .card { gap: 10px; }
.who .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lav-soft); color: var(--violet); margin-bottom: 8px; transition: transform .4s cubic-bezier(.2, .9, .3, 1.4), background-color .3s ease; }
.who .card:hover .icon { transform: rotate(-8deg) scale(1.08); background: var(--lav); color: var(--lav-ink); }
.who .icon svg { width: 22px; height: 22px; }

/* ---------- privacy panel ---------- */
.privacy { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--panel); color: var(--panel-ink); padding: clamp(28px, 5vw, 64px); display: grid; gap: 40px; }
.privacy::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lav) 45%, transparent), transparent 65%);
  animation: drift-b 16s ease-in-out infinite alternate;
}
.privacy a { color: var(--panel-ink); }
.privacy .head { display: grid; gap: 16px; max-width: 40rem; justify-items: start; }
.privacy .pill-label { background: var(--panel-card); border-color: var(--panel-line); color: var(--panel-2); box-shadow: none; }
.privacy .pill-label svg { color: var(--lav); }
.privacy .head p { color: var(--panel-2); font-size: 1.1rem; }
.facts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { border-radius: 20px; background: var(--panel-card); border: 1px solid var(--panel-line); padding: 20px; display: grid; gap: 4px; align-content: start; transition: border-color .3s ease, transform .3s ease; }
.facts > div:hover { border-color: color-mix(in srgb, var(--lav) 60%, transparent); transform: translateY(-3px); }
.facts dt { font-size: .9rem; color: var(--panel-2); }
.facts dd { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.facts dd small { display: block; font-size: .95rem; font-weight: 400; letter-spacing: -.01em; color: var(--panel-2); margin-top: 6px; line-height: 1.5; }
.verify { display: grid; gap: 12px; max-width: 44rem; }
.verify ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--panel-2); }
.verify li::marker { color: var(--lav); font-weight: 600; }
.verify code { color: var(--panel-ink); font-size: .92em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.faq .intro { display: grid; gap: 16px; justify-items: start; }
.faq .intro p { color: var(--ink-2); max-width: 26rem; }
.faq-list { display: grid; gap: 10px; min-width: 0; }
.faq details { border-radius: 18px; background: var(--card-grad); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: border-color .25s ease, box-shadow .25s ease; }
.faq details:hover, .faq details[open] { border-color: color-mix(in srgb, var(--lav) 70%, var(--line)); }
.faq details[open] { box-shadow: var(--lift); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; position: relative; font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--violet); border-radius: 2px; transition: transform .25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }
.faq details[open] p { animation: rise .35s ease both; }

/* ---------- closing ---------- */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 48px); text-align: center;
  display: grid; gap: 18px; justify-items: center; background: var(--bg-soft); border: 1px solid var(--line);
}
.closing p { color: var(--ink-2); max-width: 34rem; }

/* ---------- footer ---------- */
.site-foot { padding-block: 72px 40px; }
.site-foot .wrap { display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: start; }
.foot-top p { color: var(--ink-2); margin-top: 10px; max-width: 22rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .95rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }

/* ---------- policy page ---------- */
.policy { padding-block: 64px 24px; position: relative; isolation: isolate; }
.policy article { max-width: 42rem; margin-inline: auto; display: grid; gap: 18px; }
.policy h1 { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); }
.policy h2 { font-size: 1.5rem; margin-top: 18px; letter-spacing: -.03em; }
.policy p, .policy li { color: var(--ink-2); }
.policy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.policy .updated { color: var(--ink-3); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .folds { display: none; }
  .quoted { max-height: none; }
  .said > :last-child, .search-mini .count span:last-child { display: none; }
}
