/* clarity.moonshard.co landing. Self-hosted, CSP-safe (no inline script, no external fonts). */

:root {
  --bg: #F5FAFF;
  --surface: #FFFFFF;
  --stage: #ECF2FC;
  --ink: #101C40;
  --ink-soft: #586B8D;
  --ink-faint: #5F7095;
  --line: rgba(16, 28, 64, 0.10);
  --line-strong: rgba(16, 28, 64, 0.16);
  --accent: #1F63FD;
  --accent-press: #1A52D6;

  --d-bg: #0C1622;
  --d-raise: #12202F;
  --d-ink: #ECF3FA;
  --d-soft: #93A6BF;
  --d-line: rgba(236, 243, 250, 0.09);
  --d-accent: #5AAEFF;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 32px);
  /* viewport-fit=cover: keep content clear of the notch and home indicator. */
  --gl: max(var(--gutter), env(safe-area-inset-left));
  --gr: max(var(--gutter), env(safe-area-inset-right));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section { scroll-margin-top: 72px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gr) 0 var(--gl); }
.accent { color: var(--accent); }
.center { text-align: center; justify-content: center; }

/* Type */
.display {
  font-family: var(--display);
  font-size: clamp(2.875rem, 6.1vw, 5.375rem);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.h-xl, .step h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.4vw, 3.875rem);
  line-height: 1.02;
  font-weight: 730;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.125rem, 1.45vw, 1.2812rem); line-height: 1.5; color: var(--ink-soft); letter-spacing: -0.008em; text-wrap: pretty; }
.kicker { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.fine { font-size: 0.875rem; color: var(--ink-faint); text-wrap: balance; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--spring), box-shadow 0.25s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.965); transition-duration: 0.12s; }
.btn-store { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 24px -14px rgba(16, 28, 64, 0.7); }
.btn-store:hover { background: #18275A; }
.btn-store .apple { width: 20px; height: 24px; fill: currentColor; margin-top: -2px; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.1875rem; line-height: 1.02; letter-spacing: -0.02em; }
.store-text small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em; opacity: 0.86; margin-bottom: 2px; }
.btn-sm { height: 44px; padding: 0 14px; border-radius: 11px; font-size: 0.9062rem; gap: 7px; }
.btn-sm .apple { width: 13px; height: 16px; margin-top: -2px; }
.btn .arr { display: inline-block; transition: transform 0.35s var(--spring); }
.btn:hover .arr { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--accent); font-weight: 600; margin-top: 36px; }
.text-link:hover { color: var(--accent-press); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease; }
.nav.scrolled {
  background: rgba(245, 250, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 22.5%; box-shadow: 0 0 0 0.5px rgba(16,28,64,0.12), 0 2px 6px -2px rgba(16,28,64,0.25); }
.nav-links { display: flex; gap: 10px; margin-left: auto; font-size: 0.9375rem; color: var(--ink-soft); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav .btn-store { margin-left: 4px; }

/* Hero */
.hero { padding: 132px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero-copy { max-width: 520px; }
/* Sized to its column so the headline always sets as two lines. */
.hero-copy { container-type: inline-size; }
.hero .display { font-size: clamp(2.5rem, 14.4cqi, 4.5rem); }
.nw { white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero .lead { margin-top: 24px; max-width: 470px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 18px; }

/* Story */
.story { padding: 110px 0 60px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 110px); }
.step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; max-width: 520px; transition: opacity 0.5s ease; }
html.js .story.live .step { opacity: 0.22; }
html.js .story.live .step.on { opacity: 1; }
.step h2 + p { margin-top: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.2188rem); color: var(--ink-soft); line-height: 1.55; text-wrap: pretty; }
.step-shot { display: none; margin: 0 0 30px; }

.phone { position: relative; aspect-ratio: 1470 / 3000; filter: drop-shadow(0 40px 50px rgba(16, 28, 64, 0.22)) drop-shadow(0 6px 12px rgba(16, 28, 64, 0.1)); }
.phone::after { content: ""; position: absolute; inset: 0; background: url("img/frame.webp") center / 100% 100% no-repeat; pointer-events: none; }
.phone > img, .phone .screens { position: absolute; left: 5.17%; top: 2.2%; width: 89.8%; height: 95.6%; border-radius: 14.47% / 6.66%; overflow: hidden; background: #EEF3FC; object-fit: cover; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(0.985); transition: opacity 0.55s ease, transform 0.8s var(--ease); }
.screens img.on { opacity: 1; transform: none; }

.sticky { position: sticky; top: calc(50vh - min(330px, calc((100vh - 150px) * 0.49)) * 1.0204); height: max-content; align-self: start; display: flex; align-items: center; gap: 26px; margin-top: 9vh; margin-bottom: 9vh; }
.phone-lg { width: min(330px, calc((100vh - 150px) * 0.49)); }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { width: 4px; height: 22px; border-radius: 2px; background: var(--line-strong); transition: background-color 0.35s ease, height 0.45s var(--spring); }
.ticks li.on { background: var(--accent); height: 34px; }

/* Ask (dark band) */
.ask { background: var(--d-bg); color: var(--d-ink); padding: 140px 0; margin-top: 60px; }
.ask .accent { color: var(--d-accent); }
.ask .lead { color: var(--d-soft); margin-top: 24px; max-width: 480px; }
.kicker-dark { color: var(--d-soft); }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.clients { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.clients li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--d-ink); }
.clients img { width: 56px; height: 56px; display: block; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4)); }
.ic-code { position: relative; display: block; }
.ic-code .badge { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; }
.ic-code .badge circle { fill: var(--ink); stroke: var(--d-bg); stroke-width: 2; }
.ic-code .badge path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Devices */
.devices { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); justify-items: center; padding-top: 150px; padding-bottom: 130px; }
.dev-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.dev-copy .lead { margin: 24px 0 0; max-width: 560px; }
.ipad { margin: 0; width: min(100%, 1040px); border-radius: clamp(12px, 2vw, 26px); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 60px 110px -60px rgba(16, 28, 64, 0.55); }
.ipad img { width: 100%; height: auto; }

