/* Willclimber site. Light throughout, like the app: cream and paper sections alternate,
   navy 1E2B38 is the text colour, blue is the action colour, apricot marks only the next rung.
   The old "night" token names are kept so existing classes keep working; they now hold light values. */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #FBF8F3;
  --night-2: #FFFFFF;
  --night-3: #1E2B38;
  --night-line: rgba(30, 43, 56, 0.12);
  --on-night: #1E2B38;
  --on-night-2: #536170;
  --cream: #F6F1E9;
  --paper: #FBF8F3;
  --white: #FFFFFF;
  --ink: #1E2B38;
  --ink-2: #536170;
  --line: rgba(30, 43, 56, 0.12);
  --blue: #3581B8;
  --blue-deep: #2B6E9F;
  --blue-soft: #DCE8F2;
  --blue-light: #7DB3DB;
  --apricot: #F28C4B;
  --apricot-soft: #FCB07E;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", "Inter", -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.nav.solid { background: rgba(251, 248, 243, 0.86); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--night-line); }
.nav.light.solid { background: rgba(246, 241, 233, 0.82); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: var(--on-night); }
.nav.light .brand { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-night-2); }
.nav-links a:hover { color: var(--on-night); }
.nav.light .nav-links a { color: var(--ink-2); }
.nav.light .nav-links a:hover { color: var(--ink); }
.nav .pill { color: var(--on-night); }

/* buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--blue); color: var(--white) !important; font-weight: 650; font-size: 15px;
  padding: 10px 18px; transition: background-color .2s ease, transform .2s ease;
}
.pill:hover { background: var(--blue-deep); }
.pill:active { transform: scale(.98); }
.pill.big { font-size: 17px; padding: 15px 26px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* waitlist form */
.waitlist { display: grid; gap: 10px; width: 100%; max-width: 480px; }
.waitlist .row { display: flex; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px; transition: border-color .2s ease, background-color .2s ease; }
.waitlist .row:focus-within { border-color: var(--blue); }
.waitlist input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--on-night); padding: 10px 14px; font-size: 16px; outline: none; }
.waitlist input[type="email"]::placeholder { color: #8994A0; }
.waitlist .pill { padding: 12px 20px; }
.waitlist .fine { font-size: 13.5px; color: var(--on-night-2); }
.waitlist .fine a { color: var(--on-night); }
.waitlist .msg { font-size: 15px; min-height: 0; }
.waitlist .msg.err { color: #B42318; }
.waitlist.done .row, .waitlist.done .fine { display: none; }
.waitlist .ok { display: none; align-items: center; gap: 12px; font-size: 16px; color: var(--on-night); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.waitlist .ok i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
.waitlist.done .ok { display: flex; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.on-light .waitlist .row { background: var(--white); border-color: var(--line); }
.on-light .waitlist input[type="email"] { color: var(--ink); }
.on-light .waitlist input[type="email"]::placeholder { color: #8994A0; }
.on-light .waitlist .fine { color: var(--ink-2); }
.on-light .waitlist .fine a { color: var(--ink); }
.on-light .waitlist .ok { color: var(--ink); background: var(--white); border-color: var(--line); }

/* sections */
.dark { background: var(--night); color: var(--on-night); }
.cream { background: var(--cream); color: var(--ink); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--blue); }
.dark .eyebrow { color: var(--blue); }
.display { font-size: clamp(44px, 7.4vw, 104px); font-weight: 480; letter-spacing: -0.045em; line-height: .98; }
.h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 480; letter-spacing: -0.04em; line-height: 1.02; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.dark .lede { color: var(--on-night-2); }

/* phone frame */
.phone {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 1170 / 2532;
  border-radius: 15% / 7%; padding: 3.2%;
  background: linear-gradient(145deg, #3A4552, #10161D 40%, #0A0E13);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,.65), 0 18px 40px -20px rgba(0,0,0,.5);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #F6F1E9; }
.phone .screen video, .phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 2.6%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.4%; border-radius: 999px; background: #05080B; z-index: 2; }

/* reveal on scroll */
.rise { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* footer */
.footer { background: var(--night); color: var(--on-night-2); padding-block: 56px 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--night-line); }
.footer .brand { font-size: 20px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night); font-weight: 650; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--on-night-2); font-size: 15px; }
.footer a:hover { color: var(--on-night); }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; }

/* simple document pages (method, privacy, support) */
.doc-hero { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: 64px; }
.doc-hero .display { font-size: clamp(44px, 8vw, 96px); }
.doc-hero .lede { margin-top: 22px; }
.doc { padding-block: 64px 96px; }
.doc .body { max-width: 680px; display: grid; gap: 20px; }
.doc .body h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 560; letter-spacing: -0.025em; line-height: 1.15; margin-top: 28px; }
.doc .body h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; margin-top: 8px; }
.doc .body p, .doc .body li { font-size: 18px; line-height: 1.68; }
.doc .body ul { padding-left: 22px; display: grid; gap: 8px; }
.doc .body a { color: var(--blue-deep); }
.doc .meta { color: var(--ink-2); font-size: 15px; }

@media (max-width: 760px) {
  .nav-links a.hide-sm { display: none; }
  .nav-links { gap: 18px; }
  .footer .cols { gap: 36px; }
}
@media (max-width: 420px) {
  .waitlist .row { flex-direction: column; border-radius: 22px; }
  .waitlist .pill { width: 100%; }
}
