/* Layout: 12 column grid. Photo, headline, copy, then a Swiss table. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
@media (min-width: 48rem) { .wrap { padding-left: max(2.5rem, env(safe-area-inset-left, 0px)); padding-right: max(2.5rem, env(safe-area-inset-right, 0px)); } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.copy > * + * { margin-top: 1em; }
.cols2 { columns: 2 18rem; column-gap: calc(var(--gap) * 1.5); }
.cols2 > p { break-inside: avoid-column; }
.cols2 > * + * { margin-top: 0; padding-top: 1em; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 1rem; border-bottom: 2px solid var(--ink); }
.top__nav { display: flex; align-items: center; gap: 2rem; font: 600 0.975rem/1 var(--sans); }
.top__nav a:not(.btn) { text-decoration: none; }
.top__nav a:not(.btn):hover { color: var(--red); }
@media (max-width: 44rem) { .top__nav a:not(.btn) { display: none; } }

/* Photo with a figure caption */
.fig { margin-top: 1.5rem; }
.fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fig--tall img { aspect-ratio: 4 / 5; }
.fig figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; font: 600 0.8rem/1.3 var(--sans); color: var(--ink-2); }
@media (max-width: 40rem) { .fig img { aspect-ratio: 4 / 3; } .fig { margin-inline: calc(-1 * max(1.25rem, env(safe-area-inset-left, 0px))); } .fig figcaption { padding-inline: 1.25rem; } }

/* Hero */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero__title { font-size: var(--fs-hero); grid-column: 1 / -1; max-width: 11.5em; }
.hero__body { margin-top: clamp(1.75rem, 4vw, 3rem); row-gap: 1.5rem; align-items: start; }
.hero__kick { grid-column: 1 / 3; padding-top: 0.3rem; }
.hero__copy { grid-column: 3 / 10; }
.hero__cta { grid-column: 10 / 13; display: grid; gap: 0.75rem; justify-items: start; align-content: start; }
@media (max-width: 64rem) { .hero__kick, .hero__copy, .hero__cta { grid-column: 1 / -1; } .hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; } }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; }

/* Sections */
.section { padding-top: clamp(4.5rem, 10vw, 8rem); }
.sec-bar { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 2px solid var(--ink); font: 700 var(--fs-small)/1.2 var(--sans); }
.sec-bar span:last-child { color: var(--ink-2); text-align: right; }
.sec-title { font-size: var(--fs-h2); margin-top: clamp(1.5rem, 4vw, 2.75rem); max-width: 13em; }
.sec-body { margin-top: clamp(2rem, 5vw, 3.5rem); }
h3 { font: 800 var(--fs-h3)/1.1 var(--sans); letter-spacing: -0.03em; }

