/* ============================================================
   Whytap — landing v6 · bento / "modul.so" style
   Warm light-gray bg, white rounded cards, minimal, no mac chrome.
   Dictation shown as a Dynamic-Island pill. Motion is JS-driven.
   ============================================================ */

:root {
  --bg: #ECECEE;            /* light neutral gray */
  --card: #FFFFFF;
  --card-2: #F2F2F4;
  --ink: #1A1A1C;
  --ink-2: #46464A;
  --muted: #8C8B88;
  --faint: #B0AFAC;
  --line: rgba(20,20,25,0.08);
  --line-2: rgba(20,20,25,0.13);

  --accent: #E0469B;        /* pink — primary accent */
  --island: #161619;

  --r-card: 28px;
  --r-md: 18px;
  --r-sm: 13px;
  --pill: 999px;

  --sh: 0 1px 2px rgba(20,18,15,.03), 0 10px 28px rgba(20,18,15,.05);
  --sh-soft: 0 1px 2px rgba(20,18,15,.03), 0 4px 14px rgba(20,18,15,.04);

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --maxw: 1040px;
  --gutter: clamp(14px, 3vw, 26px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--sans); font-size: 17px; line-height: 1.5; font-weight: 400;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent) 26%, white); }

/* shell: stacked bento cards */
.shell { max-width: var(--maxw); margin: 0 auto; padding: var(--gutter); display: flex; flex-direction: column; gap: var(--gutter); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh); }
.pad { padding: clamp(26px, 4vw, 52px); }

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow.nodot::before { display: none; }
.h2 { font-size: clamp(27px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.035em; }
.brandword { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.h2 .mut { color: var(--muted); }
.lead { margin-top: 14px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 52ch; text-wrap: pretty; line-height: 1.5; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 22px; border-radius: var(--pill);
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s cubic-bezier(.3,.7,.4,1), background .2s, box-shadow .25s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,18,15,.22); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--card-2); transform: translateY(-1px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--text { background: transparent; border: 0; color: var(--ink-2); padding: 0 8px; height: auto; font-weight: 500; }
.btn--text:hover { color: var(--ink); }
.btn .apple { width: 16px; height: 16px; margin-top: -2px; }
.btn .win { width: 14px; height: 14px; margin-top: -1px; }

.statpill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--card-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.statpill .led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- header (floating pill nav) ---------- */
.nav { position: sticky; top: var(--gutter); z-index: 100; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 10px 0 22px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--sh-soft); }
.brand { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 88% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), radial-gradient(46% 60% at 4% 100%, rgba(150,150,160,.10), transparent 72%); }
.hero__in { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; }
.hero h1 .mut { color: var(--muted); }
.hero h1 .acc { color: #E0469B; }
.hero__sub { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* dynamic island dictation pill */
.island {
  margin-top: 28px; width: 100%; max-width: 540px;
  background: var(--island); color: #fff; border-radius: 26px;
  display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px;
  box-shadow: 0 10px 30px rgba(20,18,15,.22), inset 0 1px 0 rgba(255,255,255,.06);
  min-height: 78px;
}
.island__mic { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.10); transition: background .3s, box-shadow .3s; }
.island__mic svg { width: 20px; height: 20px; stroke: #fff; }
.island[data-on="1"] .island__mic { background: color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.island__mid { flex: 1; min-width: 0; display: flex; align-items: center; }
.island__wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.island__wave i { width: 3px; height: 5px; border-radius: 2px; background: rgba(255,255,255,.45); transition: height .12s ease, background .3s; }
.island[data-on="1"] .island__wave i { background: var(--accent); }
.island__text { font-size: 16px; line-height: 1.32; letter-spacing: -0.01em; color: #fff; }
.island__text.messy { color: rgba(255,255,255,.62); }
.island__text .cursor { display: inline-block; width: 2px; height: 1.02em; background: var(--accent); margin-left: 2px; vertical-align: -2px; }
.island__right { flex: none; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.island__kbd { display: inline-grid; place-items: center; height: 24px; min-width: 24px; padding: 0 7px; border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.appgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.appcard { background: var(--card-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 20px; min-height: 132px; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.3,.7,.4,1), box-shadow .35s, background .3s; }
.appcard.is-active { transform: translateY(-5px); background: var(--card); box-shadow: var(--sh); }
.appcard__top { display: flex; align-items: center; gap: 10px; }
.appcard__mono { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.28); flex: none; overflow: hidden; }
.appcard__mono svg { width: 18px; height: 18px; display: block; }
.appcard__app { font-size: 14px; font-weight: 600; color: var(--ink); }
.appcard__tag { margin-left: auto; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tag .led { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.tag.active { color: var(--accent); }
.tag.active .led { background: var(--accent); }
.appcard__body { margin-top: 14px; font-size: 15.5px; line-height: 1.4; color: var(--ink); letter-spacing: -0.015em; flex: 1; }
.appcard__body.dim { color: var(--muted); }
.appcard__body .cursor { display: inline-block; width: 2px; height: 1.02em; background: var(--accent); margin-left: 1px; vertical-align: -2px; }

.logos { margin-top: 28px; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__row { display: flex; align-items: center; gap: 40px; width: max-content; }
.logos__row span { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--faint); white-space: nowrap; }
.intg__note { margin-top: 26px; font-size: 14.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.intg__note svg { stroke: var(--accent); flex: none; }
.intg__note b { color: var(--ink); font-weight: 600; }

/* ============================================================
   CAPABILITIES (fanned animated "how it works" cards)
   ============================================================ */
.caps-sec { padding-block: 6px; }
.caps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: stretch; }
.caps .cap:nth-child(-n+3) { grid-column: span 2; }
.caps .cap:nth-child(n+4)  { grid-column: span 3; }
.cap {
  position: relative; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px 24px; display: flex; flex-direction: column;
  box-shadow: var(--sh-soft); cursor: default;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.3,.8,.35,1), box-shadow .5s, border-color .4s;
}
.cap.is-active {
  transform: translateY(-8px);
  z-index: 3; border-color: color-mix(in srgb, var(--c) 42%, var(--line));
  box-shadow: 0 22px 50px rgba(20,18,15,.13), 0 2px 8px rgba(20,18,15,.05);
}
.cap::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--c); opacity: 0; transform: scaleX(.4);
  transform-origin: 50% 0; transition: opacity .4s, transform .5s;
}
.cap.is-active::before { opacity: 1; transform: scaleX(1); }

.cap__label { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 27px; padding: 0 13px; border-radius: var(--pill); background: color-mix(in srgb, var(--c) 13%, white); color: var(--c); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.cap__title { margin-top: 15px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.16; }
.cap__desc { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cap__feats { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.cap__feat { font-size: 10.5px; font-weight: 600; color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 9px; letter-spacing: -0.005em; white-space: nowrap; }

/* ---- illustrative animation panel (minimal, light) ---- */
.cap__art { margin-top: auto; padding-top: 18px; }
.art {
  position: relative; height: 130px; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 6%, var(--card-2));
}
.art i { display: block; }

/* WRITE — waveform settles into clean text lines */
.art--write { flex-direction: column; gap: 16px; }
.art--write .wf { display: flex; align-items: center; gap: 5px; height: 26px; }
.art--write .wf i { width: 4px; height: 9px; border-radius: 3px; background: currentColor; }
.cap.is-active .art--write .wf i { animation: wf 1.05s ease-in-out infinite; animation-delay: var(--d); }
@keyframes wf { 0%,100% { height: 8px; } 50% { height: 26px; } }
.art--write .txt { width: 58%; display: flex; flex-direction: column; gap: 7px; }
.art--write .txt i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.cap.is-active .art--write .txt i { animation: wipe 3.4s ease infinite; animation-delay: var(--d); }
@keyframes wipe { 0% { clip-path: inset(0 100% 0 0); } 26%,100% { clip-path: inset(0 0 0 0); } }

/* ASK — a speech bubble pops with a sparkle */
.art--ask .bubble { position: relative; width: 56%; border-radius: 14px; padding: 12px 13px; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 6px 16px rgba(20,18,15,.06); display: flex; flex-direction: column; gap: 7px; }
.art--ask .bubble::after { content: ""; position: absolute; left: 20px; bottom: -7px; width: 13px; height: 13px; background: var(--card); border-right: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-bottom: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line)); transform: rotate(45deg); }
.art--ask .bubble i { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.art--ask .bubble i:nth-child(1) { width: 92%; }
.art--ask .bubble i:nth-child(2) { width: 58%; }
.art--ask .spark { position: absolute; top: 24px; right: 24%; width: 22px; height: 22px; fill: currentColor; }
.cap.is-active .art--ask .bubble { animation: pop .55s cubic-bezier(.3,1.3,.5,1) both; }
.cap.is-active .art--ask .bubble i { animation: wipe 3.2s ease infinite; animation-delay: var(--d); }
.cap.is-active .art--ask .spark { animation: twinkle 3.2s ease infinite; }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes twinkle { 0%,42% { transform: scale(0) rotate(-40deg); opacity: 0; } 58% { transform: scale(1.15) rotate(0); opacity: 1; } 82%,100% { transform: scale(1) rotate(0); opacity: 1; } }

/* FIND — a lens sweeps across rows and locks onto one */
.art--find .rows { width: 60%; display: flex; flex-direction: column; gap: 10px; }
.art--find .row { display: flex; align-items: center; gap: 9px; }
.art--find .row .mk { width: 15px; height: 15px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 12%, transparent); flex: none; transition: background .3s; }
.art--find .row .ln { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: background .3s; }
.art--find .row.hit .mk { background: currentColor; }
.art--find .row.hit .ln { background: color-mix(in srgb, var(--c) 65%, transparent); }
.cap.is-active .art--find .row.hit .mk,
.cap.is-active .art--find .row.hit .ln { animation: hitglow 3.2s ease infinite; }
@keyframes hitglow { 0%,40% { filter: none; } 52% { filter: brightness(1.15); } 100% { filter: none; } }
.art--find .lens { position: absolute; width: 30px; height: 30px; left: 14%; top: 50%; stroke: currentColor; }
.cap.is-active .art--find .lens { animation: sweep 3.2s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes sweep { 0% { transform: translate(0,-58%) scale(.9); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(168%,-50%) scale(1); opacity: 1; } 78%,100% { transform: translate(168%,-50%) scale(1); opacity: 1; } }

/* ACT — an empty box gets checked next to a task */
.art--act .task { display: flex; align-items: center; gap: 13px; width: 60%; }
.art--act .box { width: 30px; height: 30px; border-radius: 9px; border: 1.6px solid color-mix(in srgb, var(--c) 50%, var(--line)); display: grid; place-items: center; flex: none; background: var(--card); transition: background .3s; }
.art--act .box svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.art--act .bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.art--act .bars i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.cap.is-active .art--act .box { animation: boxfill 3.2s ease infinite; }
.cap.is-active .art--act .box svg { animation: drawcheck 3.2s ease infinite; }
@keyframes drawcheck { 0%,22% { stroke-dashoffset: 22; } 46%,100% { stroke-dashoffset: 0; } }
@keyframes boxfill { 0%,22% { background: var(--card); } 46%,100% { background: color-mix(in srgb, var(--c) 15%, white); } }

/* MEET — checklist items tick off in sequence */
.art--meet .list { width: 62%; display: flex; flex-direction: column; gap: 11px; }
.art--meet .item { display: flex; align-items: center; gap: 10px; }
.art--meet .ck { width: 17px; height: 17px; border-radius: 5px; border: 1.6px solid color-mix(in srgb, var(--c) 42%, var(--line)); background: var(--card); display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s; }
.art--meet .ck svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3; opacity: 0; }
.art--meet .item .ln { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.cap.is-active .art--meet .ck { animation: ckfill 3.4s ease infinite; animation-delay: var(--d); }
.cap.is-active .art--meet .ck svg { animation: ckshow 3.4s ease infinite; animation-delay: var(--d); }
@keyframes ckfill { 0%,6% { background: var(--card); border-color: color-mix(in srgb, var(--c) 42%, var(--line)); } 18%,100% { background: currentColor; border-color: currentColor; } }
@keyframes ckshow { 0%,9% { opacity: 0; } 20%,100% { opacity: 1; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { position: relative; overflow: hidden; text-align: center; }
.final__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 64%); }
.final__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(28px,4vw,52px); font-weight: 500; letter-spacing: -0.04em; }
.final__sub { margin: 14px auto 0; max-width: 40ch; color: var(--muted); font-size: clamp(16px,1.4vw,19px); }
.final__row { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final--left { text-align: left; }
.final--left .final__in { align-items: flex-start; }
.final--left .final__sub { margin-inline: 0; max-width: 60ch; }
.final--left .final__row { justify-content: flex-start; }

/* footer */
.ftr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr__links { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr__links a { font-size: 13.5px; color: var(--muted); transition: color .15s; }
.ftr__links a:hover { color: var(--ink); }
.ftr__copy { font-size: 13px; color: var(--faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .appgrid { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: 1fr 1fr; }
  .caps .cap:nth-child(-n+3), .caps .cap:nth-child(n+4) { grid-column: auto; }
  .caps .cap:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .appgrid { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .caps .cap:nth-child(5) { grid-column: auto; }
}

/* ============================================================
   INTRO PRELOADER (JS-driven)
   ============================================================ */
/* Preloader splash — covers the page while it loads (React UMD + bundle + web
   fonts). Dismissed by the small inline script in index.html / pricing/index.html
   once fonts are ready and React has painted. Replaced the old JS font-morph
   intro overlay (which only ran AFTER load, i.e. an intro, not a loader). */
#splash { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% -10%, #E8E0F4, transparent 60%),
    radial-gradient(90% 70% at 10% 110%, #F3E2EE, transparent 60%),
    #F4F2F6;
  transition: opacity .5s ease; }
#splash.is-hidden { opacity: 0; pointer-events: none; }
#splash .splash__word { font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink);
  font-size: clamp(46px, 9vw, 110px); }