/* Private */
.private { background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); padding: 120px 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 52px; }
.trio > div { padding-top: 22px; box-shadow: 0 -1px 0 var(--line-strong); }
.trio h3 { font-family: var(--display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.trio p { font-size: 1rem; color: var(--ink-soft); line-height: 1.55; }

/* What's free */
.free { padding-top: 140px; padding-bottom: 140px; text-align: center; }
.free .lead { max-width: 520px; margin: 20px auto 0; text-wrap: balance; }
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 56px auto 0; max-width: 1120px; text-align: left; }
.feats li { background: var(--surface); border-radius: 24px; padding: 26px 24px 28px; box-shadow: inset 0 0 0 1px var(--line); }
.fi { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: rgba(31, 99, 253, 0.08); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; margin-bottom: 20px; }
.feats h3 { font-family: var(--display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.feats p { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; text-wrap: pretty; }
.plus-note { max-width: 560px; margin: 40px auto 0; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); text-wrap: balance; }
.plus-note strong { color: var(--accent); font-weight: 650; }

/* Final */
.final { padding: 40px 0 150px; }
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-icon { width: 96px; height: 96px; border-radius: 22.5%; box-shadow: 0 0 0 0.5px rgba(16,28,64,0.12), 0 24px 40px -18px rgba(16, 28, 64, 0.45); margin-bottom: 36px; }
.final .h-xl { max-width: 900px; }
.final .lead { max-width: 560px; margin-top: 20px; text-wrap: balance; }
.final .cta-row { margin-top: 40px; }

/* Footer */
.foot { box-shadow: 0 -1px 0 var(--line); padding: 34px 0 calc(42px + env(safe-area-inset-bottom)); font-size: 0.875rem; color: var(--ink-soft); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .brand { font-size: 1.0625rem; color: var(--ink); }
.foot .brand img { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0 -8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.foot p a { padding: 12px 0; }
.foot nav a:hover, .foot p a:hover { color: var(--ink); }
.foot p { margin-left: auto; }
.foot p a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* Hero: the App Store screenshots, shot 1 in front */
.shots { position: relative; justify-self: center; width: min(100%, 600px, calc((100svh - 190px) / 1.2)); aspect-ratio: 100 / 120; }
.shot { position: absolute; height: auto; border-radius: 7% / 3.2%; background: #EAF1FC; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -42px rgba(16, 28, 64, 0.5); }
.shot-c { left: 23%; top: 0; width: 54%; z-index: 2; box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(16, 28, 64, 0.55), 0 8px 20px -10px rgba(16, 28, 64, 0.18); animation: shotIn 1s var(--ease) both; }
.shot-l, .shot-r { top: 11%; width: 42%; animation: shotIn 1.1s var(--ease) 0.12s both; }
.shot-l { left: 0; transform-origin: 100% 50%; }
.shot-r { right: 0; transform-origin: 0 50%; }
@keyframes shotIn { from { opacity: 0; transform: scale(0.92); } }

/* Apps you can save from: a row of real app icons that keeps moving */
.apps { padding: 104px 0 36px; text-align: center; }
.apps-h { font-family: var(--display); font-size: clamp(1.75rem, 3.1vw, 2.625rem); font-weight: 730; letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance; }
.apps-sub { margin: 14px auto 0; max-width: 540px; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.5; text-wrap: balance; }
.marquee { display: flex; overflow: hidden; margin-top: 40px; padding: 8px 0 26px; }
.m-track { display: flex; flex: none; gap: clamp(18px, 2.4vw, 34px); padding-right: clamp(18px, 2.4vw, 34px); animation: marq 60s linear infinite; }
.marquee:hover .m-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
.m-track li { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 84px; }
.ai { position: relative; display: block; width: 72px; height: 72px; border-radius: 22.37%; overflow: hidden; background: #fff; box-shadow: 0 12px 22px -12px rgba(16, 28, 64, 0.45), 0 1px 2px rgba(16, 28, 64, 0.08); }
.ai img { width: 100%; height: 100%; }
.ai::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.1px rgba(255, 255, 255, 0.38), inset 0 0 0 1.9px rgba(0, 0, 0, 0.08); }
.an { font-size: 0.8125rem; font-weight: 550; color: var(--ink-soft); white-space: nowrap; letter-spacing: -0.005em; }

/* Get Clarity: the App Store badge on phones, a Download chooser on computers */
.get { position: relative; display: inline-flex; }
.get-link { background: #000; box-shadow: inset 0 0 0 1px #A6A6A6; border-radius: 13px; padding: 0 20px 0 17px; }
.get-link:hover { background: #161616; }
.get-link .store-text { font-size: 1.375rem; font-weight: 560; letter-spacing: -0.025em; }
.get-link .store-text small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.005em; }
.btn-sm.get-link { border-radius: 9px; padding: 0 12px 0 11px; gap: 7px; }
.btn-sm.get-link .store-text { font-size: 1rem; }
.btn-sm.get-link .store-text small { font-size: 0.5312rem; margin-bottom: 1px; }
.get-btn { display: none; }
.get-btn .dl-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.get-btn .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; margin-left: 2px; transition: transform 0.4s var(--spring); }
.get-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.get-btn:not(.btn-sm) { padding: 0 22px 0 20px; font-size: 1.0625rem; }
.btn-sm.get-btn .dl-i { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) and (min-width: 961px) {
  html.js .get-btn { display: inline-flex; }
  html.js .get-link { display: none; }
}
.get-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 372px; padding: 8px; border-radius: 22px; background: var(--surface); text-align: left; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(16, 28, 64, 0.45), 0 4px 12px -6px rgba(16, 28, 64, 0.12); transform-origin: 30px 0; animation: popIn 0.38s var(--spring); }
.get-pop.up { top: auto; bottom: calc(100% + 10px); transform-origin: 50% 100%; }
.get-nav .get-pop { left: auto; right: 0; transform-origin: calc(100% - 40px) 0; }
.get-final .get-pop { left: 50%; margin-left: -186px; }
@keyframes popIn { from { opacity: 0; transform: scale(0.94); } }
.gp { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; }
.gp-ios { background: var(--bg); }
.gp-qr { width: 104px; height: 104px; flex: none; padding: 7px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gp-h { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--ink); }
.gp-p { font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); margin-top: 3px; }
.gp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: -10px; color: var(--accent); font-weight: 600; font-size: 0.9062rem; }
.gp-link:hover { color: var(--accent-press); }
.gp-i { width: 44px; height: 44px; padding: 10px; flex: none; border-radius: 13px; background: rgba(16, 28, 64, 0.06); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gp-mac { padding-top: 14px; padding-bottom: 14px; }
.soon { margin-left: auto; font-size: 0.75rem; font-weight: 650; color: var(--ink-soft); padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }

/* Your AI: a sample chat in each assistant */
.chat { width: 100%; max-width: 560px; justify-self: end; --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.chat-tabs { display: flex; gap: 4px; width: fit-content; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: rgba(236, 243, 250, 0.05); box-shadow: inset 0 0 0 1px var(--d-line); }
.chat-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 0; border-radius: 12px; background: none; color: var(--d-soft); font-size: 0.9062rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease; -webkit-tap-highlight-color: transparent; }
.chat-tabs button:hover { color: var(--d-ink); }
.chat-tabs img { width: 22px; height: 22px; }
.chat-tabs [aria-selected="true"] { background: rgba(236, 243, 250, 0.12); color: var(--d-ink); }
html:not(.js) .chat-tabs { display: none; }
.panes { display: grid; }
.cp { grid-area: 1 / 1; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 50px 100px -50px rgba(0, 0, 0, 0.85); }
.cp[hidden] { display: flex; visibility: hidden; }
.cw-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; font-size: 0.8125rem; font-weight: 600; flex: none; }
.cw-bar i { width: 11px; height: 11px; border-radius: 50%; background: currentColor; opacity: 0.16; }
.cw-bar span { flex: 1; text-align: center; margin-right: 47px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 10px; }
.m-user { align-self: flex-end; max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.45; }
.m-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 0.8438rem; font-weight: 550; }
.m-tool > img { width: 18px; height: 18px; border-radius: 22.5%; }
.m-tool .tn { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; font-weight: 450; opacity: 0.55; }
.tr { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tr li { display: flex; align-items: center; gap: 10px; }
.tr img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.tr span { display: flex; flex-direction: column; min-width: 0; }
.tr b { font-weight: 600; font-size: 0.8438rem; line-height: 1.3; }
.tr i { font-style: normal; font-weight: 450; font-size: 0.75rem; opacity: 0.6; }
.m-ans { font-size: 0.9688rem; line-height: 1.55; }
.m-ans ol { margin-top: 8px; padding-left: 1.35em; list-style: decimal; display: flex; flex-direction: column; gap: 6px; }
.m-ans b { font-weight: 650; }
.ref { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cw-input { flex: none; margin: 8px 14px 14px; padding: 13px 16px; border-radius: 16px; font-size: 0.9062rem; color: rgba(0, 0, 0, 0.42); }

.cp-claude { background: #FAF9F5; color: #1F1E1D; }
.cp-claude .cw-bar { box-shadow: 0 1px 0 rgba(31, 30, 29, 0.08); }
.cp-claude .m-user { background: #F0EEE6; }
.cp-claude .m-tool { box-shadow: inset 0 0 0 1px rgba(31, 30, 29, 0.12); background: #fff; }
.cp-claude .m-ans { font-family: ui-serif, "New York", Charter, Georgia, serif; font-size: 1rem; }
.cp-claude .ref { text-decoration-color: rgba(31, 30, 29, 0.35); }
.cp-claude .cw-input { background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 30, 29, 0.14), 0 4px 14px -8px rgba(31, 30, 29, 0.2); }

.cp-gpt { background: #fff; color: #0D0D0D; }
.cp-gpt .cw-bar { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.cp-gpt .m-user { background: #F4F4F4; border-radius: 22px; padding: 10px 16px; }
.cp-gpt .m-tool { padding: 2px 0; color: #5D5D5D; }
.cp-gpt .tr { padding-left: 2px; }
.cp-gpt .tr b { color: #0D0D0D; }
.cp-gpt .ref { text-decoration-color: rgba(0, 0, 0, 0.3); }
.cp-gpt .cw-input { border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 6px 16px -8px rgba(0, 0, 0, 0.18); }

.cp-code { background: #0F1013; color: #E4E6EA; font-family: var(--mono); }
.cp-code .cw-bar { font-family: var(--sans); color: #E4E6EA; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.cp-code .cw-body { gap: 16px; font-size: 0.8125rem; line-height: 1.6; }
.cp-code .m-user { align-self: stretch; max-width: none; padding: 8px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #C9CCD2; font-size: 0.8125rem; }
.cp-code .m-tool { display: block; padding: 0; font-size: 0.8125rem; font-weight: 400; }
.cp-code .m-ans { font-size: 0.8125rem; line-height: 1.6; }
.cp-code b { font-weight: 650; }
.cp-code .pr { color: #8A8F98; margin-right: 6px; }
.cp-code .dot { color: #E4E6EA; }
.cp-code .dot.g { color: #4EBA65; }
.cp-code .sub { color: #9096A0; padding-left: 1.3em; }
.cp-code .ind { padding-left: 1.3em; color: #C9CCD2; }
.cp-code .cw-input { margin: 8px 14px 14px; border-radius: 6px; background: none; color: #8A8F98; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.chat-note { margin-top: 14px; font-size: 0.8125rem; color: var(--d-soft); text-align: center; }

/* The chat plays out when it comes into view. */
html.js .chat.armed .m-user, html.js .chat.armed .m-tool, html.js .chat.armed .tr, html.js .chat.armed .m-ans, html.js .chat.armed .cp-code .sub { opacity: 0; transform: scale(0.97); transition: opacity 0.45s ease, transform 0.6s var(--spring); }
html.js .chat.armed .m-user { transform-origin: 100% 50%; }
html.js .chat.armed .m-tool, html.js .chat.armed .m-ans { transform-origin: 0 50%; }
html.js .chat.armed .p1 .m-user, html.js .chat.armed .p2 .m-tool, html.js .chat.armed .p3 .tr, html.js .chat.armed .p3 .sub, html.js .chat.armed .p4 .m-ans { opacity: 1; transform: none; }
.tl.run { animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }

/* Reveal (only once JS has run, so nothing is ever blank without it) */
html.js .rv { opacity: 0; transform: scale(0.985); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }

/* Swipe-row dots exist only in the phone layout (built by site.js) */
.dots { display: none; }

/* Responsive */
@media (min-width: 1081px) and (max-height: 960px) {
  .hero { padding-top: 108px; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { width: 100%; max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lead { max-width: 560px; }
  .cta-row { justify-content: center; }
  .shots { margin-top: 28px; }
}
@media (max-width: 960px) {
  .nav-links a { display: none; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { display: none; }
  /* App Store style swipe row: the cards scroll sideways, the next one peeks in. */
  .steps {
    display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
    margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl));
    padding-inline: var(--gl) var(--gr); scroll-padding-inline: var(--gl) var(--gr);
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps:focus-visible { outline-offset: -3px; border-radius: 0; }
  .step { position: relative; flex: 0 0 min(72vw, 280px); max-width: none; min-height: 0; padding: 0; margin: 0; scroll-snap-align: start; justify-content: flex-start; align-items: stretch; text-align: left; }
  .step h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .step-shot { display: block; width: 100%; margin: 0; }
  .step-shot img { display: block; width: 100%; height: auto; border-radius: clamp(14px, 3.6vw, 20px); background: var(--surface-2, #EEF3FC); }
  .step h2 + p { margin-top: 16px; font-size: 1rem; line-height: 1.5; }
  .dots { display: flex; justify-content: center; margin-top: 10px; }
  .dots button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width 0.45s var(--spring), background-color 0.35s ease; }
  .dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
  html.js .story.live .step { opacity: 1; }
  .ask-grid { grid-template-columns: minmax(0, 1fr); }
  .ask-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .clients { justify-content: center; }
  .chat { justify-self: center; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .private { text-align: center; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding-top: 104px; }
  .nav-in { gap: 14px; height: 60px; }
  .nav-links { gap: 4px; }
  .ask { padding: 100px 0; }
  .devices { padding-top: 110px; padding-bottom: 100px; }
  .private, .free { padding-top: 100px; padding-bottom: 100px; }
  .feats { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 40px; padding: 4px 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .feats li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-radius: 0; background: none; box-shadow: none; }
  .feats li + li { box-shadow: 0 -1px 0 var(--line); }
  .fi { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; margin: 0; }
  .feats h3 { font-size: 1rem; align-self: end; }
  .feats p { font-size: 0.875rem; margin-top: 3px; }
  .plus-note { margin-top: 28px; font-size: 0.9375rem; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot p { margin-left: 0; }
}
@media (max-width: 380px) {
  .cta-row .btn { width: 100%; }
}

@media (max-width: 1080px) {
  .shots { width: min(100%, 560px); }
}
@media (max-width: 640px) {
  .apps { padding-top: 80px; }
  .m-track li { width: 68px; gap: 9px; }
  .ai { width: 58px; height: 58px; }
  .an { font-size: 0.75rem; }
  .chat-tabs { width: 100%; }
  .chat-tabs button { flex: 1; flex-direction: column; justify-content: center; gap: 4px; min-height: 58px; padding: 6px 4px; font-size: 0.8125rem; }
  .cw-body { padding: 16px 16px 8px; }
  .m-user { max-width: 92%; font-size: 0.9062rem; }
  .cp-claude .m-ans { font-size: 0.9688rem; }
  .m-ans { font-size: 0.9375rem; }
  .cp-code .cw-body, .cp-code .m-user, .cp-code .m-tool, .cp-code .m-ans { font-size: 0.75rem; }
  .final .lead { font-size: 1.0625rem; }
}
@media (max-width: 380px) {
  .cta-row .get, .cta-row .get-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html, .steps { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  /* The app row stands still and wraps. */
  .marquee { justify-content: center; }
  .m-track { animation: none !important; flex: 0 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 22px; max-width: 980px; padding: 0 var(--gr) 0 var(--gl); }
  .m-track[aria-hidden] { display: none; }
}
