/* ta.ke public website. Tokens from ta_ke_design_manual_master_v3.pdf §17
   (DECISION_LOG 119). Four core colours only; blue tints are alpha of
   #0000FF. Didone display (Playfair Display, same face as the app) + Inter. */

@font-face {
  font-family: "TakeDisplay";
  src: url("/fonts/PlayfairDisplay-VF.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TakeDisplay";
  src: url("/fonts/PlayfairDisplay-Italic-VF.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "TakeUI";
  src: url("/fonts/Inter-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --take-blue: #0000ff;
  --take-orange: #ff5d00;
  --take-cream: #f8f5ee;
  --take-black: #0a0a0a;
  --blue-8: rgba(0, 0, 255, 0.08);
  --blue-12: rgba(0, 0, 255, 0.12);
  --blue-28: rgba(0, 0, 255, 0.28);
  --ink-60: rgba(10, 10, 10, 0.64);
  --hairline-color: rgba(10, 10, 10, 0.12);

  --font-display: "TakeDisplay", "Didot", "Bodoni 72", Georgia, serif;
  --font-ui: "TakeUI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --screen-x: 24px;
  --card-radius: 20px;
  --button-radius: 999px;
  --hairline: 1px;
  --ease-take: cubic-bezier(.22, 1, .36, 1);
  --measure: 34rem;
  --page: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--take-cream);
  color: var(--take-black);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--take-blue);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: var(--screen-x); top: -100px;
  background: var(--take-black); color: var(--take-cream);
  padding: var(--space-2) var(--space-4); border-radius: var(--button-radius);
}
.skip:focus { top: var(--space-4); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--screen-x); }

