/* PicToSize site. Colours match the app: paper, navy ink, tape yellow. */
:root {
  --paper: #EEF1F5;
  --surface: #FFFFFF;
  --ink: #14203A;
  --muted: #4A5670;
  --line: #D5DBE5;
  --tape: #F3C236;
  --tape-edge: #D9A514;
  --on-tape: #14203A;
  /* Tape is always yellow, so its ticks stay navy in dark mode. */
  --tick: #14203A;
  --link: #2F5BD3;
  --pass: #1C7C4A;
  --display: "Archivo", -apple-system, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1830;
    --surface: #17223D;
    --ink: #EEF1F5;
    --muted: #A9B4CA;
    --line: #2A3756;
    --link: #93B2FF;
    --pass: #5FD39A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 800 19px/1 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(42px, 7.2vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 22px 0 0; }
p { margin: 0 0 1em; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.store-pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px;
  background: var(--tape); color: var(--on-tape); font-weight: 700; text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--tape-edge); }
.cta-note { color: var(--muted); font-size: 15px; }

/* The tape gauge: the one moving thing on the page. */
.gauge { --limit: 80%; --at: 79.5%; margin-top: 40px; max-width: 520px; }
.gauge-reading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gauge-size { font: 800 clamp(40px, 6vw, 60px)/1 var(--display); font-variation-settings: "wdth" 125;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stamp { font: 800 18px/1 var(--display); font-variation-settings: "wdth" 125; color: var(--pass);
  border: 2.5px solid var(--pass); border-radius: 8px; padding: 6px 12px; transform: rotate(-8deg);
  opacity: 0; transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.gauge.done .stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.gauge:not(.done) .stamp { transform: rotate(-8deg) scale(1.8); }
.tape { position: relative; height: 44px; margin-top: 18px; border-radius: 6px; background: var(--tape);
  box-shadow: inset 0 -4px 0 var(--tape-edge);
  background-image:
    repeating-linear-gradient(90deg, var(--tick) 0 1.5px, transparent 1.5px 52px),
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 10.4px);
  background-size: 100% 18px, 100% 9px; background-repeat: no-repeat; }
.allowed { position: absolute; top: 0; bottom: 4px; left: 0; width: var(--limit); background: rgba(28, 124, 74, .22);
  border-right: 3px solid var(--pass); }
.marker { position: absolute; top: -12px; left: var(--at, 100%); width: 0; height: 0; transform: translateX(-9px);
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--ink); }
.gauge-scale { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 8px;
  font-variant-numeric: tabular-nums; }
.gauge-scale strong { color: var(--pass); font-weight: 700; }

/* Phone */
.phone { justify-self: center; width: min(340px, 100%); border-radius: 46px; padding: 11px; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(20, 32, 58, .45); }
@media (prefers-color-scheme: dark) { .phone { background: #050A17; box-shadow: 0 0 0 1px var(--line); } }
.phone img { border-radius: 36px; width: 100%; height: auto; }

/* Ruler band between sections, like the store screenshots */
.ruler { height: 28px; background:
  repeating-linear-gradient(90deg, var(--tick) 0 1.5px, transparent 1.5px 60px) top / 100% 20px no-repeat,
  repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 12px) top / 100% 10px no-repeat,
  var(--tape); box-shadow: inset 0 -4px 0 var(--tape-edge); }

section.block { padding: 88px 0; }
section.block + section.block { padding-top: 0; }

/* Form rules as tape labels */
.labels { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 28px; padding: 0; list-style: none; }
.labels li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px;
  font-weight: 600; font-variant-numeric: tabular-nums; }
.labels li::before { content: "✓"; color: var(--pass); font-weight: 800; margin-right: 10px; }

/* Steps: a real sequence, so they are numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 44px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px;
  margin-right: 12px; border-radius: 50%; background: var(--tape); color: var(--on-tape); font-size: 17px;
  vertical-align: 2px; }
.steps p { color: var(--muted); margin-top: 10px; }
.shot { margin-top: 22px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  aspect-ratio: 736 / 1000; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.bottom img { object-position: bottom; }

/* Two columns of text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; }
.facts span { color: var(--muted); }
.forms { columns: 2; column-gap: 32px; margin: 26px 0; padding: 0; list-style: none; }
.forms li { break-inside: avoid; padding: 6px 0; }
.forms span { color: var(--muted); font-size: 15px; display: block; }
.small { font-size: 15px; color: var(--muted); }

/* Price */
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.price-row { display: flex; flex-wrap: wrap; gap: 32px 56px; margin-top: 26px; }
.price-row > div { flex: 1 1 240px; max-width: 360px; }
.price-row p { color: var(--muted); margin-top: 10px; }
.amount { font: 800 44px/1 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -0.03em; }

/* Plain pages: privacy, support */
.page { padding: 24px 0 88px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); }
.page h2 { font-size: 24px; margin-top: 44px; margin-bottom: 10px; letter-spacing: -0.02em; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2em; }
.page .meta { margin: 12px 0 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .shot { max-width: 360px; }
  .site-nav { display: none; }
  section.block { padding: 64px 0; }
  .price { padding: 28px 22px; }
}
@media (max-width: 520px) { .forms { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp { transition: none; } }
