/* spool.day. Light, quiet and centered. Inter for text; Instrument Serif only for the wordmark
   and one accent word in the headline (the thread to the app and the ads). */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f3f0e9;
  --surface: #fbfaf6;
  --text: #1b1a17;
  --text-2: #5c5850;
  --text-3: #8c877d;
  --hairline: rgba(27, 26, 23, 0.09);
  --hairline-strong: rgba(27, 26, 23, 0.15);
  --accent: #0a6cff;
  --error: #c7372f;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Instrument Serif', 'New York', ui-serif, Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
/* Paper grain over everything, very faint. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Nav ── */
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-family: var(--serif); font-size: 28px; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text-2); font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--text); }

/* ── Buttons and fields ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--text); color: #fff;
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: #2e2c29; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }
input[type='email'] {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--hairline-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; outline: none;
  box-shadow: 0 1px 2px rgba(23, 22, 20, 0.04);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input[type='email']::placeholder { color: var(--text-3); }
input[type='email']:focus { border-color: rgba(10, 108, 255, 0.5); box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.12); }

/* ── Hero ── */
/* The scene behind the hero (motion.js sizes it down to the top of the product stage and clears
   a soft zone behind the words). */
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: 820px; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease 0.3s; }
.hero-bg canvas.on { opacity: 1; }
/* The bottom padding is the spool band (motion.js draws the spool and its timeline there). */
.hero { position: relative; z-index: 1; text-align: center; padding-top: 48px; padding-bottom: 168px; }
/* Load-in: each hero line rises in turn. */
.hero > *, .shot { animation: rise 0.9s var(--ease) both; }
.hero > :nth-child(1) { animation-delay: 0.05s; }
.hero > :nth-child(2) { animation-delay: 0.12s; }
.hero > :nth-child(3) { animation-delay: 0.2s; }
.hero > :nth-child(n + 4) { animation-delay: 0.28s; }
.shot { animation-delay: 0.42s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px;
  padding: 5px 12px 5px 10px; border: 1px solid var(--hairline-strong); border-radius: 999px;
  background: rgba(251, 250, 246, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-2); font-size: 13px; font-weight: 500;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 3px rgba(47, 179, 107, 0.15); }
h1 {
  margin: 0 auto; max-width: 13em;
  font-size: clamp(40px, 8.6vw, 70px); font-weight: 420; line-height: 1.02; letter-spacing: -0.042em;
  text-wrap: balance;
}
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; font-size: 1.1em; }
.sub { margin: 18px auto 0; max-width: 34em; color: var(--text-2); font-size: clamp(16px, 2.2vw, 18px); line-height: 1.55; text-wrap: pretty; }