/* Header: wordmark with at least one dot-diameter of clear space. */
.site-header { padding: var(--space-6) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.wordmark { display: inline-block; padding: var(--space-2) 0; line-height: 0; }
.wordmark img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: var(--space-6); font-size: 14px; line-height: 20px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type scale (manual §05). Desktop steps up one notch. */
.label {
  font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 var(--space-4);
}
.display-xl { font-family: var(--font-display); font-weight: 500; font-size: 48px; line-height: 52px; letter-spacing: -.01em; margin: 0; }
.display-l { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 40px; letter-spacing: -.005em; margin: 0; }
.display-m { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 32px; margin: 0; }
.body { font-size: 16px; line-height: 24px; margin: 0; max-width: var(--measure); }
.caption { font-size: 12px; line-height: 16px; color: var(--ink-60); margin: 0; }
.muted { color: var(--ink-60); }

@media (min-width: 840px) {
  .display-xl { font-size: 80px; line-height: 84px; }
  .display-l { font-size: 52px; line-height: 58px; }
  .display-m { font-size: 32px; line-height: 38px; }
  .wordmark img { height: 34px; }
}

main { display: block; }

/* Hero */
.hero { padding: var(--space-12) 0 var(--space-16); }
.hero .wrap { display: grid; gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); max-width: 44rem; }
.hero-mark { justify-self: start; }
.hero-mark img { width: 112px; height: 112px; border-radius: 25px; display: block; }
@media (min-width: 840px) {
  .hero { padding: var(--space-16) 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-mark { justify-self: end; }
  .hero-mark img { width: 200px; height: 200px; border-radius: 44px; }
}

/* The orange point: the question. Used once per view, semantically. */
.point {
  display: inline-block; width: .2em; height: .2em; border-radius: 50%;
  background: var(--take-orange); vertical-align: baseline; margin-left: .04em;
}

/* NOW / WORLD / ME */
.steps { border-top: var(--hairline) solid var(--hairline-color); padding: var(--space-12) 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.steps li { display: grid; gap: var(--space-2); }
.steps .display-m em { font-style: italic; }
@media (min-width: 840px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: var(--space-12); } }

/* Access block */
.access { padding: var(--space-12) 0 var(--space-16); border-top: var(--hairline) solid var(--hairline-color); }
.access .wrap { display: grid; gap: var(--space-6); }
.access-panel { display: grid; gap: var(--space-4); max-width: var(--measure); }

/* Buttons: full pill (manual §07). */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: var(--button-radius); border: 0;
  background: var(--take-black); color: var(--take-cream);
  font-family: var(--font-ui); font-weight: 500; font-size: 14px; line-height: 20px;
  text-decoration: none; cursor: pointer;
  transition: transform 220ms var(--ease-take), background-color 220ms var(--ease-take);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button[disabled] { opacity: .5; cursor: default; transform: none; }
.button.answer { background: var(--take-blue); color: var(--take-cream); }
.button.quiet { background: transparent; color: var(--take-black); box-shadow: inset 0 0 0 1px var(--take-black); }

/* Waitlist form */
.form { display: grid; gap: var(--space-3); }
.form-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.field {
  flex: 1 1 16rem; min-height: 48px; padding: 0 var(--space-4);
  border-radius: var(--button-radius); border: var(--hairline) solid rgba(10, 10, 10, .28);
  background: transparent; color: var(--take-black);
  font-family: var(--font-ui); font-size: 16px; line-height: 24px;
}
.field::placeholder { color: rgba(10, 10, 10, .45); }
.status { min-height: 24px; margin: 0; font-size: 14px; line-height: 20px; }
.status[data-tone="ok"]::before { content: "✓ "; }
.status[data-tone="error"]::before { content: "! "; font-weight: 700; }

/* Question card (shared link) — Blue answers: the answer field is blue. */
.question { padding: var(--space-12) 0 var(--space-16); }
.question .wrap { display: grid; gap: var(--space-8); max-width: 52rem; }
.question-text { overflow-wrap: anywhere; }
.question[data-state="expired"] .question-text { color: var(--ink-60); }
.answer-first {
  background: var(--blue-8); border-radius: var(--card-radius);
  padding: var(--space-6); display: grid; gap: var(--space-3); max-width: var(--measure);
}

/* Simple text pages */
.page { padding: var(--space-12) 0 var(--space-16); }
.page .wrap { display: grid; gap: var(--space-6); max-width: 48rem; margin-left: 0; }
.page .wrap > * { margin: 0; }
.notice { border-left: 2px solid var(--take-black); padding-left: var(--space-4); max-width: var(--measure); }

/* Legal pages (WU35): long-form text rendered from src/legal/*.md. */
.legal .wrap { gap: var(--space-4); }
.legal .legal-h { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 30px; margin: var(--space-6) 0 0; max-width: var(--measure); }
.legal h3.legal-h { font-family: var(--font-ui); font-weight: 600; font-size: 16px; line-height: 24px; margin-top: var(--space-4); }
.legal .legal-list { margin: 0; padding-left: 1.4em; max-width: var(--measure); font-size: 16px; line-height: 24px; }
.legal .legal-list li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-family: var(--font-ui); font-size: 14px; background: var(--blue-8); padding: 1px 4px; border-radius: 4px; }
.legal-table { overflow-x: auto; max-width: 100%; }
.legal-table table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 14px; line-height: 20px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--hairline-color); }
.legal-table th { font-weight: 600; border-top: 0; color: var(--ink-60); }

/* Footer */
.site-footer { border-top: var(--hairline) solid var(--hairline-color); padding: var(--space-8) 0 var(--space-12); }
.site-footer .wrap { display: grid; gap: var(--space-6); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

[hidden] { display: none !important; }

/* Motion: drift in, no bounce (manual §17). */
.reveal { opacity: 0; transform: translateY(12px); animation: drift-in 700ms var(--ease-take) forwards; }
.reveal.d1 { animation-delay: 70ms; }
.reveal.d2 { animation-delay: 140ms; }
.reveal.d3 { animation-delay: 210ms; }
@keyframes drift-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

/* ---------------------------------------------------------------------
   Landing page (home), built from the founder's supplied design
   (DECISION_LOG 143). Same four colours; illustrations are drawn in
   app.js (canvas) or inline SVG, so no image assets are added.
   --------------------------------------------------------------------- */
.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; }

.landing { --l-page: 84rem; --l-x: clamp(20px, 6vw, 96px); overflow-x: hidden; }
.l-wrap { max-width: var(--l-page); margin: 0 auto; padding: 0 var(--l-x); position: relative; }

