/* Plank Crew website. Layout and colours are inline in the HTML, as
   generated from the Claude Design spec (docs/design/website-spec-v1.html);
   this file holds the fonts, globals and the few bits the spec drew with
   JavaScript (FAQ, hero phone) or doesn't cover (legal pages). */

@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Globals. Sizes are in rem so the browser's text size setting scales them
   (WCAG 1.4.4); the accessibility plan is docs-linked from the QA plan, W-A. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h, 84px) + 16px); scroll-padding-bottom: 24px; } /* focus never under the sticky nav (2.4.11/2.4.12); --nav-h from site.js */
body { margin: 0; background: #F3EEDF; color: #111; font-family: "Space Grotesk", -apple-system, system-ui, sans-serif; }
a { color: #111; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--nav-h, 84px) + 16px); }
h1, h2, h3 { overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Short, wide screens (landscape phones, 400% zoom): the nav scrolls away. */
@media (max-height: 500px) { nav { position: static !important; } }

/* Focus: a 3 px ink ring everywhere, yellow on the dark download card (2.4.13). */
a:focus-visible, summary:focus-visible, button:focus-visible, main:focus-visible { outline: 3px solid #111; outline-offset: 3px; border-radius: 6px; }
.cd-toggle:focus-visible { border-radius: 999px; }
main:focus-visible { outline: none; }
#download a:focus-visible { outline-color: #FFD93D; }

/* Skip link: hidden until it gets keyboard focus (2.4.1). */
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: #111; color: #FFD93D; font-weight: 700; }
.skip:focus { top: 12px; }

/* Tap targets at least 44 x 44 (2.5.5). */
nav a, footer a, a.standalone { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
/* "the line." stays on one line only where there is room for it. */
@media (min-width: 700px) { .nowrap-wide { white-space: nowrap; } }
.nav-link, footer a { min-width: 44px; justify-content: center; }
[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* The small print: items separated by dots that screen readers skip. */
.smallprint li + li::before { content: "\00B7" / ""; margin: 0 .7em; }

@media (min-width: 960px) { .media-first { order: -1; } }

/* Legal and support pages. Text at most 66 characters wide, paragraph gaps
   of 1.5 lines (1.4.8). */
.legal { max-width: 56.25rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(18px, 4vw, 40px) 0; }
.legal h1 { margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(3rem, calc(2rem + 4.5vw), 5.5rem); line-height: .92; text-transform: uppercase; }
.legal .updated { margin: 14px 0 28px; font-family: "Space Mono", monospace; font-size: .75rem; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: rgba(17,17,17,.74); }
.legal-body { background: #FFFDF7; border: 1px solid rgba(17,17,17,.08); border-radius: 32px; padding: clamp(22px, 4vw, 40px); }
.legal-body h2 { margin: 2.5rem 0 .5rem; font-size: 1.125rem; font-weight: 700; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { max-width: 34em; font-size: .9375rem; line-height: 1.65; color: rgba(17,17,17,.74); overflow-wrap: anywhere; }
.legal-body p { margin: 0 0 2.5em; }
.legal-body li { margin-bottom: 1.5em; }
.legal-body h2 + p, .legal-body p:last-child { margin-bottom: 1.25em; }
.legal a, .legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: #111; }
.legal-body .card { max-width: 34em; box-sizing: border-box; background: #F3EEDF; border-radius: 18px; padding: 14px 18px; margin: 10px 0; font-size: .9375rem; line-height: 1.6; color: rgba(17,17,17,.74); }
.legal-body .card h3 { margin: 0 0 .25em; font-size: 1em; font-weight: 700; line-height: 1.5; color: #111; }
.legal-body .card p { margin: 0; }
.legal-body ul { padding-left: 20px; }
.legal-body dl { margin: 0; }
.legal-body dt { margin-top: 2.5em; font-size: .9375rem; font-weight: 700; color: #111; }
.legal-body dt:first-child { margin-top: 0; }
.legal-body dd { margin: .2em 0 0; max-width: 34em; font-size: .9375rem; line-height: 1.65; color: rgba(17,17,17,.74); }

@media (max-width: 699px) { .nav-link { display: none; } }


/* The app's countdown (countdown.js; spec docs/design/countdown-animation-spec-v1.html).
   Sizes follow the box: the number is 57% of its width (230 pt on a 402 pt phone),
   --u scales the spec's point offsets. */
.cd-stage { position: absolute; inset: 0; overflow: hidden; container-type: size; --u: 1; }
.cd-stage[hidden] { display: none; }
.cd-face { position: absolute; inset: 0; }
.cd-mid { position: absolute; left: 0; right: 0; top: 45%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4cqw; }
.cd-num { position: relative; font-family: "Anton", Impact, sans-serif; font-size: min(57cqw, 42cqh); line-height: 1; transform-origin: 50% 55%; animation: cd-slam 420ms cubic-bezier(.3,0,.2,1) both; }
.cd-num.cd-go { font-size: min(52cqw, 38cqh); animation: cd-slam-big 640ms cubic-bezier(.3,0,.2,1) both; }
.cd-echo { position: absolute; inset: 0; opacity: 0; animation: cd-echo 680ms ease-out both; }
.cd-go .cd-echo { animation-duration: 900ms; }
.cd-cap { font-family: "Space Mono", monospace; font-weight: 700; font-size: max(9px, 3cqw); letter-spacing: .2em; }
.cd-pill { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 2.5cqw 5cqw; border: 1.5px solid; border-radius: 999px; font-size: max(10px, 3.7cqw); white-space: nowrap; }
.cd-shake { animation: cd-shake 260ms ease-out 210ms both; }
.cd-shake-big { animation: cd-shake-big 420ms ease-out 352ms both; }
.cd-static .cd-num, .cd-static .cd-echo { animation: none; }
.cd-static .cd-echo { display: none; }
.cd-door { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; animation: 420ms cubic-bezier(.6,0,.9,.4) both; }
.cd-door .cd-face { width: 200%; }
.cd-door-left { left: 0; animation-name: cd-door-l; }
.cd-door-right { right: 0; animation-name: cd-door-r; }
.cd-door-right .cd-face { left: -100%; }
@keyframes cd-slam { 0% { transform: scale(2.8); opacity: 0; } 50% { transform: scale(.9); opacity: 1; } 72% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes cd-slam-big { 0% { transform: scale(4.4); opacity: 0; } 55% { transform: scale(.84); opacity: 1; } 74% { transform: scale(1.08); } 88% { transform: scale(.98); } 100% { transform: scale(1); } }
@keyframes cd-echo { 0%, 46% { transform: none; opacity: 0; } 54% { transform: translate(calc(var(--dx) * var(--u)), calc(var(--dy) * var(--u))); opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes cd-shake { 20% { transform: translate(calc(-7px * var(--u)), calc(4px * var(--u))); } 40% { transform: translate(calc(6px * var(--u)), calc(-3px * var(--u))); } 60% { transform: translate(calc(-4px * var(--u)), calc(2px * var(--u))); } 80% { transform: translate(calc(2px * var(--u)), calc(-1px * var(--u))); } }
@keyframes cd-shake-big { 15% { transform: translate(calc(-14px * var(--u)), calc(8px * var(--u))); } 30% { transform: translate(calc(12px * var(--u)), calc(-7px * var(--u))); } 45% { transform: translate(calc(-9px * var(--u)), calc(5px * var(--u))); } 60% { transform: translate(calc(6px * var(--u)), calc(-3px * var(--u))); } 80% { transform: translate(calc(-3px * var(--u)), calc(1px * var(--u))); } }
@keyframes cd-door-l { to { transform: translateX(-102%); } }
@keyframes cd-door-r { to { transform: translateX(102%); } }
/* Full-screen intro: orange from the first frame, so the page never flashes first. */
.cd-intro { position: fixed; inset: 0; z-index: 100; background: #FF5A1F; }
.cd-intro .cd-stage { --u: 1.6; }
.cd-intro button { position: absolute; left: 50%; bottom: max(32px, 6vh); transform: translateX(-50%); z-index: 2; padding: 12px 22px; border-radius: 999px; border: 1.5px solid #111; background: transparent; color: #111; font: 600 16px "Space Grotesk", system-ui, sans-serif; cursor: pointer; mix-blend-mode: normal; }
/* The live Holding screen under the doors (data-live). */
.cd-hold { --p: calc(100cqw / 402); position: absolute; inset: 0; background: #000; color: #fff; font-family: "Space Grotesk", system-ui, sans-serif; }
.cd-hold-label { position: absolute; left: calc(24 * var(--p)); top: calc(62 * var(--p)); font: 400 calc(11 * var(--p)) "Space Mono", monospace; letter-spacing: .14em; color: rgba(255,255,255,.62); }
.cd-hold-clock { position: absolute; left: 0; right: 0; top: calc(318 * var(--p)); text-align: center; font: 400 calc(156 * var(--p))/1 "Anton", Impact, sans-serif; font-variant-numeric: tabular-nums; }
.cd-hold-hund { position: absolute; left: 0; right: 0; top: calc(486 * var(--p)); text-align: center; font: 400 calc(20 * var(--p)) "Space Mono", monospace; color: rgba(255,255,255,.5); }
.cd-lane { position: absolute; left: calc(37 * var(--p)); right: calc(24 * var(--p)); top: calc((697 - var(--slot, 0) * 40) * var(--p)); height: calc(30 * var(--p)); transform: translateY(-50%); display: flex; align-items: center; gap: calc(14 * var(--p)); transition: top 450ms cubic-bezier(.3,.8,.3,1); }
.cd-lane[hidden] { display: none; }
.cd-lane-track { position: relative; flex: 1; height: calc(6 * var(--p)); border-radius: 99px; background: #2C2C2E; }
.cd-lane-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.cd-lane-face { position: absolute; top: 50%; width: calc(30 * var(--p)); height: calc(30 * var(--p)); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 calc(2.5 * var(--p)) #000; }
.cd-lane-face img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.cd-lane-time { width: calc(40 * var(--p)); text-align: right; font: 400 calc(12 * var(--p)) "Space Mono", monospace; }
.cd-lane-in { animation: cd-lane-in 350ms ease-out both; }
.cd-hop img { animation: cd-hop 620ms cubic-bezier(.3,0,.3,1) 380ms both; }
@keyframes cd-lane-in { from { opacity: 0; margin-top: calc(8 * var(--p)); } }
@keyframes cd-hop { 0% { transform: none; } 30% { transform: translateY(calc(-14 * var(--p))) scale(1.12); } 55% { transform: translateY(0) scale(.94, 1.06); } 72% { transform: translateY(calc(-5 * var(--p))); } 100% { transform: none; } }
.cd-hold-foot { position: absolute; left: calc(24 * var(--p)); right: calc(24 * var(--p)); top: calc(722 * var(--p)); display: flex; justify-content: space-between; font: 400 calc(10.5 * var(--p)) "Space Mono", monospace; letter-spacing: .12em; color: rgba(255,255,255,.62); }
.cd-hold-bar { position: absolute; left: calc(24 * var(--p)); right: calc(24 * var(--p)); top: calc(744 * var(--p)); height: calc(3 * var(--p)); border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.cd-hold-bar div { height: 100%; background: #fff; }
.cd-hold-finish { position: absolute; left: calc(24 * var(--p)); right: calc(24 * var(--p)); top: calc(767 * var(--p)); height: calc(72 * var(--p)); box-sizing: border-box; border: calc(2.5 * var(--p)) solid #FFD93D; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 600 calc(19 * var(--p)) "Space Grotesk", system-ui, sans-serif; color: #FFD93D; }

/* Pause / play for the hero countdown (WCAG 2.2.2). */
.cd-paused, .cd-paused * { animation-play-state: paused !important; }
.cd-paused .cd-lane { transition: none; }
.cd-stage { pointer-events: none; }
.cd-toggle { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.1rem; border: 1.5px solid #111; border-radius: 999px; background: #FFFDF7; color: #111; font: 600 .9375rem/1.2 "Space Grotesk", system-ui, sans-serif; max-width: calc(100vw - 36px); box-sizing: border-box; text-align: center; cursor: pointer; }
.cd-icon { display: inline-block; width: .75em; height: .875em; }
.cd-icon-pause { border-left: .25em solid currentColor; border-right: .25em solid currentColor; box-sizing: border-box; }
.cd-icon-play { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
