/* Tokens copied from app/exam.css so the site looks like the program. Unlike the app, the site must work down to 320 px. */
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poltawski Nowy"; src: url("/fonts/PoltawskiNowy-wght.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f2f5f0;
  --surface: #ffffff;
  --surface-2: #f6f8f4;
  --line: #d4dbd0;
  --line-strong: #86928a;
  --ink: #1c211d;
  --ink-2: #454c47;
  --muted: #5f6861;
  --accent: #1c211d;
  --accent-hover: #343b36;
  --accent-soft: #edf5d2;
  --highlight: #d9ef6b;
  --on-highlight: #1c211d;
  --ok: #1f7a4c;
  --ok-soft: #e3f3e9;
  --bad-soft: #fbeae8;
  --bad: #b42318;
  --focus: #1f5fae;
  --font-ui: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poltawski Nowy", "Lato", Georgia, serif;
  --r-2: 8px; --r-3: 12px;
  --shadow-2: 0 2px 10px rgba(29, 28, 26, 0.10);
  --page-max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 24px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--accent); border-radius: var(--r-2); background: var(--accent); color: #fff;
  font: 700 1rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100% - var(--page-max)) / 2)); background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.brand img { border-radius: 7px; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; }

main > section { padding: 56px max(16px, calc((100% - var(--page-max)) / 2)); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.hero__pl { font-family: var(--font-display); font-size: 1.1875rem; color: var(--ink-2); margin: 12px 0 0; }
.lead { font-size: 1.1875rem; color: var(--ink-2); margin: 16px 0 28px; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-2); background: var(--surface); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

.features { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-3); }
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); }
.card .card__num { color: var(--accent); font-weight: 700; font-size: 2.25rem; line-height: 1; margin-bottom: 8px; }

.gallery__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.download { max-width: calc(640px + 32px); margin: 0 auto; }
.signup, .downloads { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-2); }
.signup { display: grid; gap: 18px; }
.signup__intro { margin: 0; color: var(--ink-2); }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 0.9375rem; }
.field input, .field select {
  min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-2);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--font-ui); width: 100%;
}
.field input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.signup__error { margin: 0; color: var(--bad); font-weight: 700; }
.signup__error:empty { display: none; }
.cf-turnstile { min-height: 65px; }

.downloads h3 { font-size: 1.25rem; margin-bottom: 16px; }
.downloads:focus { outline: none; }
.dl-list { display: grid; gap: 10px; }
.dl-list .btn { justify-content: space-between; width: 100%; }
.dl-list .btn small { font-weight: 400; opacity: 0.85; }
.dl-note { color: var(--ink-2); font-size: 0.9375rem; }
.dl-note code { font-size: 0.875rem; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.dl-note ol { padding-left: 20px; }
.dl-sums { margin-top: 16px; font-size: 0.8125rem; color: var(--muted); }
.dl-sums code { word-break: break-all; }

.footer { padding: 32px max(16px, calc((100% - var(--page-max)) / 2)); color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--ink-2); }

