/* Pouce landing page. Light tokens from DESIGN.md (flat mono look, PDR-0033): white paper,
   black ink, sage and green are the only voice, no shadow, no gradient. The page stays light
   whatever the device setting.
   The legal pages keep styles.css. */

@font-face {
  font-family: "Archivo";
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --paper: #FFFFFF;
  --paper-raised: #F4F4F2;
  --rule: #E2E2E2;
  --rule-strong: #BDBDBD;
  --ink: #000000;
  --ink-secondary: #6E6E6E;
  --ink-faint: #BDBDBD;
  --green: #2F7244;
  --sage: #6EA37C;
  --terracotta: #C96A45;
  --ochre: #D2A54A;
  --mauve: #A68BBF;
  --teal: #6FA8A6;
  --slate: #7F9CC6;
  --frame: #000000;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, "SF Mono", Consolas, monospace;
  color-scheme: light;
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.overline { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-secondary); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }

/* Header and footer */
header.site { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; text-decoration: none; }
.brand-icon { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--rule); display: block; }
.final-icon { width: 112px; height: 112px; border-radius: 26px; border: 1px solid var(--rule); display: block; }
footer.site { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--ink-secondary); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
/* Store buttons follow the official badges: black, thin grey outline, white text. */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 12px; background: #000000; color: #FFFFFF; border: 1px solid #A6A6A6; text-decoration: none; }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11px; line-height: 1.2; opacity: .8; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 700; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-secondary); }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* The situation */
.situation { padding-block: 56px 72px; }
.situation .wrap { display: grid; gap: 32px; }
.orders { display: grid; justify-items: start; gap: .04em; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-size: clamp(44px, 9.5vw, 112px); }
.order { display: block; transform: rotate(var(--tilt)); }
.order:nth-child(1) { --tilt: -2deg; }
.order:nth-child(2) { --tilt: 1.5deg; color: var(--ink-secondary); margin-left: .5em; }
.order:nth-child(3) { --tilt: -1deg; color: var(--ink-faint); margin-left: 1em; }
.question { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; max-width: 22ch; }
.question em { font-style: normal; color: var(--terracotta); } /* Large bold text: 3.7:1 on white passes AA for large text. */
.situation-copy { display: grid; gap: 22px; max-width: 640px; }
.answer { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-secondary); max-width: 40ch; }
.answer strong { color: var(--ink); font-weight: 600; }

/* Sections */
section.block { padding-block: 72px; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.row + .row { margin-top: 72px; }
.row.flip .visual { order: -1; }
.text { display: grid; gap: 18px; align-content: center; min-width: 0; }
.text .body { color: var(--ink-secondary); font-size: 18px; max-width: 42ch; }
.text .body strong { color: var(--ink); font-weight: 600; }
.tip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 14px; border-radius: 9999px; background: var(--paper-raised); border: 1px solid var(--rule); font-size: 15px; font-weight: 600; }
.tip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.visual { display: flex; justify-content: center; align-items: flex-start; min-width: 0; }
/* Flat tile colours of the charte behind the screens, as in the store screenshots (PDR-0043). */
.panel { background: var(--panel); border-radius: 14px; padding: 40px 28px; }
.panel-teal { --panel: var(--teal); }
.panel-mauve { --panel: var(--mauve); }
.panel-ochre { --panel: var(--ochre); }
.panel-sage { --panel: var(--sage); }

/* Phone: the whole capture, never cropped */
.phone { width: 100%; max-width: 250px; border: 6px solid var(--frame); border-radius: 34px; overflow: hidden; background: #FFFFFF; }
.phone img { display: block; width: 100%; height: auto; }
.pair { gap: 20px; }
.pair .phone { flex: 1 1 0; min-width: 0; max-width: 230px; }
.pair .phone:last-child { margin-top: 48px; }

/* Missions card, drawn with the charte */
.missions-card { width: 100%; max-width: 380px; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 18px 8px; }
.missions-card .overline { margin-bottom: 10px; }
.mission { display: flex; align-items: center; gap: 14px; min-height: 60px; border-top: 1px solid var(--rule); }
.mission .tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--terracotta); }
.mission .tile svg { width: 24px; height: 24px; fill: none; stroke: #000000; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mission.add span { color: var(--ink-secondary); }
.mission.add .tile { background: transparent; border: 1.5px dashed var(--rule-strong); }

/* Differences */
.diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 40px 0 0; padding: 0; }
.diffs li { padding: 24px; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 14px; display: grid; gap: 10px; align-content: start; }
.diffs .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #000000; background: var(--tile); }
.diffs li:nth-child(1) { --tile: var(--terracotta); }
.diffs li:nth-child(2) { --tile: var(--ochre); }
.diffs li:nth-child(3) { --tile: var(--slate); }
.diffs h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.diffs p { color: var(--ink-secondary); font-size: 16px; }

/* Final call to action */
.final .wrap { display: grid; gap: 22px; justify-items: start; }
.final h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.035em; max-width: 16ch; }

@media (max-width: 859px) {
  .row { grid-template-columns: 1fr; gap: 36px; }
  .row.flip .visual { order: 0; }
  .diffs { grid-template-columns: 1fr; }
  .pair .phone:last-child { margin-top: 32px; }
}
@media (max-width: 560px) {
  .store { flex: 1 1 100%; }
}

/* Opening sequence. landing.js adds .intro to <html> only when motion is allowed, so without
   JavaScript or with reduced motion the page shows its final state at once.
   1. The three orders fall in one after the other and land slightly tilted.
   2. The question slides in.
   3. .revealed fades the rest of the page in. */
.intro .order { animation: fall 720ms cubic-bezier(.3, 1.35, .55, 1) both; animation-delay: calc(150ms + var(--i) * 420ms); }
.intro .order:nth-child(1) { --i: 0; }
.intro .order:nth-child(2) { --i: 1; }
.intro .order:nth-child(3) { --i: 2; }
.intro .question { animation: enter 600ms cubic-bezier(.2, .8, .2, 1) 1.55s both; }
.intro .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1); }
.intro.revealed .reveal { opacity: 1; transform: none; }
.intro.revealed .situation-copy { transition-delay: 0ms; }
.intro.revealed main > .reveal { transition-delay: 120ms; }

@keyframes fall {
  from { transform: translateY(-110vh) rotate(calc(var(--tilt) * -4)); }
  to { transform: translateY(0) rotate(var(--tilt)); }
}
@keyframes enter {
  from { opacity: 0; transform: translateX(-8vw); }
  to { opacity: 1; transform: none; }
}
