:root {
  --ink: #0f172a;
  --muted: #334155;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #ded8cf;
  --accent: #c4552e;
  --accent-dark: #a94726;
  --teal: #10524a;
  --teal-dark: #0c403a;
  --slate: #22343f;
  --alternate: #efe9e0;
  --radius: 22px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1120px, calc(100% - 32px)); margin: auto; padding: 24px 0 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 18px/1 Manrope, sans-serif; }
.mark { width: 34px; aspect-ratio: 1; border: 7px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper); }
.time { color: var(--muted); font-size: 14px; }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; min-height: calc(100vh - 110px); padding: 70px 0; }
.eyebrow { display: inline-block; margin-bottom: 20px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0 0 24px; font-size: clamp(44px, 6.2vw, 82px); line-height: .98; }
.lead { max-width: 700px; margin: 0 0 30px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s; }
.primary { color: white; background: var(--accent); box-shadow: 0 12px 30px rgba(196,85,46,.18); }
.primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.preview { padding: 30px; border: 1px solid var(--line); border-radius: 30px; background: var(--card); box-shadow: 0 24px 80px rgba(34,52,63,.08); }
.preview-title { margin: 0 0 24px; font: 800 13px/1 Manrope; letter-spacing: .12em; text-transform: uppercase; }
.area-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.area-row b { color: var(--card-color); font: 800 18px/1 Manrope; }
.area-row strong { display: block; margin-bottom: 5px; font: 800 18px/1.2 Manrope; }
.area-row span { color: var(--muted); font-size: 14px; }

.assessment { width: min(820px, calc(100% - 32px)); margin: auto; padding: 24px 0 64px; }
.progress-meta { display: flex; justify-content: space-between; margin: 52px 0 12px; color: var(--muted); font-size: 14px; }
.progress { height: 6px; overflow: hidden; border-radius: 99px; background: #ded8cf; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.question-card { margin-top: 54px; }
.section-label { color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.question-card h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; }
.hint { min-height: 27px; margin: -8px 0 30px; color: var(--muted); font-size: 17px; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer { min-height: 68px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--ink); cursor: pointer; text-align: left; font-weight: 700; }
.answer:hover, .answer:focus-visible { border-color: var(--accent); outline: 3px solid rgba(196,85,46,.17); }
.back { margin-top: 28px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }

.details, .results { width: min(930px, calc(100% - 32px)); margin: auto; padding: 24px 0 72px; }
.details-card { max-width: 760px; margin: 60px auto 0; padding: clamp(24px, 5vw, 52px); border-radius: 28px; background: var(--card); box-shadow: 0 24px 80px rgba(34,52,63,.08); }
.details-card h1 { font-size: clamp(38px, 6vw, 62px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; }
input, select { min-height: 50px; width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); }
input:focus, select:focus { border-color: var(--accent); outline: 3px solid rgba(196,85,46,.17); }
.privacy { color: var(--muted); font-size: 13px; line-height: 1.5; }
.submit-error { margin-top: 1rem; color: #b42318; font-weight: 700; }

.results-hero { margin-top: 24px; padding: clamp(34px, 7vw, 74px); border-radius: 30px; color: white; background: var(--teal); overflow: hidden; position: relative; }
.results-hero::after { content: ""; position: absolute; width: 430px; aspect-ratio: 1; border: 55px solid rgba(255,255,255,.025); border-radius: 50%; right: -120px; top: -210px; }
.results-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; position: relative; z-index: 1; }
.results h1 { margin: 6px 0 0; font-size: clamp(42px, 7vw, 72px); }
.results-hero .lead { color: rgba(255,255,255,.78); }
.score-ring { display: grid; place-items: center; width: 160px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) var(--score), rgba(255,255,255,.12) 0); position: relative; }
.score-ring::after { content: ""; width: 122px; aspect-ratio: 1; border-radius: 50%; background: var(--teal); }
.score-ring span { position: absolute; z-index: 1; font: 800 34px/1 Manrope; }
.results-section { padding: 58px 0 12px; }
.results-section > h2 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 48px); }
.results-section > .intro { max-width: 720px; color: var(--muted); line-height: 1.6; }
.notice { margin: 26px 0 34px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--alternate); line-height: 1.6; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.result-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.result-card .section-label { color: var(--card-color); }
.result-card h2 { margin: 6px 0 6px; font-size: 25px; }
.result-card p { color: var(--muted); line-height: 1.55; }
.meter { height: 9px; margin: 18px 0; overflow: hidden; border-radius: 99px; background: #e4ded4; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--card-color, var(--accent)); }
.coach-banner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 34px 0; padding: 30px; border-radius: 22px; color: var(--ink); background: var(--alternate); border: 1px solid var(--line); }
.coach-banner h3 { margin: 6px 0 8px; font-size: 27px; }
.detail-card { margin-top: 20px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--card-color); }
.detail-card header { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: start; }
.detail-card .number { color: var(--card-color); font: 800 18px/1 Manrope; }
.detail-card h3 { margin: 0; font-size: 28px; }
.detail-card .status { margin: 24px 0 12px; font: 800 18px/1.3 Manrope; }
.detail-card ul { margin: 8px 0 22px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.focus { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; margin-top: 30px; }
.focus-card, .moves { padding: clamp(25px,4vw,42px); border-radius: 24px; }
.focus-card { color: white; background: var(--slate); }
.focus-card p { color: rgba(255,255,255,.78); line-height: 1.65; }
.moves { background: var(--alternate); border: 1px solid var(--line); }
.move { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(34,52,63,.16); }
.move b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; }
.offer { margin-top: 58px; padding: clamp(34px, 7vw, 70px); border-radius: 30px; color: white; background: var(--teal); }
.offer h2 { max-width: 780px; margin: 8px 0 18px; font-size: clamp(34px, 5vw, 54px); }
.offer > p { max-width: 780px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.65; }
.offer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 32px 0; }
.offer-grid article { padding: 20px; border-radius: 17px; background: rgba(255,255,255,.07); }
.offer-grid h3 { margin: 0 0 8px; font-size: 18px; }
.offer-grid p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.5; }
.offer .primary { background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 0; }
  .preview { order: 2; }
  .answers, .form-grid, .result-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .results-head, .coach-banner, .focus { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .score-ring { width: 130px; }
}

@media print {
  .topbar, .actions { display: none; }
  body, :root { background: white; }
  .results { width: 100%; padding: 0; }
  .result-card { break-inside: avoid; }
}
