/* Styles shared by the pages of learn.codeff.nl (index.html, workshop.html). */
:root {
  --bg: #f3f5f6; --surface: #fff; --text: #172022; --text-2: #3f4b4e; --muted: #687578;
  --border: #e1e6e8; --chrome: #1b2224; --accent: #47b6d9; --accent-ink: #1e7fa3;
  --accent-subtle: #e6f5fa; --warm: #e8932f; --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Space at the sides; clear of a notch or rounded corners (phones in landscape). */
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Long words (Armenian, Dutch compounds) wrap instead of pushing the page wider. */
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
p, li, dd { overflow-wrap: break-word; text-wrap: pretty; }
a, button, summary, label { -webkit-tap-highlight-color: rgb(71 182 217 / .25); touch-action: manipulation; }
/* Jumping to a section (#register…) stops below the sticky header. */
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--text); background: var(--bg); }
a { color: var(--accent-ink); }
/* Hidden until i18n.js has put the texts in. */
html.loading .hero, html.loading main { visibility: hidden; }
.load-error, noscript p { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; background: #fff4e5; color: #7a3e00; }

header.top { position: sticky; top: 0; z-index: 10; background: var(--chrome); color: #e8eef0; }
.top-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
.brand .lab { color: var(--accent); }
.lang { margin-left: auto; display: flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.lang button { border: 0; background: none; color: #b9c4c7; font: 600 14px var(--sans); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--chrome); }
.lab-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #0b2630; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgb(71 182 217 / .35); transition: transform .15s, box-shadow .15s; }
.lab-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(71 182 217 / .45); }
.lab-link:focus-visible, .lang button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lab-link img { width: 26px; height: 26px; border-radius: 6px; background: #fff; padding: 2px; }
.lab-link .arrow { font-size: 15px; opacity: .8; }
.top .lab-link { padding: 7px 14px; font-size: 15px; }
.top .lab-link img { width: 22px; height: 22px; }

.hero { background: linear-gradient(135deg, #283030 0%, #1d2425 55%, #141a1b 100%); color: #eef3f4; }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 64px var(--gutter) 72px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
/* Armenian reads better without capitals and wide spacing. */
html[data-lang="hy"] .eyebrow { text-transform: none; letter-spacing: .02em; font-size: 15px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(28px, 3.2vw + 18px, 50px); line-height: 1.1; letter-spacing: -.02em; }
/* The intro lines, typed out one by one (typewriter.js). */
.lead-lines { display: grid; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; color: #d5dee0; font-size: clamp(17px, .5vw + 15px, 19px); max-width: 34em; }
.lead-lines li { position: relative; padding-left: 1.4em; }
.lead-lines li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 800; transition: opacity .2s; }
.lead-lines li.waiting::before { opacity: 0; }
.tw-ghost { visibility: hidden; }
.tw-typed { position: absolute; inset: 0 0 0 1.4em; }
.tw-cursor { display: inline-block; width: .5em; height: 1.05em; margin: 0 -.6em 0 .1em; vertical-align: -.15em; background: var(--accent); animation: tw-blink 1s steps(1) infinite; }
@keyframes tw-blink { 50% { opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.facts li { padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); font-size: 15px; font-weight: 600; }
/* The course video (index.html): portrait (4:5), in the right column; under the text on phones. */
.hero-video { justify-self: center; width: 100%; max-width: 360px; margin: 0; text-align: center; position: relative; }
/* Shown when the video started by itself without sound (site.js): one tap turns the sound on. */
.video-sound { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #0b2630; font: 700 16px/1.2 var(--sans); box-shadow: 0 6px 18px rgb(0 0 0 / .4); cursor: pointer; animation: video-sound-pulse 1.6s ease-out infinite; }
.video-sound[hidden] { display: none; }
.video-sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes video-sound-pulse { from { box-shadow: 0 0 0 0 rgb(71 182 217 / .8), 0 6px 18px rgb(0 0 0 / .4); } to { box-shadow: 0 0 0 14px rgb(71 182 217 / 0), 0 6px 18px rgb(0 0 0 / .4); } }
@media (prefers-reduced-motion: reduce) { .video-sound { animation: none; } }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 20px; background: #000; border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 18px 40px rgb(0 0 0 / .35); }
.hero-video figcaption { margin-top: 10px; color: #aab7ba; font-size: 14px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 14px 5px 10px; border-radius: 999px; background: rgb(34 197 94 / .12); border: 1px solid rgb(34 197 94 / .4); color: #bbf7d0; font-size: 14px; font-weight: 700; }
.hero-badge .led { width: 10px; height: 10px; }
/* Front page: the way to the workshop page, under the badge. */
.workshop-link { margin: 0 0 14px; }
.workshop-link a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: rgb(232 147 47 / .14); border: 1px solid rgb(232 147 47 / .5); color: #fcd9ad; font-size: 14px; font-weight: 700; text-decoration: none; }
.workshop-link a:hover { background: rgb(232 147 47 / .24); }
.workshop-link a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

main { max-width: 1080px; margin: 0 auto; padding: 56px var(--gutter) 24px; }
h2 { font-size: clamp(24px, 1.5vw + 18px, 30px); letter-spacing: -.01em; margin: 0 0 8px; }
.section-lead { margin: 0 0 16px; color: var(--text-2); }
.plan-note { margin: 0 0 28px; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-subtle); color: var(--text-2); font-size: 16px; }
.plan-note:has(+ .summary-note) { margin-bottom: 12px; }
.summary-note { display: flex; gap: 10px; border-left-color: var(--warm); background: #fff4e5; color: var(--text); }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lesson { display: grid; grid-template-columns: 56px 1fr; align-content: start; gap: 4px 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(16 24 26 / .04); }
.num { grid-row: span 3; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-subtle); color: var(--accent-ink); font-size: 22px; font-weight: 800; }
.lesson h3 { margin: 2px 0 0; font-size: 19px; }
.lesson p { margin: 0; color: var(--text-2); font-size: 16px; }
.build { margin-top: 6px !important; font-size: 15px !important; color: var(--text) !important; }
.build strong { color: #b35f00; }
.lesson .brief { color: var(--text); }
.lesson details { margin-top: 2px; }
.lesson summary { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--accent-ink); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 6px; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary::after { content: "▾"; transition: transform .2s; }
.lesson details[open] summary::after { transform: rotate(180deg); }
.lesson summary:hover { text-decoration: underline; }
.lesson summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lesson details:not([open]) .less, .lesson details[open] .more { display: none; }
.lesson details p:first-of-type { margin-top: 6px; }
.lesson { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lesson:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgb(16 24 26 / .08); transform: translateY(-1px); }
.lesson.final { border-color: #f1c58f; background: #fff9f1; }
.lesson.final .num { background: #fde9cf; color: #b35f00; }

/* Where it takes place: a card with the place, the time and a map button (both pages). */
.venue { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; max-width: 46em; margin: 12px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.venue-pin { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fde9cf; font-size: 24px; }
.venue h3 { margin: 0 0 2px; color: #b35f00; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
html[data-lang="hy"] .venue h3 { text-transform: none; letter-spacing: 0; }
.venue p { margin: 0; color: var(--text-2); font-size: 16px; }
.venue .venue-name { color: var(--text); font-size: 18px; font-weight: 700; }
.venue .venue-when { margin-top: 4px; color: var(--muted); font-size: 15px; }
.venue-map { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 2px solid var(--accent-ink); border-radius: 999px; color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.venue-map:hover { background: var(--accent-subtle); }
.venue-map:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .venue { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 16px; }
  .venue-map { grid-column: 1 / -1; }
}

/* Front page: the two places the course runs, each with its own days. */
.locations { margin: 0 0 56px; }
.location-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.location-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.location-card:nth-child(2) { border-top-color: var(--warm); }
.location-card h3 { margin: 0; font-size: 24px; }
.location-venue { margin: 0; color: var(--text); font-weight: 600; }
.location-address { margin: -4px 0 0; color: var(--text-2); font-size: 16px; }
.location-when { margin: 4px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 16px; }
.location-when li { padding: 2px 0; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 14px; }
.locations-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; color: var(--text-2); font-size: 16px; }
@media (max-width: 700px) {
  .location-cards { grid-template-columns: 1fr; }
  .locations-cta .lab-link { flex: 1 1 100%; justify-content: center; }
  .locations { margin-bottom: 40px; }
}

.good { margin: 56px 0 0; }
.good-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.good-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); }
.good-card:nth-child(2) { border-top-color: var(--warm); }
.good-card:nth-child(3) { border-top-color: #5cb85c; }
.good-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; background: var(--accent-subtle); font-size: 24px; }
.good-card:nth-child(2) .good-icon { background: #fde9cf; }
.good-card:nth-child(3) .good-icon { background: #e3f4e3; }
.good-card:nth-child(4) { border-top-color: #9b7bd4; }
.good-card:nth-child(4) .good-icon { background: #efe9fa; }
.good-card h3 { margin: 0 0 6px; font-size: 18px; }
.good-card p { margin: 0; color: var(--text-2); font-size: 16px; }

.pricing { margin: 56px 0 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.price-tag { display: grid; place-content: center; text-align: center; padding: 24px; border-radius: 18px; background: var(--accent-subtle); }
.price { margin: 0; font-size: 52px; font-weight: 800; line-height: 1.1; color: var(--accent-ink); letter-spacing: -.02em; }
.price-unit { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.price-badge { justify-self: center; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--warm); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
html[data-lang="hy"] .price-badge { text-transform: none; letter-spacing: 0; }
.price-regular { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.price-save { margin: 6px 0 0; color: #b35f00; font-size: 15px; font-weight: 700; }
.price-intro { margin: 0 0 14px; color: var(--text-2); }
.pricing h2 { margin: 0 0 12px; font-size: 26px; }
.price-points { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); }
.pricing .register { margin: 0 0 16px !important; color: var(--text-2); }
.pricing .register a { color: var(--accent-ink); }
.company { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
/* ---- Registration form: one step at a time, on a light card inside the dark "board" ---- */
.price-cta { margin: 0 0 16px; }
.signup { margin: 56px 0 0; padding: 36px; border-radius: 24px; color: #e8eef0; scroll-margin-top: 72px;
  background: radial-gradient(circle at 1px 1px, rgb(71 182 217 / .16) 1.2px, transparent 0) 0 0 / 22px 22px, linear-gradient(135deg, #222b2c, #141a1b); }
.signup-head { max-width: 46em; margin-bottom: 22px; }
.signup-tag { margin: 0 0 6px; color: var(--accent); font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.signup h2 { margin: 0 0 8px; font-size: clamp(24px, 1.5vw + 18px, 30px); }
.signup-intro { margin: 0; color: #b9c4c7; }
.signup-card { max-width: 720px; padding: 28px 32px 32px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.progress { margin: 0 0 22px; }
.progress-text { margin: 0 0 10px; color: var(--muted); font-size: 15px; font-weight: 600; }
.progress-wire { display: flex; margin: 0; padding: 0; list-style: none; }
.progress-wire li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--muted); font-size: 13px; text-align: center; }
.progress-wire li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.progress-wire li:first-child::before { display: none; }
.progress-wire li.done::before, .progress-wire li.current::before { background: var(--accent); }
.progress-wire .led { position: relative; z-index: 1; }
.progress-wire li.current { color: var(--text); font-weight: 700; }
.progress-wire li.current .led { background: var(--accent); box-shadow: 0 0 0 4px rgb(71 182 217 / .25); }
.led { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #cfd6d8; transition: background .3s, box-shadow .3s; }
.led.on, .progress-wire li.done .led { background: #22c55e; box-shadow: 0 0 8px rgb(34 197 94 / .7); }
.error-summary { margin: 0 0 22px; padding: 16px 18px; border: 3px solid #d4351c; border-radius: 12px; outline: none; }
.error-summary h3 { margin: 0 0 8px; font-size: 18px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: #b3261e; font-weight: 700; }
.step-title { margin: 0 0 8px; font-size: 24px; outline: none; }
.step-intro { margin: 0 0 20px; color: var(--text-2); }
.step > .step-title + .field, .step > .step-title + div { margin-top: 18px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin: 0 0 4px; padding: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.opt { color: var(--muted); font-weight: 400; }
.hint { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.field-error { margin: 0 0 6px; color: #b3261e; font-size: 15px; font-weight: 700; }
.field-error:empty { display: none; }
.field-error button { margin-left: 6px; padding: 2px 10px; border: 2px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 700 14px var(--sans); cursor: pointer; }
.field.has-error { padding-left: 14px; border-left: 4px solid #d4351c; }
.signup-card input:not([type="radio"], [type="checkbox"]), .signup-card textarea { display: block; width: 100%; padding: 10px 12px; border: 2px solid #6b787b; border-radius: 8px; background: #fff; color: var(--text); font: 17px var(--sans); }
.signup-card input.w-2 { width: 4em; } .signup-card input.w-4 { width: 6em; } .signup-card input.w-s { max-width: 16em; } .signup-card input.w-m { max-width: 22em; } .signup-card input.w-l { max-width: 30em; }
.signup-card textarea { resize: vertical; min-height: 90px; }
.signup-card input:focus-visible, .signup-card textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--text); }
.signup-card [aria-invalid="true"] { border-color: #d4351c !important; }
.date-inputs { display: flex; gap: 14px; }
.date-inputs label { display: block; margin: 0 0 4px; font-size: 15px; color: var(--text-2); }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 2px solid #c3cbcd; border-radius: 10px; cursor: pointer; font-size: 16px; }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-ink); }
.option:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-subtle); font-weight: 700; }
.option:has(input:focus-visible), .who-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.who-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.who-card { position: relative; display: grid; gap: 4px; padding: 20px 48px 20px 20px; border: 2px solid #c3cbcd; border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.who-card:hover { border-color: var(--accent-ink); }
.who-card input { position: absolute; opacity: 0; pointer-events: none; }
.who-card:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-subtle); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.who-icon { font-size: 30px; }
.who-card::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent-ink); font-size: 22px; font-weight: 700; transition: transform .15s; }
.who-card:hover::after { transform: translate(4px, -50%); }
.step-nav[hidden] { display: none; }
.who-card strong { font-size: 19px; }
.who-card span:last-child { color: var(--text-2); font-size: 15px; }
.field > label.check { display: flex; gap: 12px; align-items: flex-start; margin: 0; cursor: pointer; font-size: 16px; font-weight: 400; line-height: 1.5; }
.field.consent { margin-bottom: 16px; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent-ink); }
.field.has-error .check { font-weight: 700; }
.consent .hint { margin: 8px 0 0 36px; }
.review { margin: 0 0 16px; }
.review section { padding: 14px 0; border-top: 1px solid var(--border); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 6px; }
.review-head h4 { margin: 0; font-size: 17px; }
.review-head button { border: 0; background: none; color: var(--accent-ink); font: 700 15px var(--sans); text-decoration: underline; cursor: pointer; }
.review dl { display: grid; grid-template-columns: minmax(8em, 14em) 1fr; gap: 4px 16px; margin: 0; font-size: 16px; }
.review dt { color: var(--text-2); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review .missing { color: var(--muted); font-style: italic; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: 16px; }
.form-status:empty { display: none; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-back { padding: 10px 6px; border: 0; background: none; color: var(--accent-ink); font: 700 16px var(--sans); cursor: pointer; }
.btn-back[hidden] { display: inline-block; visibility: hidden; }
.btn-next { margin-left: auto; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--accent-ink); color: #fff; font: 700 17px var(--sans); cursor: pointer; transition: background .15s; }
.btn-next:hover { background: #17698a; }
.btn-next:focus-visible, .btn-back:focus-visible, .btn-again:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-next.send { background: #15803d; }
.btn-next.send:hover { background: #126b33; }
.btn-next:disabled { cursor: progress; opacity: .8; }
.signup-form[hidden], .signup-done[hidden], .progress[hidden] { display: none; }
.signup-done { text-align: center; outline: none; padding: 8px 0; }
.signup-done h3 { margin: 12px 0 6px; font-size: 26px; }
.signup-done p { margin: 0 0 10px; color: var(--text-2); }
.done-steps { display: inline-block; margin: 0 0 20px; padding-left: 22px; text-align: left; color: var(--text); }
.led.big { display: inline-block; width: 24px; height: 24px; }
.btn-again { border: 2px solid var(--accent-ink); border-radius: 999px; background: none; color: var(--accent-ink); padding: 9px 18px; font: 700 15px var(--sans); cursor: pointer; }
.signup .questions { margin: 18px 0 0; color: #b9c4c7; font-size: 15px; }
.signup .questions a { color: var(--accent); font-weight: 700; }
.step:not([hidden]) { animation: step-in .25s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .step:not([hidden]) { animation: none; } .led { transition: none; } .lesson, .lesson:hover { transition: none; transform: none; } }
@media (max-width: 640px) {
  .signup { padding: 22px 12px; }
  .signup-card { padding: 20px 16px 22px; }
  .progress-wire li span:last-child { display: none; }
  .who-cards { grid-template-columns: 1fr; }
  .review dl { grid-template-columns: 1fr; gap: 0; }
  .review dd { margin-bottom: 8px; }
}

.cta { margin: 56px 0 0; padding: 36px 28px; border-radius: 24px; background: var(--chrome); color: #eef3f4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 0 0 6px; font-size: 26px; }
.cta p { margin: 0; color: #b9c4c7; }
.register { margin: 18px 0 0 !important; color: #c5d0d3; font-size: 16px; }
.cta .register { margin-top: 8px !important; }
.register a { color: var(--accent); font-weight: 700; }
/* Follow Codeff (both pages, just above the footer): one button per network, each in its own colour with a white logo. */
.follow { max-width: 1080px; margin: 48px auto 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.follow h2 { margin: 0 0 4px; font-size: 22px; }
.follow p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 34em; }
.follow-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.follow-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgb(16 24 26 / .12); transition: filter .15s, transform .15s; }
.follow-links a:hover { filter: brightness(1.08); transform: translateY(-1px); }
.follow-links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.follow-links svg { width: 20px; height: 20px; flex: none; }
.follow-links .follow-instagram { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); }
.follow-links .follow-facebook { background: #1877f2; }
.follow-links .follow-linkedin { background: #0a66c2; }
/* Facebook and LinkedIn: a white badge with the letters cut out in the button's colour. */
.follow-facebook .mark { fill: #1877f2; }
.follow-linkedin .mark { fill: #0a66c2; }
@media (max-width: 640px) { .follow { margin-top: 40px; } .follow-links, .follow-links li { width: 100%; } .follow-links a { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce), (hover: none) { .follow-links a:hover { transform: none; } }
footer { max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) max(48px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; }
footer .trademarks { font-size: 13px; max-width: 60em; }

@media (max-width: 1000px) { .good-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px var(--gutter) 52px; }
  .hero-video { max-width: 320px; }
  .pricing { grid-template-columns: 1fr; }
  .pricing { padding: 20px; gap: 20px; }
}
/* Tablets in portrait keep two lessons side by side; phones get one. */
@media (max-width: 640px) {
  .lessons { grid-template-columns: 1fr; }
  main { padding-top: 40px; }
  .good, .pricing, .signup, .cta { margin-top: 40px; }
  .cta { padding: 24px 20px; }
  .cta .lab-link, .price-cta .lab-link { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  /* Only the icon shows; the words stay for screen readers. */
  .top .lab-link .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .lab-link { padding: 6px; }
  .brand span.name { display: none; }
  .lesson { grid-template-columns: 44px 1fr; padding: 16px; }
  .good-cards { grid-template-columns: 1fr; }
  .num { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }
}

/* Front page, phones: the plan starts with 4 lessons; "Show all 10 lessons" opens the rest (site.js). */
.lessons-more { display: none; margin: 16px 0 0; text-align: center; }
.lessons-more .less, [aria-expanded="true"] > .more { display: none; }
[aria-expanded="true"] > .less { display: inline; }
/* Phones: a register button at the bottom of the screen while reading (site.js). */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .lessons.collapsible:not(.show-all) > li:nth-child(n+5) { display: none; }
  .lessons-more { display: block; }
  .sticky-cta:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 9; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgb(0 0 0 / .3); transform: translateY(160%); transition: transform .25s ease; }
  .sticky-cta.show { transform: none; }
  .sticky-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Phones and tablets ---- */
@media (max-width: 380px) {
  :root { --gutter: max(14px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .top-inner { gap: 10px; }
  .lang button { padding-inline: 10px; }
  .signup { padding: 20px 10px; }
  .signup-card { padding: 18px 14px 20px; }
}
/* Fingers, not a mouse: everything you tap is at least about 44px. */
@media (pointer: coarse) {
  .lang { padding: 2px; }
  .lang button { min-width: 44px; min-height: 40px; }
  .top .lab-link { min-width: 44px; min-height: 44px; justify-content: center; }
  .brand { min-height: 44px; min-width: 44px; justify-content: center; }
  .workshop-link a, .hero-badge { min-height: 40px; }
  .lesson summary { padding: 10px 0; }
  .btn-back, .btn-again, .btn-next { min-height: 48px; }
  .review-head button { min-height: 44px; padding-inline: 8px; }
  .field-error button { min-height: 36px; }
  .option { min-height: 48px; }
  .register a, .questions a, footer a { display: inline-block; padding-block: 6px; }
}
/* No hover on touch screens: no cards that jump when tapped. */
@media (hover: none) {
  .lesson:hover { border-color: var(--border); box-shadow: 0 1px 2px rgb(16 24 26 / .04); transform: none; }
  .lesson.final:hover { border-color: #f1c58f; }
  .lab-link:hover { transform: none; }
  .who-card:hover::after { transform: translateY(-50%); }
}
/* Phones on their side: little height, so the header scrolls away and the hero is shorter. */
@media (orientation: landscape) and (max-height: 500px) {
  header.top { position: relative; }
  [id] { scroll-margin-top: 12px; }
  .signup { scroll-margin-top: 12px; }
  .hero-inner { padding-block: 28px 36px; }
  .hero h1 { font-size: clamp(28px, 4.2vh + 14px, 40px); }
}
/* Both pages: the helper under the language switch (lang-hint.js). */
.lang-hint { position: absolute; top: calc(100% + 14px); left: 0; z-index: 11; width: min(290px, calc(100vw - 24px)); padding: 12px 40px 13px 16px; border-radius: 16px; background: #fff; color: var(--chrome); box-shadow: 0 12px 32px rgb(0 0 0 / .35); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.lang-hint.show { opacity: 1; transform: none; pointer-events: auto; }
.lang-hint::before { content: ""; position: absolute; top: -7px; left: var(--x, 50%); width: 14px; height: 14px; background: #fff; border-radius: 3px; transform: translateX(-50%) rotate(45deg); transition: left .45s ease; }
.lang-hint-hand { position: absolute; top: -29px; left: var(--x, 50%); font-size: 26px; line-height: 1; pointer-events: none; transform: translateX(-35%); transition: left .45s ease; animation: lang-hint-tap 1s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .4)); }
.lang-hint-title { margin: 0 0 4px; color: #5b686b; font-size: 13px; font-weight: 600; }
.lang-hint-text { margin: 0; font-size: 17px; font-weight: 800; }
.lang-hint-text.swap { animation: lang-hint-swap .35s ease; }
.lang-hint-close { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #5b686b; font: 700 22px/1 var(--sans); cursor: pointer; }
.lang-hint-close:hover { background: #eef3f4; }
.lang-hint-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.lang button.lang-hint-on { animation: lang-hint-glow 1s ease-out infinite; color: #fff; }
.lang button.lang-hint-on[aria-pressed="true"] { color: var(--chrome); }
@keyframes lang-hint-tap { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes lang-hint-glow { from { box-shadow: 0 0 0 0 rgb(71 182 217 / .9); } to { box-shadow: 0 0 0 10px rgb(71 182 217 / 0); } }
@keyframes lang-hint-swap { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .lang-hint, .lang-hint::before, .lang-hint-hand { transition: none; }
  .lang-hint-hand, .lang-hint-text.swap { animation: none; }
  .lang button.lang-hint-on { animation: none; box-shadow: 0 0 0 3px var(--accent); }
}
@media (pointer: coarse) {
  .lang-hint-close { width: 44px; height: 44px; top: 2px; right: 2px; }
  .lang-hint { padding-right: 48px; }
}
