/* =============================================================================
   Sofia - landing page
   Nordic editorial: paper ground, hairline rules, a serif that carries the voice
   and a sans that stays out of the way. Light only, on purpose. Committing to one
   scheme is what lets the paper tone and the photography stay in register.
   Fonts are self-hosted: an EU consumer page must not hand the visitor's IP to a
   font CDN just to render a heading.
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter var";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Ground and ink */
  --paper: #fbfaf7;
  --paper-warm: #f4f1ea;
  --card: #ffffff;
  --ink: #16202e;
  --ink-soft: #45505f;
  /* Muted ink carries small text - figcaptions, eyebrows, the footer's legal line - so it has
     to clear 4.5:1 on BOTH grounds. #6f7987 measured 4.23:1 on the paper and 3.91:1 on the
     warm band; this measures 5.33:1 and 4.93:1. */
  --ink-mute: #5f6977;
  --rule: #e2ded4;
  --rule-strong: #cdc7ba;

  /* The two exams keep the colours they have inside the app, so the page and the
     product mean the same thing by the same blue and the same teal. */
  --hp: #24408e;
  --mfp: #0f766e;
  --accent: var(--hp);
  --accent-wash: #eef1f9;

  --measure: 34rem;      /* prose column: ~68 characters */
  --page: 68rem;         /* outer grid */
  --wide: 78rem;

  --serif: "Source Serif 4", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-2: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-1: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
  --step0: clamp(1.03rem, 1rem + 0.2vw, 1.14rem);
  --step1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step2: clamp(1.5rem, 1.34rem + 0.8vw, 2.05rem);
  --step3: clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step4: clamp(2.4rem, 1.75rem + 3.1vw, 4.4rem);

  --gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  --band: clamp(4rem, 2.5rem + 6vw, 8.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

/* ---- primitives ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.6rem + 2.4vw, 2.75rem);
}
.wrap--wide { max-width: var(--wide); }
.prose { max-width: var(--measure); }
/* Headings inside a prose column carry no margin of their own (h1-h3 are reset above), so
   without this they sit flush against the paragraph they introduce. */
.prose > h1, .prose > h2, .prose > h3,
.stack-lg h1, .stack-lg h2, .stack-lg h3 { margin-bottom: 0.75rem; }

.band { padding-block: var(--band); }
.band--rule { border-top: 1px solid var(--rule); }
.band--warm { background: var(--paper-warm); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step4); letter-spacing: -0.028em; }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step1); line-height: 1.25; letter-spacing: -0.008em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 5.5rem; }

strong { font-weight: 600; }

.eyebrow {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.4rem;
}
.lead {
  font-family: var(--serif);
  font-size: var(--step1);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.small { font-size: var(--step-1); }
.mute { color: var(--ink-mute); }

/* Hairline rules are the page's main structural device - they carry the
   editorial feel that borders and shadows would make heavy. */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---- masthead ------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.masthead[data-stuck="true"] { border-bottom-color: var(--rule); }
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.wordmark__owl {
  width: 1.9rem;
  height: 1.9rem;
  align-self: center;
}
.wordmark span {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.masthead__spacer { flex: 1; }
.login-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--step-1);
  white-space: nowrap;
}

.langswitch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.langswitch a {
  padding: 0.32rem 0.72rem;
  text-decoration: none;
  color: var(--ink-mute);
}
.langswitch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.langswitch a:not([aria-current="true"]):hover { background: var(--paper-warm); color: var(--ink); }
.langswitch a:focus-visible { outline-offset: -3px; }
.langswitch a[aria-current="true"]:focus-visible { outline-color: var(--paper); }
.langswitch a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  padding: 0.78rem 1.35rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-mute); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0; }
/* One centred column: eyebrow, two-line heading, lead, one row of actions, one quiet line. Balanced at any width. */
.hero__intro { max-width: 46rem; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: 1.25rem; text-wrap: balance; }
.hero .lead { max-width: 38rem; margin-inline: auto; text-wrap: pretty; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}
.hero__note { margin: 1rem auto 0; max-width: 34rem; font-size: var(--step-1); color: var(--ink-soft); text-wrap: balance; }
.offer__price { margin: 0.65rem 0 0; font-size: var(--step-1); color: var(--ink-soft); }
.textlink { padding-block: 0.6rem; font-size: var(--step-1); }
.section-note { margin-top: 1.5rem; max-width: 54rem; }
.mono { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }

.hero__figure { margin: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 0; }
.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ---- figures ------------------------------------------------------------- */

figure { margin: 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
figcaption {
  font-size: var(--step-2);
  color: var(--ink-mute);
  margin-top: 0.7rem;
  letter-spacing: 0.01em;
  max-width: 26rem;
}

/* Alternating text/image band. */
.split {
  display: grid;
  gap: var(--gap);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 58rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 1rem + 5vw, 5rem); }
  .split--flip > figure { order: -1; }
}
.split h2 { margin-bottom: 1.1rem; }

/* ---- section headings ---------------------------------------------------- */

.sectionhead { margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem); }
.sectionhead h2 { margin-bottom: 1rem; }
.sectionhead p { max-width: var(--measure); color: var(--ink-soft); }

/* ---- the daily loop: numbered editorial list ----------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-mute);
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
/* Both text children are placed explicitly. Left to auto-placement, the counter and the
   heading fill row 1 and the paragraph wraps to row 2 COLUMN 1 - the 3.25rem counter column -
   so on any viewport below 58rem the body text rendered 52px wide, one word per line. It was
   invisible at desktop width, where the third column gives every child its own cell. */
