/* kurocyber.com styles. Design rules and tokens are documented in DESIGN.md. */

/* ---------- fonts: self-hosted IBM Plex Sans (SIL Open Font License, see /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  /* color */
  --bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #4a4a4a;
  --accent: #15803d;          /* the one green (WhatsApp green's hue, darker): buttons, logo piece, icons, lines, links on white.
                                 5.0:1 on white and with white text on it; 3.9:1 on black (graphics only, never text on black) */
  --accent-ink: #ffffff;
  --danger: #b42318;          /* form error text on white (6.6:1); always paired with words */
  --soft-on-dark: #c9c9cd;
  --line: #e4e4e7;            /* hairline dividers */

  /* type */
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-lead: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  --step-head: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  --step-display: clamp(4rem, min(1rem + 11vw, 22svh), 11.5rem); /* follows width and height, for short laptop screens */

  /* space */
  --margin: clamp(1.25rem, 3.5vw, 3.5rem);
  --section: clamp(3.5rem, 6.5vw, 6.5rem);
  --gap: 1.5rem;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; hyphens: none; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; }
a, button { cursor: pointer; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--margin); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
:target { scroll-margin-top: 6rem; }
section[id] { scroll-margin-top: 5.5rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.75rem 1rem; background: var(--ink); color: #ffffff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; } /* z-index above the fixed top bar (50) so keyboard users can see it */

/* ---------- logo: "kur" + broken o + "cyber", one color; only the piece is green ---------- */
.logo { display: inline-block; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }
.logo .o { display: inline-block; width: 0.654em; height: 0.654em; margin: 0 0.02em; vertical-align: -0.02em; overflow: visible; }
.logo .ring { stroke: currentColor; }
.logo .piece { stroke: var(--accent); }

/* ---------- buttons: square, one fill ---------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .btn:hover { background: var(--ink); } }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
@media (hover: hover) { .btn.ghost:hover { background: var(--ink); color: #ffffff; } }

/* ---------- section headings: one system everywhere ---------- */
.svc-top h2, .process h2, .blog h2, .team h2, .faq h2, .contact h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.svc-top p, .blog .intro-line, .contact .lead2 { font-size: var(--step-lead); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; max-width: 38ch; }
.svc-top p, .blog .intro-line { color: var(--muted); }
.process h2, .team h2, .faq h2 { margin-bottom: 2.5rem; }

/* ---------- hero: two fields with the headline across the seam ---------- */
.hero { position: relative; height: clamp(560px, 100svh, 960px); background: var(--bg); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 50% 0 0 0; background: var(--ink); }
.hero nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; background: #ffffff; border-bottom: 1px solid transparent; transition: border-color var(--t-ui) var(--ease-out); }
.hero nav.scrolled { padding-block: 1rem; border-bottom-color: var(--ink); }
.wordmark { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.035em; text-decoration: none; } /* 26px phone to 34px desktop */
.navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.navlinks a:not(.btn) { text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .navlinks a:not(.btn):hover { color: var(--accent); } }
.navlinks a.active { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.seam { position: absolute; z-index: 1; left: var(--margin); right: var(--margin); top: 50%; transform: translateY(-50%); text-align: center; mix-blend-mode: difference; }
.seam h1 { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.05em; line-height: 0.86; color: #ffffff; }
/* the o of "box" is the logo's broken o. The headline uses mix-blend-mode: difference and the
   o sits on the black field, where the colour shows as-is. */
.seam .ho { display: inline-block; width: 0.56em; height: 0.56em; margin: 0 0.015em; vertical-align: -0.01em; overflow: visible; }
.seam .ho .ring { stroke: currentColor; }
.seam .ho .piece { stroke: var(--accent); transform: translate(5px, -5px); } /* resting place: broken out */
/* on load the piece sits in the ring, then breaks out; with reduced motion it is simply already out */
@media (prefers-reduced-motion: no-preference) {
  .seam .ho .piece { animation: piece-out var(--t-open) var(--ease-expo) 0.6s both; }
}
@keyframes piece-out {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(0.6px, -0.6px); }
  100% { transform: translate(5px, -5px); }
}
.hero .lede { position: absolute; z-index: 1; left: var(--margin); right: var(--margin); bottom: 3.5rem; margin-inline: auto; max-width: 34ch; text-align: center; color: #ffffff; font-size: var(--step-lead); line-height: 1.3; }
@media (min-width: 601px) and (max-height: 800px) { /* short laptop screens */
  .hero nav { padding-block: 1rem; }
  .hero .lede { bottom: 2rem; }
}

/* ---------- what we test ---------- */
.services { padding-block: clamp(7rem, 18vh, 11rem); }
.svc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 3rem; }
.svc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.svc li { position: relative; grid-column: span 2; min-height: 19rem; display: flex; flex-direction: column; gap: 0.9rem; padding: 2rem; background: #ffffff; border: 1px solid var(--ink); transition: border-color var(--t-hover) var(--ease-out); }
.svc li:nth-child(n+4) { grid-column: span 3; min-height: 16rem; }
.svc .ico { width: 48px; height: 48px; display: grid; place-items: center; margin-left: -0.6rem; color: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
.svc h3 { margin-top: auto; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.svc .tag { align-self: flex-start; color: var(--accent); font-size: var(--step-small); font-weight: 600; }
.svc .d { max-width: 40ch; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
/* hover: the green bar from the engagement panel draws across the top; exits faster than it enters */
.svc li::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease-out); pointer-events: none; }
@media (hover: hover) {
  .svc li:hover { border-color: var(--accent); transition-duration: var(--t-ui); }
  .svc li:hover::before { transform: scaleX(1); transition-duration: var(--t-ui); }
  .svc li:hover .ico { transform: translateX(4px); transition-duration: var(--t-ui); }
}

/* ---------- how an engagement runs (dark) ---------- */
.process { padding-block: var(--section); background: var(--ink); color: #ffffff; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; align-items: stretch; }
.steps li { position: relative; display: flex; border: 1px solid #ffffff; transition: border-color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .steps li:hover { border-color: var(--accent); } }
.steps li.on { border-color: #ffffff; }
/* arrows between the boxes */
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 50%; right: -2.1rem; width: 1.7rem; height: 2px; background: var(--accent); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: calc(50% - 5px); right: -2.05rem; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.step-btn { width: 100%; min-height: 10rem; display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; text-align: left; color: #ffffff; transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out); }
.steps li.on .step-btn { background: #ffffff; color: var(--ink); }
.steps .sico { width: 48px; height: 48px; display: grid; place-items: center; margin: -0.6rem 0 0.75rem -0.6rem; color: var(--accent); }
.steps .line { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.step-panel { margin-top: 2.5rem; border: 1px solid #ffffff; background: #ffffff; color: var(--ink); }
.step-panel .track { height: 4px; background: var(--line); }
.step-panel .fill { height: 100%; background: var(--accent); transition: width var(--t-reveal) var(--ease-expo); }
.panel-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem 3rem; padding: 2rem; align-items: end; }
.step-panel .kicker { font-size: var(--step-small); font-weight: 600; color: var(--accent); }
.step-panel .ptitle { margin-top: 0.5rem; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.step-panel .pbody { margin-top: 0.75rem; max-width: 52ch; font-size: var(--step-body); line-height: 1.6; color: var(--muted); }
.step-panel .get { font-size: var(--step-body); font-weight: 600; color: var(--accent); }
.step-panel .get span:first-child { display: block; margin-bottom: 0.25rem; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.step-panel .next { margin-top: 1.25rem; min-height: 48px; padding: 0 1.25rem; background: var(--accent); color: #ffffff; font-weight: 600; transition: background-color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .step-panel .next:hover { background: var(--ink); } }

/* ---------- blog ---------- */
.blog { padding-block: var(--section) calc(var(--section) / 2); }
.blog .head { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

/* ---------- team ---------- */
.team { padding-block: calc(var(--section) / 2) var(--section); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) 3rem; align-items: stretch; }
.team .facts { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.team .facts > div { display: flex; flex-direction: column; }
.team .facts dt { font-size: var(--step-small); color: var(--muted); }
.team .facts dd { margin-top: 0.25rem; font-size: var(--step-body); font-weight: 600; }
.team .para { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; }
.team .para strong { font-weight: 600; } /* names stand out by weight, not color */

/* ---------- FAQ: one row per question, question left and answer right, hairlines between ---------- */
.process + .faq { padding-top: var(--section); } /* with the blog hidden, the FAQ follows the black process section and needs the full gap */
.faq { padding-block: calc(var(--section) / 2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; grid-template-areas: "head list" "ask list"; gap: 0 3rem; align-items: start; }
.faq-head { grid-area: head; }
.faq .faq-head h2 { margin-bottom: 1rem; }
.faq-intro { font-size: var(--step-body); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.faq-list { grid-area: list; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; padding-block: 1.5rem; cursor: pointer; list-style: none; } /* the whole question row opens and closes its answer */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; transition: color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .faq-item summary:hover h3 { color: var(--accent); } }
.faq-ico { flex: none; color: var(--accent); }
.faq-ico .v { transform-box: fill-box; transform-origin: center; transition: transform var(--t-ui) var(--ease-out); }
.faq-item[open] .faq-ico .v { transform: scaleY(0); } /* + turns into − when open */
.faq-a { padding-bottom: 1.75rem; }
.faq-a p { font-size: var(--step-body); line-height: 1.55; color: var(--muted); max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-a { animation: faq-in var(--t-ui) var(--ease-out); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-0.5rem); } }
.faq-ask { grid-area: ask; align-self: start; padding-top: 1.5rem; font-size: var(--step-body); }
.faq-ask a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; transition: color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .faq-ask a:hover { color: var(--ink); } }
@media (pointer: coarse) { .faq-ask a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; } }

/* ---------- contact (dark): one button that opens Calendly ---------- */
.contact { padding-block: clamp(7rem, 13vw, 12rem) clamp(6rem, 10vw, 10rem); background: var(--ink); color: #ffffff; }
.contact .col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.contact .col > * { grid-column: 2 / 4; }
.contact .lead2 { margin-top: 1rem; color: var(--soft-on-dark); }
.contact .book { margin-top: 1.75rem; }
.contact .book-notes { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 0.9rem 0 0; padding: 0; list-style: none; color: var(--soft-on-dark); font-size: var(--step-small); line-height: 1.5; } /* reassurance right under the button it belongs to */
.contact .book-notes li { white-space: nowrap; }
.contact .book-notes li:not(:last-child)::after { content: "·" / ""; padding-inline: 0.5em; font-weight: 600; } /* separators trail each item, so a wrapped line never starts with one; hidden from screen readers */
.contact .book .btn { min-height: 56px; gap: 0.6rem; padding: 0 1.6rem; font-size: var(--step-lead); }
@media (hover: hover) { .contact .book .btn:hover { background: #ffffff; color: var(--ink); } }

/* ---------- booking popup (Calendly framed in a dialog) ----------
   Sized to the content, not the screen: about half the screen wide on computers
   (640-760px, the width Calendly needs for its calendar) and up to 720px tall so a whole
   month shows without scrolling; 90% wide on tablets; a bottom sheet on phones.
   Opens with a quick scale-and-fade (slide-up on phones); the page behind is dimmed and blurred. */
.booking { width: clamp(640px, 50vw, 760px); height: min(720px, calc(100svh - 4rem)); max-width: calc(100vw - 2rem); max-height: none; margin: auto; padding: 0; border: 1px solid var(--ink); background: #ffffff; color: var(--ink); display: none; flex-direction: column; }
.booking[open] { display: flex; }
.booking::backdrop { background: rgba(11, 11, 11, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); } /* -webkit- for Safari before 18 */
.booking-bar { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1.5rem; background: var(--ink); color: #ffffff; border-top: 4px solid var(--accent); } /* brand band: black, wordmark, one green line */
.dialog-mark { font-size: 1.375rem; line-height: 1; }
.dialog-mark .piece { stroke: var(--accent); }
.dialog-label { flex: 1; min-width: 0; padding-left: 1rem; border-left: 1px solid var(--muted); color: var(--soft-on-dark); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-close { width: 44px; height: 44px; display: grid; place-items: center; margin-left: auto; font-size: 1.75rem; line-height: 1; color: #ffffff; transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
@media (hover: hover) { .booking-close:hover { background: #ffffff; color: var(--ink); } }
.booking-close:focus-visible { outline-offset: -3px; }
.booking-frame { position: relative; flex: 1; min-height: 0; }
.booking-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.booking-loading { position: absolute; inset: 0; display: grid; place-items: center; max-width: none; color: var(--muted); }
.booking-frame.loaded .booking-loading { display: none; }
html.booking-open { overflow: hidden; }

/* ---------- contact form (same dialog as booking, sized to its content) ---------- */
.contact-dialog { width: clamp(520px, 40vw, 600px); height: fit-content; max-height: calc(100svh - 4rem); overflow: auto; }
.contact-dialog .booking-bar { position: sticky; top: 0; z-index: 1; } /* the brand band and × stay in view when a short screen scrolls the form */
.cf-title { padding: 1.5rem 1.5rem 0; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; max-width: none; }
.cf-form { display: flex; flex-direction: column; gap: 1.25rem; padding: 0.75rem 1.5rem 1.5rem; }
.cf-intro { color: var(--muted); max-width: none; }
.cf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cf-field label { font-weight: 600; }
.cf-hint { font-size: var(--step-small); color: var(--muted); max-width: none; }
.cf-field input, .cf-field textarea { width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border: 1px solid var(--ink); border-radius: 0; background: #ffffff; color: var(--ink); font: inherit; font-size: var(--step-body); }
.cf-field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.cf-field input:focus-visible, .cf-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.cf-field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.cf-error, .cf-status { font-size: var(--step-small); font-weight: 500; color: var(--danger); max-width: none; }
.cf-check:empty { display: none; } /* Turnstile: takes space only when it needs the visitor */
.cf-check { max-width: 100%; overflow: hidden; }
.cf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.cf-actions .btn { justify-content: center; min-width: 10rem; }
.cf-alt { color: var(--muted); max-width: none; }
.cf-alt a { color: var(--accent); text-underline-offset: 0.18em; }
.cf-privacy { font-size: var(--step-small); color: var(--muted); max-width: none; }
.cf-privacy a { color: var(--accent); text-underline-offset: 0.18em; }
@media (pointer: coarse) { .cf-privacy a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; } }
.cf-actions .btn:disabled { opacity: 0.7; cursor: progress; }
.cf-done-title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: no-preference) {
  .booking[open] { animation: booking-in var(--t-ui) var(--ease-out); }
  .booking[open]::backdrop { animation: booking-fade var(--t-ui) var(--ease-out); }
}
@keyframes booking-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes booking-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .booking { width: 90vw; }
}
@media (max-width: 600px) {
  .booking { width: 100vw; max-width: 100vw; height: 92svh; margin: auto 0 0; border: 0; border-top: 1px solid var(--ink); }
  .contact-dialog { height: fit-content; max-height: 92svh; }
  .booking-bar { gap: 0.75rem; padding-left: 1.25rem; }
  .dialog-mark { font-size: 1.125rem; }
  .dialog-label { padding-left: 0.75rem; font-size: var(--step-small); }
  .cf-actions .btn { width: 100%; }
  @media (prefers-reduced-motion: no-preference) {
    .booking[open] { animation: booking-up var(--t-ui) var(--ease-out); }
  }
}
@keyframes booking-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- footer (dark) ---------- */
footer { padding-block: clamp(4.5rem, 8vw, 7.5rem) 3rem; background: var(--ink); color: #ffffff; }
footer .name { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.05em; line-height: 0.86; }
footer .row2 { margin-top: 4.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
footer .places { display: flex; flex-direction: column; gap: 0.5rem; }
footer .places a { font-size: var(--step-lead); }
footer .places a, footer .small a, footer .legal a { color: #ffffff; text-decoration: underline 2px var(--accent); text-underline-offset: 0.3em; transition: text-decoration-color var(--t-hover) var(--ease-out); } /* text on black stays white; the green is the underline, and it turns white on hover */
@media (hover: hover) { footer .places a:hover, footer .small a:hover, footer .legal a:hover { text-decoration-color: #ffffff; } }
footer .small { display: grid; grid-template-columns: repeat(2, auto); gap: 1rem 3rem; align-content: start; font-size: var(--step-small); line-height: 1.45; }
footer .legal { margin-top: 6rem; display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); color: var(--soft-on-dark); }
/* 44px tap areas without changing how the footer looks */
footer .small a, footer .legal a, footer .places a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }

/* ---------- text pages: privacy, 404 ---------- */
.doc-head { padding-block: 1.5rem; border-bottom: 1px solid var(--ink); }
.doc { padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; }
.doc h1 { margin-bottom: 1rem; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.doc h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.doc ul { margin-top: 0.5rem; padding-left: 1.2rem; }
.doc li + li { margin-top: 0.4rem; }
.doc ul + p { margin-top: 1rem; }
.doc a:not(.btn) { color: var(--accent); }
.doc .back { display: inline-block; margin-top: 2.5rem; }
.doc.center { max-width: none; min-height: calc(100svh - 5.5rem); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } /* short message pages */
.doc.center h1 { margin-bottom: 1.25rem; }
.doc.center p { margin-inline: auto; max-width: 44ch; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); }
.actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.actions .btn { justify-content: center; width: 15rem; max-width: 100%; }

/* ---------- top bar: keep it one line ---------- */
@media (max-width: 1100px) { .wide-only { display: none; } } /* "today" shows only on wide screens */
/* touch screens: 44px tap areas on the top bar's links and logo, without moving anything */
@media (pointer: coarse) { .navlinks a:not(.btn), .hero nav .logo { padding-block: 0.6rem; margin-block: -0.6rem; } }
/* the smallest phones (under 360px): the top-bar button reads "Book a call"; screen readers still hear the full name */
@media (max-width: 369px) { .tight-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 900px) { .navlinks a:not(.btn) { display: none; } } /* below 900px the text links would wrap the bar; they're all in the footer too */
@media (max-width: 400px) { .contact .book .btn { font-size: var(--step-body); } } /* small phones: the booking button stays one line */

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .svc li, .svc li:nth-child(n+4) { grid-column: span 3; min-height: 18rem; }
  .svc li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::before, .steps li:nth-child(2)::after { display: none; }
  .contact .col, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "list" "ask"; }
  .faq-head { margin-bottom: 1.5rem; }
  .faq-ask { align-self: start; }
  .contact .col > * { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  .hero nav { gap: 0.75rem; }
  .hero nav .btn { min-height: 44px; padding: 0 0.75rem; font-size: var(--step-small); }
  .hero::after { inset: 46% 0 0 0; }
  .seam { top: 46%; }
  .svc li, .svc li:nth-child(n+4), .svc li:last-child { grid-column: 1 / -1; min-height: 15rem; padding: 1.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .steps li::before, .steps li::after { display: none !important; }
  .step-btn { min-height: 0; }
  .panel-body { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}

/* ---------- older browsers without small-viewport units (svh, 2022 and later): the same sizes in vh ---------- */
@supports not (height: 1svh) {
  :root { --step-display: clamp(4rem, min(1rem + 11vw, 22vh), 11.5rem); }
  .hero { height: clamp(560px, 100vh, 960px); }
  .booking { height: min(720px, calc(100vh - 4rem)); }
  .contact-dialog { max-height: calc(100vh - 4rem); }
  .doc.center { min-height: calc(100vh - 5.5rem); }
  @media (max-width: 600px) { .booking { height: 92vh; } .contact-dialog { max-height: 92vh; } }
}
