/* Arooj Qureshi — Sketch Bold (dark). Tokens from the "Arooj Qureshi — Sketch Bold" design system. */
/* Brand fonts, served from this site (SIL Open Font License; see /fonts/LICENSE-*.txt). */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/inter-tight-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/caveat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --surface: #111214;
  --surface-raised: #1C1D21;
  --ink: #FAFAFA;
  --ink-muted: #D4D4D8;
  --ink-subtle: #A1A1AA;
  --highlighter: #FDE047;
  --on-highlighter: #111214;
  --accent: #FDE047;
  --accent-secondary: #A5B4FC;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-card: 20px;
  --radius-pill: 999px;
  --space-1: 16px;
  --space-2: 24px;
  --space-3: 36px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface); color: var(--accent); padding: 0.1em 0.4em; border-radius: 6px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--highlighter); color: var(--on-highlighter); padding: 10px 16px; border-radius: 8px; }

/* Type */
.display {
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.display-sm { font-size: clamp(36px, 5.2vw, 76px); }
.title {
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: var(--space-2) 0 var(--space-3);
  max-width: 18ch;
  text-wrap: balance;
}
/* Handwritten section title, e.g. "from my notebook" in the Writing section. */
.title-hand { font-family: var(--font-hand); font-weight: 700; color: var(--accent); letter-spacing: 0; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; max-width: none; transform: rotate(-2deg); transform-origin: left center; }
.lead { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; color: var(--ink-muted); line-height: 1.4; max-width: 34em; margin: 0; }
.sub { color: var(--ink-muted); max-width: 40em; margin: calc(var(--space-2) * -0.5) 0 var(--space-3); }
.muted { color: var(--ink-subtle); font-size: 15px; margin-bottom: 0; }
.hl {
  background: var(--highlighter);
  color: var(--on-highlighter);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hand { font-family: var(--font-hand); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--accent); margin: 0; }
.hand-tilt { transform: rotate(-3deg); transform-origin: left center; }
.hand-indent { margin: calc(var(--space-3) * -0.5) 0 var(--space-3); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800; font-size: 17px; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--highlighter); color: var(--on-highlighter); }
.btn-yellow:hover { color: var(--on-highlighter); background: #FEF08A; }
.btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-light { background: var(--ink); color: var(--surface); }
.btn-light:hover { color: var(--surface); background: var(--highlighter); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; margin-top: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(17, 18, 20, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--surface-raised); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.badge { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--highlighter); color: var(--on-highlighter); font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.brand-name { font-weight: 800; font-size: 19px; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-links a:hover { color: var(--accent); }
/* The header button stays out of the way while the hero's own button is on screen. */
.nav-cta { transition: opacity .2s ease, visibility .2s; }
.nav-cta.is-tucked { opacity: 0; visibility: hidden; }
@media (max-width: 920px) { .nav nav { display: none; } }
@media (max-width: 420px) { .brand-name { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--surface); }
/* No z-index on .hero-media, so its controls can sit above the scrim while the video stays below it. */
.hero-media { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; z-index: -2; }
/* iOS shows its own big play glyph when autoplay is blocked (e.g. Low Power Mode). Hide it; we show our own button. */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(17, 18, 20, 0.5); }
.hero-content { padding-block: 96px 120px; display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hero-line { display: block; white-space: nowrap; }
@media (max-width: 480px) { .hero-line { white-space: normal; } }
.hero-content .lead { max-width: 26em; }
.hero-controls { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.ai-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-muted); background: rgba(17, 18, 20, 0.8); border: 1px solid var(--ink-subtle); border-radius: var(--radius-pill); padding: 5px 12px; }
.play {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(17, 18, 20, 0.8); color: var(--ink);
  border: 2px solid var(--ink-subtle);
  font: 700 15px var(--font-display); cursor: pointer;
}
.play:hover { border-color: var(--accent); color: var(--accent); }
.play .icon-play { display: none; }
.play[aria-pressed="true"] .icon-play { display: inline; }
.play[aria-pressed="true"] .icon-pause { display: none; }

/* Phones: text on a clean dark background, then the video uncropped in its own 16:9 frame,
   so the story is readable and nothing in the video fights the headline. */
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; padding-bottom: 8px; }
  .hero-scrim { display: none; }
  .hero-content { padding-block: 36px 24px; gap: 16px; }
  .hero-content .pill, .hero-content .hand { display: none; }
  .hero-title { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.08; }
  .hero-content .lead { font-size: 17px; font-weight: 500; line-height: 1.5; }
  .hero .cta-row { margin-top: 4px; width: 100%; align-items: center; gap: 8px 20px; }
  .hero .btn-yellow { flex: 1 1 100%; }
  .hero .btn-ghost { border: 0; padding: 0; min-height: 44px; color: var(--ink-muted); font-weight: 700; }
  .hero .btn-ghost::after { content: " →"; white-space: pre; }
  .hero .btn-ghost:hover { background: none; color: var(--accent); }
  /* Phones: controls sit under the video frame so nothing covers the story. */
  .hero-media {
    position: relative; inset: auto; z-index: 0;
    width: min(100% - 48px, var(--wrap)); margin: 0 auto 56px;
    aspect-ratio: 16 / 9;
  }
  .hero-video { object-position: center; border-radius: 16px; border: 1px solid var(--surface-raised); background: #000; z-index: 0; }
  .hero-controls { top: calc(100% + 10px); bottom: auto; left: 0; right: 0; justify-content: space-between; }
  .ai-label { font-size: 11px; padding: 4px 10px; }
  .play { font-size: 14px; padding: 6px 14px; min-height: 40px; }
}

/* Proof */
.proof { border-block: 1px solid var(--surface-raised); background: var(--surface); }
.proof-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding: 28px 0; margin-block: 0; }
.proof-row li { color: var(--ink-muted); font-size: 16px; line-height: 1.4; }
.proof-row strong { color: var(--ink); font-weight: 800; }
.proof-link { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.proof-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .proof-row { grid-template-columns: 1fr; gap: 12px; } }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-raised { background: var(--surface-raised); }
.section-raised .card { background: var(--surface); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.section-raised .facts li { background: var(--surface); }

.card {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.card p { margin: 0; color: var(--ink-muted); }
.card-label { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-subtle) !important; }
.card-emphasis { outline: 3px solid var(--highlighter); outline-offset: -3px; }
.card-emphasis .card-label { color: var(--accent) !important; }
.fix { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed #3F3F46; font-size: 16px; }
.fix-small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle); text-transform: uppercase; }
.fix-big { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; color: var(--ink-muted); font-size: 16px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.link { font-weight: 800; text-decoration: none; margin-top: auto; }
.link:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); }
.step { background: var(--surface); border-radius: var(--radius-card); padding: 32px; }
.step h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 10px; }
.step p { color: var(--ink-muted); margin: 0; }
.step-n { width: 48px; height: 48px; border-radius: var(--radius-pill); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.step { outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .4s ease; }
.step .step-n { transition: background-color .4s ease, color .4s ease; }
.step.is-reached { outline-color: var(--highlighter); }
.step.is-reached .step-n { background: var(--highlighter); color: var(--on-highlighter); }

/* Route: a GPS line drawn across the three steps */
.route { margin: 0 0 8px; }
.route-svg { width: 100%; height: auto; display: block; overflow: visible; }
.route-track { fill: none; stroke: #3F3F46; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.route-pulse { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; opacity: 0; }
.route.is-done .route-pulse { opacity: 0.9; animation: route-pulse 2.6s linear infinite; }
@keyframes route-pulse { to { stroke-dashoffset: 0; } }
.route-pin { fill: var(--surface-raised); stroke: #52525B; stroke-width: 3; transition: fill .3s ease, stroke .3s ease; }
.route-pin.is-reached { fill: var(--accent); stroke: var(--accent); }
.route-car { fill: var(--ink); stroke: var(--accent); stroke-width: 4; }
.route-note { font-family: var(--font-hand); font-weight: 700; font-size: 34px; fill: var(--accent); opacity: 0; transition: opacity .5s ease; }
.route.is-done .route-note { opacity: 1; }
@media (max-width: 960px) { .route { display: none; } }

/* Writing */
.post-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle); text-transform: uppercase; }
.post a { color: var(--ink); text-decoration: none; }
.post a:hover { color: var(--accent); }
.post h3 { font-size: 22px; }
.post .link { color: var(--accent); }
.inline-link { font-weight: 800; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.writing-more { margin-top: var(--space-3); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; position: relative; padding-top: 56px; }
.quote::before { content: "\201C"; position: absolute; top: 4px; left: 28px; font-family: var(--font-hand); font-weight: 700; font-size: 84px; line-height: 1; color: var(--accent); }
.quote blockquote { margin: 0; }
.quote blockquote p { color: var(--ink); font-size: 20px; line-height: 1.5; font-weight: 600; }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px dashed #3F3F46; display: grid; gap: 2px; font-size: 15px; }
.quote figcaption strong { color: var(--ink); font-weight: 800; font-size: 16px; }
.quote figcaption span { color: var(--ink-subtle); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 920px; }
.faq-item { background: var(--surface-raised); border-radius: var(--radius-card); padding: 0 28px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 18px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.faq-item summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 0 24px; color: var(--ink-muted); max-width: 46em; }
.facts-link { color: var(--ink); text-decoration: none; }
.facts-link:hover { color: var(--accent); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-text p { color: var(--ink-muted); max-width: 36em; }
.about-text .hand { margin-top: var(--space-2); transform: rotate(-2deg); color: var(--accent); }
.about-side { display: grid; gap: var(--space-1); }
.about-photo { width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.facts li { background: var(--surface-raised); border-radius: var(--radius-card); padding: 20px 24px; font-weight: 600; }
.facts-k { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle); margin-bottom: 4px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Contact */
.contact-inner { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.contact .display { max-width: 16ch; }

/* Footer */
.footer { border-top: 1px solid var(--surface-raised); padding: 32px 0; color: var(--ink-subtle); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer .footer-ai { margin: 16px auto 0; font-size: 14px; color: var(--ink-subtle); }
.contact-note { margin: var(--space-2) 0 0; color: var(--ink-subtle); font-size: 15px; }
.footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.section-raised .faq-item { background: var(--surface); }

/* Legal pages (privacy notice) */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.01em; margin: var(--space-3) 0 12px; }
.legal p, .legal li { color: var(--ink-muted); line-height: 1.6; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal-updated { color: var(--ink-subtle) !important; font-size: 15px; margin-top: -12px; }
.legal-back { margin-top: var(--space-3); }
