/* ==========================================================================
   00 · Self-hosted fonts (no third-party requests)
   Roboto Flex — variable: wdth 100–151 (font-stretch), wght 400–900 → display, labels, prices
   Manrope     — variable: wght 400–800 → body text
   Both SIL Open Font License 1.1 — see /fonts/OFL-*.txt
   unicode-range: a browser downloads a file only when the page uses that script.
   Versioned file names allow one-year immutable caching.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-v23-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-v23-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-v23-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 151%;
  font-display: swap;
  src: url("/fonts/robotoflex-v31-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 151%;
  font-display: swap;
  src: url("/fonts/robotoflex-v31-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 151%;
  font-display: swap;
  src: url("/fonts/robotoflex-v31-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   01 · Design tokens — taken directly from the DistrictDigital logo
   Logo background is pure #000; the cyan was sampled from the logo (≈ #00E8F2).
   Contrast on --void: --white 18.9:1 · --muted 8.1:1 · --cyan 13.8:1
   ========================================================================== */

:root {
  /* Colour ---------------------------------------------------------------- */
  --void: #000000;          /* page — identical to the logo background */
  --surface: #080b0d;       /* alternate sections */
  --raised: #0f1417;        /* cards */
  --raised-2: #161d21;      /* card hover, inputs */
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.17);
  --white: #f2f7f8;
  --muted: #97a3aa;
  --cyan: #00e8f2;          /* brand accent — "DIGITAL" */
  --cyan-hi: #7cf6fb;       /* hover */
  --cyan-deep: #008f96;     /* the shaded side of the logo's arrow */
  --cyan-tint: rgb(0 232 242 / 0.1);
  --cyan-line: rgb(0 232 242 / 0.35);
  --on-cyan: #00191b;
  --danger: #ff7a7a;        /* 8.6:1 on --void */

  /* Type ------------------------------------------------------------------ */
  /* Roboto Flex at 151% width echoes the extended capitals of "DISTRICT";
     Manrope keeps long Greek and English text easy to read. */
  --font-display: "Roboto Flex", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --stretch-display: 151%;
  --stretch-heading: 128%;

  --fs-xs: 0.75rem;
  --fs-sm: 0.9rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-h4: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-display: clamp(2rem, 0.55rem + 4.4vw, 4.15rem);
  --fs-price: clamp(2.6rem, 2rem + 2.4vw, 3.9rem);

  /* Space ----------------------------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.5vw, 3rem);
  --container: 76rem;
  --header-h: 4.5rem;

  /* Shape — the diagonal cut from the "D" -------------------------------- */
  --cut: 12px;
  --cut-sm: 7px;
  --r: 4px;
  --clip-cut: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --clip-cut-sm: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));

  /* Motion ---------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 150ms;
  --dur-2: 280ms;
  --dur-3: 600ms;
}

@media (max-width: 35.99em) {
  :root {
    --stretch-display: 122%;
    --stretch-heading: 115%;
  }
}

/* ==========================================================================
   02 · Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--void);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  /* No background here: the page black comes from <html>, so the fixed
     .backdrop map (z-index: -1) shows through. */
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset) {
  margin: 0;
}

:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-stretch: var(--stretch-heading);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:where(h2) {
  font-size: var(--fs-h2);
}

:where(h3) {
  font-size: var(--fs-h3);
}

:where(h4) {
  font-size: var(--fs-h4);
}

:where(p, li, dd, figcaption) {
  text-wrap: pretty;
}

:where(a) {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:where(strong, b) {
  font-weight: 700;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--cyan);
  color: var(--on-cyan);
}

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--cyan);
  color: var(--on-cyan);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform var(--dur-1) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   03 · Layout and type roles
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2 * var(--gutter), 46rem);
}

.section {
  padding-block: var(--section-y);
}

.section--divided {
  border-top: 1px solid var(--line);
}

.section--surface {
  background: rgb(8 11 13 / 0.9); /* --surface, letting the backdrop map show faintly */
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: var(--s-4);
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

/* Wide-tracked capitals, like "MODERN WEBSITES. REAL GROWTH." in the logo */
.eyebrow {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: var(--fs-xs);
  font-weight: 560;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Extended capitals, like "DISTRICT" */
.display {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-size: var(--fs-display);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.display__accent {
  display: block;
  color: var(--cyan);
}

.lead {
  max-width: 40rem;
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--muted);
}

.lead strong {
  color: var(--white);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.flow > * + * {
  margin-top: var(--flow, 1em);
}

/* ==========================================================================
   04 · Components
   ========================================================================== */

/* ---------- Offer bar (Black November) ---------------------------------- */

.offer-bar {
  position: relative;
  z-index: 51;
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: 0.86rem;
  font-weight: 600;
}

.offer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.1rem;
  min-height: 2.6rem;
  padding-block: 0.45rem;
  text-align: center;
}

.offer-bar__name {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.offer-bar__time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.offer-bar a {
  color: inherit;
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.offer-bar a:focus-visible {
  outline-color: var(--on-cyan);
}

/* ---------- Header ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand__mark {
  width: auto;
  height: 2.15rem;
}

.brand__word {
  width: auto;
  height: 1.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__list {
  display: flex;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-1);
}

.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0.15rem 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.lang {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-stretch: 140%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  transition: border-color var(--dur-1), color var(--dur-1);
}

.lang:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.45rem;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}

.nav-toggle__bars {
  position: relative;
  background: transparent;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -4px;
}

.nav-toggle__bars::after {
  top: 4px;
  width: 1rem; /* echoes the logo's offset bars */
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  width: 1.45rem;
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 63.99em) {
  .js .nav-toggle {
    display: inline-grid;
  }

  .js .nav {
    position: fixed;
    inset: var(--menu-top, var(--header-h)) 0 0 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--s-7);
    padding: var(--s-4) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--void);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out),
      visibility 0s linear var(--dur-2);
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .js .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav__link {
    display: flex;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-stretch: 128%;
    font-size: 1.5rem;
    font-weight: 760;
    color: var(--white);
  }

  .js .nav__link::after {
    display: none;
  }

  .js .nav__link[aria-current="page"] {
    color: var(--cyan);
  }

  .js .nav__end {
    justify-content: space-between;
  }

  .js .nav__end .btn {
    flex: 1;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: var(--s-3);
  }

  html:not(.js) .nav,
  html:not(.js) .nav__list {
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-5);
  }

  .nav-open {
    overflow: hidden;
  }
}

