/* New Page quiz. Brand: a fresh sheet of ruled paper. Ink text, a red margin,
   and a highlighter for the one thing on each screen that matters. */
:root {
  --ink: #15203B;
  --muted: #56607A;
  --paper: #FFFFFF;
  --paper-2: #F5F7FB;
  --rule: #DCE3EE;
  --rule-line: #EDF1F7;
  --margin: #FF7A66;
  --note: #E0523D;
  --hl: #D4F36B;
  --link: #1F4FD8;
  --error: #B42318;
  --display: 'Familjen Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: Figtree, ui-sans-serif, system-ui, sans-serif;
  --hand: Caveat, 'Segoe Print', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--link); }
a:hover { color: var(--ink); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }

.paper {
  position: relative;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule-line) 31px, var(--rule-line) 32px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.margin-line {
  position: absolute; top: 0; bottom: 0;
  left: max(32px, calc(50% - 300px));
  width: 2px; background: var(--margin); opacity: .85;
}
.col {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: max(48px, calc(16px + env(safe-area-inset-left, 0px) + 32px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 680px) {
  .col { padding-left: 64px; padding-right: 32px; }
  .margin-line { left: calc(50% - 300px + 36px); }
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in {
  max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px max(20px, env(safe-area-inset-right, 0px)) 10px 48px;
}
@media (min-width: 680px) { .top-in { padding-left: 64px; padding-right: 32px; } }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 700; font-size: clamp(15px, 5vw, 21px); letter-spacing: -.4px; white-space: nowrap; }
@media (max-width: 359px) { .top-in { gap: 8px; } .top-link, .top-link.plain { font-size: 13px; } }
.count { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { max-width: 600px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 10px 48px; }
@media (min-width: 680px) { .progress { padding-left: 64px; padding-right: 32px; } }
.progress-track { height: 8px; border-radius: 99px; background: #E9EEF6; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--ink); width: 0; transition: width .25s ease; }

/* Screens */
.screen { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 48px; }
/* Only when moving to a new screen, not on every re-render within one. */
.screen.enter { animation: in .25s ease both; }
@keyframes in { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.enter { animation: none; } .progress-bar { transition: none; } }

.note { font-family: var(--hand); font-weight: 600; color: var(--note); font-size: 28px; line-height: 1; transform: rotate(-3deg); transform-origin: left center; align-self: flex-start; margin: 8px 0 -4px; }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 9vw, 52px); line-height: 1.04; letter-spacing: -1px; }
h2 { font-size: clamp(26px, 6.5vw, 32px); line-height: 1.12; letter-spacing: -.5px; }
.hl { background: linear-gradient(transparent 56%, var(--hlc, var(--hl)) 56%, var(--hlc, var(--hl)) 92%, transparent 92%); }
p { margin: 0; }
.lead { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 10px 20px; border-radius: 14px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 19px; text-decoration: none;
}
.btn-primary { background: var(--ink); color: #FFFFFF; box-shadow: 0 4px 0 var(--btn-shadow, var(--hl)); }
.btn-primary:hover { color: #FFFFFF; background: #22305A; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--btn-shadow, var(--hl)); }
.btn-secondary { background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); font-size: 17px; min-height: 52px; }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { align-self: flex-start; min-height: 44px; min-width: 44px; border: 0; background: transparent; padding: 0 6px; margin: 0 -6px; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.link-btn.blue { color: var(--link); text-decoration: underline; }
.inline-link { border: 0; background: none; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }

/* Answers */
.answers { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.answer {
  min-height: 56px; text-align: left; padding: 12px 18px; border-radius: 14px; cursor: pointer;
  background: #FFFFFF; border: 1.5px solid var(--rule); font-weight: 500; font-size: 17px; line-height: 1.3;
  transition: border-color .12s ease, background .12s ease;
}
.answer:hover { border-color: var(--ink); }
.answer[aria-pressed="true"] { background: var(--hl); border: 2px solid var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 14px; border-radius: 99px; cursor: pointer;
  background: #FFFFFF; border: 1.5px solid var(--rule); font-size: 15px; font-weight: 500;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--hl); border: 2px solid var(--ink); font-weight: 700; }

/* Quadrants */
.grid-wrap { display: flex; flex-direction: column; gap: 6px; }
.grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; height: 250px; }
.grid .cell { border-radius: 12px; padding: 10px 12px; font-family: var(--display); font-weight: 700; font-size: 15px; display: flex; }
.grid .cell.bottom { align-items: flex-end; }
.dot {
  position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px var(--ink);
  transform: translate(-50%, 50%);
}
.axis { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.axis.right { align-self: flex-end; }

/* Cards */
.card { background: #FFFFFF; border: 1.5px solid var(--rule); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.soft { background: var(--paper-2); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.np-card { background: var(--paper-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.np-card ul { margin: 0; padding-left: 20px; font-size: 16px; }
.np-card li { margin-bottom: 4px; }
.offer-title { font-family: var(--display); font-weight: 700; font-size: 19px; }
.call-card { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.call-card .offer-title { font-size: 21px; }
.services { display: flex; flex-direction: column; gap: 8px; }
.service { background: #FFFFFF; border: 1.5px solid var(--rule); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.service b { display: block; font-size: 16px; }
.service span { font-size: 13px; color: var(--muted); }
.service a { font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.plan-week { display: flex; flex-direction: column; gap: 4px; }
.plan-week ul { margin: 0; padding-left: 20px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  min-height: 50px; border: 1.5px solid #C9D3E3; border-radius: 12px; padding: 10px 14px; background: #FFFFFF; font-size: 17px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.error { color: var(--error); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding-top: 8px; padding-bottom: 32px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.foot a { color: var(--muted); }

/* Program page (/) */
.top-link { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--hl); padding-bottom: 1px; text-align: right; }
.top-link:hover { color: var(--ink); background: var(--hl); }
.prog-hero { padding-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { flex: 1 1 220px; }
.prog-section { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; border-top: 1.5px dashed var(--rule); scroll-margin-top: 72px; }
.prog-section p { max-width: 62ch; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 18px; height: 10px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); transform-origin: left top; translate: 3px 6px; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--hl); border: 2px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .included { grid-template-columns: minmax(0, 1fr); } }
.inc { background: #FFFFFF; border: 1.5px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inc b { font-family: var(--display); font-size: 17px; }
.inc span { font-size: 15px; color: var(--muted); }
.price-card { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 0 var(--hl); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: #FFFFFF; border: 1.5px solid var(--rule); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 52px; display: flex; align-items: center; list-style-position: inside; }
.faq details p { padding: 0 0 14px; }
.prog-final { align-items: flex-start; }

/* Wide layout for the program page on larger screens. */
.sec-head, .sec-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) {
  .paper.wide .col, .paper.wide .top-in { max-width: 1120px; }
  .paper.wide .col { padding-left: 88px; padding-right: 40px; }
  .paper.wide .top-in { padding-left: 88px; padding-right: 40px; }
  .paper.wide .margin-line { left: max(40px, calc(50% - 560px + 52px)); }
  .prog-hero { max-width: 780px; padding-top: 48px; padding-bottom: 56px; }
  .prog-hero h1 { font-size: 64px; }
  .prog-hero .lead { font-size: 20px; max-width: 640px; }
  .cta-row .btn { flex: 0 1 auto; padding-left: 28px; padding-right: 28px; }
  .prog-section { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 56px; padding: 48px 0; }
  .prog-section h2 { font-size: 30px; }
  .included { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prog-final { display: flex; align-items: flex-start; padding-bottom: 64px; }
}
@media (min-width: 900px) { #wl-form, #wl-done { max-width: 520px; } }

/* Testimonials */
.quote { margin: 0; background: #fff; border: 1.5px solid var(--rule); border-left: 5px solid var(--hl); border-radius: 14px; padding: 18px 20px; }
.quote p { margin: 0 0 10px; font-size: 17px; line-height: 1.55; }
.quote cite { font-style: normal; font-weight: 700; font-size: 14px; color: var(--muted); }

/* Very narrow effective widths (a phone at 150% browser zoom): keep the icon, drop the brand text. */
@media (max-width: 300px) { .brand span { display: none; } }
