/* Op Koers website: one shared stylesheet. Mobile-first, light + dark, system fonts only. */
:root {
  --bg: #FFFFFF;
  --surface: #F3F8F4;
  --ink: #0F1F14;
  --muted: #4E5E53;
  --green: #15803D;        /* text and links: 5:1 on white */
  --brand: #16A34A;        /* decorative fills */
  --btn: #15803D;          /* button background with white text */
  --deep: #0E5A2C;
  --lime: #A3E635;
  --line: #DCE7DF;
  --hero-from: #15803D;
  --hero-to: #0E5A2C;
  --store-bg: #000000;
  --store-edge: #000000;
  --error: #B91C1C;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B120D;
    --surface: #121C15;
    --ink: #ECF4EE;
    --muted: #A7B9AC;
    --green: #4ADE80;
    --brand: #22C55E;
    --btn: #15803D;
    --deep: #0A3D1F;
    --lime: #B5F04A;
    --line: #22312A;
    --hero-from: #0E5A2C;
    --hero-to: #0A2F18;
    --store-bg: #000000;
    --store-edge: #5B6B60;
    --error: #FCA5A5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
main :focus-visible, .site-foot :focus-visible { outline-color: var(--green); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 10px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--bg); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin: 0 0 6px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0 auto; padding-top: 6px; padding-bottom: 6px; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14.5px; }
.site-nav a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"] { font-weight: 700; }