/* ---------- Buttons (with the logo's diagonal cut) ---------------------- */

.btn {
  --btn-bg: var(--cyan);
  --btn-edge: var(--cyan);
  --btn-fg: var(--on-cyan);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 3.25rem;
  padding: 0.85rem 1.55rem;
  border: 0;
  background: none;
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-1), transform var(--dur-1) var(--ease-out);
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: background-color var(--dur-1);
}

.btn::before {
  inset: 0;
  background: var(--btn-edge);
  clip-path: var(--clip-cut-sm);
}

.btn::after {
  inset: 1.5px;
  background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - 6.4px) 0, 100% 6.4px, 100% 100%, 6.4px 100%, 0 calc(100% - 6.4px));
}

.btn:hover {
  --btn-bg: var(--cyan-hi);
  --btn-edge: var(--cyan-hi);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  transition: transform var(--dur-2) var(--ease-out);
}

.btn:hover .icon--nudge {
  transform: translate(2px, -2px); /* up and to the right, like the logo's arrow */
}

.btn--ghost {
  --btn-bg: var(--void);
  --btn-edge: var(--line-strong);
  --btn-fg: var(--white);
}

.btn--ghost:hover {
  --btn-bg: var(--void);
  --btn-edge: var(--cyan);
  --btn-fg: var(--cyan);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow .icon {
  transition: transform var(--dur-2) var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

/* ---------- Frame: card with the diagonal cut and a 1px edge ------------ */

.frame {
  --frame-edge: var(--line-strong);
  --frame-bg: var(--raised);
  position: relative;
  isolation: isolate;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transition: background-color var(--dur-2) var(--ease-out);
}

.frame::before {
  inset: 0;
  background: var(--frame-edge);
  clip-path: var(--clip-cut);
}

.frame::after {
  inset: 1px;
  background: var(--frame-bg);
  clip-path: polygon(0 0, calc(100% - 11.6px) 0, 100% 11.6px, 100% 100%, 11.6px 100%, 0 calc(100% - 11.6px));
}

/* ---------- Badges, prices --------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  background: var(--cyan);
  color: var(--on-cyan);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  clip-path: var(--clip-cut-sm);
}

.badge--ghost {
  background: var(--cyan-tint);
  color: var(--cyan);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
}

.price__now {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: var(--fs-price);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.price__cur {
  font-size: 0.5em;
  font-weight: 760;
  margin-inline: 0.08em;
}

.price__was {
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  font-variant-numeric: tabular-nums;
}

.price__note {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Offer switch-over: the browser adds .offer-expired when the countdown ends. */
html:not(.offer-expired) .regular-only {
  display: none;
}

.offer-expired .offer-only {
  display: none !important;
}

/* ---------- Checklist --------------------------------------------------- */

.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist > li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checklist > li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e8f2' stroke-width='2.8' stroke-linecap='square'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Countdown --------------------------------------------------- */

.countdown {
  display: flex;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.countdown__unit {
  display: grid;
  justify-items: center;
  min-width: 4.6rem;
  padding: 0.85rem 0.6rem 0.7rem;
}

.countdown__num {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.countdown__label {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Steps (a real sequence) ------------------------------------- */

.steps {
  display: grid;
  gap: var(--s-6) var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 40em) and (max-width: 63.99em) {
  .steps--3 > :last-child {
    grid-column: 1 / -1;
  }
}

.step {
  position: relative;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--cyan);
}

.step__no {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.step__title {
  margin-top: var(--s-3);
  font-size: var(--fs-h4);
}

.step__text {
  margin-top: var(--s-3);
  color: var(--muted);
}

/* ---------- FAQ (native details) ---------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-1);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--cyan);
}

.faq__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1), color var(--dur-1);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--cyan);
  color: var(--on-cyan);
  border-color: var(--cyan);
}

.faq__a {
  max-width: 44rem;
  padding-bottom: 1.4rem;
  color: var(--muted);
}

.faq__a > * + * {
  margin-top: 0.75em;
}

.faq__a strong {
  color: var(--white);
}

@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a {
    animation: fade-up 0.35s var(--ease-out);
  }
}

/* ---------- Forms (dark) ------------------------------------------------ */

.form-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 40em) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.95rem;
  font-weight: 700;
}

.field__req {
  color: var(--cyan);
}

.field__optional {
  font-weight: 500;
  color: var(--muted);
}

.field__hint {
  font-size: 0.86rem;
  color: var(--muted);
}

.field__error {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--danger);
}

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--raised);
  color: var(--white);
  font-size: 1rem; /* ≥16px: no iOS zoom */
  line-height: 1.4;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}

.input::placeholder {
  color: rgb(151 163 170 / 0.75);
}

