/* Domotk · one motif: the gable of the house in the Domotk mark.
   It cuts the folder tabs, the photographs, the buttons, the index cards and the 3D band. */

:root {
  --bg: #eef1f7;
  --surface: #dfe5f2;
  --ink: #0c1120;
  --muted: #3a4560;
  --accent: #1a3fa8;
  --accent-ink: #ffffff;
  --navy: #0b1530;
  --navy-ink: #eef1f7;
  --navy-soft: #b9c6e6;
  --blue-1: #13286b;
  --blue-2: #2c54c4;
  --blue-3: #5f82dc;
  --blue-4: #a9bcef;
  --blue-5: #d3ddf6;

  --display: "League Spartan", "Arial Black", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five sizes do all the work. */
  --step-small: 15px;
  --step-body: 18px;
  --step-lead: clamp(22px, 2.3vw, 34px);
  --step-head: clamp(34px, 4.4vw, 68px);
  --step-display: clamp(76px, 10vw, 156px);

  --margin: clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 14vw, 200px);
  --radius: 4px;

  /* The motif. A roof over a box; the second is a shallow roof for things that hold text. */
  --gable: polygon(0 26%, 50% 0, 100% 26%, 100% 100%, 0 100%);
  --gable-soft: polygon(0 14%, 50% 0, 100% 14%, 100% 100%, 0 100%);
  --gable-tab: polygon(0 100%, 0 46%, 50% 0, 100% 46%, 100% 100%);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.skip:focus { top: 8px; }

/* Buttons: one shape, the shallow gable. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 18px 26px 14px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  clip-path: var(--gable-soft);
  transition: transform var(--t-hover) ease, background-color var(--t-hover) ease;
}
.button:hover { background: var(--blue-2); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button--small { min-height: 42px; padding: 14px 18px 10px; font-size: var(--step-small); }
.button--light { background: #ffffff; color: var(--accent); }
.button--light:hover { background: var(--blue-5); }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--gap); padding: 12px var(--margin);
  background: var(--navy); color: var(--navy-ink);
}
.bar__links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: var(--step-small); }
.bar__links a, .bar__action, .bar__lang { text-decoration: none; }
.bar__links a:hover, .bar__action:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.bar__mark { justify-self: center; grid-column: 2; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.03em; }
.bar__mark img { border-radius: var(--radius); }
.bar__links { grid-column: 1; grid-row: 1; }
.bar__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.bar__action { font-size: var(--step-small); font-weight: 600; }
/* The language switch: a globe and the other language's own name, on a tone step. */
.bar__lang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  background: var(--blue-1); color: var(--navy-ink); font-size: var(--step-small); font-weight: 600; border-radius: var(--radius);
  transition: background-color var(--t-hover) ease;
}
.bar__lang:hover { background: var(--accent); }
.bar__demo { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 600; text-decoration: none; border-radius: var(--radius); transition: background-color var(--t-hover) ease; }
.bar__demo:hover { background: var(--blue-2); }
.bar__lang svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  height: calc(100svh - 60px); min-height: 640px;
  background: var(--navy); color: var(--navy-ink);
}
.hero__words { position: relative; z-index: 2; text-align: center; padding: clamp(40px, 9vh, 96px) var(--margin) 0; }
.hero h1 { font-size: var(--step-display); line-height: 0.84; }
.hero__lead { margin: 28px auto 0; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; color: var(--navy-ink); }

