/* cullwise.app — one stylesheet for every page.
   Tokens mirror context/foundation/cullwise/design-system.md › Colour tokens (light, then dark).
   Type: SF Rounded (ui-rounded) for titles and numbers, SF Pro (system-ui) for text; no web fonts. */

:root {
  color-scheme: light dark;
  --brand: #A85800;
  --on-brand: #FFFFFF;
  --keep: #248A3D;
  --skip: #0040DD;
  --delete: #D70015;
  --favorite: #FF2D55;
  --background: #FBF8F3;
  --surface: #EFE9E0;
  --track: #DCD4C8;
  --text-primary: #1C1A17;
  --text-secondary: #6B645B;
  --print-paper: #FFFFFF;
  --glow: rgba(245, 166, 35, 0.18);
  --on-decision: #FFFFFF;
  --bezel: #1C1A17;
  --print-shadow: 0 16px 36px rgba(60, 40, 10, 0.18), 0 2px 6px rgba(60, 40, 10, 0.10);

  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-text: -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --measure: 34rem;
  --page: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FFB340;
    --on-brand: #1A1206;
    --keep: #30D158;
    --skip: #409CFF;
    --delete: #FF453A;
    --favorite: #FF375F;
    --background: #0E0D0B;
    --surface: #1E1B17;
    --track: #3E3933;
    --text-primary: #F7F3EC;
    --text-secondary: #ADA59A;
    --print-paper: #2A2620;
    --glow: rgba(255, 179, 64, 0.10);
    --on-decision: #000000;
    --bezel: #2A2620;
    --print-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  /* The app's light table: a glow centred on the top edge, fading out. */
  background-image: radial-gradient(ellipse 90% 60rem at 50% 0, var(--glow), transparent 75%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font: 400 1.0625rem/1.55 var(--font-text);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--font-rounded);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 32px; } }

.lede { font-size: 1.25rem; line-height: 1.5; color: var(--text-secondary); }
.quiet { color: var(--text-secondary); }

/* Header and footer */

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-primary); text-decoration: none;
  font: 800 1.375rem/1 var(--font-rounded); letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-primary); }