.input:hover {
  border-color: rgb(255 255 255 / 0.32);
}

.input:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgb(0 232 242 / 0.22);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

textarea.input {
  min-height: 8rem;
  resize: vertical;
}

select.input {
  padding-right: 2.75rem;
  appearance: none;
  background: var(--raised)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f7f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 0.9rem center / 1.1rem no-repeat;
  cursor: pointer;
}

.choice {
  min-width: 0;
  padding: 0;
  border: 0;
}

.choice legend {
  margin-bottom: 0.45rem;
  padding: 0;
}

.choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice__opt {
  position: relative;
}

.choice__opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__opt span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-weight: 650;
  transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1);
}

.choice__opt input:hover + span {
  border-color: rgb(255 255 255 / 0.4);
}

.choice__opt input:checked + span {
  border-color: var(--cyan);
  background: var(--cyan-tint);
  color: var(--cyan);
}

.choice__opt input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.check {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.1rem 0 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.check a {
  color: var(--cyan);
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}

.form__note {
  font-size: 0.86rem;
  color: var(--muted);
}

.form-status {
  margin-top: var(--s-4);
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status--error {
  padding: var(--s-4);
  border: 1px solid rgb(255 122 122 / 0.4);
  border-radius: var(--r);
  background: rgb(255 122 122 / 0.08);
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Breadcrumb -------------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--line);
  background: var(--void);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__top {
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 48em) {
  .site-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }

  .site-footer__about {
    grid-column: auto;
  }
}

.site-footer__logo {
  width: 15rem;
  height: auto;
}

.site-footer__about p {
  max-width: 24rem;
  margin-top: var(--s-5);
}

.site-footer__title {
  margin-bottom: var(--s-4);
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.site-footer__list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list a {
  color: var(--white);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

/* ---------- Mobile sticky CTA ------------------------------------------ */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  visibility: hidden; /* keeps the off-screen link out of the tab order */
  transition: transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}

.sticky-cta.is-shown {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.nav-open .sticky-cta {
  transform: translateY(110%);
}

.sticky-cta__text {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--muted);
}

.sticky-cta__text strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 130%;
  font-size: 1.05rem;
  color: var(--white);
}

@media (min-width: 48em) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Keyframes --------------------------------------------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   05 · Signature: the Στατικό ↔ Hero example
   A fictional villa-rental site, drawn entirely in SVG/CSS (no images, no
   video). Sizes inside the browser frame use container units (cqi), so the
   example scales like a real page at any width.
   ========================================================================== */

.demo {
  display: grid;
  gap: var(--s-4);
  min-width: 0;
}

.demo__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
}

.demo__switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--raised);
}

.demo__thumb {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  background: var(--cyan);
  clip-path: var(--clip-cut-sm);
  transition: transform var(--dur-2) var(--ease-out);
}

.demo[data-mode="hero"] .demo__thumb {
  transform: translateX(100%);
}

.demo__opt {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  min-width: 8.25rem;
  min-height: 3rem;
  padding: 0.45rem 1rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-stretch: 128%;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-out);
}

.demo__opt:hover {
  color: var(--white);
}

.demo__opt[aria-checked="true"] {
  color: var(--on-cyan);
}

.demo__opt-price {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.85;
}

.demo__hint,
.demo__caption {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Browser frame ----------------------------------------------- */

.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0f12;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 60px 100px -45px rgb(0 232 242 / 0.28),
    0 40px 70px -35px rgb(0 0 0 / 0.95);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#141a1e, #0e1316);
}

.browser__dots {
  display: inline-flex;
  gap: 0.42rem;
}

.browser__dots i {
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 50%;
  background: #ff5f57;
  opacity: 0.85;
}

.browser__dots i:nth-child(2) {
  background: #febc2e;
}

.browser__dots i:nth-child(3) {
  background: #28c840;
}

.browser__url {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 0.4rem;
  max-width: 19rem;
  padding: 0.26rem 0.75rem;
  overflow: hidden;
  border-radius: 6px;
  background: #1a2125;
  color: #b9c3c9;
  font-size: 0.76rem;
  white-space: nowrap;
}

.browser__lock {
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
  fill: none;
  stroke: #7fd8a0;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.browser__tag {
  margin-left: auto;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.browser__view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: inline-size;
  background: #fffdf9;
}

@media (max-width: 35.99em) {
  .browser__view {
    aspect-ratio: 4 / 3.4;
  }

  .browser__url {
    max-width: 11rem;
  }
}

/* ---------- Shared parts of the example site ---------------------------- */

.mini {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  font-family: var(--font-body);
  transition: opacity 0.55s var(--ease-out), visibility 0s linear 0.55s;
}

.demo[data-mode="static"] .mini--static,
.demo[data-mode="hero"] .mini--hero {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mini__nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3cqi;
  font-size: 1.6cqi;
  font-weight: 600;
  color: #5d6b7a;
}

.mini__logo {
  margin-right: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55cqi;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #14263b;
}

.mini__nav-btn {
  padding: 0.75cqi 1.7cqi;
  border-radius: 99cqi;
  background: #1f5faf;
  color: #fff;
  font-weight: 700;
}

.mini__kicker {
  font-size: 1.3cqi;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #1f5faf;
}

.mini__h {
  margin-top: 1.2cqi;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.9cqi;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #14263b;
}

.mini__p {
  margin-top: 1.6cqi;
  font-size: 1.75cqi;
  line-height: 1.5;
  color: #5d6b7a;
}

.mini__actions {
  display: flex;
  align-items: center;
  gap: 2cqi;
  margin-top: 2.4cqi;
}