.folders {
  --offset: 60px;
  position: absolute; left: 50%; width: 86%; top: 52%; bottom: 0;
  transform: translateX(-50%);
  perspective: 1400px; perspective-origin: 50% 0;
}
.folder {
  position: absolute; left: 0; right: 0; height: 120svh;
  display: block; text-decoration: none; color: var(--navy);
  transform-origin: 50% 0;
}
.folder::before { content: ""; position: absolute; inset: 0; background: var(--fill); border-radius: 0 var(--radius) 0 0; }
.folder__tab {
  position: absolute; bottom: 100%; left: var(--tab-x);
  width: 210px; height: 46px; padding-top: 14px;
  display: grid; place-items: center;
  background: var(--fill); clip-path: var(--gable-tab);
  font-weight: 600; font-size: var(--step-body); color: var(--tab-ink, var(--navy));
}
.folder--1 { --fill: var(--blue-1); --tab-ink: var(--navy-ink); --tab-x: 4%; top: 0; }
.folder--2 { --fill: var(--accent); --tab-ink: var(--accent-ink); --tab-x: 26%; top: var(--offset); }
.folder--3 { --fill: var(--blue-3); --tab-x: 48%; top: calc(var(--offset) * 2); }
.folder--4 { --fill: var(--blue-4); --tab-x: 70%; top: calc(var(--offset) * 3); }
.folder--front { --fill: var(--bg); --tab-x: 12%; top: calc(var(--offset) * 4); color: var(--ink); }
a.folder:hover .folder__tab { transform: translateY(-4px); }
.folder__tab { transition: transform var(--t-hover) ease; }
.folder__body {
  position: relative; display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap);
  padding: 32px clamp(20px, 3vw, 40px);
}
.folder__copy { display: grid; gap: 20px; align-content: start; }
.folder__copy p { max-width: 34ch; color: var(--ink); }
.folder__demo { justify-self: start; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.folder__demo::after { content: " \2197"; }
.folder__picture { margin: 0; clip-path: var(--gable); overflow: hidden; height: min(74svh, 680px); }
.folder__picture img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }

