/* Pickwire site. Tokens follow trademark/10-design-system.md:
   app colours for the page (charcoal field, amber signal), cobalt only as the brand layer,
   never behind photos. System fonts for all text; the wordmark is artwork. */

:root {
  --bg: #111213;
  --card: #1A1B1D;
  --raised: #2E3033;
  --line: #26282A;
  --ink: #ECEBE6;
  --secondary: #A3A29C;
  --tertiary: #8F8E88;
  --accent: #E8B04B;
  --accent-soft: #F2C66D;
  --on-accent: #151515;
  --good: #61E8A8;
  --cobalt: #2A3FC6;
  --cobalt-deep: #172380;
  --navy-ink: #D2DAFF;

  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1180px;
  --radius: 20px;
  --control: 52px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 600; color: var(--ink); }
code { font: 0.9em var(--mono); color: var(--ink); word-break: break-all; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.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;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.label {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-ink); }
.brand-icon { width: 32px; height: 32px; }
.wordmark { height: 20px; width: auto; aspect-ratio: 8354 / 1629; }

.top-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 0;
}
.top-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */

.hero {
  display: grid;
  grid-template-areas: "stage" "copy" "facts";
  gap: 32px;
  padding-top: 0;
  padding-bottom: 72px;
}
.hero > *, .feature > *, .facts-pair > * { min-width: 0; }

.hero-copy { grid-area: copy; }

.kicker { font-size: 15px; color: var(--secondary); margin-bottom: 18px; }

h1 {
  font-size: clamp(40px, 10.4vw, 72px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 22px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.45;
  color: var(--secondary);
  max-width: 34em;
}

/* Sign-up form */

.signup { margin-top: 30px; max-width: 34rem; }

.signup-row { display: flex; flex-direction: column; gap: 10px; }

.signup input[type="email"] {
  width: 100%;
  min-height: var(--control);
  padding: 0 18px;
  font: 17px var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--raised);
  border-radius: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.signup input[type="email"]::placeholder { color: var(--tertiary); }
.signup input[type="email"]:focus { outline: none; border-color: var(--accent); }

.signup button {
  min-height: var(--control);
  padding: 0 24px;
  font: 600 17px var(--sans);
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.signup button:hover { background: var(--accent-soft); }
.signup button:active { transform: translateY(1px); }
.signup button[disabled] { opacity: 0.6; cursor: default; }

.signup .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

.signup-note { margin-top: 12px; font-size: 15px; color: var(--tertiary); }

.signup.is-done .signup-row { display: none; }
.signup.is-done .signup-note {
  margin-top: 0;
  padding: 16px 18px;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--raised);
  border-radius: 16px;
}
.signup.is-done .signup-note::before { content: "✓ "; color: var(--good); font-weight: 700; }
.signup.is-error .signup-note { color: var(--accent-soft); }

.signup-privacy { margin-top: 6px; font-size: 13px; color: var(--tertiary); }
.signup-privacy a { color: var(--secondary); text-underline-offset: 3px; }

@media (min-width: 560px) {
  .signup-row { flex-direction: row; }
  .signup input[type="email"] { flex: 1; min-width: 0; }
}

/* Phones */

.phone { margin: 0; }
.phone img {
  width: 100%;
  height: auto;
  border-radius: 13.6% / 6.3%;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 6px #050505,
    0 0 0 7px #34363a,
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.phone figcaption {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--tertiary);
  text-align: center;
}

/* The lead image: the contact sheet marked up in grease pencil, like a print on the desk.
   Marks and notes live inside the phone's own box (SVG units: 100 wide, 217.4 tall),
   so they stay on their targets at any size. Note text scales with the stage (cqw). */

@font-face {
  font-family: "Caveat Brush";
  src: url("/fonts/caveat-brush-latin.woff2") format("woff2");
  font-display: swap;
}

.stage {
  grid-area: stage;
  container-type: inline-size;
  margin-inline: calc(-1 * var(--gutter));
  padding: 7% 14% 9% 35%;
  overflow: clip;
}

.stage-phone { position: relative; transform: rotate(-4deg); }
.stage-phone img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 6px #050505,
    0 0 0 7px #3a3c40,
    0 50px 90px -30px rgba(0, 0, 0, 0.95);
}
.stage-phone::before,
.stage-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3a3c40;
}
.stage-phone::before { left: -10px; top: 19%; height: 11%; }
.stage-phone::after { right: -10px; top: 25%; height: 8%; }

.marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.marks .wire { stroke-width: 2.6; stroke-linecap: butt; stroke-linejoin: miter; }

.note {
  position: absolute;
  margin: 0;
  font: 400 5.3cqw/0.96 "Caveat Brush", "Bradley Hand", "Marker Felt", cursive;
  color: var(--accent);
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.n-focus { right: 110%; top: 13.2%; text-align: right; transform: rotate(2deg); }
.n-sharp { right: 107%; top: 40.4%; text-align: right; transform: rotate(3deg); }
.n-soft { right: 10%; top: 69.4%; text-align: right; transform: rotate(-2deg); }
.n-caption { right: 110%; top: 79.8%; text-align: right; transform: rotate(2deg); }
.n-desk { left: 104%; top: 71.2%; transform: rotate(5deg); }

@media (prefers-reduced-motion: no-preference) {
  .marks path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.45s ease-out forwards; }
  .note { opacity: 0; animation: appear 0.35s ease-out forwards; }
  .d1 { animation-delay: 0.3s; }
  .d2 { animation-delay: 0.6s; }
  .d3 { animation-delay: 0.85s; }
  .d4 { animation-delay: 1.05s; }
  .d5 { animation-delay: 1.3s; }
  .d6 { animation-delay: 1.55s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 640px) and (max-width: 959px) {
  .stage { margin-inline: auto; width: 100%; max-width: 600px; }
}
@keyframes appear { to { opacity: 1; } }

/* Facts strip */

.facts {
  grid-area: facts;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.facts li { border-bottom: 1px solid var(--line); }
.facts a {
  display: block;
  padding: 18px 0;
  text-decoration: none;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.45;
}
.facts .label { display: block; margin-bottom: 8px; }
.facts strong { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 2px; }
.facts a:hover strong { color: var(--accent); }

@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "stage copy" "facts facts";
    column-gap: 40px;
    row-gap: 56px;
    align-items: center;
    padding-bottom: 96px;
  }
  .stage { margin-inline: 0; padding-top: 4%; padding-bottom: 6%; }
  .facts { grid-template-columns: repeat(4, 1fr); column-gap: 28px; border-bottom: 1px solid var(--line); }
  .facts li { border-bottom: 0; }
  .facts a { padding: 22px 0 4px; }
}

/* Feature sections */

.feature, .everything, .facts-pair {
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.feature {
  display: grid;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.feature h2 {
  margin-top: 14px;
  font-size: clamp(32px, 7.4vw, 54px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.intro { margin-top: 18px; font-size: 19px; line-height: 1.45; color: var(--secondary); max-width: 32em; }

.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--secondary);
}
.points li:last-child { border-bottom: 1px solid var(--line); }

.caveat {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--raised);
  font-size: 15px;
  color: var(--tertiary);
}

.log {
  margin-top: 28px;
  padding: 16px 18px 18px;
  background: var(--card);
  border-radius: var(--radius);
}
.log-title { font-size: 13px; color: var(--tertiary); margin-bottom: 10px; }
.log pre { margin: 0; overflow-x: auto; }
.log code { font: clamp(12px, 3.8vw, 14px)/1.7 var(--mono); color: var(--ink); word-break: normal; white-space: pre; }
.log .ok { color: var(--good); }

/* Screens: a swipeable strip on phones, side by side on wide screens */

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 12px var(--gutter) 8px;
}
.shots::-webkit-scrollbar { display: none; }
.shots .phone { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; }
.shots .phone:only-child { margin: 0 auto; }

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 64px;
    align-items: start;
    padding-top: 112px;
    padding-bottom: 112px;
  }
  .feature:nth-of-type(odd) .feature-copy { order: 2; }
  .shots {
    overflow: visible;
    margin: 0;
    padding: 8px 0 0;
    gap: 32px;
    justify-content: center;
  }
  .shots .phone { flex: 0 1 290px; }
  .shots .phone:nth-child(2) { margin-top: 72px; }
}

