/* Cueboard — the app's own design language, "Twilight daylight":
   a porcelain ground lit by the Twilight glows, white light glass, gel buttons with white type,
   a sans headline ending on one italic serif word, small tracked mono labels, and the dark
   Twilight keyboard. Tokens mirror Promptura/Theme/Daylight.swift and SharedUI/KeyboardThemes.swift. */

:root {
  --porcelain: #F5F3F8;
  --ink: #161B33;
  --ink-2: rgba(22, 27, 51, .72);
  --ink-3: rgba(22, 27, 51, .68);
  --brand: #3B4666;
  --hairline: rgba(35, 45, 72, .12);
  --wash: rgba(35, 45, 72, .06);
  --peach: #F3D9C4;
  --peach-2: #E7BB98;
  --peach-ink: #F3CBA9;
  --navy: #141A2E;

  /* Gel.twilight: the pill (GlassPillButtonStyle / GelButtonStyle). */
  --gel: linear-gradient(180deg, #222C45 0%, #303A5D 16%, #516081 33%, #8291BC 50%, #A7B4D7 66%, #CABABA 83%, #E7BB98 100%);
  /* The chip set and the selected chip. */
  --gel-chip: linear-gradient(180deg, #232D48 0%, #3B4666 17%, #5F6B91 33%, #8F9EC5 50%, #B2BBDA 67%, #C4BDCD 83%, #E0B592 100%);
  --gel-sel: linear-gradient(180deg, #EEF0FA 0%, #C8CCE5 45%, #C4BDCD 75%, #E7BB98 100%);
  --sky: linear-gradient(180deg, #141A2E 0%, #232D48 18%, #3B4666 34%, #5F6B91 50%, #8F9EC5 64%, #B2BBDA 74%, #C4BDCD 83%, #E0B592 93%, #E7BB98 100%);

  /* The keyboard theme, swapped live by Theme Studio. */
  --kb-base: #141A2E;
  --kb-bottom: #2B3150;
  --kb-deep: #5F6B91;
  --kb-bright: #E7BB98;
  --kb-ink: #FFFFFF;
  --kb-sub: rgba(255, 255, 255, .64);
  --kb-card: rgba(143, 158, 197, .12);
  --kb-stroke: rgba(255, 255, 255, .16);
  --kb-accent: #E7B48F;
  --kb-hl: #F3CBA9;
  --kb-pill: var(--gel);
  --kb-chip: var(--gel-chip);
  --kb-chip-ink: #FFFFFF;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --margin: clamp(18px, 4vw, 56px);
  --section: clamp(96px, 11vw, 168px);
  --spring: cubic-bezier(.34, 1.36, .64, 1);   /* Motion.lively */
  --smooth: cubic-bezier(.22, 1, .36, 1);       /* Motion.smooth */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--peach-2); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--peach); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--margin); }

/* ThemedBackdrop: porcelain lit by the theme's two glows. */
.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 40% at 92% 0%, rgba(231, 187, 152, .55), rgba(231, 187, 152, 0) 70%),
    radial-gradient(60% 45% at 62% -8%, rgba(143, 158, 197, .6), rgba(143, 158, 197, 0) 72%),
    radial-gradient(55% 40% at 0% 100%, rgba(143, 158, 197, .32), rgba(143, 158, 197, 0) 70%),
    var(--porcelain);
}

