/* The public pages (privacy, delete account). Same paper, ink, colours and typefaces as the app
   (app/src/theme.ts); change them here and both pages follow. */

@font-face { font-family: "Bricolage Grotesque"; src: url("BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("InstrumentSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #101014;
  --paper: #f3efe6;
  --muted: #6f6a60;
  --blue: #1f3bff;
  --lime: #c8ff3d;
  --orange: #ff4a1c;
  --pink: #ffb3dd;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; }
p, ul, ol { margin: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* The colour band at the top: brand row, a very large title, and the app's squiggle running off the edge. */
.band { position: relative; overflow: hidden; background: var(--blue); color: var(--paper); }
.band--delete { background: var(--orange); color: var(--ink); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--display); letter-spacing: -0.8px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand-row .other { font-weight: 600; font-size: 16px; }
.band .title { position: relative; z-index: 1; padding: clamp(56px, 11vw, 140px) 0 clamp(40px, 7vw, 88px); }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.85; margin-bottom: 18px; }
h1 { font-size: clamp(52px, 11.5vw, 148px); line-height: 0.9; letter-spacing: -0.045em; max-width: 9ch; }
.band .lead { max-width: 28ch; margin-top: 28px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.band .squiggle { position: absolute; right: -4%; bottom: -16%; width: min(46vw, 620px); height: auto; overflow: visible; pointer-events: none; }
.squiggle path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* The short version: three facts, each under one of the app's shapes. Nothing is boxed. */
.short { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(24px, 4vw, 48px); }
.short svg { width: clamp(72px, 9vw, 112px); height: auto; display: block; margin-bottom: 20px; }
.short h3 { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.02; letter-spacing: -0.03em; }
.short p { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 28ch; }

/* The policy itself: heading on the left, text on the right, space instead of lines. */
.sections { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(72px, 10vw, 136px); }
.section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 5vw, 80px); padding: clamp(28px, 4.2vw, 56px) 0; }
.section h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 0.98; letter-spacing: -0.035em; }
.section h2 span { display: block; font: 600 13px/1 var(--body); letter-spacing: 1.6px; color: var(--muted); margin-bottom: 14px; }
.section .text > * + * { margin-top: 16px; }
.section .text { max-width: 58ch; }
.section .text a { color: var(--blue); font-weight: 600; }
.text ul { list-style: none; padding: 0; }
.text ul li { position: relative; padding-left: 30px; }
.text ul li + li { margin-top: 14px; }
.text ul li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.text ul li:nth-child(3n + 2)::before { background: var(--orange); border-radius: 3px; }
.text ul li:nth-child(3n)::before { background: var(--pink); border-radius: 50% 50% 50% 0; }
.note { font: 800 clamp(22px, 2.5vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; }

/* Delete account: three steps under very large numbers. */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(56px, 8vw, 104px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 800 clamp(96px, 13vw, 176px)/0.8 var(--display); letter-spacing: -0.06em; color: var(--blue); margin-bottom: 20px; }
.steps li:nth-child(2)::before { color: var(--orange); }
.steps li:nth-child(3)::before { color: var(--ink); }
.steps p { font-size: clamp(19px, 2vw, 23px); line-height: 1.35; max-width: 20ch; }
.steps-label { padding-top: clamp(56px, 8vw, 96px); font: 600 13px/1 var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.steps-label + .steps { padding-top: 28px; }
.button { display: inline-block; margin-top: 8px; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font: 800 19px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease; }
.button:hover { background: var(--blue); transform: translateY(-2px); }

/* The foot of the page. */
.foot { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 88px) 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.foot .big { font: 800 clamp(34px, 5.4vw, 72px)/0.95 var(--display); letter-spacing: -0.04em; }
.foot .big em { font-style: normal; color: var(--lime); }
.foot .meta { font-size: 15px; line-height: 1.7; color: #b9b3a6; }
.foot .meta a { color: var(--paper); font-weight: 600; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .short, .steps { grid-template-columns: 1fr; }
  .short > div { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-items: start; }
  .short svg { width: 72px; margin: 0; grid-row: span 2; }
  .short p { max-width: none; }
  .steps li { display: grid; grid-template-columns: 84px 1fr; align-items: center; }
  .steps li::before { font-size: 104px; margin: 0; }
  .steps p { max-width: none; }
  .section { grid-template-columns: 1fr; }
  .band .title { padding-bottom: 200px; }
  .band .squiggle { width: 300px; right: -30px; bottom: -50px; }
  .brand-row .other { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .squiggle path { animation: none; stroke-dashoffset: 0; }
  .button { transition: none; }
}