/* App Store button (drawn in CSS, not Apple's badge artwork) */
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--store-bg); color: #FFFFFF; text-decoration: none; border: 1px solid var(--store-edge); border-radius: 12px; padding: 8px 16px 8px 12px; line-height: 1.1; min-height: 48px; }
.store:hover { background: #1F1F1F; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; }
.store small { font-size: 11px; font-weight: 500; }
.store strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store.compact { min-height: 40px; padding: 6px 12px 6px 10px; border-radius: 10px; }
.store.compact small { font-size: 9px; }
.store.compact strong { font-size: 15px; }
.store.compact svg { width: 20px; height: 20px; }
.on-dark .store { border-color: rgba(255,255,255,.55); }
.store:focus-visible { outline: 3px solid var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 12px; background: var(--btn); color: #FFFFFF; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--deep); }
.btn.ghost { background: transparent; color: var(--green); border: 2px solid currentColor; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%); color: #FFFFFF; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 40px; }
.hero h1 { font-size: clamp(40px, 10vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { font-size: 19px; max-width: 30em; margin: 0 0 24px; }
.hero .small { font-size: 14px; opacity: .92; margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,.45); padding: 5px 12px; border-radius: 999px; }
.hero-phone { justify-self: center; width: min(280px, 78vw); }

/* Phone frame */
.phone { background: #0F1F14; padding: 8px; border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #EAF3EC; }
.hero .phone { border-radius: 40px 40px 0 0; padding-bottom: 0; }
.hero .phone img { border-radius: 32px 32px 0 0; aspect-ratio: 1320 / 2000; object-position: top; }

/* Sections */
.section { padding-block: 56px; }
.section.alt { background: var(--surface); }
.section .intro { color: var(--muted); max-width: 36em; margin-bottom: 32px; }

/* Feature rows */
.rows { display: grid; gap: 24px; }
.row { display: grid; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.row p { color: var(--muted); }
.row .phone { width: min(230px, 70vw); justify-self: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--lime); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; color: #0F1F14; }
.badge.free { background: var(--surface); color: var(--green); border: 1px solid var(--line); }
.mini-card { background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; font-size: 15px; justify-self: center; width: min(300px, 100%); }
.mini-card .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.mini-card .from { text-decoration: line-through; color: var(--muted); }
.mini-card .to { font-weight: 800; color: var(--green); }

/* Pricing table */
.prices { display: grid; gap: 12px; margin-bottom: 24px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); }
.price.premium { border: 2px solid var(--brand); }
.price h3 { margin: 0 0 4px; }
.price .amount { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.price p { margin: 0; color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); font-size: 14px; }
td.c, th.c { text-align: center; width: 76px; }
tbody th { font-weight: 500; }
.yes { color: var(--green); font-weight: 800; }
.no { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Quotes */
.quotes { display: grid; gap: 16px; }
blockquote { margin: 0; background: var(--bg); border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--brand); }
blockquote p { font-size: 18px; margin: 0 0 8px; }
blockquote footer { color: var(--muted); font-size: 14px; }
.placeholder { background: #FEF9C3; color: #713F12; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Cards and callouts */
.callout { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; }
.callout > :last-child { margin-bottom: 0; }
.callout.green { background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: #FFFFFF; }
.callout.green a:not(.btn):not(.store) { color: #FFFFFF; }
.cta-band { text-align: center; display: grid; gap: 12px; justify-items: center; }

/* Long-form pages */
.page-head { padding-block: 40px 8px; }
.page-head h1 { font-size: clamp(32px, 7vw, 44px); margin: 0 0 12px; }
.page-head .lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.page-head .store { margin-top: 8px; }
.prose { padding-block: 16px 56px; display: grid; gap: 28px; }
.prose section { border-top: 1px solid var(--line); padding-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 16px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin: 0; }
.steps > li::before { content: counter(s); width: 32px; height: 32px; border-radius: 16px; background: var(--btn); color: #FFFFFF; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h2, .steps h3 { font-size: 19px; margin: 3px 0 4px; }
.steps p { margin: 0 0 6px; }
.principles > li::before { background: var(--surface); color: var(--green); }
.video-spot { aspect-ratio: 16 / 9; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 16px; }

/* Phase bars */
.phases { display: grid; gap: 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.p-base { background: var(--brand); } .p-build { background: var(--lime); } .p-peak { background: var(--deep); } .p-taper { background: #8FA597; }
@media (prefers-color-scheme: dark) { .p-peak { background: #16A34A; } .p-taper { background: #46584C; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; font-weight: 400; color: var(--green); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 18px 16px; }
details > div > :last-child { margin-bottom: 0; }

.email { font-weight: 700; user-select: all; -webkit-user-select: all; }
.concept { border: 2px dashed #CA8A04; border-radius: var(--radius); padding: 12px 16px; }

/* Free tools: calculators and fixed schedules */
html.no-js .js-only { display: none; }
.tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); display: grid; gap: 16px; }
.tool h2 { font-size: 22px; margin: 0; }
.field { display: grid; gap: 6px; }
.field > label, legend { font-weight: 700; font-size: 15px; padding: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 6px; }
.tool input, .tool select { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 48px; width: 100%; }
.tool input:focus-visible, .tool select:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.tool input[aria-invalid="true"] { border-color: var(--error); }
.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.double { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.triple label, .double label { font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.err { color: var(--error); font-size: 14px; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.quick button:hover { border-color: var(--green); }
button.btn { font: inherit; font-weight: 700; border: 0; cursor: pointer; justify-self: start; }
.result { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.result > :last-child { margin-bottom: 0; }
.result .big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.result table { background: var(--bg); border-radius: 12px; margin-top: 8px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.link-grid { display: grid; gap: 12px; }
.link-card { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); color: var(--ink); text-decoration: none; }
.link-card strong { color: var(--green); font-size: 18px; }
.link-card span { color: var(--muted); font-size: 15px; }
.link-card:hover { border-color: var(--green); }
.weeks { display: grid; gap: 20px; }
.week h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.week h3 .muted { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.week .badge { margin: 0; }
.week td.d, .week th.d { width: 84px; text-align: right; white-space: nowrap; }
.week tbody th { width: 96px; font-weight: 700; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 15px; }
.site-foot nav { display: grid; gap: 12px; }
.site-foot .wrap { display: grid; gap: 24px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--ink); }
.site-foot p { margin: 0; color: var(--muted); }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: end; padding-top: 72px; }
  .hero .wrap > div:first-child { padding-bottom: 72px; }
  .hero-phone { width: 300px; }
  .row { grid-template-columns: 1fr 260px; padding: 32px; }
  .row:nth-child(even) { grid-template-columns: 260px 1fr; }
  .row:nth-child(even) > :first-child { order: 2; }
  .prices { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
  .tool { padding: 28px; }
  td.c, th.c { width: 110px; }
  .site-foot .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.maker { margin: 4px 0 16px; }
.maker img { width: 100%; max-width: 360px; height: auto; border-radius: var(--radius); display: block; }
.store.soon { cursor: default; opacity: .92; }