/* Everything */

.everything { padding-top: 72px; padding-bottom: 72px; }
.everything h2,
.facts-pair h2 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.groups { margin-top: 32px; columns: 3 320px; column-gap: 12px; }
.group {
  break-inside: avoid;
  margin: 0 0 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0 20px;
}
.group summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.group summary::-webkit-details-marker { display: none; }
.group summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--tertiary); }
.group[open] summary::after { content: "−"; }
.group h3 { font-size: 17px; font-weight: 600; margin-right: auto; }
.group .count { font: 13px var(--mono); color: var(--tertiary); }
.group ul { list-style: none; margin: -6px 0 0; padding: 0 0 10px; }
.group li {
  padding: 9px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--secondary);
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .group summary { cursor: default; }
  .group summary::after { display: none; }
}

/* What you need / not yet */

.facts-pair {
  display: grid;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 96px;
}
.facts-pair ul { list-style: none; margin: 24px 0 0; padding: 0; }
.facts-pair li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--secondary); }
.facts-pair li:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 860px) {
  .facts-pair { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

/* Sign-up band: the icon's field. No photos sit on cobalt. */

.signup-band {
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-deep));
  color: #fff;
  padding: 72px 0 80px;
}
.signup-inner { display: flex; flex-direction: column; align-items: flex-start; }
.band-icon { width: 72px; height: 72px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); border-radius: 22.5%; }
.signup-band h2 {
  margin-top: 28px;
  font-size: clamp(34px, 7.4vw, 60px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.signup-band p { margin-top: 14px; font-size: 19px; color: var(--navy-ink); }
.signup-band .signup { width: 100%; margin-top: 28px; }
.signup-band .signup input[type="email"] {
  background: rgba(8, 12, 48, 0.35);
  border-color: rgba(210, 218, 255, 0.35);
  color: #fff;
}
.signup-band .signup input[type="email"]::placeholder { color: rgba(210, 218, 255, 0.6); }
.signup-band .signup-note { color: rgba(210, 218, 255, 0.8); font-size: 15px; }
.signup-band .signup-privacy { margin-top: 6px; font-size: 13px; color: rgba(210, 218, 255, 0.7); }
.signup-band .signup-privacy a { color: var(--navy-ink); }
.signup-band .signup.is-done .signup-note { background: rgba(8, 12, 48, 0.35); border-color: rgba(210, 218, 255, 0.35); color: #fff; }

@media (min-width: 960px) {
  .signup-band { padding: 112px 0; }
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--tertiary);
}
.foot .brand { color: var(--secondary); gap: 8px; }
.foot .brand-icon { width: 24px; height: 24px; }
.foot .wordmark { height: 15px; }
.foot p:last-child { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Thanks page */

.thanks { padding-top: 15vh; padding-bottom: 20vh; }
.thanks h1 { font-size: clamp(40px, 9vw, 72px); }
.thanks p { margin-top: 18px; font-size: 19px; color: var(--secondary); }
.thanks a { color: var(--accent); }

/* Privacy page */

.legal { padding-top: 48px; padding-bottom: 96px; }
.legal > * { max-width: 44rem; }
.legal h1 { font-size: clamp(40px, 9vw, 64px); letter-spacing: -0.03em; }
.legal .updated { margin-top: 12px; font-size: 15px; color: var(--tertiary); }
.legal h2 { margin-top: 56px; font-size: 26px; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.legal p, .legal li { color: var(--secondary); }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; }
.legal li { padding: 5px 0; }
.legal a { color: var(--accent); text-underline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.top-cta { white-space: nowrap; }
@media (max-width: 379px) { .top-cta { display: none; } }