.mini__btn {
  padding: 1.25cqi 2.6cqi;
  border-radius: 0.8cqi;
  background: #1f5faf;
  box-shadow: 0 0.8cqi 1.6cqi -0.6cqi rgb(31 95 175 / 0.6);
  color: #fff;
  font-size: 1.7cqi;
  font-weight: 700;
}

.mini__price {
  font-size: 1.55cqi;
  color: #5d6b7a;
}

.mini__price b {
  color: #14263b;
  font-size: 1.15em;
}

/* ---------- Στατικό: a clean, conventional page ------------------------- */

.mini--static {
  display: flex;
  flex-direction: column;
  gap: 2.8cqi;
  padding: 2.8cqi 4.5cqi 3.4cqi;
  background: #fffdf9;
}

.mini__row {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1.12fr;
  gap: 4cqi;
  align-items: center;
}

.mini__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 1.4cqi;
  box-shadow: 0 2cqi 4cqi -2cqi rgb(20 38 59 / 0.35);
}

.mini__img .scene,
.mini__bg .scene {
  display: block;
  width: 100%;
  height: 100%;
}

.mini__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqi;
}

.mini__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2cqi 1.3cqi;
  align-items: center;
  padding: 1.5cqi 1.7cqi;
  border-radius: 1.1cqi;
  background: #f4f0e9;
}

.mini__ico {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 3.8cqi;
  height: 3.8cqi;
  border-radius: 50%;
  background: #e2ebf7;
}

.mini__ico svg {
  width: 2.2cqi;
  height: 2.2cqi;
  fill: none;
  stroke: #1f5faf;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini__feature b {
  font-size: 1.5cqi;
  line-height: 1.2;
  color: #14263b;
}

.mini__feature small {
  font-size: 1.25cqi;
  color: #6b7886;
}

/* ---------- Hero: full-bleed scene, message and booking bar ------------- */

.mini--hero {
  background: #1b2356;
  color: #fff;
}

.mini__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Scrim: darkens the left, where the message sits, like a real hero. */
.mini__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(12 16 44 / 0.78) 0%, rgb(12 16 44 / 0.5) 34%, transparent 62%),
    linear-gradient(180deg, rgb(12 16 44 / 0.45) 0%, transparent 22%),
    linear-gradient(0deg, rgb(8 22 48 / 0.55) 0%, transparent 30%);
}

.mini--hero .mini__nav {
  padding: 2.8cqi 4.5cqi;
  color: rgb(255 255 255 / 0.85);
}

.mini--hero .mini__logo {
  color: #fff;
}

.mini--hero .mini__nav-btn {
  border: 0.15cqi solid rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.08);
}

.mini__hero-copy {
  position: absolute;
  z-index: 1;
  top: 15cqi;
  left: 4.5cqi;
  max-width: 56%;
}

.mini--hero .mini__kicker {
  color: #ffd6a6;
}

.mini--hero .mini__h {
  font-size: 6cqi;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 0.4cqi 2.4cqi rgb(0 0 0 / 0.3);
}

.mini__sub {
  margin-top: 1.6cqi;
  max-width: 34cqi;
  font-size: 1.8cqi;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.86);
}

.mini__booking {
  position: absolute;
  z-index: 1;
  left: 4.5cqi;
  bottom: 4.5cqi;
  display: grid;
  grid-template-columns: repeat(3, auto) auto;
  align-items: center;
  gap: 0;
  padding: 1cqi;
  border: 0.12cqi solid rgb(255 255 255 / 0.3);
  border-radius: 1.3cqi;
  background: rgb(255 255 255 / 0.13);
  -webkit-backdrop-filter: blur(1.4cqi) saturate(1.3);
  backdrop-filter: blur(1.4cqi) saturate(1.3);
}

.mini__field {
  display: grid;
  gap: 0.3cqi;
  padding: 0.6cqi 2.2cqi;
}

.mini__field + .mini__field {
  border-left: 0.12cqi solid rgb(255 255 255 / 0.25);
}