/* Gate: the live thing */
.gate {
  position: relative; overflow: hidden;
  min-height: 92svh; padding: var(--section) var(--margin) var(--margin);
  background: var(--accent); color: var(--accent-ink);
  transition: background-color 520ms var(--ease-out);
}
.gate.is-open { background: var(--navy); }
.gate__words { position: relative; z-index: 3; max-width: 30rem; }
.gate__demo { margin-top: 28px; }
.gate h2 { font-size: var(--step-head); }
.gate__words p { margin-top: 20px; font-size: var(--step-body); max-width: 40ch; }
.gate__stage {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  perspective: 1100px; perspective-origin: 30% 40%;
}
.barrier {
  --u: clamp(16px, 2vw, 30px);
  position: absolute; right: clamp(300px, 36vw, 600px); bottom: 22%;
  transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(6deg);
}
.barrier__post, .barrier__arm { position: absolute; transform-style: preserve-3d; }
.barrier__lift { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 100% 50%; }
.barrier__post { width: calc(var(--u) * 3); height: calc(var(--u) * 9); right: 0; bottom: 0; }
.barrier__post span, .barrier__lift span { position: absolute; display: block; }
.barrier__post span { background: var(--navy-ink); }
.barrier__post span:nth-child(1) { inset: 0; transform: translateZ(calc(var(--u) * 1.5)); }
.barrier__post span:nth-child(2) { inset: 0; transform: translateZ(calc(var(--u) * -1.5)); background: var(--blue-4); }
.barrier__post span:nth-child(3) { top: 0; bottom: 0; width: calc(var(--u) * 3); left: 0; transform: rotateY(90deg) translateZ(calc(var(--u) * -1.5)); background: var(--blue-5); }
.barrier__post span:nth-child(4) { left: 0; right: 0; height: calc(var(--u) * 3); top: 0; transform: rotateX(90deg) translateZ(calc(var(--u) * 1.5)); background: #ffffff; }
.barrier__road {
  position: absolute; right: calc(var(--u) * -6); bottom: 0; width: clamp(420px, 60vw, 980px); height: calc(var(--u) * 14);
  background: var(--blue-1); transform-origin: 100% 100%; transform: rotateX(90deg);
}
.gate.is-open .barrier__road { background: #16224a; }
.barrier__arm {
  width: clamp(260px, 44vw, 760px); height: calc(var(--u) * 1.1);
  right: calc(var(--u) * 1.5); bottom: calc(var(--u) * 6.6);
  transform-origin: 100% 50%;
  transition: transform 1100ms var(--ease-out);
}
.gate.is-open .barrier__arm { transform: rotateZ(78deg); }
.barrier__lift span:nth-child(1) { inset: 0; transform: translateZ(calc(var(--u) * 0.55)); background: #ffffff; }
.barrier__lift span:nth-child(2) { inset: 0; transform: translateZ(calc(var(--u) * -0.55)); background: var(--blue-5); }
.barrier__lift span:nth-child(3) { left: 0; right: 0; height: calc(var(--u) * 1.1); transform: rotateX(90deg) translateZ(calc(var(--u) * 0.55)); background: #f6f8fc; }
.barrier__lift span:nth-child(4) { left: 0; top: 0; bottom: 0; width: 22%; transform: translateZ(calc(var(--u) * 0.56)); background: var(--navy); }

/* The app's gate tile, true proportions in em, raised to poster size. */
.tile {
  position: absolute; z-index: 2; right: -4%; bottom: -14%;
  font-size: clamp(16px, 2.9vh, 34px);
  width: 13em; height: 15.5em; padding: 1.4em;
  display: grid; grid-template-rows: auto 1fr auto auto; justify-items: start; align-content: start; gap: 0.35em;
  background: #ffffff; color: var(--navy); border: 0; border-radius: 1.1em; cursor: pointer; text-align: left;
  transition: transform var(--t-hover) ease, background-color 320ms ease;
}
.tile:hover { transform: translateY(-0.2em); }
.tile:active { transform: scale(0.985); }
.tile__icon { width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--blue-5); display: grid; place-items: center; margin-bottom: 1.6em; }
.tile__icon svg { width: 1.7em; height: 1.7em; fill: var(--accent); }
.tile__zone { font-size: 0.9em; color: var(--muted); }
.tile__name { font-family: var(--display); font-size: 3.4em; letter-spacing: -0.04em; line-height: 0.9; }
.tile__state { margin-top: 0.6em; font-weight: 600; font-size: 1em; color: var(--accent); }
.gate.is-moving .tile__state { color: var(--muted); }
.gate.is-open .tile { background: var(--blue-5); }
.gate.is-open .tile__state { color: #0c7a4c; }

/* The hint: while the barrier is down, the tile pulses and the arm twitches on the same beat,
   so the press and the barrier read as one thing. It stops once the gate opens. */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent-ink); opacity: 0;
}
.gate:not(.is-active) .tile::after { animation: tile-halo 3.2s var(--ease-out) infinite; }
.gate:not(.is-active) .tile__icon { animation: tile-tap 3.2s var(--ease-out) infinite; }
.gate:not(.is-active) .barrier__lift { animation: arm-hint 3.2s var(--ease-out) infinite; }
@keyframes tile-halo {
  0% { transform: scale(1); opacity: 0.45; }
  45%, 100% { transform: scale(1.16); opacity: 0; }
}
@keyframes tile-tap {
  0%, 100% { transform: scale(1); }
  8% { transform: scale(0.86); }
  18% { transform: scale(1.06); }
  30% { transform: scale(1); }
}
@keyframes arm-hint {
  0%, 12% { transform: rotateZ(0); }
  26% { transform: rotateZ(11deg); }
  40%, 100% { transform: rotateZ(0); }
}

/* Features */
.features { padding: var(--section) var(--margin) 0; }
.features h2 { font-size: var(--step-head); max-width: 16ch; }
.features__demo { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: var(--step-body); }
.statement { margin-top: 40px; max-width: 30em; font-size: var(--step-lead); line-height: 1.25; font-weight: 600; }
.slot {
  display: inline-block; padding: 0 0.08em; vertical-align: -0.14em; height: 1em; width: 1.9em; overflow: hidden;
  clip-path: var(--gable-soft); background: var(--accent);
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot__pass, .slot__money { display: grid; place-items: center; height: 100%; font-size: 0.3em; font-weight: 600; color: var(--accent-ink); padding: 0.2em 0.3em 0; white-space: nowrap; }
.slot__money { background: var(--navy); }

.index { position: relative; margin-top: clamp(64px, 8vw, 120px); }
.index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.index__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 8px var(--gap); align-items: baseline;
  padding: 18px 20px; text-decoration: none; background: var(--surface);
  transition: opacity var(--t-hover) ease, background-color var(--t-hover) ease;
}
.index__name { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.04em; line-height: 1; }
.index__note { font-size: var(--step-body); color: var(--ink); }
.index__thumb { grid-column: 1 / -1; display: block; margin-top: 12px; }
.index__frame { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .index__list { max-width: 62%; }
  .index__thumb { display: none; }
  .index__row:hover, .index__row:focus-visible { background: var(--blue-5); }
  .index__list:has(.index__row:hover, .index__row:focus-visible) .index__row:not(:hover, :focus-visible) { opacity: 0.45; }
  .index__frame {
    display: block; position: absolute; top: 0; right: 0; width: 34%; z-index: 1; pointer-events: none;
    clip-path: inset(100% 0 0 0); transition: clip-path 320ms var(--ease-out), transform 360ms var(--ease-out);
  }
  .index__frame.is-open { clip-path: inset(0); }
}

/* Interface fragments: the product's own cards. */
.ui-card {
  display: grid; gap: 10px; padding: 22px; background: #ffffff; color: var(--ink);
  border-radius: 14px; font-family: var(--text); font-size: var(--step-body); letter-spacing: 0;
  border: 1px solid #dfe4ef; /* taste-skill-ignore: app card, data-ui */
}
.ui-card__title { font-weight: 700; font-size: var(--step-body); }
.ui-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #e6eaf3; font-size: var(--step-small); color: var(--muted); } /* taste-skill-ignore: app rows, data-ui */
.ui-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.ui-row--warn span, .ui-row--warn strong { color: #8a5a00; }
.ui-chip { justify-self: start; margin-top: 6px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: var(--step-small); }

/* The band: the house, extruded. */
.band {
  margin-top: var(--section); min-height: 76svh; padding: clamp(48px, 6vw, 96px) var(--margin);
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: center; overflow: hidden;
  background: var(--navy); color: var(--navy-ink); perspective: 1000px;
}
.band__picture { margin: 0; display: grid; gap: 16px; }
.band__picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--gable); }
.band__picture figcaption { font-size: var(--step-small); color: var(--navy-soft); max-width: 52ch; }
.house3d { justify-self: center; }
.house3d { position: relative; width: clamp(180px, 34vh, 340px); aspect-ratio: 1 / 1.05; transform-style: preserve-3d; transform: rotateY(-30deg) rotateX(10deg); }
.house3d__layer {
  position: absolute; inset: 0; clip-path: var(--gable); background: var(--blue-1);
  transform: translateZ(calc((var(--i) - 4) * 9px));
}
.house3d__layer:nth-child(1) { --i: 0; background: #0f1d48; }
.house3d__layer:nth-child(2) { --i: 1; }
.house3d__layer:nth-child(3) { --i: 2; }
.house3d__layer:nth-child(4) { --i: 3; }
.house3d__layer:nth-child(5) { --i: 4; }
.house3d__layer:nth-child(6) { --i: 5; }
.house3d__layer:nth-child(7) { --i: 6; background: var(--blue-2); }
.house3d__layer:nth-child(8) { --i: 7; background: var(--accent); }
.house3d__layer:nth-child(8)::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 30%; height: 42%; transform: translateX(-50%);
  background: var(--navy-ink); clip-path: var(--gable-soft);
}

/* How it starts */
.start { padding: var(--section) var(--margin) 0; }
.start__intro { display: grid; grid-template-columns: 5fr 1fr 5fr; gap: var(--gap); align-items: end; }
.start__intro h2 { font-size: var(--step-head); grid-column: 1; }
.start__intro p { grid-column: 3; font-size: var(--step-body); max-width: 44ch; }
.stages { margin-top: 64px; display: flex; height: 520px; }
.stage {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  background: var(--fill); color: var(--fill-ink, var(--navy-ink));
  transition: flex-grow 450ms var(--ease-out);
}
.stage:nth-child(1) { --fill: var(--navy); }
.stage:nth-child(2) { --fill: var(--blue-1); }
.stage:nth-child(3) { --fill: var(--accent); }
.stage:nth-child(4) { --fill: var(--blue-3); --fill-ink: var(--navy); }
.stage:nth-child(5) { --fill: var(--blue-4); --fill-ink: var(--navy); }
.stage.is-open { flex-grow: 5.6; }
.stage__name {
  position: absolute; left: 0; bottom: 0; width: 520px; height: 64px; padding: 0 20px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em; color: inherit;
  transform: rotate(-90deg) translateY(100%); transform-origin: 0 100%;
}
.stage__name:hover { text-decoration: underline; text-underline-offset: 6px; }
.stage.is-open .stage__name { transform: none; top: 0; bottom: auto; width: auto; height: auto; padding: 28px 28px 0; font-size: var(--step-head); cursor: default; text-decoration: none; }
.stage__body { display: none; }
.stage.is-open .stage__body {
  position: absolute; inset: 96px 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end;
}
.stage__body p { max-width: 36ch; font-size: var(--step-body); }
.stage__ui { grid-column: 2; grid-row: 1; align-self: end; color: var(--ink); }
.stage__body img { grid-column: 2; grid-row: 1; align-self: stretch; width: 100%; height: 100%; object-fit: cover; clip-path: var(--gable); }

/* Proof */
.proof { padding: var(--section) var(--margin) 0; }
.proof__board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.proof__tile {
  aspect-ratio: 3 / 2; padding: 24px; display: grid; align-content: space-between;
  background: var(--surface); text-decoration: none; color: var(--ink);
  clip-path: var(--gable-soft); padding-top: 40px;
  transition: background-color var(--t-hover) ease;
}
.proof__tile h3 { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1; }
.proof__tile p { font-size: var(--step-body); }
.proof__tile a { font-weight: 600; }
.proof__tile--head { grid-column: span 2; aspect-ratio: auto; background: var(--accent); color: var(--accent-ink); }
.proof__tile--head h2 { font-size: var(--step-head); }

/* Pricing: three packages, built from plain WordPress blocks so they stay editable. */
.pricing { padding: var(--section) var(--margin) 0; }
.pricing .pricing__title { font-size: var(--step-head); }
.pricing .pricing__lead { margin-top: 20px; max-width: 56ch; font-size: var(--step-body); }
.pricing .pricing__note { margin-top: 8px; padding: 22px clamp(20px, 2.4vw, 36px); background: var(--blue-5); font-size: var(--step-body); }
.pricing .pricing__note strong { font-weight: 600; }
.pricing .packages { margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.pricing .package {
  flex: none; display: flex; flex-direction: column; gap: 18px; min-width: 0;
  padding: 80px clamp(20px, 2.4vw, 36px) 32px; background: var(--surface); color: var(--ink);
  /* A roof of fixed height, so the name always sits clear of the slope. */
  clip-path: polygon(0 48px, 50% 0, 100% 48px, 100% 100%, 0 100%);
}
.pricing .package--featured { background: var(--accent); color: var(--accent-ink); }
.pricing .package h3 { font-size: var(--step-lead); color: inherit; }
.pricing .package__price { font-size: var(--step-body); }
.pricing .package__price strong { display: block; font-family: var(--display); font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.pricing .package p { margin: 0; }
.pricing .package ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pricing .package li { position: relative; padding-left: 1.4em; }
.pricing .package li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 0.7em; height: 0.75em; background: var(--accent); clip-path: var(--gable); }
.pricing .package--featured li::before { background: var(--accent-ink); }
.pricing .package .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.pricing .package .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 54px; padding: 18px 26px 14px; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); text-decoration: none;
  clip-path: var(--gable-soft); transition: transform var(--t-hover) ease, background-color var(--t-hover) ease;
}
.pricing .package--featured .wp-block-button__link { background: var(--accent-ink); color: var(--accent); }
.pricing .package .wp-block-button__link:hover { transform: translateY(-2px); background: var(--blue-2); color: var(--accent-ink); }