.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px; font-size: 1.0625rem; line-height: 1.6; }
.doc h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc .updated { color: var(--muted); margin-top: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .gallery__row { grid-template-columns: 1fr; }
  main > section { padding-block: 40px; }
}
@media (max-width: 420px) {
  .topbar nav a:not(.btn) { display: none; }
  .signup, .downloads { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Display and trainer tokens follow app/exam.css and app/conj.css. */
:root { --page-max: 1240px; }
body { font-size: 17px; }
.topbar { padding-block: 22px; background: var(--bg); border: 0; }
.brand { font-size: 26px; letter-spacing: -1px; }
.brand-dot { color: var(--accent); margin-left: -9px; }
.topbar nav { gap: 30px; }
.btn { border-radius: 5px; min-height: 48px; }
.btn--lg { min-height: 58px; padding: 16px 24px; }
h1,h2 { letter-spacing: -.045em; font-weight: 700; }
h1 em,h2 em,.download-page em { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(38px, 4.3vw, 64px); line-height: 1.08; }
main > section { padding-block: 100px; }
.hero { min-height: 740px; gap: 36px; padding-top: 55px; padding-bottom: 85px; grid-template-columns: 1fr 1.05fr; overflow: hidden; }
.hero h1 { font-size: clamp(50px, 5.5vw, 82px); line-height: 1.04; }
.hero .eyebrow { margin-bottom: 25px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; }
.lead { font-size: 21px; line-height: 1.55; max-width: 39ch; margin-block: 25px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.text-link { text-underline-offset: 6px; font-size: 16px; font-weight: 700; }
.micro { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.hero-visual { position: relative; padding: 35px 0 65px; }
.hero-visual::before { content: ''; position: absolute; inset: -30px -160px -15px 45px; background: #edf5d2; border-radius: 50% 0 0 50%; z-index: -1; }
.hero__shot { transform: rotate(-2deg); }
.shot img { border-radius: 8px; box-shadow: 0 20px 45px #2a23131a; }
.hero__shot figcaption { display: grid; gap: 5px; margin-top: 20px; color: var(--ink-2); }
.hero__shot figcaption span { font-size: 10px; letter-spacing: .12em; }
.visual-label { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font-size: 14px; }
.status-dot { width: 7px; height: 7px; background: #1f7a4c; border-radius: 50%; }
.hand-note { position: absolute; right: 0; bottom: -30px; font: italic 25px/1.3 var(--font-display); transform: rotate(-5deg); color: var(--accent); }
.reassurance { background: #e8efd9; color: var(--ink); display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 85px; }
.reassurance > .eyebrow { grid-column: 1/-1; color: var(--ink-2); }
.reassurance h2 em { color: var(--ink); }
.reassurance-copy { font-size: 20px; color: var(--ink-2); padding-top: 3px; }
.reassurance-copy p:first-child { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 45px; grid-column: 1/-1; margin-top: 50px; }
.steps article { border-top: 1px solid #86928a; padding-top: 24px; }
.steps span { font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.steps h3 { margin-top: 15px; font-size: 24px; }
.steps p { color: var(--ink-2); margin-bottom: 0; }
.try-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.demo-window { border: 1px solid var(--line-strong); border-radius: 10px; background: white; box-shadow: 0 22px 55px #28231812; overflow: hidden; }
.demo-bar { background: #f6f8f4; border-bottom: 1px solid var(--line); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.demo-bar .brand { font-size: 18px; letter-spacing: 0; }
.demo-tag { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
#demo-timer { font-variant-numeric: tabular-nums; font-size: 14px; }
.demo-body { padding: 32px; min-height: 370px; }
.demo-body h3 { font-family: var(--font-display); font-size: 31px; font-weight: 500; line-height: 1.3; }
.demo-body > p:not(.eyebrow):not(.micro) { color: var(--ink-2); }
.demo-foot { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 22px; font-size: 11px; color: var(--ink-2); background: #f6f8f4; gap: 10px; }
.reading-text { padding: 15px; background: var(--surface-2); border-left: 3px solid var(--line-strong); }
.x-cj__opts { display: grid; gap: 9px; }
.x-cj__opt { display: flex; gap: 12px; align-items: center; text-align: left; min-height: 52px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font: 500 18px/1.3 var(--font-display); color: var(--ink); cursor: pointer; }
.x-cj__opt:hover { background: var(--surface-2); border-color: var(--ink); }
.x-cj__opt.is-ok { background: #e3f3e9; border-color: #1f7a4c; }
.x-cj__opt.is-no { background: var(--bad-soft); border-color: var(--bad); border-style: dashed; }
.option-letter { font: 700 12px var(--font-ui); background: var(--surface-2); padding: 5px 8px; border-radius: 3px; }
.feedback { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.restart { display: block; margin-top: 22px; padding: 10px 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink-2); }
.practice { background: #e5eae2; }
.section-heading { margin-bottom: 65px; }
.feature-row { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 85px; margin-block: 65px; }
.feature-row h3 { font-size: 36px; letter-spacing: -.025em; margin-top: 20px; }
.feature-row p { color: var(--ink-2); font-size: 19px; }
.chapter { color: var(--accent); font-size: 11px; letter-spacing: .13em; font-weight: 700; }
.feature-row.reverse { grid-template-columns: .8fr 1.2fr; }
.reverse figure { order: 2; }
.download { max-width: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; }
.signup { padding: 32px; box-shadow: none; border-radius: 8px; gap: 20px; }
.signup h3 { font-size: 27px; }
.signup .micro { margin: 0; text-align: center; }
.check,.signup__intro { font-size: 15px; }
.field input { min-height: 54px; }
.faq { padding-top: 15px; max-width: 950px; margin: auto; padding-inline: 24px; }
.faq h2 { font-size: 38px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--ink-2); }
.footer { padding-block: 40px; }
.footer .brand { margin-bottom: 12px; }
.footer .credits { font-size: 11px; max-width: 85ch; margin-top: 25px; }
.download-page { max-width: 780px; padding: 65px 24px; margin: auto; }
.download-page h1 { font-size: clamp(44px,6vw,70px); line-height: 1.06; }
.download-page .downloads { margin-block: 32px; }
@keyframes rise { from { opacity: .5; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.revealed { animation: rise .65s ease-out both; }
@media(max-width: 1050px) {
  :root { --page-max: 940px; }
  .hero h1 { font-size: 62px; }
  .hero-actions { gap: 18px; }
  .try-section,.feature-row,.download { gap: 40px; }
}
@media(max-width: 860px) {
  main > section { padding-block: 65px; padding-inline: 24px; }
  .topbar { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 15px; padding-top: 35px; }
  .hero h1 { font-size: clamp(52px,9vw,76px); }
  .hero-visual { margin-top: 25px; padding-bottom: 75px; }
  .hand-note { bottom: -5px; right: 8px; font-size: 23px; }
  .reassurance,.try-section,.download,.feature-row,.feature-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .reassurance-copy { font-size: 18px; }
  .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 12px; }
  .steps h3 { margin-top: 10px; }
  .steps p { margin-top: 10px; }
  .demo-body { padding: 25px 22px; min-height: 350px; }
  .demo-body h3 { font-size: 26px; }
  .demo-bar { padding: 15px; }
  .demo-tag { display: none; }
  .demo-foot { padding-inline: 15px; font-size: 10px; }
  .feature-row { margin-block: 40px 65px; }
  .reverse figure { order: 0; }
  .feature-row h3 { font-size: 32px; margin-top: 14px; }
  .feature-row p { font-size: 18px; }
  .section-heading { margin-bottom: 40px; }
  .signup { padding: 26px 20px; }
  .signup .btn { font-size: 15px; padding-inline: 10px; }
  .faq { padding-top: 0; }
  .footer { padding-inline: 24px; }
}
@media(prefers-reduced-motion: reduce) { .revealed { animation: none; } }
.pricing { padding-top: 25px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 45px; }
.plan-card { padding: 28px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; }

.plan-card h3 { font-size: 27px; }
.plan-label { font-size: 12px; color: var(--ink-2); margin: 0 0 18px; }
.plan-price { font-size: 48px; letter-spacing: -.04em; font-weight: 700; line-height: 1.1; margin: 0 0 6px; }
.plan-card ul { padding-left: 20px; margin: 0 0 25px; color: var(--ink-2); }
.plan-card li { margin-bottom: 12px; }
.plan-card .btn { margin-top: auto; padding: 12px; }
.soon { background: #e5eae2; color: var(--ink); border-radius: 4px; padding: 3px 8px; margin-left: 5px; }
.interest-note { background: var(--accent-soft); padding: 14px; border-left: 3px solid var(--accent); font-size: 15px; margin: 0; }
@media(max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } .plan-card h3 { min-height: 0; } }

.plan-period { font-size: 14px; color: var(--ink-2); margin: 0; }

h1 em, h2 em { background: linear-gradient(transparent 72%, var(--highlight) 72%, var(--highlight) 94%, transparent 94%); }
.reassurance h2 em { background: none; }
.soon { background: var(--highlight); color: var(--on-highlight); }
::selection { background: var(--highlight); color: var(--on-highlight); }
.shot img { filter: saturate(.25); }
.hero__shot img { filter: none; }

.pricing-intro { max-width: 65ch; color: var(--ink-2); font-size: 19px; }
.plan-heading { min-height: 92px; }
.plan-cost { min-height: 125px; }
.plan-card--recommended { background: var(--accent-soft); border: 2px solid #a7bc47; box-shadow: 0 8px 22px #1c211d0a; }
.recommended-label { display: inline-block; padding: 3px 10px; background: var(--highlight); color: var(--on-highlight); border-radius: 4px; font-weight: 700; }
.plan-card .plan-benefits { list-style: none; padding: 0; }
.plan-benefits li { position: relative; padding-left: 24px; font-size: 16px; }
.plan-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.pricing-trust { text-align: center; color: var(--ink-2); font-size: 14px; margin: 25px 0 0; }
@media(max-width: 860px) { .plan-heading { min-height: 0; margin-bottom: 22px; } .plan-cost { min-height: 0; margin-bottom: 24px; } }

.hero-note { margin: 14px 0 0; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.hero-facts strong { color: var(--ink); }
.inside { grid-template-columns: repeat(3, 1fr); }
.inside .card { background: var(--surface); }
.first { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.first-copy { font-size: 19px; color: var(--ink-2); }
.first-copy p:first-child { margin-top: 0; }
.faq-cta { margin: 40px 0 0; text-align: center; }
@media(max-width: 860px) {
  .inside { grid-template-columns: 1fr; }
  .first { grid-template-columns: 1fr; gap: 24px; }
  .first-copy { font-size: 17px; }
}