.mini__field small {
  font-size: 1.1cqi;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.mini__field b {
  font-size: 1.65cqi;
  font-weight: 700;
  white-space: nowrap;
}

.mini__booking-btn {
  margin-left: 1cqi;
  padding: 1.4cqi 2.2cqi;
  border-radius: 0.8cqi;
  background: #fff;
  color: #0f2a44;
  font-size: 1.55cqi;
  font-weight: 800;
  white-space: nowrap;
}

/* Narrow frames (phones): keep the example readable. */
@container (max-width: 480px) {
  .mini__nav > span:not(.mini__logo):not(.mini__nav-btn) {
    display: none;
  }

  .mini__feature small,
  .mini__field:nth-child(3) {
    display: none;
  }

  .mini--static .mini__p {
    display: none;
  }

  .mini__hero-copy {
    max-width: 62%;
  }
}

/* ---------- Motion: Hero version only, never with reduced motion -------- */

@media (prefers-reduced-motion: no-preference) {
  /* Depth: layers follow the pointer at different speeds (main.js sets --px/--py). */
  .mini--hero .scene__px {
    transition: transform 1.2s var(--ease-out);
  }

  .mini--hero .scene__px--clouds { transform: translate(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -3px)); }
  .mini--hero .scene__px--sun { transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -5px)); }
  .mini--hero .scene__px--far { transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -6px)); }
  .mini--hero .scene__px--mid { transform: translate(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -10px)); }
  .mini--hero .scene__px--near { transform: translate(calc(var(--px, 0) * -40px), calc(var(--py, 0) * -14px)); }
  .mini--hero .scene__px--birds { transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -8px)); }

  /* Entrance: the image settles, then the message and booking bar rise. */
  .demo[data-mode="hero"] .mini__bg {
    animation: settle 1.6s var(--ease-out) both;
  }

  .demo[data-mode="hero"] .mini--hero .scene {
    transform-origin: 60% 55%;
    animation: kenburns 26s ease-in-out 1.6s infinite alternate;
  }

  .demo[data-mode="hero"] .mini__hero-copy > * {
    animation: rise 0.9s var(--ease-out) both;
  }

  .demo[data-mode="hero"] .mini__hero-copy > :nth-child(1) { animation-delay: 0.25s; }
  .demo[data-mode="hero"] .mini__hero-copy > :nth-child(2) { animation-delay: 0.4s; }
  .demo[data-mode="hero"] .mini__hero-copy > :nth-child(3) { animation-delay: 0.55s; }

  .demo[data-mode="hero"] .mini__booking {
    animation: rise 0.9s var(--ease-out) 0.75s both;
  }

  /* Living scene */
  .demo[data-mode="hero"] .mini--hero .scene__cloud { animation: drift 42s ease-in-out infinite alternate; }
  .demo[data-mode="hero"] .mini--hero .scene__cloud--2 { animation-duration: 56s; animation-direction: alternate-reverse; }
  .demo[data-mode="hero"] .mini--hero .scene__cloud--3 { animation-duration: 48s; }

  .demo[data-mode="hero"] .mini--hero .scene__glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: glow 6s ease-in-out infinite alternate;
  }

  .demo[data-mode="hero"] .mini--hero .scene__shimmer rect { animation: shimmer 2.4s ease-in-out infinite alternate; }
  .demo[data-mode="hero"] .mini--hero .scene__shimmer rect:nth-child(2n) { animation-delay: 0.8s; }
  .demo[data-mode="hero"] .mini--hero .scene__shimmer rect:nth-child(3n) { animation-delay: 1.5s; }

  .demo[data-mode="hero"] .mini--hero .scene__wave { animation: wave 9s linear infinite; }
  .demo[data-mode="hero"] .mini--hero .scene__wave--2 { animation-duration: 13s; }
  .demo[data-mode="hero"] .mini--hero .scene__wave--3 { animation-duration: 18s; }

  .demo[data-mode="hero"] .mini--hero .scene__boat { animation: sail 64s linear -24s infinite; }

  .demo[data-mode="hero"] .mini--hero .scene__boat-body {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: bob 4.5s ease-in-out infinite;
  }

  .demo[data-mode="hero"] .mini--hero .scene__birds { animation: fly 36s linear -12s infinite; }

  .demo[data-mode="hero"] .mini--hero .scene__bird {
    transform-box: fill-box;
    transform-origin: center;
    animation: flap 0.8s ease-in-out infinite alternate;
  }

  .demo[data-mode="hero"] .mini--hero .scene__bird--2 { animation-delay: 0.25s; }
  .demo[data-mode="hero"] .mini--hero .scene__bird--3 { animation-delay: 0.5s; }

  /* Saves battery: nothing moves while the example is off-screen. */
  .demo.is-offscreen *,
  .demo.is-offscreen *::after {
    animation-play-state: paused !important;
  }
}

@keyframes settle {
  from { opacity: 0.4; transform: scale(1.12); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07) translate(-1%, -0.6%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(2.2cqi); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(70px); }
}

@keyframes glow {
  from { opacity: 0.7; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes shimmer {
  from { opacity: 0.15; }
  to { opacity: 0.9; }
}

@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(-160px); }
}

@keyframes sail {
  from { transform: translateX(-520px); }
  to { transform: translateX(1000px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(4px) rotate(1.5deg); }
}

@keyframes fly {
  from { transform: translate(-420px, 30px); }
  to { transform: translate(1300px, -70px); }
}

@keyframes flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.5); }
}

/* ==========================================================================
   06 · Sections and pages
   ========================================================================== */

/* ---------- Hero -------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(4rem, 2.5rem + 5vw, 7rem);
  overflow: clip;
}

.hero__title {
  margin-top: var(--s-5);
}

.hero__grid {
  display: grid;
  gap: var(--s-7);
  align-items: start;
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 64em) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--s-8);
  }
}

.hero__actions {
  margin-top: var(--s-6);
}

.facts {
  display: grid;
  gap: 0.65rem;
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  font-weight: 600;
}

@media (max-width: 35.99em) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Pricing configurator ---------------------------------------- */

.config {
  display: grid;
  gap: var(--s-5);
}

.plans {
  display: grid;
  gap: var(--s-5);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 56em) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.plan:hover {
  --frame-edge: rgb(255 255 255 / 0.32);
}

.plan:has(.plan__input:checked) {
  --frame-edge: var(--cyan);
  --frame-bg: #08171a;
}

.plan:has(.plan__input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.plan__input,
.addon__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.plan__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}

.plan__radio {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--dur-1);
}

.plan__radio::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-out);
}

.plan__input:checked ~ .plan__head .plan__radio {
  border-color: var(--cyan);
}

.plan__input:checked ~ .plan__head .plan__radio::after {
  transform: scale(1);
}

.plan__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--s-3);
}

.plan__name {
  font-size: var(--fs-h3);
}

.plan__desc {
  margin-top: var(--s-3);
  color: var(--muted);
}

.plan__price {
  margin-top: var(--s-5);
}

.plan .price__note {
  margin-top: var(--s-2);
}