/* FAQ */
.faq { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.faq h2 { grid-column: 3 / 11; font-size: var(--step-head); }
.cards { grid-column: 3 / 11; display: grid; padding-top: 46px; }
.card {
  --tab: min(200px, 24%); position: relative; margin-top: -20px; padding: 30px 28px 84px;
  background: var(--fill); color: var(--ink);
}
.card:first-child { margin-top: 0; }
.card:nth-child(3n + 1) { --fill: var(--surface); }
.card:nth-child(3n + 2) { --fill: var(--blue-5); }
.card:nth-child(3n + 3) { --fill: var(--blue-4); }
.card:last-child { padding-bottom: 36px; }
.card:nth-child(1) { --x: 0%; } .card:nth-child(2) { --x: 19%; } .card:nth-child(3) { --x: 38%; }
.card:nth-child(4) { --x: 57%; } .card:nth-child(5) { --x: 76%; }
.card__tab {
  position: absolute; bottom: 100%; left: var(--x); width: var(--tab); height: 44px; padding-top: 14px;
  display: grid; place-items: center; background: var(--fill); clip-path: var(--gable-tab); font-size: var(--step-body); font-weight: 600;
}
.card__question { display: block; width: 100%; border: 0; border-radius: 0; background: none; color: inherit; padding: 0; cursor: pointer; text-align: left; font-size: var(--step-body); font-weight: 600; }
.card__question:hover { text-decoration: underline; text-underline-offset: 5px; }
.card__answer { display: none; padding-top: 14px; max-width: 54ch; font-size: var(--step-body); }
.card.is-open .card__answer { display: block; }

/* CTA */
.cta { padding: var(--section) var(--margin) var(--section); }
.cta__line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.24em; font-family: var(--display); font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1.05; }
.cta__line h2 { font-size: 1em; line-height: 1.05; }
.cta__line input {
  width: 9.4em; max-width: 100%; height: 1.05em; padding: 0.12em 0.2em 0; border: 0; border-radius: 0;
  background: var(--surface); font-family: var(--display); font-size: 1em; letter-spacing: -0.04em; color: var(--ink);
  clip-path: var(--gable-soft);
}
.cta__line input::placeholder { color: var(--muted); opacity: 1; }
.cta__line button {
  height: 1.05em; padding: 0.14em 0.3em 0; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-size: 1em; letter-spacing: -0.04em; clip-path: var(--gable-soft);
  transition: background-color var(--t-hover) ease, transform var(--t-hover) ease;
}
.cta__line button:hover { background: var(--blue-2); transform: translateY(-0.04em); }
.cta__note { margin-top: 40px; font-size: var(--step-body); color: var(--muted); max-width: 60ch; }
.cta__demo { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: var(--step-body); }

