/* ORCA — orcaworks.co. Every value below comes from the ORCA design
   system's tokens (Wada #141 palette, Figtree, the space/radius/size
   scales); names match the tokens one-to-one. */

@font-face {
  font-family: Figtree;
  src: url("/fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #F5F4EF;
  --surface-raised: #FFFFFF;
  --surface-sunken: #E9E8E1;
  --line: #DCDBD3;
  --line-strong: #7E8589;
  --ink: #12354E;
  --ink-muted: #56646D;
  --ink-faint: #8E979C;
  --tyrian: #12354E;
  --on-tyrian: #FFFFFF;
  --tyrian-soft: #E2E9EF;
  --tyrian-ink: #12354E;
  --orange: #F37420;
  --on-orange: #0B2436;
  --sprout: #AFD472;
  --on-sprout: #12354E;
  --sprout-soft: #EEF6E1;
  --sprout-ink: #3D6014;
  --danger: #B3362C;
  --bar: #12354E;
  --on-bar: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(13,27,36,0.06), 0 2px 8px rgba(13,27,36,0.05);
  --shadow-2: 0 6px 16px rgba(13,27,36,0.10), 0 16px 40px rgba(13,27,36,0.14);

  --font-sans: Figtree, -apple-system, "SF Pro Text", Roboto, system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 12px; --radius-md: 18px; --radius-lg: 26px; --radius-xl: 34px; --radius-pill: 999px;
  --target-min: 56px; --target-button: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #0B1A25;
    --surface-raised: #132634;
    --surface-sunken: #07121A;
    --line: #213646;
    --line-strong: #5B7385;
    --ink: #F1F3EE;
    --ink-muted: #A3B3BF;
    --ink-faint: #6D8291;
    --tyrian: #8DB8D8;
    --on-tyrian: #0B1A25;
    --tyrian-soft: #17344A;
    --tyrian-ink: #BFD9EC;
    --orange: #F68A44;
    --on-orange: #12354E;
    --sprout: #B9DC80;
    --on-sprout: #0B1A25;
    --sprout-soft: #22331A;
    --sprout-ink: #C9E4A0;
    --danger: #FF7A6E;
    --bar: #1A3448;
    --on-bar: #FFFFFF;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-2: 0 8px 24px rgba(0,0,0,0.55);
  }
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 24px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--space-5), env(safe-area-inset-left));
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--tyrian); outline-offset: 3px; }

/* ---- Header ---- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-top: var(--space-6); padding-bottom: var(--space-6);
}
.brand { display: block; border-radius: var(--radius-sm); }
.brand img { display: block; height: 52px; width: auto; }

.tag {
  font-size: 13px; line-height: 16px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
  background: var(--tyrian-soft); color: var(--tyrian-ink);
  white-space: nowrap;
}

/* ---- Hero ---- */

.hero {
  display: grid; gap: var(--space-8); align-items: center;
  padding-top: var(--space-8); padding-bottom: var(--space-12);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em;
  max-width: 13ch;
}
.lede {
  margin-top: var(--space-6); max-width: 34rem;
  font-size: 20px; line-height: 30px; color: var(--ink-muted);
}
.hero .button { margin-top: var(--space-8); }

.hero-art { width: 100%; max-width: 480px; height: auto; justify-self: center; }
.b-slab { fill: var(--ink); }
.b-dots circle { fill: var(--surface); opacity: 0.9; }
.b-orange { fill: var(--orange); }
.b-pill { fill: var(--ink); }
.b-tint { fill: var(--tyrian-soft); }
.b-sprout { fill: var(--sprout); }
@media (prefers-color-scheme: dark) {
  .b-pill { fill: var(--on-orange); }
}

@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding-top: var(--space-12); padding-bottom: 96px; }
  .hero-art { justify-self: end; }
}

/* ---- Buttons ---- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target-button); padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-md);
  font: inherit; font-size: 20px; line-height: 24px; font-weight: 650;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.button.primary { background: var(--orange); color: var(--on-orange); box-shadow: var(--shadow-1); }
.button:active { transform: scale(0.97); }
.button.wide { width: 100%; }
.button[disabled] { opacity: 0.7; cursor: progress; }

/* ---- What it does ---- */

.points { display: grid; gap: var(--space-3); padding-bottom: var(--space-12); }
.card {
  background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: var(--space-6);
}
.card h3 { font-size: 22px; line-height: 28px; font-weight: 700; }
.card p { margin-top: var(--space-2); color: var(--ink-muted); }
@media (min-width: 760px) {
  .points { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

/* ---- Built on the job ---- */

.story { padding-bottom: var(--space-12); }
.story-card {
  background: var(--bar); color: var(--on-bar);
  border-radius: var(--radius-xl); padding: var(--space-8) var(--space-6);
}
.story-card h2 { font-size: 30px; line-height: 36px; font-weight: 750; letter-spacing: -0.015em; }
.story-card p { margin-top: var(--space-4); max-width: 44rem; font-size: 19px; line-height: 28px; }
@media (min-width: 760px) { .story-card { padding: var(--space-12); } }

/* ---- Register ---- */

.register { padding-bottom: var(--space-12); }
.register-card {
  max-width: 640px; margin-inline: auto;
  background: var(--surface-raised); border-radius: var(--radius-xl); box-shadow: var(--shadow-2);
  padding: var(--space-8) var(--space-5);
}
@media (min-width: 640px) { .register-card { padding: var(--space-12); } }
.register-card h2 { font-size: 30px; line-height: 36px; font-weight: 750; letter-spacing: -0.015em; }
.sub { margin-top: var(--space-2); color: var(--ink-muted); }

form { margin-top: var(--space-8); display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
label { font-weight: 650; }
.optional { font-size: 15px; line-height: 20px; font-weight: 550; color: var(--ink-muted); margin-left: var(--space-1); }
input {
  min-height: var(--target-button); width: 100%;
  padding: 0 var(--space-4);
  border: 2px solid transparent; border-radius: var(--radius-md);
  background: var(--surface-sunken); color: var(--ink);
  font: inherit;
}
input::placeholder { color: var(--ink-faint); }
input:focus { outline: none; border-color: var(--tyrian); background: var(--surface-raised); }
input[aria-invalid="true"] { border-color: var(--danger); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: var(--danger); font-weight: 650; }
.fineprint { font-size: 15px; line-height: 20px; font-weight: 550; color: var(--ink-muted); text-align: center; }

.thanks {
  margin-top: var(--space-8); display: flex; gap: var(--space-4); align-items: center;
  background: var(--sprout-soft); color: var(--sprout-ink);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.thanks:focus { outline: none; }
.thanks-title { font-weight: 700; font-size: 20px; line-height: 26px; }
.done {
  flex: none; display: grid; place-items: center;
  width: var(--target-min); height: var(--target-min); border-radius: var(--radius-pill);
  background: var(--sprout); color: var(--on-sprout);
}

/* ---- Footer ---- */

.foot {
  display: flex; align-items: center; gap: var(--space-3);
  padding-top: var(--space-8); padding-bottom: max(var(--space-12), env(safe-area-inset-bottom));
  color: var(--ink-muted); font-size: 15px; line-height: 20px; font-weight: 550;
}
.foot img { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:active { transform: none; }
}