/* ---------------------------------------------------------------- the kit (Daylight.swift) */
.mono, .kb-head, .kb-make {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-2);
  margin: 0;
}
.title, .title-2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.title { font-size: clamp(52px, 7.2vw, 104px); }
.title-2 { font-size: clamp(38px, 4.6vw, 64px); }
.title em, .title-2 em, figcaption em, .t-private em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.1em;
  color: var(--brand);
}
.lede { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

/* lightGlass */
.glass {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 16px 34px -16px rgba(35, 45, 72, .28);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

/* GelButtonStyle: the gel capsule, white type with a soft shadow, down at once, back on a spring. */
.gel-btn, .glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 420ms var(--spring), filter 140ms ease;
}
.gel-btn {
  background: var(--gel);
  color: #fff;
  text-shadow: 0 1px 1.5px rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 12px 26px -12px rgba(231, 187, 152, .85);
}
.glass-btn {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(35, 45, 72, .3);
  color: var(--ink);
}
.gel-btn:hover, .glass-btn:hover { filter: brightness(1.05); }
.gel-btn:active, .glass-btn:active { transform: scale(.965); transition-duration: 140ms; filter: brightness(.96); }
.wide { width: 100%; }
.glass-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(35, 45, 72, .3);
  transition: transform 420ms var(--spring);
}
.glass-pill:active { transform: scale(.95); }
.gel-dot { width: 26px; height: 16px; border-radius: 999px; background: var(--gel); display: inline-block; margin-right: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* The app icon's gel key, with its spark. */
.gel-key {
  position: relative;
  border-radius: 999px;
  background: var(--gel);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 0 0 3px rgba(255, 255, 255, .28), 0 40px 80px -30px rgba(231, 187, 152, .9);
}
.spark {
  position: absolute;
  left: 44%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='white' d='M50 0C54 34 66 46 100 50C66 54 54 66 50 100C46 66 34 54 0 50C34 46 46 34 50 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.spark.small { left: 66%; top: 28%; width: 10%; animation: twinkle 2.8s ease-in-out infinite; }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--margin);
  transition: background 240ms ease, box-shadow 240ms ease;
}
.top.scrolled { background: rgba(245, 243, 248, .72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 var(--hairline); }
.brand { display: inline-flex; align-items: center; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: var(--section);
}
.hero-copy .lede { margin-top: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
/* The phone: the app's chat host + the real keyboard. */
.phone { position: relative; }
.screen {
  position: relative;
  border-radius: 46px;
  overflow: hidden;
  background: #F7F7F9;
  box-shadow: 0 0 0 10px #0E1120, 0 0 0 11px #2A3046, 0 50px 90px -30px rgba(22, 27, 51, .55);
}
.host-bar { height: 64px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; background: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.host-body { padding: 18px 16px 14px; }
.host-hint { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.samples { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.glass-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(35, 45, 72, .35);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 420ms var(--spring);
}
.glass-chip:hover { background: #fff; }
.glass-chip:active { transform: scale(.94); transition-duration: 120ms; }
.host-field { display: flex; align-items: flex-end; gap: 10px; padding: 10px 8px 10px 16px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.host-field textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.send { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 420ms var(--spring); }
.send:active { transform: scale(.88); transition-duration: 120ms; }
.send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.phone-note { margin: 26px 8px 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); text-align: center; }

/* FloatingChip: choice chips springing out around the phone (onboarding's welcome hero). */
.float {
  position: absolute;
  z-index: 2;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--gel-chip);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 1.5px rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 14px 26px -12px rgba(59, 70, 102, .6);
  animation: drift 7s ease-in-out infinite;
}
.float.sel { background: var(--gel-sel); color: #232D48; text-shadow: none; }
.f-a { left: -44px; top: 120px; rotate: -8deg; }
.f-b { right: -36px; top: 60px; rotate: 7deg; animation-delay: -2s; }
.f-c { right: -52px; top: 300px; rotate: -5deg; animation-delay: -4s; }
.f-d { left: -56px; top: 330px; rotate: 6deg; animation-delay: -1s; }

/* ---------------------------------------------------------------- the keyboard (KeyboardRootView) */
.kb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 0;
  color: var(--kb-ink);
  background:
    radial-gradient(130% 70% at 50% 118%, color-mix(in srgb, var(--kb-bright) 60%, transparent), color-mix(in srgb, var(--kb-deep) 42%, transparent) 46%, transparent 74%),
    linear-gradient(180deg, var(--kb-base) 0%, var(--kb-bottom) 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background 450ms var(--smooth), color 300ms;
}
.kb-head { display: flex; justify-content: space-between; align-items: center; min-height: 22px; color: var(--kb-sub); }
.kb-state { display: flex; align-items: center; gap: 8px; }
.kb-state .mono, .kb-meta { color: inherit; }
.kb-state .mono { color: var(--kb-ink); opacity: .88; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--kb-accent); box-shadow: 0 0 6px var(--kb-accent); }
.kb.writing .dot { animation: breathe 1s ease-in-out infinite; }
.kb-card {
  min-height: 132px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--kb-card);
  border: 1px solid var(--kb-stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background 450ms var(--smooth);
}
.kb-card p { margin: 0; font-size: 14.5px; line-height: 1.5; transition: opacity 200ms; }
.kb-card .new { color: var(--kb-hl); transition: color 400ms; }
.kb-card .w { display: inline; opacity: 0; filter: blur(4px); animation: word 300ms var(--smooth) forwards; }
.kb.refining .kb-card p { opacity: .42; }
.bar-skel { display: block; height: 10px; border-radius: 6px; margin: 4px 0 12px; background: color-mix(in srgb, var(--kb-ink) 14%, transparent); animation: breathe 1.1s ease-in-out infinite; }
.kb-chips { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding: 2px 14px 4px; }
.kb-chips::-webkit-scrollbar { display: none; }
.kb-make { color: var(--kb-sub); flex-shrink: 0; }
.chip {
  flex-shrink: 0;
  height: 33px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--kb-chip);
  color: var(--kb-chip-ink);
  font: 500 14px/1 var(--sans);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: transform 420ms var(--spring), background 300ms;
}
.chip:active { transform: scale(.9); transition-duration: 120ms; }
.chip.sel, .chip[aria-pressed="true"] { background: var(--gel-sel); color: #232D48; text-shadow: none; font-weight: 600; }
.kb-actions { display: flex; gap: 8px; }
.kb-circle {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--kb-stroke);
  border-radius: 50%;
  background: var(--kb-card);
  color: var(--kb-ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 420ms var(--spring), opacity 200ms;
}
.kb-circle:disabled { opacity: .35; cursor: default; }
.kb-circle:not(:disabled):active { transform: scale(.88); transition-duration: 120ms; }
.kb-circle svg, .kb-apply svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.kb-apply {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--kb-pill);
  color: #fff;
  font: 600 16px var(--sans);
  text-shadow: 0 1px 1.5px rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 10px 22px -10px rgba(231, 187, 152, .75);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  transition: transform 420ms var(--spring), filter 140ms, background 450ms;
}
.kb-apply:hover { filter: brightness(1.06); }
.kb-apply:active { transform: scale(.965); transition-duration: 120ms; }
.kb-apply:disabled { opacity: .55; cursor: default; }
.kb-bar { height: 46px; margin: 4px -14px 0; background: #D1D3D9; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }
.globe-ico, .mic-ico { width: 22px; height: 22px; border: 1.6px solid #2A2D38; border-radius: 50%; position: relative; }
.globe-ico::before { content: ""; position: absolute; inset: 1px 6px; border: 1.6px solid #2A2D38; border-radius: 50%; }
.mic-ico { width: 10px; border-radius: 6px; }

/* ---------------------------------------------------------------- sections */
section { scroll-margin-top: 80px; }

/* How it works: one heading, the loop, three words that follow it */
.how { padding-bottom: var(--section); display: flex; flex-direction: column; align-items: center; text-align: center; }
.how .title-2 { margin-bottom: clamp(36px, 4vw, 56px); }
.how .switch-demo { width: min(100%, 560px); text-align: left; }
.switch-demo { border-radius: 34px; padding: 10px; }
.sd-field { margin: 6px 6px 10px; height: 46px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 15px; box-shadow: inset 0 0 0 1px var(--hairline); }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; background: var(--brand); animation: blink 1s steps(2) infinite; }
.sd-stage { position: relative; height: 300px; border-radius: 24px; overflow: hidden; }
.sd-keys { position: absolute; inset: 0; background: #D1D3D9; padding: 12px 5px; display: flex; flex-direction: column; gap: 10px; transition: opacity 400ms var(--smooth), transform 500ms var(--smooth); }
.sd-row { display: flex; gap: 6px; justify-content: center; }
.sd-row i { flex: 0 1 32px; height: 46px; border-radius: 7px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.sd-row i.w { flex-basis: 44px; background: #ADB1BB; }
.sd-row i.space { flex: 1 1 auto; max-width: 260px; }
.sd-row i.globe { position: relative; transition: background 200ms, transform 200ms; }
.sd-row i.globe::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid #2A2D38; }
.sd-menu {
  position: absolute; left: 10px; bottom: 70px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35);
  font-size: 15px; font-weight: 500;
  opacity: 0; transform: translateY(10px) scale(.9); transform-origin: bottom left;
  transition: opacity 280ms var(--smooth), transform 420ms var(--spring);
}
.sd-menu span { padding: 7px 18px 7px 12px; border-radius: 9px; }
.sd-menu span.on { transition: background 200ms; }
.sd-cue {
  position: absolute; inset: 0; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  color: #fff;
  background:
    radial-gradient(130% 70% at 50% 118%, rgba(231, 187, 152, .58), rgba(95, 107, 145, .42) 46%, transparent 74%),
    linear-gradient(180deg, #141A2E 0%, #2B3150 100%);
  transform: translateY(100%);
  transition: transform 560ms var(--smooth);
}
.sd-apply svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sd-cue .mono { color: rgba(255, 255, 255, .66); }
.sd-cue p { margin: 0; flex: 1; padding: 12px 14px; border-radius: 16px; background: rgba(143, 158, 197, .12); border: 1px solid rgba(255, 255, 255, .14); font-size: 15px; line-height: 1.5; }
.sd-apply { height: 46px; border-radius: 999px; background: var(--gel); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-shadow: 0 1px 1.5px rgba(0, 0, 0, .45); }
.switch-demo[data-beat="1"] .globe, .switch-demo[data-beat="2"] .globe { background: #fff; transform: scale(.92); }
.switch-demo[data-beat="1"] .sd-menu, .switch-demo[data-beat="2"] .sd-menu { opacity: 1; transform: none; }
.switch-demo[data-beat="2"] .sd-menu .on { background: #3B82F6; color: #fff; }
.switch-demo[data-beat="3"] .sd-cue { transform: none; }
.switch-demo[data-beat="3"] .sd-keys { opacity: .4; transform: scale(.97); }

.steps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: flex; gap: clamp(28px, 5vw, 64px); }
.steps li { position: relative; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: rgba(22, 27, 51, .3); transition: color 360ms var(--smooth); }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 5px; border-radius: 999px; background: var(--gel); transform: scaleX(0); transition: transform 560ms var(--spring); }
.steps li.on { color: var(--ink); }
.steps li.on::after { transform: none; }

/* Themes */
.themes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(80px, 9vw, 128px); }
.themes-copy .title-2 { margin: 0; }
.orbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.orb {
  width: 50px; height: 50px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; position: relative;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -6px 12px rgba(0, 0, 0, .12), 0 10px 20px -10px rgba(22, 27, 51, .45);
  transition: transform 420ms var(--spring);
}
.orb::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; transform: scale(.85); transition: opacity 200ms, transform 420ms var(--spring); }
.orb[aria-checked="true"]::after { opacity: 1; transform: none; }
.orb:hover { transform: scale(1.06); }
.orb:active { transform: scale(.92); }
.theme-name { margin-top: 18px; min-height: 1.4em; }
.themes-stage { border-radius: 40px; padding: 28px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -30px rgba(35, 45, 72, .35); }
.kb-preview { border-radius: 24px; padding-bottom: 14px; }
.kb-preview .kb-apply, .kb-preview .kb-circle { cursor: default; }

/* The paywall's sky, behind the closing screen */
.sky { position: absolute; inset: 0; background: var(--sky); z-index: -1; }
.on-dark.lede { color: rgba(255, 255, 255, .86); }
.on-dark em { color: #FFE7D4; }

/* Footer: the trial screen's sky */
.foot { position: relative; padding: clamp(80px, 9vw, 128px) 0 36px; color: #fff; overflow: hidden; text-align: center; }
.foot-inner { display: flex; flex-direction: column; align-items: center; }
.icon-key { width: clamp(200px, 22vw, 300px); aspect-ratio: 2.05; margin-bottom: 44px; animation: bob 7s ease-in-out infinite; }
.foot .lede { margin-top: 14px; }
.store-btn {
  margin-top: 34px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 26px 0 22px;
  border-radius: 999px;
  background: #fff; color: var(--ink);
  text-decoration: none;
  box-shadow: 0 20px 44px -18px rgba(20, 26, 46, .6);
  transition: transform 420ms var(--spring);
}
.store-btn:active { transform: scale(.96); }
.store-btn svg { width: 22px; height: 26px; fill: var(--ink); }
.store-btn span { display: flex; flex-direction: column; align-items: flex-start; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.store-btn small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 64px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; }
.foot-links a:hover { text-decoration: underline; }
.copy { margin: 22px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); max-width: 70ch; }
.foot .sky { background: linear-gradient(180deg, #141A2E 0%, #232D48 34%, #303A5D 62%, #3B4666 100%); }
.foot .sky::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: radial-gradient(70% 90% at 50% 120%, rgba(231, 187, 152, .45), transparent 70%); }


/* ---------------------------------------------------------------- top nav + hero trust line */
.top-nav { display: flex; gap: 4px; margin-left: auto; margin-right: 14px; }
.top-nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color 160ms, background 160ms; }
.top-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 16px; height: 10px; border-radius: 999px; background: var(--gel); }

/* ---------------------------------------------------------------- compare */
.compare { padding-bottom: var(--section); }
.compare-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.compare-head .lede { justify-self: end; }
.cmp-tabs { display: flex; gap: 8px; margin: clamp(36px, 4vw, 56px) 0 18px; flex-wrap: wrap; }
.cmp-tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(35, 45, 72, .35); font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: transform 420ms var(--spring), background 200ms, color 200ms; }
.cmp-tab:active { transform: scale(.95); transition-duration: 120ms; }
.cmp-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(22, 27, 51, .6); }
.cmp { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.cmp-you { padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff; }
.cmp-label { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cmp-lazy { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.cmp-count { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.cmp-arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gel); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 28px -14px rgba(59, 70, 102, .7); }
.cmp-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.cmp-cue { border-radius: 32px; padding: 20px 20px 22px; gap: 14px; background: linear-gradient(180deg, var(--kb-base) 0%, var(--kb-bottom) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 40px 70px -34px rgba(22, 27, 51, .7); }
.cmp-cue .kb-card { min-height: 0; padding: 16px 18px; }
.cmp-cue .kb-card p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; transition: opacity 220ms var(--smooth); }
.cmp.swap .kb-card p, .cmp.swap .cmp-lazy, .cmp.swap .cmp-added { opacity: 0; }
.cmp-added { transition: opacity 220ms var(--smooth); }
.cmp-lazy { transition: opacity 220ms var(--smooth); }
.cmp-added { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cmp-added .chip { cursor: default; height: 30px; font-size: 13.5px; }


/* ---------------------------------------------------------------- gallery: the App Store screens */
.gallery { padding-bottom: var(--section); }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.shots { list-style: none; margin: 0; padding: 10px max(var(--margin), calc((100vw - 1320px) / 2 + var(--margin))) 40px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--margin), calc((100vw - 1320px) / 2 + var(--margin))); scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline-offset: -3px; }
.shots li { flex: 0 0 clamp(220px, 24vw, 300px); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 28px; box-shadow: 0 30px 50px -28px rgba(22, 27, 51, .55); }

/* ---------------------------------------------------------------- features */
.features { padding-bottom: var(--section); }
.features .title-2 { margin-bottom: clamp(36px, 4vw, 56px); max-width: 14ch; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { border-radius: 30px; padding: 28px 26px 26px; gap: 0; min-height: 280px; background: linear-gradient(180deg, var(--kb-base) 0%, var(--kb-bottom) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 60px -36px rgba(22, 27, 51, .7); }
.feat:nth-child(1), .feat:nth-child(4), .feat:nth-child(5) { grid-column: span 2; }
.feat h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: #fff; }
.feat p { margin: 10px 0 0; max-width: 44ch; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.feat-ui { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feat-ui .chip { cursor: default; }
.tag { height: 33px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(143, 158, 197, .16); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 500; }
.feat-step { color: rgba(255, 255, 255, .7); font-weight: 600; }
.wave { gap: 5px; height: 61px; flex-wrap: nowrap; }
.wave i { width: 6px; border-radius: 6px; background: linear-gradient(180deg, #F3CBA9, #8F9EC5); height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.85s; }
@keyframes wave { 0%, 100% { height: 24%; } 50% { height: 92%; } }

/* ---------------------------------------------------------------- privacy */
.private { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.private .lede { margin-top: 22px; }
.private .lede a { color: var(--brand); font-weight: 600; }
.private-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.private-list li { padding: 22px 26px; border-radius: 26px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff, 0 14px 30px -22px rgba(35, 45, 72, .4); font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.private-list b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }

/* ---------------------------------------------------------------- pricing */
.pricing { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing .lede { margin-top: 18px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(100%, 860px); margin-top: clamp(36px, 4vw, 56px); text-align: left; }
.plan { display: flex; flex-direction: column; border-radius: 32px; padding: 32px 30px 30px; gap: 0; }
.plan h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.price { margin: 16px 0 0; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.price span { font-size: 17px; color: var(--ink-2); }
.price-alt { margin: 10px 0 0; font-size: 15px; }
.plan ul { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; font-weight: 500; }
.plan li::before { content: ""; width: 16px; height: 10px; flex-shrink: 0; border-radius: 999px; background: var(--gel); transform: translateY(-1px); }
.plan-pro { background: linear-gradient(180deg, var(--kb-base) 0%, var(--kb-bottom) 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 40px 70px -34px rgba(22, 27, 51, .7); }
.plan-pro .price span, .plan-pro .price-alt { color: rgba(255, 255, 255, .78); }
.plan-pro h3 { color: var(--peach-ink); }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 24px; padding: 0 26px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff, 0 14px 30px -22px rgba(35, 45, 72, .4); transition: background 200ms; }
.faq details[open] { background: rgba(255, 255, 255, .8); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform 320ms var(--spring); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: -6px 0 22px; max-width: 58ch; color: var(--ink-2); }

/* ---------------------------------------------------------------- motion */
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
@keyframes word { to { opacity: 1; filter: blur(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes pop-in { from { opacity: 0; scale: .5; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 760ms var(--smooth), transform 900ms var(--smooth); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .float { animation: pop-in 700ms var(--spring) both, drift 7s ease-in-out 700ms infinite; }
.js .f-a { animation-delay: 500ms, 1.2s; } .js .f-b { animation-delay: 580ms, -1s; } .js .f-c { animation-delay: 660ms, -3s; } .js .f-d { animation-delay: 740ms, -.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .themes-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-actions, .orbs { justify-content: center; }
  .phone { max-width: 470px; width: 100%; margin-inline: auto; }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .trust { justify-content: center; }
  .compare-head, .private, .faq { grid-template-columns: minmax(0, 1fr); }
  .compare-head .lede { justify-self: start; }
  .cmp { grid-template-columns: minmax(0, 1fr); }
  .cmp-arrow { justify-self: center; rotate: 90deg; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat:nth-child(1), .feat:nth-child(4), .feat:nth-child(5) { grid-column: auto; }
  .top-nav { display: none; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .title { font-size: clamp(44px, 13vw, 60px); }
  .title-2 { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-actions .gel-btn { flex: 1 1 100%; }
  .float { display: none; }
  .screen { border-radius: 38px; }
  .themes-stage { padding: 16px; border-radius: 30px; }
  .orb { width: 42px; height: 42px; }
  .orbs { gap: 8px; }
  .icon-key { width: 170px; }
  .feat-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .feat { min-height: 0; }
  .hero-actions .glass-btn { flex: 1 1 100%; }
  .cmp-tab { flex: 1 1 auto; padding: 0 14px; }
}

/* ---------------------------------------------------------------- support & legal pages */
.doc-page .top { position: sticky; }
.doc { max-width: 800px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--margin) var(--section); }
.doc-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; padding-inline: clamp(24px, 4vw, 48px); }
.doc-card { border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
.doc-card h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { margin: 24px 0 6px; font-size: 18px; font-weight: 600; }
.doc-card p, .doc-card li { color: var(--ink-2); }
.doc-card p { margin: 0 0 12px; }
.doc-card ul, .doc-card ol { margin: 0 0 12px; padding-left: 22px; }
.doc-card li { margin: 4px 0; }
.doc-card strong { color: var(--ink); }
.doc-card a { color: var(--brand); font-weight: 600; }
.summary { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.summary li { display: flex; gap: 12px; align-items: baseline; margin: 0 !important; color: var(--ink) !important; font-weight: 500; }
.summary li::before { content: ""; width: 18px; height: 11px; flex-shrink: 0; border-radius: 999px; background: var(--gel); transform: translateY(1px); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-radius: 28px; padding: 26px 28px; margin-bottom: 18px; }
.contact-card b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.contact-card span { color: var(--ink-2); }
.doc-foot { text-align: center; padding: 0 var(--margin) 48px; font-size: 14px; color: var(--ink-3); }
.doc-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.doc-foot a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.doc-foot a:hover { color: var(--ink); }
.doc-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 14px 30px -14px rgba(20, 26, 46, .55); }
.js .doc-page .rise { opacity: 0; transform: translateY(22px); animation: rise .8s var(--smooth) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Long right-hand lists: the heading stays with them on wide screens. */
@media (min-width: 1001px) {
  .private-copy, .faq > .title-2 { position: sticky; top: 110px; }
}
@media (min-width: 1001px) {
  .shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1320px; margin-inline: auto; padding-inline: var(--margin); overflow: visible; }
  .shots img { border-radius: 22px; }
}
