/* Preu Coach · direction A, Cuaderno: warm paper, serif titles, one navy accent. */
:root {
  --paper: #F6F0E3;
  --card: #FBF7EE;
  --sunk: #EFE7D6;
  --ink: #2E2018;
  --body: #4A3A2E;
  --soft: #7A6651;
  --rule: #DCCFB6;
  --navy: #22406E;
  --navy-dark: #172D50;
  --navy-tint: #E6EAF1;
  --wrong: #A23B2E;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.meta { font-size: 15px; color: var(--soft); }
.note { font-size: 15px; color: var(--soft); max-width: 60ch; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); font: 600 24px/1 var(--serif); }
.brand span { font: 400 12px/1 var(--mono); color: var(--soft); }
.links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--navy); text-decoration: underline; }

/* Buttons */
.button { font: 600 17px/1 var(--sans); background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 16px 24px; min-height: 48px; cursor: pointer; }
.button:hover { background: var(--navy-dark); }
.button.light { background: #fff; color: var(--navy); }
.button.light:hover { background: var(--navy-tint); }
.link-button { font: 600 15px/1 var(--sans); background: none; border: 0; padding: 4px 0; color: var(--navy); text-decoration: underline; cursor: pointer; align-self: flex-start; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.015em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 34em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* The live question */
.question { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.q-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.stem { font: 400 21px/1.45 var(--serif); }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: 400 16px/1.3 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; min-height: 48px; cursor: pointer; }
.option:hover { border-color: var(--soft); }
.option .key { font-family: var(--mono); color: var(--soft); }
.option .text { flex: 1; }
.option .tag { font-size: 14px; font-weight: 600; }
.option.is-right { border: 1.5px solid var(--navy); background: var(--navy-tint); }
.option.is-right .key, .option.is-right .tag { color: var(--navy); }
.option.is-wrong { border: 1.5px solid var(--wrong); }
.option.is-wrong .key, .option.is-wrong .tag { color: var(--wrong); }
.feedback { display: flex; flex-direction: column; gap: 14px; }
.feedback[hidden] { display: none; }
.why { font-size: 16px; line-height: 1.5; color: var(--body); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; }
.why strong { color: var(--wrong); }
.why.ok strong { color: var(--navy); }
.steps { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); border-top: 1px solid var(--rule); padding-top: 14px; }
.steps .right { font-weight: 600; color: var(--navy); }
.steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.shortcut strong { color: var(--ink); }
.q-foot { font-size: 14px; color: var(--soft); border-top: 1px solid var(--rule); padding-top: 14px; }
.q-foot[hidden] { display: none; }

/* Bands and sections */
.band { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band > .wrap { padding-top: 64px; padding-bottom: 64px; }
section.wrap.stack { padding-top: 80px; padding-bottom: 80px; gap: 32px; }
h2 { font-size: clamp(30px, 4vw, 38px); line-height: 1.15; }
h3 { font-size: 24px; }
.head { display: flex; flex-direction: column; gap: 10px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; margin-top: 18px; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--navy); padding-top: 18px; }
.step .num { font: 400 13px/1 var(--mono); color: var(--navy); }
.step p { font-size: 16px; color: var(--body); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 32px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
figure img { border: 1px solid var(--rule); border-radius: 10px; }
figcaption { font-size: 15px; color: var(--body); max-width: 56ch; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: start; }
.two p { color: var(--body); }
.estimate { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; }
.range { font: 600 52px/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); }
th:last-child, td:last-child { text-align: right; }
td { padding: 12px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
td:last-child { font-family: var(--mono); }

.price { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1.5px solid var(--navy); border-radius: 12px; padding: 28px; max-width: 560px; }
.price > p:first-child { font: 600 22px/1.3 var(--serif); }
.placeholder { font: 500 15px/1 var(--mono); color: var(--navy); }

.closing { padding-bottom: 80px; }
.closing-card { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 14px; padding: 36px; }
.closing-line { font: 600 30px/1.2 var(--serif); max-width: 22ch; }
.closing-card .note { color: #DCE3EF; }

.foot { border-top: 1px solid var(--rule); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--soft); }

@media (max-width: 560px) {
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .question { padding: 20px; }
  .links { gap: 16px; }
  .closing-card { padding: 28px; }
}