.l-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 18px 0; }
.l-header .l-wrap { display: flex; align-items: center; justify-content: space-between; }
.l-header .wordmark img { height: 28px; }
.l-nav { display: flex; gap: clamp(20px, 4vw, 48px); font-size: 14px; line-height: 20px; }
.l-nav a { text-decoration: none; text-shadow: 0 0 6px rgb(248 245 238), 0 0 12px rgb(248 245 238); }
.l-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.l-hero { position: relative; min-height: clamp(560px, 46vw, 680px); display: flex; align-items: center; padding: 96px 0 56px; }
.l-hero-grid { width: 100%; }
.l-hero-copy { position: relative; z-index: 2; max-width: 34rem; }
.l-hero-title {
  font-family: var(--font-display); font-weight: 400; margin: 0;
  font-size: clamp(42px, 5.2vw, 78px); line-height: .92; letter-spacing: -.03em;
}
.l-hero-title em { font-style: italic; letter-spacing: -.04em; }
.l-hero-sub { margin: clamp(18px, 2vw, 28px) 0 0 4px; max-width: 30rem; font-size: clamp(20px, 2vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
/* Founder, 2026-10-27 (DECISION_LOG 296): the waitlist right under the hero line. */
.l-hero-join { margin: clamp(22px, 2.4vw, 34px) 0 0 4px; width: min(100%, 36rem); position: relative; z-index: 2; }
.l-hero-soon { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }
.l-hero-invite { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-60); }
.l-join { padding: clamp(56px, 7vw, 104px) 0; }
.l-join-copy { max-width: 36rem; }
.l-join-sub { margin-top: 14px; }
.l-join .l-form { margin-top: 26px; }
.l-join .l-field { flex-basis: 13rem; }
/* DECISION_LOG 306: from the very top of the page, beside the headline. */
.l-wave { position: absolute; z-index: 1; right: 0; top: 0; width: 64%; height: 100%; display: block; }

/* Blue band */
.l-band { position: relative; background: var(--take-blue); color: var(--take-cream); text-align: center; overflow: hidden; }
.l-band-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-band-inner { padding-top: clamp(40px, 4vw, 56px); padding-bottom: clamp(40px, 4vw, 56px); display: grid; justify-items: center; }
.l-kicker { margin: 0; font-size: 12px; line-height: 16px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.l-band .l-kicker::after { content: ""; display: block; width: 72px; height: 1px; margin: 12px auto 0; background: rgba(248, 245, 238, .7); }
.l-band-title {
  margin: 14px 0 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 78px); line-height: 1; letter-spacing: -.02em;
}
.l-band-sub { margin: 14px 0 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; }
.l-band .l-form { margin-top: 24px; width: min(100%, 44rem); }

/* Forms */
.l-form { display: grid; gap: 10px; }
.l-form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.l-field {
  flex: 1 1 15rem; min-height: 54px; padding: 0 24px; border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, .32); background: transparent; color: var(--take-black);
  font-family: var(--font-ui); font-size: 15px;
}
.l-field::placeholder { color: rgba(10, 10, 10, .55); }
.l-form-light .l-field { border-color: rgba(248, 245, 238, .85); color: var(--take-cream); }
.l-form-light .l-field::placeholder { color: rgba(248, 245, 238, .9); }
.l-form-light .l-field:focus-visible { outline-color: var(--take-cream); }
.l-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 32px; border-radius: 999px; border: 0;
  background: var(--take-black); color: var(--take-cream); text-decoration: none;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform 220ms var(--ease-take);
}
.l-button:hover { transform: translateY(-1px); }
.l-button:hover .l-arrow { transform: translateX(3px); }
.l-arrow { transition: transform 220ms var(--ease-take); }
.l-button[disabled] { opacity: .55; cursor: default; transform: none; }
.l-status { min-height: 20px; margin: 0; font-size: 14px; line-height: 20px; }
.l-form-light .l-status { text-align: center; }
.l-status[data-tone="ok"]::before { content: "✓ "; }
.l-status[data-tone="error"]::before { content: "! "; font-weight: 700; }
.l-fine { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-60); }
.l-fine a { color: inherit; }
.l-form-light .l-fine { text-align: center; color: rgba(248, 245, 238, .85); }
.l-closed { font-size: 15px; line-height: 22px; margin-top: 8px; }
.l-closed.l-on-dark { text-align: center; color: rgba(248, 245, 238, .92); }