.plan__list {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.addon {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  padding: var(--s-5) clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  cursor: pointer;
}

@media (min-width: 40em) {
  .addon {
    grid-template-columns: auto 1fr auto;
  }
}

.addon:hover {
  --frame-edge: rgb(255 255 255 / 0.32);
}

.addon:has(.addon__input:checked) {
  --frame-edge: var(--cyan);
  --frame-bg: #08171a;
}

.switch {
  position: relative;
  width: 3.1rem;
  height: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raised-2);
  transition: background-color var(--dur-2), border-color var(--dur-2);
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2);
}

.addon__input:checked + .switch {
  border-color: var(--cyan);
  background: var(--cyan);
}

.addon__input:checked + .switch::after {
  background: var(--on-cyan);
  transform: translateX(1.35rem);
}

.addon__input:focus-visible + .switch {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.addon__title {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: var(--fs-h4);
  font-weight: 760;
}

.addon__text {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.addon__price {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
}

@media (min-width: 40em) {
  .addon__price {
    grid-column: auto;
    justify-content: flex-end;
  }
}

.addon__price > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
}

.addon__now {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 1.6rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.summary {
  display: grid;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  padding: var(--s-5) clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--cyan);
  color: var(--on-cyan);
  clip-path: var(--clip-cut);
}

@media (min-width: 48em) {
  .summary {
    grid-template-columns: 1fr auto;
  }
}

.summary__label {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.summary__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  margin-top: 0.3rem;
}

.summary__total {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 850;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.summary__was {
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.summary__save {
  font-weight: 800;
}

.summary .btn {
  --btn-bg: var(--void);
  --btn-edge: var(--void);
  --btn-fg: var(--white);
}

.summary .btn:hover {
  --btn-bg: #10181b;
  --btn-edge: #10181b;
}

.summary .btn:focus-visible {
  outline-color: var(--on-cyan);
}

/* ---------- After-care timeline ----------------------------------------- */

.care {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56em) {
  .care {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.care__item {
  padding: var(--s-5) 0 0;
  border-top: 3px solid var(--line-strong);
}

.care__item:first-child {
  border-top-color: var(--cyan);
}

.care__when {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.care__what {
  margin-top: var(--s-3);
  font-size: var(--fs-h3);
}

.care__item:first-child .care__what {
  color: var(--cyan);
}

.care__text {
  margin-top: var(--s-2);
  color: var(--muted);
}

/* ---------- Split layout (FAQ, process headers) ------------------------- */

.split {
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 64em) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: var(--s-9);
  }
}

.split__head h2 {
  margin-top: var(--s-4);
}

.split__head .lead,
.split__head .link-arrow {
  margin-top: var(--s-5);
}

/* ---------- Final CTA --------------------------------------------------- */

.final {
  display: grid;
  gap: var(--s-6);
  align-items: end;
}

@media (min-width: 64em) {
  .final {
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: var(--s-8);
  }
}

.final__title {
  margin-top: var(--s-4);
}

.final .lead {
  margin-top: var(--s-5);
}

.final .actions {
  margin-top: var(--s-6);
}

.final__clock .countdown__unit {
  --frame-bg: var(--raised);
}

.final__ends {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- Inner page hero --------------------------------------------- */

.page-hero {
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.page-hero .eyebrow {
  display: block;
  margin-top: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
}

.page-hero__title {
  max-width: 22ch;
  margin-top: var(--s-4);
  font-size: clamp(1.9rem, 0.9rem + 3.4vw, 3.5rem);
}

.page-hero .lead {
  margin-top: var(--s-5);
}

.page-hero + .section {
  padding-top: 0;
}

/* ---------- Comparison table -------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.compare {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.compare caption {
  padding: var(--s-4);
  text-align: left;
  color: var(--muted);
}

.compare th,
.compare td {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 0.95rem;
  font-weight: 760;
  background: var(--raised);
}

.compare tbody th {
  font-weight: 600;
}

.compare td {
  width: 22%;
  font-weight: 700;
}

.compare .yes {
  color: var(--cyan);
}

.compare .no {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Contact ----------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 64em) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
  }
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

.form-card__title {
  font-size: var(--fs-h3);
}

.form-card__intro {
  margin: var(--s-3) 0 var(--s-6);
  color: var(--muted);
}

.contact-aside {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

@media (min-width: 64em) {
  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.order {
  --frame-edge: var(--cyan-line);
  padding: var(--s-6);
}

.direct {
  padding: var(--s-5) var(--s-6);
}

.direct .order__note {
  margin-top: var(--s-2);
}

.direct__list {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.direct__mail {
  overflow-wrap: anywhere;
}

.order__title {
  font-size: var(--fs-h4);
}

.order__rows {
  margin: var(--s-4) 0 0;
}

.order__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.order__row dt {
  color: var(--muted);
}

.order__row dd {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.order__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.order__total-num {
  font-family: var(--font-display);
  font-stretch: 151%;
  font-size: 2rem;
  font-weight: 850;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.order__note {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.receipt {
  display: grid;
  gap: var(--s-4);
}

.receipt:focus {
  outline: none;
}

.receipt__title {
  font-size: var(--fs-h3);
  color: var(--cyan);
}

/* ---------- Prose (legal) ----------------------------------------------- */

.prose {
  max-width: 44rem;
  color: var(--muted);
}

.prose h2 {
  margin-top: 2.4em;
  font-size: var(--fs-h3);
  color: var(--white);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 1em;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--cyan);
}

.prose strong {
  color: var(--white);
}

/* ---------- Centred pages (404, thank-you) ------------------------------ */

.center-page {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
  padding-block: clamp(4rem, 2rem + 8vw, 9rem);
}

.center-page .lead {
  margin-top: var(--s-2);
}

.center-page__mark {
  width: 5rem;
  height: auto;
}

/* ==========================================================================
   06 · Work samples — real sites in a browser frame plus a phone, and a
   viewer for the whole page. Hovering a card scrolls both screenshots to the
   bottom of the page (fine pointers only, never with reduced motion).
   ========================================================================== */

.work {
  display: grid;
  gap: clamp(3.5rem, 2rem + 4vw, 5.5rem) var(--s-7);
}

@media (min-width: 56em) {
  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.work-item {
  position: relative;
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

/* Room at the bottom right for the phone to overlap the browser */
.work-item__shots {
  position: relative;
  padding: 0 clamp(1.75rem, 7%, 3.25rem) clamp(2rem, 9%, 3.5rem) 0;
}

.work-item__browser {
  transition: border-color var(--dur-2) var(--ease-out);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 40px 80px -45px rgb(0 232 242 / 0.22),
    0 30px 60px -35px rgb(0 0 0 / 0.95);
}

.work-item__view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f1ec;
}

.work-item__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(5.75rem, 25%, 9.75rem);
  aspect-ratio: 390 / 844;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 1.35rem;
  background: #07090a;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.6),
    0 30px 50px -20px rgb(0 0 0 / 0.95),
    0 20px 50px -30px rgb(0 232 242 / 0.25);
}

.work-item__view img,
.work-item__phone img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 0;
  transition: object-position 0.7s var(--ease-out);
}

.work-item__phone img {
  border-radius: 1rem;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-item:hover .work-item__view img,
  .work-item:focus-within .work-item__view img {
    object-position: 50% 100%;
    transition: object-position 9s linear;
  }

  .work-item:hover .work-item__phone img,
  .work-item:focus-within .work-item__phone img {
    object-position: 50% 100%;
    transition: object-position 12s linear;
  }
}

.work-item:hover .work-item__browser {
  border-color: var(--cyan-line);
}

.work-item:has(.work-item__open:focus-visible) .work-item__browser {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.work-item__body {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  max-width: 34rem;
}

.work-item__title {
  font-size: var(--fs-h3);
}

.work-item__text {
  color: var(--muted);
}

.work-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-1) 0 0;
  padding: 0;
  list-style: none;
}

.work-item__tags li {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* The first tag is the package, so it carries the accent */
.work-item__tags li:first-child {
  border-color: var(--cyan-line);
  background: var(--cyan-tint);
  color: var(--cyan);
}

.work-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-2);
}

/* The screenshots also open the live copy (a mouse shortcut; keyboard and screen
   readers use the "Open the site" button, so this link is hidden from them). */
a.work-item__shots {
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 35.99em) {
  .work-item__shots {
    padding: 0 1.25rem 1.75rem 0;
  }

  .work-item__phone {
    width: 5.25rem;
    padding: 3px;
    border-radius: 1rem;
  }

  .work-item__phone img {
    border-radius: 0.8rem;
  }
}

/* ---------- Whole-page viewer -------------------------------------------- */

.viewer {
  width: min(100% - 2rem, 72rem);
  height: min(100dvh - 2rem, 62rem);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--white);
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.viewer::backdrop {
  background: rgb(0 0 0 / 0.8);
}

html:has(.viewer[open]) {
  overflow: hidden;
}

.viewer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.viewer__title {
  margin-right: auto;
  font-size: var(--fs-h4);
}

.viewer__modes {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.viewer__mode {
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}

.viewer__mode:hover {
  color: var(--white);
}

.viewer__mode[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--on-cyan);
}

.viewer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--white);
  cursor: pointer;
}