.site-foot {
  margin-top: 6rem; padding-top: 2rem; padding-bottom: 3rem;
  border-top: 1px solid var(--track);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  color: var(--text-secondary); font-size: 0.9375rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.site-foot a { color: var(--text-secondary); }
.site-foot a:hover { color: var(--text-primary); }

/* Get-it button: the body's data-get picks which one shows (soon / testflight / appstore). */

.get { margin: 2rem 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.get-option { display: none; }
body[data-get="soon"] .get-soon,
body[data-get="testflight"] .get-testflight,
body[data-get="appstore"] .get-appstore { display: inline-flex; }
.get-note { display: none; font-size: 0.9375rem; color: var(--text-secondary); }
body[data-get="soon"] .get-note-soon,
body[data-get="testflight"] .get-note-testflight { display: block; }

.button {
  align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font: 600 1.0625rem/1 var(--font-text); text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.button[aria-disabled="true"] {
  background: var(--surface); color: var(--text-primary); cursor: default; filter: none;
}
.button svg { width: 20px; height: 20px; flex: none; }

/* Phone frame around a screenshot */

.phone {
  position: relative;
  width: 100%; max-width: 300px;
  padding: 9px; border-radius: 48px;
  background: var(--bezel);
  box-shadow: var(--print-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img, .phone picture { border-radius: 39px; width: 100%; aspect-ratio: 600 / 1303; }
.phone img { object-fit: cover; background: var(--surface); }

/* Hero: the review screen with the three swipes drawn around it */

.hero { display: grid; gap: 3rem; align-items: center; padding-top: 2.5rem; }
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 4rem; }
}
.hero h1 { max-width: 12ch; }

.stage { position: relative; display: grid; place-items: center; padding: 64px 0 8px; }
.stage .phone { max-width: 270px; }
@media (min-width: 30rem) { .stage .phone { max-width: 300px; } }

.swipe {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px 0 12px; height: 44px; border-radius: 999px;
  color: var(--on-decision); font: 700 1.0625rem/1 var(--font-text);
  box-shadow: 0 6px 16px rgba(60, 40, 10, 0.18);
  white-space: nowrap;
}
.swipe svg { width: 20px; height: 20px; flex: none; }
.swipe-keep { background: var(--keep); top: 40%; right: max(0px, calc(50% - 210px)); transform: rotate(4deg); }
.swipe-delete { background: var(--delete); top: 54%; left: max(0px, calc(50% - 215px)); transform: rotate(-4deg); }
.swipe-skip { background: var(--skip); top: 4px; left: 50%; transform: translateX(-50%); }
.swipe-delete { padding: 0 12px 0 16px; }

@media (prefers-reduced-motion: no-preference) {
  .swipe { animation: nudge 5s ease-in-out 1s infinite; }
  .swipe-keep { --dx: 8px; --dy: 0; --r: 4deg; }
  .swipe-delete { --dx: -8px; --dy: 0; --r: -4deg; animation-delay: 2.6s; }
  .swipe-skip { --dx: 0; --dy: -6px; --r: 0deg; animation-delay: 1.8s; }
  @keyframes nudge {
    0%, 20%, 100% { translate: 0 0; }
    10% { translate: var(--dx) var(--dy); }
  }
}

/* Sections */

.section { padding-top: 6rem; }
.section > .wrap > h2 + p { margin-bottom: 2.5rem; }

/* The four moves */

.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 3rem; }
@media (min-width: 40rem) { .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .moves { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.moves h3 { margin: 1rem 0 0.375rem; }
.moves p { margin: 0; color: var(--text-secondary); max-width: 30ch; }
.glyph {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-decision);
}
.glyph svg { width: 24px; height: 24px; }
.glyph-keep { background: var(--keep); }
.glyph-delete { background: var(--delete); }
.glyph-skip { background: var(--skip); }
.glyph-album { background: var(--print-paper); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--track); }

/* Screens: a row of phones that scrolls inside itself on narrow screens */

.screens {
  list-style: none; margin: 0; padding: 4px var(--gutter) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 260px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens li { scroll-snap-align: start; }
@media (min-width: 64rem) {
  .screens {
    max-width: var(--page); margin: 0 auto; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto;
  }
}
.screens figure { margin: 0; }
.screens figcaption { margin-top: 1.25rem; max-width: 30ch; color: var(--text-secondary); font-size: 0.9375rem; }
.screens figcaption strong { display: block; color: var(--text-primary); font: 700 1.0625rem/1.3 var(--font-rounded); margin-bottom: 0.25rem; }

/* Safe by design: the deletion path, in order */

.split { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative; padding: 0 0 1.75rem 3.5rem; max-width: var(--measure);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-primary);
  font: 800 1.0625rem/1 var(--font-rounded);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.5rem; bottom: 0.5rem;
  width: 2px; background: var(--track);
}
.steps strong { display: block; font: 700 1.125rem/1.3 var(--font-rounded); margin-bottom: 0.25rem; }
.steps span { color: var(--text-secondary); }

/* Privacy promise: a print on the light table */

.print {
  background: var(--print-paper); border-radius: 20px; box-shadow: var(--print-shadow);
  padding: 2.5rem 1.5rem;
}
@media (min-width: 48rem) { .print { padding: 3.5rem; } }
.print h2 { max-width: 16ch; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts strong { display: block; font: 700 1.125rem/1.3 var(--font-rounded); margin-bottom: 0.25rem; }
.facts span { color: var(--text-secondary); }

/* Text pages: support, privacy, 404 */

.page { max-width: 44rem; padding-top: 2.5rem; }
.page h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); max-width: none; }
.page h2 { font-size: 1.5rem; margin-top: 2.75rem; }
.page h3 { font-size: 1.125rem; margin: 1.75rem 0 0.375rem; }
.page ul, .page ol { padding-left: 1.25rem; max-width: var(--measure); }
.page li { margin-bottom: 0.5rem; }
.page li::marker { color: var(--text-secondary); }

.contact {
  margin: 2rem 0 1rem; padding: 1.5rem; border-radius: 20px;
  background: var(--print-paper); box-shadow: var(--print-shadow);
}
.contact p { margin: 0; }
.contact a { font: 700 1.25rem/1.4 var(--font-rounded); }

details { border-bottom: 1px solid var(--track); }
details:first-of-type { border-top: 1px solid var(--track); }
summary {
  cursor: pointer; list-style: none;
  padding: 1.125rem 2.5rem 1.125rem 0; position: relative;
  font: 700 1.125rem/1.35 var(--font-rounded);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--text-secondary); border-bottom: 2.5px solid var(--text-secondary);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details > :not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 1.25rem; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

.updated { color: var(--text-secondary); font-size: 0.9375rem; }

.button-link { display: inline-flex; }