.steps h3 { grid-column: 2; margin-bottom: 0.35rem; }
.steps p { grid-column: 2; color: var(--ink-soft); max-width: var(--measure); }
@media (min-width: 58rem) {
  .steps > li { grid-template-columns: 3.75rem minmax(0, 14rem) minmax(0, 1fr); align-items: baseline; gap: 0 2rem; }
  .steps h3 { grid-column: 2; margin-bottom: 0; }
  .steps p { grid-column: 3; }
}
@media (max-width: 57.99rem) {
  .steps > li { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 0.75rem; }
  .steps > li::before { font-size: 1.25rem; }
}

/* ---- feature cards ------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  grid-template-columns: 1fr;
  /* A <ul> carries a 40px default padding-inline-start. Unset, it pushed every card 40px
     right of its own container and - because this element's background IS the hairline
     colour - painted that padding as a grey band down the left of the strip, at every
     width. Any list used as a layout container has to zero this. */
  margin: 0;
  padding: 0;
}
.cards > li {
  background: var(--paper);
  padding: 1.5rem 0;
  list-style: none;
}
@media (min-width: 66rem) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--3 > li { padding: 2rem; }
  .cards--3 > li:first-child { padding-left: 0; }
  .cards--3 > li:last-child { padding-right: 0; }
}
.cards h3 {
  font-size: var(--step1);
  line-height: 1.25;
  letter-spacing: -0.008em;
  margin-bottom: 0.55rem;
}
.cards p { color: var(--ink-soft); font-size: var(--step-1); }

/* ---- exam tiles ---------------------------------------------------------- */

.exams { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .exams { grid-template-columns: repeat(2, 1fr); } }
.exam {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--tint, var(--accent));
  border-radius: 2px;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
}
.exam--hp { --tint: var(--hp); }
.exam--mfp { --tint: var(--mfp); }
.exam__tag {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint);
  margin-bottom: 0.85rem;
}
.exam h3 { margin-bottom: 0.7rem; }
.exam p { color: var(--ink-soft); font-size: var(--step-1); }
.exam dl { margin: 0.25rem 0 1.1rem; display: grid; gap: 0; }
.exam dl > div {
  display: block;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
}
.exam dt { color: var(--ink-mute); }
.exam dd { margin: 0.15rem 0 0; text-align: left; font-weight: 500; }
.exam__note { margin-top: auto; }
.figure--after { margin-top: var(--gap); }

/* ---- pricing ------------------------------------------------------------- */

.pricing { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
}
.price-card h3 { font-size: var(--step2); margin-bottom: 1rem; }
.price-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-family: var(--serif);
  font-size: var(--step3);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.price-card__price span { font-family: var(--sans); font-size: var(--step-1); font-weight: 400; }
.included { flex: 1; margin: 0.5rem 0 1.5rem; padding-left: 1.2rem; font-size: var(--step-1); }
.included li + li { margin-top: 0.65rem; }
.price-card .btn { align-self: flex-start; }
@media (min-width: 48rem) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- pull quote ---------------------------------------------------------- */

.pull {
  font-family: var(--serif);
  font-size: var(--step2);
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 40rem;
  margin: 0;
}
.pull cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
}

/* ---- faq ----------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
}
.faq summary {
  font-family: var(--serif);
  font-size: var(--step1);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
  letter-spacing: -0.008em;
  padding: 1.1rem 2.5rem 1.1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--ink-mute);
  border-bottom: 1.5px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq .faq__body { padding: 0 0 1.4rem; max-width: var(--measure); color: var(--ink-soft); }

/* ---- footer -------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 3rem 4rem;
  font-size: var(--step-1);
  color: var(--ink-mute);
}
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: baseline; }
.footer__grid > :last-child { margin-left: auto; }
.footer a { color: var(--ink-soft); }
.footer__legal { margin-top: 1.5rem; }
.footer__legal p { max-width: 46rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.25rem; }
.footer__links a { display: inline-block; padding-block: 0.55rem; }
.footer__links a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer__legal { overflow-wrap: anywhere; }
.seller-id { white-space: nowrap; }

/* ---- legal pages --------------------------------------------------------- */
/* A plain article: one h1 at h2 size, section headings at h3 size. */
.article h1 { font-size: var(--step3); }
.article h2 { font-size: var(--step1); }
.article ul { padding-left: 1.25rem; }
.article li + li { margin-top: 0.6rem; }
.article a { overflow-wrap: anywhere; }
.withdrawal-form { border: 1px solid var(--rule-strong); padding: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1rem; font-size: var(--step-1); }
.brief { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.article--short { font-size: 0.95rem; line-height: 1.5; }
.article--short h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2rem); margin-bottom: 1rem; }
.article--short .brief-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.article--short li + li { margin-top: 0.75rem; }

/* ---- utilities ----------------------------------------------------------- */

.stack-lg > * + * { margin-top: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skiplink {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 2px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skiplink:focus { top: 0.75rem; }

/* ---- very narrow phones (iPhone SE and similar, 320px) ------------------- */
/* Leave room for login and language links, and give the step text a wider column. */
@media (max-width: 24rem) {
  .wordmark span { display: none; }
  .masthead__inner { gap: 0.75rem; }
}

@media print {
  .masthead, .langswitch, .skiplink { display: none; }
  body { background: #fff; }
  .band { padding-block: 2rem; }
  .footer { padding-block: 1.5rem; }
  .withdrawal-form { break-inside: avoid; }
}
