/* Packmile site: tokens from the app (design/tokens.md), light + dark. */
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ground: #EDEFEA;
  --surface: #FFFFFF;
  --ink: #151915;
  --muted: #4A514B;
  --line: #C9CEC6;
  --vis: #F2581B;
  --vis-text: #B83D0A;
  --tint: #FFE4D6;
  --plate: #151915;
  --plate-ring: #262B27;
  --plate-text: #EDEFEA;
  --on-vis: #151915;
  --stripe-gap: #EDEFEA;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101311;
    --surface: #1A1E1B;
    --ink: #ECEFEA;
    --muted: #A9B1AA;
    --line: #323833;
    --vis: #FF6B2C;
    --vis-text: #FF8A57;
    --tint: #3A2418;
    --stripe-gap: #101311;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.55 "Barlow", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vis-text); }
a:hover { color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cond { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 0.98; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 84px); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: 28px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--vis); outline-offset: 3px; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font-family: "Barlow Condensed", sans-serif; font-size: 28px; letter-spacing: 0.5px; }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.bar nav a:hover { color: var(--vis-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 14px;
  background: var(--vis); color: var(--on-vis); text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 1px;
}
.btn:hover { color: var(--on-vis); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.stripe { height: 10px; background: repeating-linear-gradient(90deg, var(--vis) 0 14px, var(--stripe-gap) 14px 18px); border-radius: 5px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 24px 0 64px; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--plate); color: var(--vis); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 1.5px; }
.lead { font-size: 21px; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.proof { font-size: 16px; color: var(--muted); }

/* Hero calculator card: the app's load plate plus the Pandolf numbers */
.calc { flex: 1 1 340px; max-width: 420px; margin: 0 auto; background: var(--surface); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.plate { width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; background: var(--plate); border: 3px solid var(--vis); display: grid; place-items: center; }
.plate > div { width: 168px; height: 168px; border-radius: 50%; border: 9px solid var(--plate-ring); display: grid; place-items: center; align-content: center; }
.plate output { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 64px; line-height: 1; color: var(--plate-text); }
.plate span { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 2.5px; color: var(--vis); }
.calc label { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; }
.calc input[type=range] { width: 100%; accent-color: var(--vis); min-height: 32px; }
.result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result div { background: var(--ground); border-radius: 14px; padding: 12px 14px; }
.result b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 36px; line-height: 1; }
.result small { color: var(--muted); font-size: 14px; }
.result .hot { background: var(--vis); color: var(--on-vis); }
.result .hot small { color: var(--on-vis); }
.calc .note { font-size: 14px; color: var(--muted); }

/* Problem */
.section { padding: 72px 0; }
.section > .wrap > h2 { max-width: 760px; }
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.pains blockquote { margin: 0; background: var(--surface); border-radius: 16px; padding: 22px; font-size: 18px; }
.pains strong { color: var(--vis-text); }

/* Feature rows */
.rows { display: flex; flex-direction: column; gap: 64px; margin-top: 40px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.row:nth-child(even) { flex-direction: row-reverse; }
.row .text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.row .text p { color: var(--muted); max-width: 32rem; }
.row .detail { font-weight: 600; color: var(--ink); }
.shot { flex: 1 1 240px; max-width: 280px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 8px solid var(--plate); background: var(--plate); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: 16px; padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--plate); color: var(--vis); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 24px; margin-bottom: 12px; }
.steps b { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 16px; }

/* Video: click to load, no YouTube request before that */
.video { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.video .text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.player { flex: 1 1 260px; max-width: 320px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--plate); position: relative; }
.player button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.player button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player button span { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--vis); display: grid; place-items: center; }
.player button span svg { width: 36px; height: 36px; fill: var(--on-vis); margin-left: 4px; }
.player button:focus-visible span { outline: 3px solid var(--plate-text); outline-offset: 4px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; font-size: 19px; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* Final band */
.band { background: var(--plate); color: var(--plate-text); border-radius: 28px; padding: 48px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.band p { color: #B9C0B9; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }

/* Privacy page */
.doc { max-width: 760px; padding: 16px 0 48px; }
.doc h1 { font-size: clamp(42px, 6vw, 64px); margin-bottom: 12px; }
.doc h2 { font-size: 30px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .bar nav a { transition: filter .15s, color .15s; }
}
