/* Varbahn - shared styles for every page.
   Dark (default): black gradient, white text, gold actions. Light: the B "Showroom" look. */
:root {
  --bg: #000;
  --bg-grad: radial-gradient(70% 45% at 50% 0%, rgba(200, 169, 110, .13) 0%, rgba(200, 169, 110, 0) 70%), radial-gradient(120% 80% at 50% 0%, #1d1d1d 0%, #0c0c0c 48%, #000 100%);
  --surface: #101010;
  --surface-2: #161616;
  --fg: #f2f5f9;
  --muted: #a3a3a3;
  --line: #262626;
  --gold: #c8a96e;
  --gold-ink: #0a0e14;
  --blue: #5baeff;
  --green: #3ddba0;
  --menu-bg: rgba(0, 0, 0, .96);
  --font: "Red Hat Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-inter: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Space Grotesk", "Inter", sans-serif;
  --font-wide: "Archivo", "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-head: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Red Hat Display", "Inter", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef0ee;
  --bg-grad: linear-gradient(180deg, #f6f7f5 0%, #eef0ee 60%, #e6e9e5 100%);
  --surface: #fbfbf8;
  --surface-2: #f4f5f2;
  --fg: #0d1015;
  --muted: #4a515c;
  --line: #c9ccc6;
  --gold: #a8864a;
  --gold-ink: #fbfbf8;
  --blue: #2a7fd6;
  --green: #1f9e72;
  --menu-bg: rgba(238, 240, 238, .97);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  color: var(--fg); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li, dd, figcaption, summary { text-wrap: pretty; }   /* no lone last words */
.hero p, .c-hero p, .sec-head p { text-wrap: balance; }   /* short centered intros: even line lengths */
p { margin: 0; }
a { color: inherit; }
:root { --edge: clamp(16px, 2.2vw, 28px); }
.wrap { width: min(1360px, 100% - 2 * clamp(16px, 4vw, 56px)); margin: 0 auto; }
/* Header and footer run edge to edge: logo in the top left corner, menu in the top right */
.hdr .wrap, footer.site .wrap { width: 100%; padding-inline: var(--edge); }
.gold { color: var(--gold); } .blue { color: var(--blue); } .green { color: var(--green); }
.label { font: 500 12px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Splash (kept from v2): centered logo, then fades out */
.splash { position: fixed; inset: 0; z-index: 9999; background: #000; display: grid; place-items: center; transition: opacity 1.6s ease .9s, visibility 0s linear 2.5s; }
.splash.done { opacity: 0; visibility: hidden; }
.splash-in { display: grid; justify-items: center; gap: 22px; }
.splash-mark { width: clamp(84px, 16vw, 130px); height: auto; color: #c8a96e; opacity: 0; transform: translateY(10px); animation: splashIn .8s ease-out .05s forwards; }
.splash span { font: 700 clamp(48px, 12vw, 96px)/1 var(--font-mark); letter-spacing: .22em; color: #c8a96e; padding-left: .22em; opacity: 0; transform: translateY(10px); animation: splashIn .8s ease-out .2s forwards; }
@keyframes splashIn { to { opacity: 1; transform: none; } }

/* Header: logo left, menu right, nothing in between */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-mark); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.logo .mark { width: 40px; height: auto; flex: none; }
.no-symbol .mark { display: none; }
.hdr-r { display: flex; align-items: center; gap: 10px; }
.burger { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); cursor: pointer; position: relative; z-index: 102; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 101; background: var(--menu-bg); backdrop-filter: blur(16px); display: grid; place-content: center; justify-items: center; gap: 34px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: center; }
.menu ul a { font: 700 clamp(32px, 6vw, 54px)/1.1 var(--font-mark); letter-spacing: -.01em; text-decoration: none; color: var(--fg); transition: color .2s; }
.menu ul a:hover, .menu ul a[aria-current="page"] { color: var(--gold); }
body.menu-open { overflow: hidden; }

/* Light / dark toggle: sits in the header, left of the menu. Shows the mode you'll switch to. */
.theme-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; position: relative; z-index: 102; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.theme-toggle:hover, .burger:hover { border-color: var(--gold); color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--font); text-decoration: none; border-radius: 8px; padding: 16px 24px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { box-shadow: 0 0 28px color-mix(in srgb, var(--gold) 40%, transparent); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Sections */
section { padding: clamp(72px, 10vw, 120px) 0; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head :is(h1, h2) { font: 800 clamp(30px, 5vw, 52px)/1.05 var(--font); letter-spacing: -.035em; }
.sec-head p { color: var(--muted); font-size: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 auto; }

/* Home hero */
.hero h1.kicker { font: 500 13px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: none; margin-bottom: -10px; }  /* the real h1 for Google (2026-11-12); the big line below is .ht */
.hero { min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 26px; padding: 120px 0 80px; }
.hero .ht { font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 8.6vw, 116px); font-size-adjust: .52; line-height: .95; letter-spacing: -.035em; max-width: 12ch; }
.fontpick { position: fixed; left: var(--edge); bottom: var(--edge); z-index: 90; width: min(300px, calc(100% - 2 * var(--edge))); background: var(--surface); border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; color: var(--muted); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.fontpick summary { font: 600 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); cursor: pointer; }
.fp-body { display: grid; gap: 10px; margin-top: 12px; }
.fp-body label { display: grid; gap: 5px; font: 500 12px/1.2 var(--font); }
/* Preview tools (remove before launch) */
.fx, .fx :not(svg, svg *) { font-family: var(--fx-family) !important; font-stretch: var(--fx-stretch, normal) !important; }
.fx :is(h1, h2, h3, h4, .ht, .price, .logo span, .menu a) { font-weight: var(--fx-weight) !important; letter-spacing: var(--fx-ls) !important; font-size-adjust: var(--fx-adjust, none); }
.fp-target { outline: 2px dashed var(--blue) !important; outline-offset: 4px; }
.fp-sel { font-size: 12px; line-height: 1.4; color: var(--fg); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.fp-sel i { font-style: normal; color: var(--muted); }
.fx-italic :is(h1, h2, h3, h4, .ht) .gold { font-style: italic; }
.fontpick { max-height: calc(100svh - 2 * var(--edge)); overflow: auto; }
.fp-body button { justify-self: start; font: 600 13px/1 var(--font); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.fp-body button:hover:not(:disabled) { border-color: var(--gold); }
.fp-body button:disabled { opacity: .45; cursor: default; }
.fp-color[data-color="gold"]:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.fp-color[data-color="blue"]:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.fp-color[data-color="green"]:not(:disabled) { color: var(--green); border-color: var(--green); }
.fp-font { font-size: 12px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.fp-font b { color: var(--fg); }
.fp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fp-status { font: 500 12px/1.2 var(--font); color: var(--muted); margin-left: auto; }
.fp-body .fp-switch { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); cursor: pointer; }
.fp-switch input { width: 16px !important; height: 16px; accent-color: var(--gold); padding: 0 !important; }
.fp-hint { font-size: 12px; line-height: 1.4; }
.editing [contenteditable] { cursor: text; border-radius: 4px; }
.editing [contenteditable]:hover { outline: 1px dashed var(--gold); outline-offset: 3px; }
.editing [contenteditable]:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.fontpick select, .fontpick input { font: 500 14px/1.2 var(--font); color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; }
.fontpick input:focus, .fontpick select:focus { border-color: var(--gold); outline: none; }
.hero p { font-size: clamp(18px, 2.2vw, 22px); color: var(--fg); max-width: 40ch; }
.hero .actions { justify-content: center; margin-top: 4px; width: min(100%, 460px); }
.fontpick [hidden] { display: none !important; }
.scroll-cue { margin-top: 18px; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: grid; justify-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); }

.mission { font: 600 clamp(26px, 3.8vw, 42px)/1.25 var(--font); letter-spacing: -.02em; max-width: 26ch; }
.mission em { font-style: normal; color: var(--gold); }

.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--accent, var(--line)); }
.card h3 { font: 700 20px/1.25 var(--font); letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card .label { color: var(--accent, var(--muted)); }
.card.feature { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface) 60%); border-color: var(--gold); }
.card .more { margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--gold); text-decoration: none; }

.closer { text-align: center; display: grid; justify-items: center; gap: 24px; }
.closer h2 { font: 800 clamp(36px, 7vw, 84px)/1 var(--font); letter-spacing: -.045em; }

/* Course page (B + E + F) */
.c-hero { min-height: 92svh; display: grid; align-content: center; gap: 24px; padding: 130px 0 70px; }
.badge { justify-self: start; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 500 13px/1 var(--font-mono); color: var(--muted); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.c-hero h1 { font-family: var(--font-head); font-weight: 800; font-size-adjust: .52; font-size: clamp(48px, 10vw, 128px); line-height: .9; letter-spacing: -.03em; max-width: 11ch; }
.c-hero p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.who { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.who div { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.who b { font-size: 17px; } .who span { color: var(--muted); font-size: 14px; }

.topics { border-top: 1px solid var(--line); }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.topic h3 { font: 700 clamp(20px, 2.4vw, 26px)/1.2 var(--font); letter-spacing: -.015em; }
.topic p { color: var(--muted); }

.tips { border: 1px solid var(--gold); border-radius: 16px; padding: clamp(22px, 4vw, 36px); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%); display: grid; gap: 18px; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { font: 600 clamp(18px, 2.2vw, 22px)/1.35 var(--font); padding-left: 28px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--gold); }

/* Window sticker price (from B) */
.sticker { background: var(--surface); border: 2px solid var(--fg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font: 14px/1.5 var(--font-mono); max-width: 880px; }
.sticker header { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--fg); color: var(--bg); padding: 12px 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.sticker .col { padding: 18px; display: grid; gap: 4px; align-content: start; }
.sticker .col + .col { border-left: 1px solid var(--line); }
.sticker h4 { margin: 0 0 8px; font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sticker .row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding: 5px 0; }
.sticker .row span:last-child { color: var(--muted); white-space: nowrap; }
.sticker footer { grid-column: 1 / -1; border-top: 2px solid var(--fg); padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sticker .price { font: 900 clamp(48px, 7vw, 72px)/1 var(--font-wide); font-stretch: 115%; color: var(--gold); }
.sticker .price small { font: 400 15px/1 var(--font); color: var(--muted); margin-left: 8px; }
.fine { color: var(--muted); font-size: 14px; font-family: var(--font-body); font-weight: 800; max-width: 70ch; margin-top: 16px; }

/* Contact */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { font: 16px/1.4 var(--font); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 48px; }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
footer.site small { justify-self: end; }
footer.site nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 14px; }
footer.site nav a { color: var(--muted); text-decoration: none; }
footer.site nav a:hover { color: var(--fg); }
footer.site small { color: var(--muted); font-size: 13px; font-family: var(--font-inter); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  footer.site .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  footer.site small { justify-self: center; }
  .g4, .g3, .g2, .who { grid-template-columns: minmax(0, 1fr); }
  .topic { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sticker { grid-template-columns: minmax(0, 1fr); }
  .sticker .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .splash, .splash-in { display: grid; justify-items: center; gap: 22px; }
.splash-mark { width: clamp(84px, 16vw, 130px); height: auto; color: #c8a96e; opacity: 0; transform: translateY(10px); animation: splashIn .8s ease-out .05s forwards; }
.splash span { animation: none; transition: none; }
  .splash-in { display: grid; justify-items: center; gap: 22px; }
.splash-mark { width: clamp(84px, 16vw, 130px); height: auto; color: #c8a96e; opacity: 0; transform: translateY(10px); animation: splashIn .8s ease-out .05s forwards; }
.splash span { opacity: 1; transform: none; }
  .menu, .burger span, .btn { transition: none; }
}

/* Contact: booking row above the form */
.book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 34px; }
.book-row span { color: var(--muted); font-size: 15px; }

/* Site fonts, matched to the course page edits (2026-10-18):
   headings in Plus Jakarta Sans, body text and buttons in Red Hat Display. */
.c-hero h1, .sec-head :is(h1, h2), .closer h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.04em; font-size-adjust: .52; }
.btn, .who b, .topic h3, .card h3, .card .more, .mission { font-family: var(--font-body); font-weight: 800; letter-spacing: -.035em; font-size-adjust: .52; }
.hero p, .c-hero p, .sec-head p, .who span, .topic p, .card p, .mail-d { font-family: var(--font-body); font-weight: 800; }
.mail-cell a { font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; }
.c-hero h1 { letter-spacing: -.04em; }

/* Price: the follow-up note sits on its own line under $99 on phones */
@media (max-width: 640px) {
  .sticker .price small { display: block; margin: 12px 0 0; line-height: 1.4; }
}

/* Footer links in Red Hat Display, matched to the contact and course page edits (2026-10-19) */
footer.site nav a { font-family: var(--font-body); font-weight: 800; letter-spacing: -.01em; }

/* Contact: the message box, written as a sentence with tap-to-pick chips (from contact v2) */
.letter { max-width: 880px; background: var(--surface); border: 2px solid var(--fg); }
.letter > header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--fg); color: var(--bg); padding: 12px 18px; font: 600 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.letter form { padding: clamp(22px, 4vw, 40px); display: grid; gap: 28px; }
.sentence { font-family: var(--font-body); font-weight: 800; font-size: clamp(22px, 3vw, 32px); line-height: 1.75; letter-spacing: -.02em; color: var(--muted); }
.sentence input { font: inherit; letter-spacing: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 0 4px; width: 9.5em; max-width: 100%; transition: border-color .2s; }
.sentence input.wide { width: 12em; }
.sentence input:focus { outline: 0; border-color: var(--gold); }
.sentence input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chips legend { font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); font-family: var(--font-body); font-weight: 800; font-size: 15px; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.more-box { display: grid; gap: 12px; }
.more-box span { font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.more-box textarea { font: 800 17px/1.5 var(--font-body); color: var(--fg); background: transparent; border: 0; border-left: 2px solid var(--line); padding: 4px 0 4px 16px; min-height: 110px; resize: vertical; }
.more-box textarea:focus { outline: 0; border-color: var(--gold); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; border-top: 1px dotted var(--line); padding-top: 24px; }
.send small { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; color: var(--muted); }
@media (max-width: 640px) { .sentence input, .sentence input.wide { width: 100%; } }
.reach { display: inline-flex; vertical-align: middle; border: 1px solid var(--line); margin: 0 2px; }
.reach button { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px; background: transparent; color: var(--muted); border: 0; cursor: pointer; }
.reach button[aria-checked="true"] { background: var(--gold); color: var(--gold-ink); }
.mask { position: relative; display: inline-block; vertical-align: baseline; }
.mask .ghost { position: absolute; left: 4px; top: 0; bottom: 2px; display: flex; align-items: center; white-space: pre; pointer-events: none; font: inherit; letter-spacing: inherit; }
.mask .ghost i { font-style: normal; visibility: hidden; }
.mask .ghost b { font-weight: inherit; color: color-mix(in srgb, var(--muted) 55%, transparent); }
@media (max-width: 640px) { .mask { display: block; } }

/* Green action: project inquiries (2026-10-19) */
.btn-green { background: var(--green); color: var(--gold-ink); }
.btn-green:hover { box-shadow: 0 0 28px color-mix(in srgb, var(--green) 40%, transparent); transform: translateY(-1px); }
.hero .actions { width: min(100%, 680px); }
.card .more.green { color: var(--green); }
.card .more.blue { color: var(--blue); }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.green-letter .chips input:checked + span { background: var(--green); border-color: var(--green); }
.green-letter .sentence input:focus, .green-letter .more-box :is(input, textarea):focus { border-color: var(--green); }
.more-box input { font: 800 17px/1.5 var(--font-body); color: var(--fg); background: transparent; border: 0; border-left: 2px solid var(--line); padding: 4px 0 4px 16px; }
.more-box input:focus { outline: 0; border-color: var(--gold); }

/* About: FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-body); font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); font: 500 20px/1 var(--font-mono); }
.faq-item[open] summary::after { content: "−"; border-color: var(--gold); }
.faq-item p { font-family: var(--font-body); font-weight: 800; color: var(--muted); padding: 0 56px 24px 0; max-width: 70ch; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } .faq-item p { padding-right: 0; } }

/* Privacy and Terms */
.legal-hero { min-height: 0; padding-bottom: 20px; }
.legal-hero h1 { font-size: clamp(40px, 7vw, 84px); }
.legal { padding-top: 20px; }
.legal .wrap > * { max-width: 760px; }
.legal h2 { font-family: var(--font-head); font-weight: 800; font-size-adjust: .52; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-family: var(--font-body); font-weight: 800; color: var(--muted); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal b { color: var(--fg); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--gold); }
footer.site small a { color: inherit; text-decoration: none; }
footer.site small a:hover { color: var(--fg); }

/* Cards, style F (2026-10-19): the top of each card is flooded with its color and the title sits on it */
.card { border-radius: 0; padding: 0; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.card-head { --a: var(--accent, var(--gold)); background: var(--a); color: #0a0e14; padding: 18px 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px 12px; }
.card-head h3 { grid-column: 1 / -1; color: #0a0e14; }
:root[data-theme="light"] .card-head h3 { color: #fff; }
.card-head .label { color: #0a0e14; opacity: .72; }
.card-head .ic { width: 26px; height: 26px; fill: none; stroke: #0a0e14; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card > p { padding: 16px 18px 18px; }
.card > p:not(:last-child) { padding-bottom: 6px; }
.card > .more { margin: 0; padding: 4px 18px 18px; color: var(--accent, var(--gold)); }
.card.feature { background: var(--surface); border-color: var(--line); }
.svc { margin-bottom: 14px; }
.svc .wide { grid-column: span 2; }
.card.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.card.feature .card-head { grid-row: 1 / 3; align-content: end; padding: 24px; }
.card.feature .card-head h3 { font-size: clamp(24px, 3vw, 34px); }
.card.feature > p { padding: 24px 24px 6px; align-self: end; }
.card.feature > .more { padding: 4px 24px 24px; }
@media (max-width: 900px) { .card.feature { grid-template-columns: minmax(0, 1fr); } .card.feature .card-head { grid-row: auto; } }
@media (max-width: 640px) { .svc .wide { grid-column: auto; } }

/* Card style switcher (preview toolbox). F above is the default; <html data-cards="..."> swaps in another option
   from the card options board so it can be tried on the real pages. */
:where(:root[data-cards]:not([data-cards="f"])) .card-head { background: none; color: inherit; padding: 0; gap: 10px; }
:where(:root[data-cards]:not([data-cards="f"])) .card-head h3 { color: var(--fg); }
:where(:root[data-cards]:not([data-cards="f"])) .card-head .label { color: var(--accent, var(--gold)); opacity: 1; }
:where(:root[data-cards]:not([data-cards="f"])) .card-head .ic { stroke: var(--accent, var(--gold)); }
:where(:root[data-cards]:not([data-cards="f"])) .card > p, :where(:root[data-cards]:not([data-cards="f"])) .card > .more { padding: 0; }
:where(:root[data-cards]:not([data-cards="f"])) .card.feature { display: grid; grid-template-columns: minmax(0, 1fr); }
:where(:root[data-cards]:not([data-cards="f"])) .card.feature .card-head { grid-row: auto; padding: 0; }
:where(:root[data-cards]:not([data-cards="f"])) .card.feature .card-head h3 { font-size: 20px; }
:where(:root[data-cards]:not([data-cards="f"])) .card.feature > p, :where(:root[data-cards]:not([data-cards="f"])) .card.feature > .more { padding: 0; align-self: auto; }

/* Now: the original rounded box with a thin color line on top */
:root[data-cards="now"] .card { border-radius: 14px; padding: 24px; gap: 10px; border-top: 2px solid var(--accent, var(--gold)); }
:root[data-cards="now"] .card-head .ic { display: none; }
:root[data-cards="now"] .card.feature { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface) 60%); border-color: var(--gold); }

/* A · Index: no box, a big outlined number and a color rule */
:root[data-cards="a"] .grid { counter-reset: card; }
:root[data-cards="a"] .card { counter-increment: card; background: none; border: 0; border-top: 2px solid var(--accent, var(--gold)); padding: 20px 0 8px; gap: 10px; }
:root[data-cards="a"] .card::before { content: counter(card, decimal-leading-zero); font: 900 50px/1 var(--font-wide); font-stretch: 115%; color: transparent; -webkit-text-stroke: 1px var(--accent, var(--gold)); }
:root[data-cards="a"] .card-head .ic { display: none; }

/* B · Sticker: solid label strip on top, square corners, footer row */
:root[data-cards="b"] .card { border: 2px solid var(--fg); gap: 0; }
:root[data-cards="b"] .card-head { gap: 0; }
:root[data-cards="b"] .card-head .label { grid-column: 1 / -1; background: var(--fg); color: var(--bg); padding: 10px 16px; }
:root[data-cards="b"] .card-head .ic { display: none; }
:root[data-cards="b"] .card-head h3 { padding: 18px 16px 8px; }
:root[data-cards="b"] .card > p { padding: 0 16px 18px; }
:root[data-cards="b"] .card > .more { padding: 12px 16px; border-top: 1px dotted var(--line); font: 600 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* C · Spine: square box with a thick color bar down the left and a small icon */
:root[data-cards="c"] .card { position: relative; padding: 22px 22px 22px 27px; gap: 10px; }
:root[data-cards="c"] .card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; background: var(--accent, var(--gold)); }
:root[data-cards="c"] .card-head .ic { grid-row: 1; grid-column: 1; }
:root[data-cards="c"] .card-head:has(.ic) .label { grid-row: 2; }

/* D · Glow: rounded dark glass, a soft light from the corner and an icon chip */
:root[data-cards="d"] .card { border-radius: 18px; padding: 24px; gap: 10px; overflow: hidden; border-color: color-mix(in srgb, var(--accent, var(--gold)) 35%, var(--line)); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent, var(--gold)) 22%, transparent), transparent 60%), var(--surface); }
:root[data-cards="d"] .card-head .ic { grid-row: 1; grid-column: 1; width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent, var(--gold)) 16%, transparent); }
:root[data-cards="d"] .card-head:has(.ic) .label { grid-row: 2; }

/* E · Tab: a colored folder tab holds the label above a square box */
:root[data-cards="e"] .card { position: relative; margin-top: 28px; padding: 20px; gap: 10px; border-top: 2px solid var(--accent, var(--gold)); }
:root[data-cards="e"] .card-head .label { position: absolute; top: -28px; left: -1px; background: var(--accent, var(--gold)); color: #0a0e14; padding: 8px 12px 7px; }
:root[data-cards="e"] .card-head .ic { display: none; }

/* G · Rows: no boxes, full-width numbered rows that fill with color on tap or hover */
:root[data-cards="g"] .grid:has(> .card) { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: card; }
:root[data-cards="g"] .svc .wide { grid-column: auto; }
:root[data-cards="g"] .card { counter-increment: card; position: relative; isolation: isolate; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 22px 12px; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 6px 20px; }
:root[data-cards="g"] .card::before { content: counter(card, decimal-leading-zero); grid-row: 1 / 3; font: 900 34px/1 var(--font-wide); font-stretch: 115%; color: transparent; -webkit-text-stroke: 1px var(--accent, var(--gold)); }
:root[data-cards="g"] .card::after { content: ""; position: absolute; inset: 0; background: var(--accent, var(--gold)); transform: scaleY(0); transform-origin: bottom; transition: transform .3s; z-index: -1; }
:root[data-cards="g"] .card:hover::after { transform: scaleY(1); }
:root[data-cards="g"] .card:hover :is(h3, p, .label, .more) { color: #0a0e14; }
:root[data-cards="g"] .card:hover::before { -webkit-text-stroke-color: #0a0e14; }
:root[data-cards="g"] .card-head, :root[data-cards="g"] .card.feature .card-head { grid-row: 1 / 3; grid-column: 2; padding: 0; }
:root[data-cards="g"] .card::before { grid-column: 1; }
:root[data-cards="g"] .card-head .ic { display: none; }
:root[data-cards="g"] .card > p { grid-column: 3; }
:root[data-cards="g"] .card > .more { grid-column: 3; }
:root[data-cards="g"] .card.feature { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr); margin-top: 0; }
:root[data-cards="g"] .card.feature .card-head { grid-row: 1 / 3; }
:root[data-cards="g"] .card.feature .card-head h3 { font-size: 20px; }
@media (max-width: 760px) {
  :root[data-cards="g"] .card, :root[data-cards="g"] .card.feature { grid-template-columns: minmax(0, 1fr); }
  :root[data-cards="g"] .card::before, :root[data-cards="g"] .card-head, :root[data-cards="g"] .card.feature .card-head { grid-row: auto; grid-column: auto; }
  :root[data-cards="g"] .card > p, :root[data-cards="g"] .card > .more { grid-column: auto; }
}
.fontpick .fp-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.fontpick .fp-cards button[aria-pressed="true"] { background: var(--gold); color: #0a0e14; border-color: var(--gold); }
.fp-body .fp-lab { display: grid; gap: 5px; font: 500 12px/1.2 var(--font); }

/* Home hero: the gold Pulse symbol above "Be the best." (2026-10-19) */
.hero-mark { width: clamp(90px, 13.75vw, 165px); height: auto; color: var(--gold); margin-bottom: -6px; }

/* Phones: a smaller, softer gold glow at the top so more black shows (2026-10-19). Narrower than before so the
   edges stay dark like on desktop; it still stretches with the page on iPhones, as it always has (2026-10-22). */
@media (max-width: 640px) {
  :root { --bg-grad: radial-gradient(52% 32% at 50% 0%, rgba(200, 169, 110, .11) 0%, rgba(200, 169, 110, 0) 70%), radial-gradient(100% 50% at 50% 0%, #1a1a1a 0%, #0a0a0a 50%, #000 100%); }
}


/* Inquiry form: services drop-down with card-style options (2026-10-19) */
.ms-field { display: grid; gap: 12px; }
.ms-legend { font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ms { position: relative; }
.ms-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font: 800 17px/1.3 var(--font-body); letter-spacing: -.02em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 16px 18px; cursor: pointer; }
.ms.has .ms-btn { color: var(--fg); border-color: var(--ms-accent, var(--green)); }
.ms.open .ms-btn { border-color: var(--ms-accent, var(--green)); }
.ms-caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; flex: none; }
.ms.open .ms-caret { transform: translateY(2px) rotate(-135deg); }
.ms-panel { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ms-panel[hidden] { display: none; }
.ms-opt { position: relative; cursor: pointer; display: block; }
.ms-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ms-card { display: grid; height: 100%; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s; }
.ms-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent); padding: 8px 10px; transition: background .15s, color .15s; }
.ms-head small { font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.ms-head .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-card b { padding: 10px 10px 12px; font: 800 15px/1.25 var(--font-body); letter-spacing: -.02em; color: var(--fg); }
.ms-opt input:checked + .ms-card { border-color: var(--accent); }
.ms-opt input:checked + .ms-card .ms-head { background: var(--accent); color: #0a0e14; }
.ms-opt input:checked + .ms-card .ms-head small::before { content: "✓ "; }
.ms-opt input:focus-visible + .ms-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.ms-done { grid-column: 1 / -1; justify-self: end; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #0a0e14; background: var(--ms-accent, var(--green)); border: 0; padding: 12px 18px; cursor: pointer; }

/* Home hero headline in Plus Jakarta Sans (picked in the toolbox, 2026-10-20) */
.hero .ht { font-family: var(--font-head); font-weight: 800; letter-spacing: -.045em; }

/* Affiliates: small links inside the form note */
.send small a { color: var(--gold); }

/* Home hero: Submit inquiry in blue (2026-10-21) */
.btn-blue { background: var(--blue); color: var(--gold-ink); }
.btn-blue:hover { box-shadow: 0 0 28px color-mix(in srgb, var(--blue) 40%, transparent); transform: translateY(-1px); }

/* Footer: social icons above the copyright line (2026-10-21) */
.foot-r { justify-self: end; display: grid; gap: 12px; justify-items: end; }
.foot-r small { justify-self: auto; }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s; }
.social a:hover { color: var(--gold); border-color: var(--gold); }
.social a[hidden] { display: none; }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .foot-r { justify-self: center; justify-items: center; } }
@media (min-width: 761px) { .foot-r small { white-space: nowrap; } }

/* Forms: hidden honeypot, Turnstile slot, and the sent state (2026-10-21) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }  /* no -9999px offset: in Arabic (right to left) it made the page scroll sideways */
.ts:empty { display: none; }
.btn.is-sending { opacity: .7; pointer-events: none; }
.btn.is-sent { background: var(--green) !important; color: #0a0e14 !important; border-color: var(--green) !important; pointer-events: none; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #ff8a8a; }

/* Footer links stack 3 then 2 on phones (2026-10-21) */
footer.site nav .fbr { display: none; }
@media (max-width: 760px) { footer.site nav { row-gap: 0; } footer.site nav .fbr { display: block; flex-basis: 100%; height: 28px; } }

/* Email addresses (contact page grid, notes under the course price and inquiry form) */
.mail-grid { max-width: 880px; margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mail-cell { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.mail-k { font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mail-cell a { color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.mail-cell a:hover { color: var(--accent); }
.mail-d { font-size: 14px; color: var(--muted); }
.mail-note { margin-top: 18px; color: var(--muted); font-size: 15px; font-family: var(--font-body); font-weight: 800; }
.mail-note a { color: var(--fg); font-weight: 800; text-underline-offset: 3px; }
.mail-note a:hover { color: var(--gold); }
@media (max-width: 760px) { .mail-grid { grid-template-columns: 1fr; } }
footer.site small { line-height: 1.7; }
/* "Other" text box under a form drop-down */
.ms-other { font: 800 17px/1.5 var(--font-body); color: var(--fg); background: transparent; border: 0; border-left: 2px solid var(--ms-other-accent, var(--gold)); padding: 6px 0 6px 14px; }
.green-letter .ms-other { --ms-other-accent: var(--green); }
.ms-other:focus { outline: 0; border-left-width: 4px; }
.ms-other::placeholder { color: var(--muted); }
.ms-other[hidden] { display: none; }
.ms-panel[role="radiogroup"] .ms-opt input:checked + .ms-card .ms-head small::before { content: "● "; }

/* ===== Languages: English plus 9 translations (/es/ /ar/ /fr/ /pt/ /ru/ /so/ /hmn/ /zh/ /ja/). Pages are built by deploy/i18n.py ===== */
/* Menu language dropdown: one button with the current language; tapping it opens the list */
.lang-pick { width: min(300px, 100%); margin-inline: auto; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.lang-pick summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font: 700 16px/1 var(--font-body); color: var(--fg); }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; flex: none; }
.lang-pick summary span { flex: 1; text-align: start; }
.lang-pick summary i { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.lang-pick[open] summary i { transform: rotate(-135deg) translate(-2px, -2px); }
.lang-pick[open] summary { border-bottom: 1px solid var(--line); }
.lang-list { display: grid; max-height: min(46vh, 420px); overflow: auto; overscroll-behavior: contain; padding: 6px 0; }
.lang-list a { display: block; padding: 11px 16px; font: 600 16px/1.2 var(--font-body); color: var(--muted); text-decoration: none; text-align: start; }
.lang-list a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lang-list a[aria-current="true"] { color: var(--gold); }
/* Line every language up with the page direction, including Arabic in the English list */
html:not([dir="rtl"]) .lang-list a { text-align: left; }
html[dir="rtl"] .lang-list a { text-align: right; }
.lang-foot a[aria-current="true"] { color: var(--fg); }

/* Arabic reads right to left: one Arabic face for all its text (letter-spacing breaks joined letters, so none),
   and the few rules that name a side get mirrored. Flex and grid layouts mirror on their own. */
html[lang="ar"] body *:not(.logo span):not(.splash span):not(svg *) { font-family: "IBM Plex Sans Arabic", var(--font-body) !important; letter-spacing: 0 !important; }
html[lang="ar"] .tips li { padding-left: 0; padding-right: 28px; }
html[lang="ar"] .tips li::before { left: auto; right: 0; }
html[lang="ar"] .sticker .col + .col { border-left: 0; border-right: 1px solid var(--line); }
html[lang="ar"] .sticker .price small { margin-left: 0; margin-right: 8px; }
html[lang="ar"] :is(.more-box textarea, .more-box input) { border-left: 0; border-right: 2px solid var(--line); padding: 4px 16px 4px 0; }
html[lang="ar"] .ms-other { border-left: 0; border-right: 2px solid var(--ms-other-accent, var(--gold)); padding: 6px 14px 6px 0; }
html[lang="ar"] .ms-other:focus { border-right-width: 4px; }
html[lang="ar"] .ms-btn { text-align: right; }
html[lang="ar"] .faq-item p { padding: 0 0 24px 56px; }
html[lang="ar"] .legal ul { padding-left: 0; padding-right: 20px; }
html[lang="ar"][data-cards="c"] .card::before { left: auto; right: -1px; }
html[lang="ar"][data-cards="e"] .card-head .label { left: auto; right: -1px; }
html[lang="ar"] .mask, html[lang="ar"] input[type="email"], html[lang="ar"] input[type="tel"] { direction: ltr; }
html[lang="ar"] .mask input { text-align: right; }
@media (max-width: 640px) { html[lang="ar"] .sticker .col + .col { border-right: 0; } }
@media (max-width: 640px) { html[lang="ar"] .faq-item p { padding-left: 0; } }

/* Chinese and Japanese: no letter-spacing (the Latin headings use negative tracking, which crowds the characters) */
html:is([lang="zh"], [lang="ja"]) body *:not(.logo span):not(.splash span):not(svg *) { letter-spacing: 0 !important; line-break: strict; }

/* Language suggestion bar (site.js). Slides up from the bottom; never redirects. */
.lang-hint { position: fixed; left: 24px; bottom: 24px; z-index: 120; width: min(440px, calc(100% - 48px)); background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 20px 22px; display: grid; gap: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .5s cubic-bezier(.2, .9, .3, 1), opacity .4s; }
.lang-hint.on { transform: none; opacity: 1; }
.lang-hint[dir="rtl"] { left: auto; right: 24px; font-family: "IBM Plex Sans Arabic", var(--font-body); }
.lang-hint .lh-txt b { display: block; font: 800 19px/1.25 var(--font-body); color: var(--fg); letter-spacing: -.01em; }
.lang-hint[dir="rtl"] .lh-txt b { font-family: "Noto Kufi Arabic", var(--font-body); letter-spacing: 0; }
.lang-hint .lh-txt span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.lang-hint .lh-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lang-hint .lh-go { background: var(--gold); color: #000; font: 700 15px/1 var(--font-body); text-decoration: none; padding: 13px 18px; }
.lang-hint .lh-no { background: none; border: 0; color: var(--muted); font: 600 15px/1 var(--font-body); padding: 13px 6px; cursor: pointer; }
.lang-hint .lh-no:hover { color: var(--fg); }
.lang-hint .lh-x { position: absolute; top: 10px; inset-inline-end: 12px; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; }
.lang-hint[dir="ltr"] .lh-txt, .lang-hint[dir="rtl"] .lh-txt { padding-inline-end: 22px; }
@media (max-width: 640px) {
  .lang-hint, .lang-hint[dir="rtl"] { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
}

/* Preview-only strip for testing the language bar (shown on claude.ai previews only) */
.lh-test { position: fixed; top: 76px; left: 12px; right: 12px; z-index: 110; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: var(--bg); border: 1px dashed var(--gold); font: 600 12px/1 var(--font-body); color: var(--muted); }
.lh-test button { background: none; border: 1px solid var(--line); color: var(--fg); font: 700 12px/1 var(--font-body); padding: 7px 8px; cursor: pointer; }

/* Translated Privacy and Terms pages: the English version applies (deploy/i18n.py adds this note) */
.legal-note { border-inline-start: 2px solid var(--gold); padding: 10px 0 10px 16px; padding-inline: 16px 0; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal-note a { color: var(--gold); }

/* The Varbahn wordmark keeps Space Grotesk and its wide spacing in every language (2026-11-09) */
html[lang] .logo span { font-family: var(--font-mark) !important; letter-spacing: .2em !important; }
html[lang] .splash span { font-family: var(--font-mark) !important; letter-spacing: .22em !important; }
/* Arabic letters are taller than Latin ones: open up the line height so stacked headline lines don't touch */
html[lang="ar"] :is(.hero .ht, .c-hero h1) { line-height: 1.3; }
html[lang="ar"] :is(.sec-head h1, .sec-head h2, .closer h2, .legal-hero h1) { line-height: 1.35; }

/* Footer language button: same dropdown as the menu, compact, list opens upward (2026-11-09) */
.lang-pick-foot { position: relative; width: auto; min-width: 170px; margin: 0; background: transparent; }
.lang-pick-foot summary { padding: 9px 12px; font-size: 14px; color: var(--muted); }
.lang-pick-foot summary svg { width: 16px; height: 16px; }
.lang-pick-foot[open] summary { border-bottom: 0; }
.lang-pick-foot .lang-list { position: absolute; bottom: calc(100% + 6px); inset-inline-end: -1px; min-width: calc(100% + 2px); background: var(--bg); border: 1px solid var(--line); z-index: 20; max-height: min(60vh, 420px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
.lang-pick-foot .lang-list a { font-size: 15px; padding: 9px 14px; }

/* ===== Service pages (2026-11-10: Websites live; the other 6 are still in the preview) ===== */
.svc-hero h1 { max-width: 13ch; }
.svc-note { color: var(--muted); max-width: 46ch; font-family: var(--font-body); font-weight: 800; }
/* Home service cards: a card with an "Explore" link shares its row's 3 tracks, so the colored tops and the links line up.
   Every card in a grid that has links takes the same 3 rows, so a card without one can't stretch its row. */
.svc:has(.more) .card { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: stretch; }
.svc .card > .more { align-self: end; }
.svc:has(.more) .card > .card-head { align-content: space-between; }
/* Breadcrumb above the title, current page in the page color */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 700 14px/1.3 var(--font-body); color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs b { color: var(--accent, var(--gold)); font-weight: 800; }
/* What you get · Spotlight: first item a solid accent block, the others beside it */
.sic { width: 26px; height: 26px; fill: none; stroke: var(--acc, var(--green)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spot { --acc: var(--green); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.spot-lead { background: var(--acc); padding: 32px; display: grid; gap: 14px; align-content: end; min-height: 260px; }
.spot-lead h3 { margin: 0; color: #0a0e14; font: 800 clamp(28px, 3.4vw, 38px)/1.1 var(--font-body); letter-spacing: -.045em; font-size-adjust: .52; }
.spot-lead p { color: #0a0e14; opacity: .82; font-family: var(--font-body); font-weight: 800; }
.spot-rest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spot-item { border: 1px solid var(--line); padding: 20px; display: grid; gap: 8px; align-content: start; }
.spot-item h3 { margin: 0; font: 800 20px/1.25 var(--font-body); letter-spacing: -.035em; font-size-adjust: .52; }
.spot-item p { color: var(--muted); font-family: var(--font-body); font-weight: 800; }
.spot-rest > .spot-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Who it's for · Icon boxes */
.iboxes { --acc: var(--green); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ibox { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.ibox .sic { grid-row: span 2; width: 28px; height: 28px; }
.ibox b { font: 800 17px/1.3 var(--font-body); letter-spacing: -.035em; font-size-adjust: .52; }
.ibox span { color: var(--muted); font-size: 14px; font-family: var(--font-body); font-weight: 800; }
/* How it works · Timeline */
.tl { --acc: var(--green); list-style: none; margin: 0; padding: 0; max-width: 680px; }
.tl li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 28px; }
.tl li:last-child { padding-bottom: 0; }
.tl li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.tl-n { width: 44px; height: 44px; border: 2px solid var(--acc); color: var(--acc); display: grid; place-items: center; font: 600 15px/1 var(--font-mono); background: var(--bg); }
.tl li:last-child .tl-n { background: var(--acc); color: #0a0e14; }
.tl b { display: block; padding-top: 8px; font: 800 19px/1.3 var(--font-body); letter-spacing: -.035em; font-size-adjust: .52; }
.tl li span:not(.tl-n) { color: var(--muted); font-family: var(--font-body); font-weight: 800; }
@media (max-width: 900px) { .spot { grid-template-columns: minmax(0, 1fr); } .spot-lead { min-height: 0; } }
@media (max-width: 640px) { .spot-rest, .iboxes { grid-template-columns: minmax(0, 1fr); } }
/* Japanese and Chinese service page headings break only between phrases (marked with a zero width space) and at punctuation */
html:is([lang="ja"], [lang="zh"]) body[data-page$="websites"] :is(h1, h2) { word-break: keep-all; overflow-wrap: anywhere; }
/* The closing "Ready when you are" / "Simplifying the professional world" band follows a full section, so it takes no top
   padding of its own: the gap above it (the previous section's bottom padding) then equals the gap below it to the footer
   line (2026-11-10: the two paddings added up to 240px on desktop) */
section:has(> .closer) { padding-top: 0; }
/* Both gaps around the closing band: 76px on a phone, scaling up to 127px on a computer (2026-11-10, was 72 / 120) */
section:has(+ section > .closer), section:has(> .closer) { padding-bottom: clamp(76px, 10vw, 127px); }

/* Recent work (homepage, 2026-11-11): screenshot cards */
.work .card { padding: 0 0 24px; overflow: hidden; }
.work .card > :not(.shot) { padding-inline: 24px; }
.work .shot { margin: 0 0 6px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.work .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .work.g2 { grid-template-columns: 1fr; } }

  /* Dealership dashboard V2: reads like a real dealer system. Flat, dense, navy app bar, square edges, ruled table, tabular numbers */
  .work .shot.b-dms { background: #e8ebf0; color: #17202e; display: grid; grid-template-columns: 38px minmax(0, 1fr); font: 500 10.5px/1.3 "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
  .dm-side { background: #0b1a31; display: grid; align-content: start; justify-items: center; gap: 4px; padding: 0 0 8px; border-inline-end: 1px solid #06101f; }
  .dm-side .dm-mk { width: 100%; height: 30px; display: grid; place-items: center; background: #1b4f9c; color: #fff; font: 700 12px/1 "Manrope", sans-serif; margin-bottom: 4px; }
  .dm-side svg { width: 100%; height: 26px; padding: 6px 0; fill: none; stroke: #7f8ea8; stroke-width: 1.6; stroke-linecap: square; }
  .dm-side svg.on { stroke: #fff; background: #16294a; box-shadow: inset 2px 0 #4f8cf0; }
  .dm-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }
  .dm-top { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #12284a; color: #fff; white-space: nowrap; }
  .dm-top b { font-weight: 600; font-size: 11.5px; letter-spacing: .01em; }
  .dm-crumb { color: #9fb0cb; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
  .dm-crumb::before { content: "/"; margin-inline-end: 8px; color: #4d6286; }
  .dm-search { margin-inline-start: auto; display: flex; align-items: center; gap: 5px; background: #fff; color: #6b7689; border: 1px solid #0a1a33; border-radius: 2px; padding: 3px 7px; font-size: 9.5px; min-width: 0; overflow: hidden; }
  .dm-search svg { width: 10px; height: 10px; flex: none; fill: none; stroke: #6b7689; stroke-width: 2; }
  .dm-user { width: 20px; height: 20px; flex: none; display: grid; place-items: center; background: #2a4470; border: 1px solid #4d6286; font-size: 9px; font-weight: 600; }
  .dm-body { padding: 8px 10px; display: grid; gap: 7px; align-content: start; min-width: 0; overflow: hidden; }
  .dm-kpi { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid #c5ccd8; }
  .dm-kpi div { padding: 5px 8px 6px; display: grid; gap: 1px; border-inline-start: 1px solid #dde2ea; min-width: 0; }
  .dm-kpi div:first-child { border-inline-start: 0; }
  .dm-kpi small { color: #5b6678; font-size: 8.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dm-kpi b { font-size: 16px; font-weight: 600; line-height: 1.1; }
  .dm-kpi i { font-style: normal; color: #6b7689; font-size: 8.5px; white-space: nowrap; }
  .dm-kpi .up { color: #157a3f; } .dm-kpi .warn { color: #a85b00; }
  .dm-panel { background: #fff; border: 1px solid #c5ccd8; min-width: 0; }
  .dm-ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 8px; background: #dfe4ec; border-bottom: 1px solid #c5ccd8; color: #2b3647; font-size: 8.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
  .dm-ph span { color: #5b6678; letter-spacing: .03em; text-transform: none; font-weight: 500; }
  .dm-inc > div:not(.dm-ph) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 3px 8px; border-top: 1px solid #e6e9ef; white-space: nowrap; }
  .dm-inc > .dm-ph + div { border-top: 0; }
  .dm-inc small { color: #5b6678; font-size: 9.5px; }
  .dm-tbl > div { display: grid; grid-template-columns: 44px minmax(0, 1fr) 76px 70px 30px; gap: 8px; align-items: center; padding: 3px 8px; border-top: 1px solid #e6e9ef; white-space: nowrap; }
  .dm-tbl > div:nth-child(odd):not(.dm-h) { background: #f6f8fa; }
  .dm-tbl > div > span { overflow: hidden; text-overflow: ellipsis; }
  .dm-tbl > div > span:last-child { text-align: end; }
  .dm-tbl .dm-h { border-top: 0; background: #dfe4ec; border-bottom: 1px solid #c5ccd8; color: #2b3647; font-size: 8.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
  .dm-tbl code { font: 500 9.5px/1 "Roboto Mono", monospace; color: #2b3647; overflow: hidden; text-overflow: ellipsis; }
  .dm-tbl code.stk { color: #1b4f9c; font-weight: 600; }
  .dm-tbl .age-hi { color: #b42318; font-weight: 600; }
  /* status: a flat tag with a colored edge, like a DMS grid, not a soft pill */
  .b-dms em { font-style: normal; font-size: 9px; font-weight: 600; padding: 2px 6px; border: 1px solid; border-inline-start-width: 3px; border-radius: 0; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff; }
  .b-dms .s-ready { color: #146c38; border-color: #9fd3b2 #9fd3b2 #9fd3b2 #1f8a4c; }
  .b-dms .s-det { color: #1b4f9c; border-color: #aec4e8 #aec4e8 #aec4e8 #2d6bd1; }
  .b-dms .s-parts { color: #8a4b00; border-color: #e5c48f #e5c48f #e5c48f #c07a12; }
  .b-dms .s-insp { color: #9b1c14; border-color: #e7aea9 #e7aea9 #e7aea9 #c4382c; }
  .b-dms .s-tr { color: #1b4f9c; border-color: #aec4e8 #aec4e8 #aec4e8 #2d6bd1; }
  .b-dms .s-due { color: #9b1c14; border-color: #e7aea9 #e7aea9 #e7aea9 #c4382c; }
  .dm-foot { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 10px; background: #f3f5f8; border-top: 1px solid #c5ccd8; color: #3b4658; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
  .dm-foot .dm-sync { display: inline-flex; align-items: center; gap: 4px; color: #146c38; font-weight: 600; padding-inline-end: 7px; border-inline-end: 1px solid #c5ccd8; }
  .dm-foot .dm-sync::before { content: ""; width: 6px; height: 6px; background: #1f8a4c; }
  .dm-foot span:last-child { margin-inline-start: auto; color: #6b7689; }
  .dm-foot b { font-weight: 600; }
  .dm-tbl code .v-pre { display: none; }
  .b-dms:has(.dm-vt input:checked) .dm-tbl code .v-pre { display: inline; }
  .b-dms:has(.dm-vt input:checked) .dm-tbl > div { grid-template-columns: 44px minmax(0, 1fr) 118px 70px 30px; }
  .dm-vt { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 9px; color: #1b4f9c; }
  .dm-vt input { width: 10px; height: 10px; margin: 0; border-radius: 0; accent-color: #1b4f9c; }
  @media (max-width: 760px) {
    .work .shot.b-dms { aspect-ratio: auto; grid-template-columns: 1fr; }
    .dm-side { display: none; }
    .dm-crumb { display: none; }
    .dm-kpi { grid-template-columns: repeat(2, 1fr); }
    .dm-kpi div:nth-child(3) { border-inline-start: 0; }
    .dm-kpi div:nth-child(n+3) { border-top: 1px solid #dde2ea; }
    .dm-inc > div:not(.dm-ph) { grid-template-columns: minmax(0, 1fr) auto; } .dm-inc small { grid-column: 1; grid-row: 2; } .dm-inc em { grid-column: 2; grid-row: 1 / 3; }
    .dm-tbl > div, .b-dms:has(.dm-vt input:checked) .dm-tbl > div { grid-template-columns: 48px minmax(0, 1fr) 70px; row-gap: 2px; }
    .dm-tbl > div > :nth-child(3) { grid-column: 2; grid-row: 2; color: #5b6678; }
    .dm-tbl > div > :nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
    .dm-tbl > div > :nth-child(5) { display: none; }
    .dm-tbl .dm-h > :nth-child(3) { display: block; }
  }
  [dir="rtl"] .dm-tbl > div > span:nth-child(2), [dir="rtl"] .dm-inc > div:not(.dm-ph) > span { direction: ltr; text-align: right; }

/* Hero headline (2026-11-12) */
.hero .ht.ht-b { font-size: clamp(40px, 6.4vw, 88px); line-height: 1; max-width: 17ch; }
.hero .ht.ht-b .gold { display: block; white-space: nowrap; } /* "for growing businesses." always on its own line */
@media (max-width: 560px) { .hero .ht.ht-b { font-size: min(40px, 8.3vw); } }

/* Euro Tints card: phones and booking pictures that switch every 5 seconds (homepage, 2026-11-12) */
.et-ph { position: absolute; background: #050505; border: 4px solid #2b2b2f; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.work .shot .et-ph img { height: auto; aspect-ratio: 400 / 869; object-fit: cover; }
.et-trio { display: flex; justify-content: center; align-items: flex-start; gap: 4%; padding-top: 7%; }
.et-trio .et-ph { position: relative; width: 25%; flex: none; }
.et-trio .et-ph:nth-child(2) { margin-top: -3%; }
.work .shot.et-fade { position: relative; background: radial-gradient(120% 90% at 30% 0%, #2a2112 0%, #0b0b0c 60%); touch-action: pan-y; }
.et-fade .et-sl { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.et-fade .et-sl.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.et-fade .et-sl.et-trio { display: flex; }
.et-sl img { display: block; width: 100%; height: 100%; object-fit: cover; }
.et-fade .et-trio { padding-top: 5%; }
.et-fade .et-trio .et-ph { width: 23%; }
.et-bar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; display: flex; padding: 0 8px; background: rgba(8,8,9,.72); }
.et-tabs { display: flex; gap: 8px; }
.et-tabs button { position: relative; width: 72px; height: 26px; padding: 0; background: none; border: 0; cursor: pointer; }
.et-tabs button::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px; background: rgba(255,255,255,.3); box-shadow: 0 1px 6px rgba(0,0,0,.55); transition: background .2s; }
.et-tabs button:hover::after, .et-tabs button:focus-visible::after { background: rgba(255,255,255,.5); }
.et-tabs button:focus-visible { outline: 1px solid #3ddba0; outline-offset: -1px; }
.et-tabs button i { position: absolute; left: 0; top: 10px; height: 6px; width: 0; background: #3ddba0; z-index: 1; }
.et-tabs button[aria-selected="true"] i { width: 100%; }
@media (prefers-reduced-motion: reduce) { .et-fade .et-sl, .et-fade .et-sl.on { transition: none; } }
/* Translated headlines can run longer, so let the gold line wrap there (it still starts on its own line) */
html:not([lang="en"]) .hero .ht.ht-b .gold { white-space: normal; }

/* Phone line under the contact intro */
.sec-head .call-line { font-size: 16px; margin-top: 4px; }
.call-line a { color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