.viewer__close:hover {
  border-color: var(--cyan-line);
  color: var(--cyan);
}

.viewer__scroll {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(0rem, -1rem + 3vw, 1.5rem);
  background: #15191c;
}

.viewer__img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.viewer[data-mode="phone"] .viewer__img {
  width: min(100%, 390px);
  border-radius: 1.2rem;
}

@media (max-width: 47.99em) {
  .viewer {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .viewer__title {
    flex: 1 1 0;
  }

  /* Title and close on the first row, the full-width switch below */
  .viewer__modes {
    order: 1;
    flex: 1 1 100%;
  }

  .viewer__mode {
    flex: 1;
  }
}

/* ==========================================================================
   07 · Utilities, reveal, review mode, print
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Reveal only once main.js adds .reveal-ready — content is never hidden if JS fails. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-ready [data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: 90ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: 180ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Review mode (?review): outline everything that still needs confirming. */
.show-todos [data-todo] {
  position: relative;
  outline: 2px dashed #ffb020 !important;
  outline-offset: 4px;
}

.show-todos [data-todo]::after {
  content: "CONFIRM · " attr(data-todo);
  position: absolute;
  top: -0.95rem;
  left: 0;
  z-index: 60;
  max-width: 26rem;
  padding: 0.2rem 0.5rem;
  background: #ffb020;
  color: #000;
  font: 700 0.68rem/1.35 var(--font-body);
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: normal;
  clip-path: none;
  inset-inline-end: auto;
}

@media print {
  .offer-bar,
  .site-header,
  .sticky-cta,
  .demo,
  .nav-toggle {
    display: none !important;
  }

  body,
  .section--surface,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .lead,
  .muted,
  .price__note {
    color: #333;
  }
}

/* ==========================================================================
   08 · Backdrop — a street map of the "district" behind every page
   One avenue cuts the grid at 45°, the angle of the arrow in the logo's "D",
   and cyan light runs along it up and to the right. The map itself is drawn
   by scripts/backdrop.mjs; per-route timings are in 09-backdrop-routes.css.
   Contrast: the brightest static pixel that can sit behind text is an avenue
   edge, about rgb(0 56 58). --muted text keeps 5:1 on it and --white 12:1;
   everywhere else the map is darker. Keep .bd-avenue at or below 0.24.
   ========================================================================== */

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* large viewport: the map doesn't rescale when mobile toolbars slide */
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  container-type: size;
  /* One map unit in px. The 1440 × 1440 map is scaled to cover (xMidYMin slice),
     so this places the HTML light pulses exactly on the SVG streets. */
  --u: calc(max(100cqw, 100cqh) / 1440);
}