/* Black section */
.l-dark { background: var(--take-black); color: var(--take-cream); overflow: hidden; }
.l-dark-grid { display: grid; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.l-h2 { font-family: var(--font-display); font-weight: 400; margin: 0; font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: -.025em; }
.l-p { margin: 18px 0 0; max-width: 26rem; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; }
.l-on-dark-soft { color: rgba(248, 245, 238, .86); }
.l-soft { color: var(--ink-60); }
.l-globe-box { position: relative; aspect-ratio: 1.5 / 1; width: 100%; }
.l-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Look again */
.l-look { border-bottom: 1px solid var(--hairline-color); overflow: hidden; }
.l-look-grid { display: grid; gap: 28px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.l-beam { width: 100%; height: auto; display: block; }
.l-rule { display: block; width: 64px; height: 1px; background: rgba(10, 10, 10, .5); margin: 0 0 22px; }
.l-kicker-ink { margin-top: 16px; color: var(--ink-60); font-size: 12px; letter-spacing: .3em; line-height: 1.6; }

/* Final */
.l-final { position: relative; overflow: hidden; padding: 72px 0 56px; }
.l-orbits { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.l-final-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.l-final-copy .l-rule { margin: 40px 0 34px; }
.l-final-copy .l-form { margin-top: 26px; max-width: 36rem; }
.l-final-copy .l-field { flex-basis: 13rem; }
.l-soon { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 14px; }
.l-phone-box { display: grid; place-items: center; min-height: 440px; }
.l-phone {
  width: 220px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 9px; background: var(--take-black);
  transform: rotate(14deg); box-shadow: 0 40px 80px rgba(0, 0, 255, .22), 0 12px 30px rgba(10, 10, 10, .25);
  animation: l-float 7s ease-in-out infinite;
}
.l-phone-screen {
  position: relative; height: 100%; border-radius: 32px; background: var(--take-cream);
  display: grid; place-items: center; align-content: center; gap: 14px;
}
.l-phone-notch { position: absolute; top: 9px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 999px; background: var(--take-black); }
.l-phone-icon { width: 74px; height: 74px; border-radius: 17px; }
.l-phone-word { width: 64px; height: auto; }
@keyframes l-float { 0%, 100% { transform: rotate(14deg) translateY(0); } 50% { transform: rotate(13deg) translateY(-10px); } }

/* Footer */
.l-footer { padding: 0 0 36px; }
.l-footer .l-wrap::before { content: ""; display: block; height: 1px; background: var(--hairline-color); margin-bottom: 26px; }
.l-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.l-footer .wordmark img { height: 28px; }
.l-footer-links { display: flex; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; font-size: 13px; }
.l-footer-links a, .l-footer-legal a { text-decoration: none; }
.l-footer-links a:hover, .l-footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.l-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 12px; line-height: 16px; color: var(--ink-60); }

@media (min-width: 840px) {
  .l-header { padding: 26px 0; }
  .l-header .wordmark img, .l-footer .wordmark img { height: 32px; }
  .l-dark-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 24px; padding-bottom: 24px; }
  .l-look-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-top: 32px; padding-bottom: 32px; }
  .l-final { padding: 96px 0 64px; }
  .l-final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .l-phone { width: 250px; }
  .l-phone-box { min-height: 600px; }
}
@media (max-width: 839px) {
  .l-hero { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  /* DECISION_LOG 306: on phones the wave opens the page, from the very top. */
  .l-wave { position: relative; order: -1; width: 100%; height: 300px; margin: -96px 0 8px; }
  .l-look-copy { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .l-phone { animation: none; }
  .l-button, .l-arrow { transition: none; }
}

/* KNOWN_ISSUES #45: Cloudflare Turnstile slot (only shows when a check needs the person). */
.ts-slot { margin-top: 12px; }
.ts-slot:empty { display: none; }

/* DECISION_LOG 198: the personal "bring a friend" link after joining. */
.friend-link { margin-top: 12px; display: grid; gap: 8px; }
.friend-link p { margin: 0; font-size: 14px; line-height: 20px; }
.friend-row { display: flex; gap: 8px; flex-wrap: wrap; }
.friend-row input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; }
.friend-row button { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.friend-link.l-on-dark { color: var(--take-cream); text-align: center; }
.friend-link.l-on-dark .friend-row { justify-content: center; }