/* Swiss table rows */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 0.75rem; padding-block: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--rule); align-items: baseline; }
.row__tag { grid-column: 1 / 3; font: 700 var(--fs-small)/1.3 var(--sans); color: var(--red); }
.row__main { grid-column: 3 / 10; min-width: 0; }
.row__side { grid-column: 10 / 13; text-align: right; font: 800 clamp(1.4rem, 2.4vw, 2rem)/1 var(--sans); letter-spacing: -0.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.row__side small { display: block; margin-top: 0.35rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.row__main > * + * { margin-top: 0.75rem; }
@media (max-width: 48rem) { .row__tag, .row__main, .row__side { grid-column: 1 / -1; text-align: left; } }

/* Menu (homepage) */
.menu .row__main .hl { font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1; }
.menu .row__main .hl a { text-decoration: none; }
.menu .row__main .hl a:hover { color: var(--red); }
.menu .desc { color: var(--ink-2); max-width: 36em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem 2rem; padding-top: 0.75rem; }
.steps dt { font: 800 1.05rem/1.2 var(--sans); margin-bottom: 0.3rem; }
.steps dd { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* Statements: the formulas, typeset */
.stmt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1rem; padding-block: clamp(1.5rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--rule); align-items: start; }
.stmt__eq { grid-column: 1 / 7; font: 800 clamp(1.6rem, 3.2vw, 2.75rem)/1.05 var(--sans); letter-spacing: -0.035em; color: var(--blue); min-width: 0; }
.stmt__eq b { color: var(--red); font-weight: 800; }
.stmt__tx { grid-column: 7 / 13; min-width: 0; }
.stmt__tx > * + * { margin-top: 0.75rem; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: 0.62em; line-height: 1.15; margin-left: 0.15em; }
.frac > :first-child { padding: 0 0.2em 0.12em; border-bottom: 0.09em solid currentColor; }
.frac > :last-child { padding: 0.12em 0.2em 0; }
@media (max-width: 52rem) { .stmt__eq, .stmt__tx { grid-column: 1 / -1; } }

/* Experiment */
.lab { padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 2px solid var(--ink); display: grid; gap: 1.5rem; }
.lab__q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em 0.4em; font: 800 clamp(1.5rem, 3.6vw, 2.9rem)/1.25 var(--sans); letter-spacing: -0.035em; }
.blank { font: inherit; color: var(--red); background: transparent; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; padding: 0 0.1em; min-width: 0; max-width: 100%; field-sizing: content; letter-spacing: -0.035em; }
.blank::placeholder { color: var(--ink-2); opacity: 0.55; }
.blank:focus-visible { outline: none; border-bottom-color: var(--red); }
.lab__hint { font: 600 var(--fs-small)/1.4 var(--sans); color: var(--ink-2); margin-top: -0.5rem; }
.lab__go { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.read { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.5rem var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.read li { padding-top: 1rem; border-top: 2px solid var(--ink); }
.read h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.read p { font-size: 1rem; color: var(--ink-2); }

/* Method plan */
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem var(--gap); border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.plan li > * + * { margin-top: 0.75rem; }
.plan__when { font: 800 clamp(2rem, 3.6vw, 3rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.plan__when small { display: block; font-size: 0.32em; letter-spacing: 0; color: var(--ink-2); margin-top: 0.4rem; font-weight: 700; }
.plan__weekly { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1rem; border-top: 1px solid var(--rule); max-width: 46rem; }
.plan__weekly b { font-family: var(--sans); color: var(--red); margin-right: 0.5rem; }

/* Price band */
.price { margin-top: clamp(4.5rem, 10vw, 8rem); }
.price__in { padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem); }
.price .sec-bar { border-color: #fff; }
.price .sec-bar span:last-child { color: rgba(255,255,255,0.75); }
.price__big { font: 900 clamp(4.5rem, 16vw, 15rem)/0.82 var(--sans); letter-spacing: -0.06em; margin-top: clamp(2rem, 5vw, 3.5rem); }
.price__big small { font-size: 0.24em; letter-spacing: -0.03em; font-weight: 800; margin-left: 0.15em; }
.price__min { margin-top: 1.5rem; font: 800 clamp(1.3rem, 2.6vw, 2.1rem)/1.15 var(--sans); letter-spacing: -0.03em; }
.price__min span { background: var(--red); padding: 0.05em 0.3em 0.12em; }
.price__cols { margin-top: clamp(2.5rem, 6vw, 4rem); row-gap: 2.5rem; align-items: start; }
.price__cols > div { min-width: 0; }
.price__cols > div:first-child { grid-column: 1 / 6; }
.price__cols > div:last-child { grid-column: 7 / 13; }
.price__cols h3 { margin-bottom: 1rem; }
.ticks { border-top: 1px solid rgba(255,255,255,0.45); font: 600 1rem/1.4 var(--sans); }
.ticks li { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
.price__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 52rem) { .price__cols > div:first-child, .price__cols > div:last-child { grid-column: 1 / -1; } }

/* Band variant used on the homepage */
.why__title { font-size: var(--fs-h2); margin-top: clamp(1.5rem, 4vw, 2.75rem); max-width: 12em; }
.why__title em { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 0.09em; text-underline-offset: 0.08em; }
.band .ticks { margin-top: 0; }

/* Author */
.author { row-gap: 2rem; align-items: start; }
.author__fig { grid-column: 1 / 6; margin: 0; }
.author__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.author__fig figcaption { padding-top: 0.6rem; font: 600 0.8rem/1.3 var(--sans); color: var(--ink-2); }
.author__tx { grid-column: 7 / 13; }
.author__sig { font: 800 1.6rem/1 var(--sans); letter-spacing: -0.03em; }
.author__ps { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: 1rem; color: var(--ink-2); }
.author__ps b { font-family: var(--sans); color: var(--red); }
@media (max-width: 52rem) { .author__fig, .author__tx { grid-column: 1 / -1; } .author__fig img { aspect-ratio: 3 / 2; } }

/* Questions */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: baseline; padding-block: 1.2rem; font: 800 var(--fs-h3)/1.15 var(--sans); letter-spacing: -0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3em; line-height: 0.6; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--red); }
.faq details p { padding-bottom: 1.4rem; max-width: 40rem; }

/* Contact / free check */
.check { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3rem, 6vw, 4rem); }
.check__in { border-top: 2px solid var(--ink); padding-top: 1rem; }
.check .sec-title { max-width: 12em; }
.check .lead { margin-top: 1.5rem; max-width: 36em; }
.check__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 2rem; margin-top: clamp(2rem, 5vw, 3rem); }
.field { display: grid; gap: 0.4rem; flex: 1 1 15rem; min-width: 0; }
.field--wide { flex: 2 1 22rem; }
.field label { font: 700 var(--fs-small)/1.2 var(--sans); }
.field .blank { width: 100%; font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--sans); letter-spacing: -0.02em; color: var(--ink); padding-bottom: 0.25rem; field-sizing: fixed; }
.check__status:empty { display: none; }
.check__status { margin-top: 1rem; font: 700 1rem/1.4 var(--sans); color: var(--red); }
.check__alt { margin-top: 1.25rem; font-size: 1rem; color: var(--ink-2); }
.copyable { font-family: var(--sans); font-weight: 700; color: var(--ink); user-select: all; }

/* Footer: signed off like an ad */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem 2.5rem; border-top: 2px solid var(--ink); font: 600 var(--fs-small)/1.4 var(--sans); }
.foot a:not(.logo) { text-underline-offset: 0.2em; }