.backdrop__map {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: var(--bd-strength, 1);
  transition: opacity var(--dur-3) var(--ease-out);
  /* Strongest at the top right, where the avenue leaves the screen;
     the reading side stays calmer. */
  -webkit-mask-image: radial-gradient(125% 95% at 88% 6%, #000 18%, rgb(0 0 0 / 0.68) 55%, rgb(0 0 0 / 0.45) 100%);
  mask-image: radial-gradient(125% 95% at 88% 6%, #000 18%, rgb(0 0 0 / 0.68) 55%, rgb(0 0 0 / 0.45) 100%);
}

.bd-streets,
.bd-arterials,
.bd-avenue {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.bd-streets {
  stroke: rgb(255 255 255 / 0.08);
}

.bd-arterials {
  stroke: rgb(255 255 255 / 0.12);
}

.bd-avenue {
  stroke: rgb(0 232 242 / 0.24);
}

.bd-avenue-bed {
  fill: rgb(0 232 242 / 0.04);
}

.bd-lit rect {
  fill: rgb(0 232 242 / 0.028);
}

.bd-lit .is-hi {
  fill: rgb(0 232 242 / 0.055);
  stroke: rgb(0 232 242 / 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Light pulses --------------------------------------------------------------
   Each route (position and direction in 09-backdrop-routes.css) holds one
   pulse that slides along it. Only transform and opacity animate, so the
   GPU does the work and the map is never repainted. */

.bd-pulses {
  position: absolute;
  inset: 0;
  opacity: var(--bd-strength, 1);
  transition: opacity var(--dur-3) var(--ease-out);
}

.bd-route {
  position: absolute;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.bd-pulse {
  position: absolute;
  top: -0.75px;
  left: calc(-120 * var(--u)); /* TAIL in the generator: the head starts on the route origin */
  width: calc(120 * var(--u));
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(0 232 242 / 0), rgb(0 232 242 / 0.55) 70%, #bffcff);
  opacity: 0; /* only visible while animating */
}

.bd-pulse::before {
  content: "";
  position: absolute;
  inset: -2.25px 0;
  border-radius: 3px;
  background: inherit;
  opacity: 0.22;
}

/* Set by main.js once the first section scrolls away: the light stops and
   the map steps back, so it never competes with prices, questions or the form. */
.backdrop.is-still .bd-pulses {
  opacity: 0;
}

.backdrop.is-still .backdrop__map {
  opacity: calc(var(--bd-strength, 1) * 0.6);
}

.backdrop.is-still .bd-pulse {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (width: 1cqw) {
    .bd-pulse {
      animation: bd-run 20s linear infinite;
      will-change: transform, opacity;
    }
  }
}

/* Travel for the first 55% of each cycle (DUTY in the generator), then rest. */
@keyframes bd-run {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8% {
    opacity: var(--peak, 1);
  }
  47% {
    opacity: var(--peak, 1);
  }
  55%,
  100% {
    transform: translateX(calc(var(--run) * var(--u)));
    opacity: 0;
  }
}

/* Phones: text spans the full width, so the map steps back a little. */
@media (max-width: 47.99em) {
  .backdrop {
    --bd-strength: 0.8;
  }
}

@media print, (forced-colors: active) {
  .backdrop {
    display: none;
  }
}

/* Generated by scripts/backdrop.mjs (npm run backdrop). Do not edit by hand.
   Route origin in map units, direction, travel length and timing per pulse. */
.bd-r1 { left: calc(50% - 460 * var(--u)); top: calc(1240 * var(--u)); transform: rotate(-45deg); }
.bd-r1 .bd-pulse { --run: 1834; --peak: 1; animation-duration: 22.2s; animation-delay: -2.2s; }
.bd-r2 { left: calc(50% - 460 * var(--u)); top: calc(1240 * var(--u)); transform: rotate(-45deg); }
.bd-r2 .bd-pulse { --run: 1834; --peak: 1; animation-duration: 22.2s; animation-delay: -13.3s; }
.bd-r3 { left: calc(50% - 740 * var(--u)); top: calc(140 * var(--u)); }
.bd-r3 .bd-pulse { --run: 1600; --peak: 1; animation-duration: 19.4s; animation-delay: -6.8s; }
.bd-r4 { left: calc(50% - 664 * var(--u)); top: calc(1440 * var(--u)); transform: rotate(-90deg); }
.bd-r4 .bd-pulse { --run: 1580; --peak: 0.6; animation-duration: 19.2s; animation-delay: -15.3s; }
.bd-r5 { left: calc(50% + 664 * var(--u)); top: calc(1440 * var(--u)); transform: rotate(-90deg); }
.bd-r5 .bd-pulse { --run: 1580; --peak: 1; animation-duration: 19.2s; animation-delay: -3.8s; }