.signup, .cta-download, .done, .onmac-note { margin: 32px auto 0; max-width: 440px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.fine { margin: 12px 0 0; color: var(--text-3); font-size: 13px; }
.form-error { margin: 10px 0 0; color: var(--error); font-size: 14px; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 10px; display: flex; justify-content: center; }

/* Device × mode variants. The <html> element carries data-mode and data-device. */
.v { display: none; }
html[data-mode='waitlist'][data-device='mac'] .v[data-for~='waitlist-mac'],
html[data-mode='waitlist'][data-device='phone'] .v[data-for~='waitlist-phone'],
html[data-mode='waitlist'][data-device='windows'] .v[data-for~='waitlist-pc'],
html[data-mode='launch'][data-device='mac'] .v[data-for~='launch-mac'],
html[data-mode='launch'][data-device='phone'] .v[data-for~='launch-phone'],
html[data-mode='launch'][data-device='windows'] .v[data-for~='launch-pc'] { display: inline; }
.only-launch-mac { display: none; }
html[data-mode='launch'][data-device='mac'] .only-launch-mac { display: block; }
/* On a Mac at launch, the download is the CTA; the email form becomes a quiet secondary option. */
html[data-mode='launch'][data-device='mac'] .signup { margin-top: 20px; }
html[data-mode='launch'][data-device='mac'] .signup .btn { background: var(--surface); color: var(--text); border: 1px solid var(--hairline-strong); }
html[data-screen-claim='0'] .only-screen-claim { display: none; }
.onmac-note { display: none; padding: 12px 14px; border-radius: 10px; background: rgba(10, 108, 255, 0.07); font-size: 14px; }
html[data-onmac='1'] .onmac-note { display: block; }

/* After signup */
.done { text-align: center; }
.done-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.done-sub { margin: 4px 0 0; color: var(--text-2); }
.qualify { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
fieldset { margin: 0 0 16px; padding: 0; border: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
legend { width: 100%; padding: 0; margin-bottom: 10px; color: var(--text-2); font-size: 14px; text-align: center; }
fieldset button {
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--text-2);
  font: 500 13px/1 var(--font); cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
fieldset button:hover { color: var(--text); border-color: var(--text-3); }
fieldset button[aria-pressed='true'] { background: var(--text); color: #fff; border-color: var(--text); }
.q-thanks { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.q-text { margin: 4px 0 12px; }
.q-text label { display: block; margin-bottom: 10px; color: var(--text-2); font-size: 14px; }
.q-row { display: flex; gap: 6px; }
.q-row input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--hairline-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; outline: none;
}
.q-row input:focus { border-color: rgba(10, 108, 255, 0.5); box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.12); }
.q-row button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--text); color: #fff;
  font: 500 13px/1 var(--font); cursor: pointer;
}
.q-row button[disabled] { background: var(--surface); color: var(--text-2); border: 1px solid var(--hairline-strong); cursor: default; }

/* ── Product shot: the app on a dusk-gradient stage, with the search demo floating over it ── */
.shot { position: relative; z-index: 1; padding-bottom: 24px; }
.stage {
  position: relative; border-radius: 24px; padding: 156px 6% 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 15% 0%, #f6d9b8 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 10%, #e9c6c9 0%, transparent 60%),
    radial-gradient(120% 100% at 50% 100%, #2b3352 0%, transparent 70%),
    linear-gradient(180deg, #efd5c0 0%, #b9a7c4 45%, #4a4d72 80%, #23263b 100%);
  box-shadow: 0 0 0 1px rgba(27, 26, 23, 0.06);
}
.stage::before { /* grain, stronger on the stage, like film */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.stage::after { /* slow drifting light, so the stage breathes */
  content: ''; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: -10%; top: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 214, 0.55), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(55%, 25%) scale(1.15); } }
.frame {
  position: relative; overflow: hidden; isolation: isolate; margin: 0;
  border-radius: 12px 12px 0 0; aspect-ratio: 16 / 10; background: #161618;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px -10px rgba(15, 14, 30, 0.6);
}
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame video + picture img { z-index: -1; }
.beta-label { margin: 10px 0 0; color: var(--text-3); font-size: 12px; text-align: center; }

.search-demo {
  position: absolute; z-index: 3; left: 50%; top: 26px; width: min(540px, 88%); transform: translateX(-50%);
  border-radius: 16px; background: rgba(252, 251, 248, 0.82);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 0 0 1px rgba(27, 26, 23, 0.08), 0 20px 50px -12px rgba(30, 25, 50, 0.35);
  text-align: left; overflow: hidden;
}
.sd-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; color: var(--text-3); }
.sd-bar svg { width: 18px; height: 18px; flex: none; }
.sd-q { color: var(--text); font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; }
.sd-caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sd-result {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 14px; border-top: 1px solid var(--hairline);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), max-height 0.35s var(--ease); max-height: 80px;
}
.sd-result.hide { opacity: 0; transform: translateY(-4px); max-height: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; }
.sd-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #1F8A70; transition: background 0.3s; }
.sd-lines { display: flex; flex-direction: column; min-width: 0; }
.sd-title { font-size: 14px; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-when { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Features ── */
.features { display: grid; gap: 28px; padding-top: 64px; padding-bottom: 24px; }
.features h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--text-2); font-size: 15px; }

.sources { padding-top: 40px; padding-bottom: 40px; text-align: center; }
.sources-label { margin: 0 0 12px; color: var(--text-3); font-size: 13px; }
.sources-list { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text-2); font-size: 15px; font-weight: 500; }

/* ── FAQ ── */
.faq { max-width: 720px; padding-top: 56px; padding-bottom: 32px; }
.section-title { margin: 0 0 16px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; text-align: center; }
details { border-bottom: 1px solid var(--hairline); }
summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative;
  font-size: 15px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 20px; font-weight: 300; transition: transform 0.2s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: -4px 0 16px; color: var(--text-2); font-size: 15px; max-width: 40em; }

/* ── Closer + footer ── */
.closer { padding-top: 72px; padding-bottom: 88px; text-align: center; }
.closer h2 { margin: 0 auto 22px; font-size: clamp(26px, 5vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── Breakpoints ── */
@media (min-width: 560px) {
  .field { flex-direction: row; }
  .field input { flex: 1; }
  .field .btn { flex: none; }
}
@media (max-width: 700px) {
  .frame { aspect-ratio: 4 / 3; }
  .stage { padding: 128px 14px 0; border-radius: 18px; }
  .search-demo { top: 14px; width: calc(100% - 28px); }
  .sd-bar { height: 46px; padding: 0 14px; }
  .sd-q { font-size: 15px; }
  .sd-result { padding: 10px 14px 12px; }
}
@media (max-width: 480px) {
  .nav-link { display: none; }
}

@media (min-width: 860px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 64px; padding-bottom: 232px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 96px; }
  .faq { padding-top: 88px; }
  .closer { padding-top: 104px; padding-bottom: 120px; }
}

@media (min-width: 760px) and (max-width: 859px) {
  .hero { padding-bottom: 232px; }
}
@media (min-width: 1100px) {
  .hero { padding-bottom: 248px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Plain pages (privacy, confirmations) ── */
.top { display: flex; align-items: baseline; gap: 10px; height: 68px; padding-top: 24px; }
.tag { color: var(--text-3); font-size: 13px; }
.doc { max-width: 680px; padding-top: 40px; padding-bottom: 72px; }
.doc h1 { margin: 0 0 8px; max-width: none; font-size: clamp(32px, 6vw, 44px); }
.doc .updated { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 17px; font-weight: 600; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); }
.foot .wordmark.small { font-size: 20px; color: var(--text); }