/* Footer: the name built from blocks; the last block wears the roof. */
.footer { background: var(--navy); color: var(--navy-ink); padding: clamp(48px, 7vw, 96px) var(--margin) 28px; }
.footer__mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; }
.footer__mark span {
  flex: 1; display: grid; place-items: end center; padding-bottom: 0.04em;
  font-family: var(--display); font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.04em;
  color: var(--navy); background: var(--fill); height: var(--h);
}
.footer__mark span:nth-child(1) { --fill: var(--blue-4); --h: 78%; }
.footer__mark span:nth-child(2) { --fill: var(--blue-3); --h: 62%; }
.footer__mark span:nth-child(3) { --fill: var(--accent); --h: 86%; color: var(--navy-ink); }
.footer__mark span:nth-child(4) { --fill: var(--blue-2); --h: 66%; color: var(--navy-ink); }
.footer__mark span:nth-child(5) { --fill: var(--blue-4); --h: 92%; }
.footer__mark .footer__roof { --fill: var(--navy-ink); --h: 100%; clip-path: var(--gable); }
.footer__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.footer__links { grid-column: span 2; display: grid; gap: 10px; align-content: start; font-size: var(--step-small); }
.footer__links:first-child { grid-column: 1 / 3; }
.footer__links a, .footer__contact a { text-decoration: none; }
.footer__links a:hover, .footer__contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__contact { grid-column: 9 / 13; display: grid; gap: 10px; font-style: normal; font-size: var(--step-small); }
.credits { margin-top: 48px; font-size: var(--step-small); color: var(--navy-soft); max-width: 56ch; }
.credits a { color: var(--navy-ink); }
.footer__last { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }
.footer__last span a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Tablet */
@media (max-width: 1000px) {
  .bar__links { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__mark { grid-column: 1; justify-self: start; }
  .bar__end { grid-column: 2; }
  .start__intro { grid-template-columns: 1fr; }
  .folder__tab { width: 150px; }
  .start__intro p { grid-column: 1; }
  .proof__board { grid-template-columns: repeat(2, 1fr); }
  .proof__tile--head { grid-column: 1 / -1; }
  .faq h2, .cards { grid-column: 1 / -1; }
  .footer__links, .footer__links:first-child { grid-column: span 4; }
  .pricing .packages { grid-template-columns: 1fr; max-width: 640px; }
  .footer__contact { grid-column: 1 / -1; }
}

/* Phone: its own composition */
@media (max-width: 700px) {
  .bar__login, .bar__action { display: none; }
  .hero { min-height: 680px; }
  .hero__words { padding-top: 64px; }
  .hero h1 { font-size: 22vw; }
  .hero__lead { font-size: var(--step-body); margin-top: 18px; }
  .folders { --offset: 46px; width: 100%; top: 40%; }
  .folder__tab { width: 112px; height: 34px; padding-top: 10px; font-size: var(--step-small); }
  .folder--1 { --tab-x: 4%; } .folder--2 { --tab-x: 36%; } .folder--3 { --tab-x: 66%; } .folder--4 { --tab-x: 20%; } .folder--front { --tab-x: 52%; }
  .folder--front .folder__tab { width: 160px; }
  .folder__body { grid-template-columns: 1fr; padding: 22px 16px; }
  .folder__picture { height: 46svh; }
  .folder__copy .button { width: 100%; }

  .gate { min-height: 86svh; padding-top: 64px; }
  .gate h2 { font-size: var(--step-head); }
  .gate__words p { font-size: var(--step-body); }
  .tile { font-size: var(--step-small); right: auto; left: 16px; bottom: -6%; }
  .barrier { --u: 12px; right: 40px; bottom: 36%; }
  .barrier__arm { width: 62vw; }

  .statement { font-size: var(--step-lead); }
  .band { grid-template-columns: 1fr; min-height: 0; }
  .house3d { width: 52vw; margin-block: 24px; }
  .index__row { grid-template-columns: 1fr; padding: 16px; }

  .stages { flex-direction: column; height: auto; }
  .stage, .stage.is-open { flex: none; }
  .stage__name, .stage.is-open .stage__name { position: static; transform: none; width: 100%; height: 64px; padding: 0 16px; font-size: var(--step-body); }
  .stage.is-open .stage__name { height: auto; padding: 20px 16px 0; font-size: var(--step-lead); }
  .stage.is-open .stage__body { position: static; display: grid; grid-template-columns: 1fr; padding: 14px 16px 20px; }
  .stage__body p { font-size: var(--step-body); }
  .stage__body img, .stage__ui { grid-column: 1; grid-row: auto; }
  .stage__body img { aspect-ratio: 4 / 3; height: auto; }

  .proof__board { gap: 6px; }
  .proof__tile { aspect-ratio: auto; min-height: 150px; padding: 32px 16px 16px; }
  .proof__tile h3 { font-size: var(--step-lead); }
  .proof__tile--head { min-height: 120px; }

  .pricing .packages { grid-template-columns: 1fr; }

  .card { --tab: 30%; padding: 22px 20px 76px; }
  .card:last-child { padding-bottom: 28px; }
  .card:nth-child(2) { --x: 17%; } .card:nth-child(3) { --x: 34%; } .card:nth-child(4) { --x: 51%; } .card:nth-child(5) { --x: 68%; }
  .card__tab { height: 36px; padding-top: 12px; font-size: var(--step-small); }
  .card__question { font-size: var(--step-body); }
  .card__answer { font-size: var(--step-body); }

  .cta__line { font-size: var(--step-head); }
  .cta__line input { order: 2; width: 100%; }
  .cta__line h2 { order: 1; }
  .cta__line button { order: 3; }
  .cta__note { font-size: var(--step-small); }

  .footer__mark { height: 22svh; min-height: 150px; }
  .footer__mark span { font-size: 17vw; }
  .footer__links, .footer__links:first-child { grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce) {
  .barrier__arm, .stage, .gate, .index__frame { transition: none; }
  .tile::after, .tile__icon, .barrier__lift { animation: none !important; }
}
