/* mach314.com

   GUTTER RULE, enforced by check.js: never write the `padding` shorthand
   with a 0 inline value on anything that shares an element with .wrap.
   `padding: 4rem 0` cancels .wrap's padding-inline at equal specificity and
   every page renders flush to the screen edge below the max-width. It has
   shipped live on three sites in this account. Use padding-block.

   MIN-WIDTH RULE, also enforced: anything with a min-width needs itself or a
   `-wrap` sibling to set overflow-x, AND min-width:0 if it is a flex or grid
   child — a grid item refuses to shrink below its content, so overflow-x
   alone does nothing and the page scrolls sideways on a phone.

   ── The palette ──────────────────────────────────────────────────────
   BMW M, with each colour given the role it can actually do on a dark UI:

     navy   is the GROUND, not an accent. As an accent on near-black it
            measured 2.01:1 contrast — invisible. As the page's own
            background it is exactly right, and it is what makes this feel
            like the M palette rather than a blue site.
     blue   is the primary accent — links, marks, emphasis.
     red    is the action colour — CTAs and nothing else, so it always
            means "this is the thing to press".
     purple is decorative only: gradients, rails, the brand mark. It is NOT
            used to distinguish anything from anything, because blue and
            purple measured ΔE 3.9 apart under deuteranopia — a viewer with
            the most common form of colour blindness cannot tell them apart.
            Side by side in a gradient that is fine. Carrying two different
            meanings it would not be.

   Blue vs red — the pair that does carry meaning — passes all six checks. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/archivo.woff2') format('woff2');
  /* Latin subset only. The width axis was dropped: it doubled the file to
     88KB and this site publishes its own page weight on the home page. */
}

:root {
  /* ground — BMW M dark blue, taken down to a usable page background */
  --ink:      #070C18;
  --ink-2:    #0D1526;
  --ink-3:    #142038;
  --line:     #1E2C4A;
  --line-2:   #2A3B60;

  --fg:       #E9EEF8;
  --muted:    #8E9DBA;
  --faint:    #64748F;

  --blue:     #2D8FD6;
  --blue-d:   #1F7BBE;
  --red:      #F0404A;
  --red-d:    #D92B36;
  --purple:   #8B5AD6;

  /* The layer visual is about colour ARRIVING, so it gets a full spectrum.
     These are decorative only and never encode meaning, which is why they
     are allowed to sit outside the three brand roles above. */
  --s1: #2D8FD6;  /* blue   */
  --s2: #4FD1C5;  /* teal   */
  --s3: #8B5AD6;  /* purple */
  --s4: #F06AB4;  /* pink   */
  --s5: #F0404A;  /* red    */
  --s6: #F2A93B;  /* amber  */

  --wrap:   1160px;
  --mid:     920px;
  --narrow:  760px;
  --r:      14px;
  --gut:    clamp(1rem, 4vw, 2.25rem);

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

/* The clip belongs on <html>, not on <body>.
   body { overflow-x: clip } PROPAGATES to the viewport and leaves body itself
   computing to `visible`, and in that state a descendant scroll container's
   over-wide content still grows the document — the pricing page scrolled
   236px sideways to empty ground at 360px. body{overflow-x:hidden} does not
   fix it either, for the same reason. Putting it on <html> does. Verified by
   actually scrolling the window, not by reading scrollWidth. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--fg); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
.choice input:focus-visible + span, .style-choice input:focus-visible + .style-choice-inner {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

h1, h2, h3 { line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 .55em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p  { margin: 0 0 1.1em; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── motion ───────────────────────────────────────────────────────────
   Reveals are opt-IN via the `js` class, which an inline script in <head>
   puts on <html>. Without JS — and for anyone who asked for reduced motion
   — every .reveal is simply visible. Content is never parked at opacity 0
   waiting on an observer that might not run. */

.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-canvas { display: none; }
}

/* ── layout ───────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-mid { max-width: var(--mid); }
.wrap-narrow { max-width: var(--narrow); }

.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.sec-alt { background: var(--ink-2); }

/* A hairline rail in the three M colours, used as the top edge of alternate
   sections. This is the palette as a gradient — a transition, not three
   stripes carrying three meanings. */
.sec-alt::before,
.cta-band::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple) 55%, var(--red));
  opacity: .85;
}

/* ── header ───────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 12, 24, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; min-height: 44px;
}
/* The mark is an inline SVG (three chevrons) rather than three CSS bars.
   The bars version was BMW M's trade dress in all but name. */
.brand-mark { display: block; width: 30px; height: 22px; flex: none; }
.foot-brand { display: flex; align-items: center; gap: .55rem; }
.foot-brand .brand-mark { width: 32px; height: 23px; }
.brand-word { font-weight: 800; font-size: 1.2rem; letter-spacing: -.045em; }
.brand-word em { font-style: normal; color: var(--blue); }

.site-head nav { display: flex; align-items: center; gap: .2rem; }
.site-head nav a {
  text-decoration: none; color: var(--muted);
  padding-block: .5rem; padding-inline: .7rem;
  border-radius: 9px; font-size: .93rem; font-weight: 500;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-head nav a:hover { color: var(--fg); background: var(--ink-3); }
.site-head nav a[aria-current="page"] { color: var(--fg); }
.site-head nav a.nav-cta {
  background: var(--red); color: #fff; font-weight: 700;
}
.site-head nav a.nav-cta:hover { background: var(--red-d); color: #fff; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 9px; width: 44px; height: 44px; cursor: pointer; position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--fg); border-radius: 2px; transform: translateX(-50%);
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle .bars { top: 50%; margin-top: -1px; }
.nav-toggle .bars::before { content: ''; top: -6px; }
.nav-toggle .bars::after  { content: ''; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-head nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding-block: .5rem; padding-inline: var(--gut);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s var(--ease), visibility .3s;
  }
  .site-head nav.open { max-height: 26rem; visibility: visible; }
  .site-head nav a { padding-block: .8rem; font-size: 1rem; border-radius: 8px; }
  .site-head nav a.nav-cta { text-align: center; margin-top: .4rem; margin-bottom: .3rem; }
  /* Without JS the toggle cannot open anything, so the nav must not be
     hidden at all — otherwise the site has no navigation. */
  html:not(.js) .site-head nav { max-height: none; visibility: visible; overflow: visible; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ── hero ─────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(70rem 36rem at 12% -15%, rgba(45, 143, 214, .16), transparent 62%),
    radial-gradient(50rem 30rem at 90% 0%, rgba(139, 90, 214, .12), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-bottom: 1px solid var(--line);
}
.hero-sm { padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero-big { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); min-height: auto; }
.hero-case { padding-block: clamp(3rem, 7vw, 5rem); }

.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; opacity: .65;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-big .hero-inner {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 1000px) {
  .hero-big .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hero-copy { min-width: 0; }
/* The global h1 clamp tops out at 4.6rem, which is right for a full-width
   hero and far too big inside a half-width column — it ran the headline to
   five lines at 1440px. Measured, not guessed. */
@media (min-width: 1000px) {
  .hero-big h1 { font-size: clamp(2.6rem, 3.6vw, 3.5rem); }
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .73rem; font-weight: 700; color: var(--blue);
  margin-bottom: 1rem;
}
.hl {
  background: linear-gradient(96deg, var(--blue) 0%, var(--purple) 48%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--muted); max-width: 56ch; line-height: 1.6; }
.lede.big { font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--fg); font-weight: 600; letter-spacing: -.02em; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.1rem; z-index: 2;
  transform: translateX(-50%); width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--line-2));
}
.hero-scroll span {
  position: absolute; left: -1px; width: 3px; height: 10px; border-radius: 2px;
  background: var(--blue); animation: dropdown 2.4s var(--ease) infinite;
}
@keyframes dropdown {
  0%   { top: 0; opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { top: 34px; opacity: 0; }
}
@media (max-width: 999px) { .hero-scroll { display: none; } }

/* ── the live demo in the hero ────────────────────────────────────── */

.hero-demo {
  min-width: 0;
  background: rgba(13, 21, 38, .72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}
.demo-label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--muted);
  margin-bottom: .6rem;
}
.demo-field { position: relative; margin-bottom: 1.1rem; }
.demo-field input {
  width: 100%; font: inherit; font-size: 1.05rem; font-weight: 600;
  color: var(--fg); background: var(--ink);
  border: 1px solid var(--line-2); border-radius: 11px;
  padding-block: .75rem; padding-inline: .95rem;
}
.demo-field input::placeholder { color: var(--faint); font-weight: 400; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.demo-grid .style-card.bare figcaption {
  padding-block: .5rem 0; padding-inline: .1rem;
  font-size: .76rem; color: var(--muted); font-weight: 600;
}
.demo-note { margin-top: .9rem; margin-bottom: 0; }
@media (max-width: 420px) { .demo-grid { grid-template-columns: 1fr; } }

/* ── the numbers strip ────────────────────────────────────────────── */

.strip { padding-block: clamp(1.6rem, 3vw, 2.2rem); background: var(--ink-2); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.strip p { margin: 0; display: grid; gap: .1rem; }
.strip b {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.04em;
  color: var(--fg); font-variant-numeric: tabular-nums;
}
.strip span { font-size: .84rem; color: var(--muted); }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 11px;
  padding-block: .85rem; padding-inline: 1.5rem;
  font: inherit; font-weight: 700; font-size: .98rem; letter-spacing: -.01em;
  transition: background .16s, transform .12s var(--ease), box-shadow .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -12px var(--red); }
.btn-primary:hover { background: var(--red-d); box-shadow: 0 12px 30px -12px var(--red); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink-3); border-color: var(--blue); }
.btn-lg { padding-block: 1rem; padding-inline: 2.1rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: default; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.9rem 1rem; }
.cta-row-center { justify-content: center; }
.cta-center { text-align: center; margin-top: 2.4rem; }
.cta-band { background: var(--ink-2); border-block: 1px solid var(--line); text-align: center; }
.cta-band .lede { margin-inline: auto; }

/* ── cards & grids ────────────────────────────────────────────────── */

.grid-2 { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 2rem; }

.card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r);
  padding-block: 1.6rem; padding-inline: 1.45rem;
  transition: border-color .2s, transform .3s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { color: var(--blue); }
.card p:last-child { margin-bottom: 0; }

.note {
  margin-top: 2rem; padding-block: 1.1rem; padding-inline: 1.3rem;
  border-left: 3px solid var(--blue);
  background: var(--ink-3); border-radius: 0 var(--r) var(--r) 0;
  color: var(--muted);
}
.note:last-child { margin-bottom: 0; }

.steps { counter-reset: s; list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: s; position: relative;
  padding-block: 1.2rem; padding-inline: 4.2rem 1.4rem;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.15rem;
  font-weight: 800; font-size: .95rem; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.steps li strong { color: var(--fg); }

.ticks { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-inline-start: 1.65rem; color: var(--muted); font-size: .94rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: .45rem; height: .8rem; border: solid var(--blue);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ── stats ────────────────────────────────────────────────────────── */

.stat-row {
  display: grid; gap: 1rem; margin-block: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.stat {
  border-left: 2px solid var(--line-2); padding-inline-start: .9rem;
  display: grid; gap: .15rem;
}
.stat b {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.045em;
  line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ── services ─────────────────────────────────────────────────────── */

.svc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2rem; }
.svc {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-3);
  padding-block: 1.4rem; padding-inline: 1.3rem;
  transition: border-color .2s, transform .3s var(--ease);
}
.svc:hover { border-color: var(--blue); transform: translateY(-3px); }
.svc h3 { margin-bottom: .45em; }
.svc p { margin: 0; color: var(--muted); font-size: .93rem; }

.svc-list { display: grid; gap: 0; }
.svc-row {
  display: grid; gap: 1.2rem; grid-template-columns: auto 1fr;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.svc-row:first-child { border-top: 0; padding-top: .5rem; }
.svc-n {
  font-size: .8rem; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums; margin: .35rem 0 0;
  letter-spacing: .06em;
}
.svc-row h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: .4em; }
.svc-line { font-size: 1.05rem; color: var(--fg); }
.svc-row p:last-child { margin-bottom: 0; }

.feature-card {
  display: grid; gap: 1.8rem; margin-top: 2rem;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(140deg, var(--ink-3), var(--ink-2));
  padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--red));
}
@media (min-width: 780px) { .feature-card { grid-template-columns: 15rem 1fr; } }
.feature-price {
  font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800;
  letter-spacing: -.05em; line-height: 1; margin: 0 0 .3rem;
}
.feature-card p:last-child { margin-bottom: 0; }

/* ── pricing ──────────────────────────────────────────────────────── */

.price-grid {
  display: grid; gap: 1.2rem; margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}
.price-card {
  position: relative;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
  padding-block: 1.9rem; padding-inline: 1.55rem;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.sec-alt .price-card { background: var(--ink); }
.price-card.popular { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 20px 50px -32px var(--blue); }
.badge {
  position: absolute; top: -.8rem; left: 1.5rem;
  background: var(--blue); color: #fff;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  padding-block: .32rem; padding-inline: .75rem; border-radius: 99px; margin: 0;
}
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; margin: 0 0 .12em; }
.price .per, .price .from { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-sub { color: var(--blue); font-weight: 600; font-size: .93rem; }
.turnaround { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); margin-bottom: 0; }

/* ── comparison matrices ──────────────────────────────────────────── */

.matrix-wrap {
  margin-top: 2.2rem;
  overflow-x: auto;
  min-width: 0;            /* a grid/flex child ignores overflow-x without it */
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-3);
  scroll-margin-top: 96px;
  /* And the same bug fixed at source: without paint containment this scroll
     container's 660px-wide table still counts toward the document's scroll
     width, which is the opposite of what a scroll container is for. */
  contain: paint;
}
.sec-alt .matrix-wrap { background: var(--ink); }
.matrix { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .93rem; }
.matrix caption {
  text-align: left; color: var(--muted); font-size: .87rem;
  padding-block: 1.1rem .4rem; padding-inline: 1.15rem;
}
.matrix th, .matrix td {
  padding-block: .72rem; padding-inline: 1.15rem;
  border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle;
}
.matrix thead th {
  font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); border-bottom: 2px solid var(--line-2);
  white-space: nowrap; text-align: center;
}
.matrix thead th:first-child { text-align: left; }
.matrix thead th.pick { color: var(--blue); }
.pick-flag { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .06em; color: var(--faint); margin-top: .15rem; }
.matrix tbody th { font-weight: 500; color: var(--fg); }
.matrix td { text-align: center; }
.matrix td.left { text-align: left; }
.matrix .yes { color: var(--blue); font-size: 1.1rem; font-weight: 700; }
.matrix .no  { color: var(--faint); }
.matrix .val { color: var(--muted); font-size: .88rem; }
.matrix .strong { color: var(--fg); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.matrix .strong .per, .matrix .strong .from { color: var(--muted); font-weight: 500; font-size: .78rem; }
.matrix tbody tr:hover { background: rgba(45, 143, 214, .05); }
.matrix .price-row th, .matrix .price-row td { border-top: 2px solid var(--line-2); border-bottom: 0; padding-block: 1.05rem; }
.rate-table { min-width: 620px; }
.rate-table td.left { max-width: 34rem; }

/* ── FAQ ──────────────────────────────────────────────────────────── */

.faq { display: grid; gap: .55rem; margin-top: 1.6rem; }
.faq details {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
  padding-block: .1rem; padding-inline: 1.25rem;
  transition: border-color .2s;
  scroll-margin-top: 96px;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; font-weight: 600; padding-block: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); margin-bottom: 1.1rem; }
.faq details a { color: var(--blue); }

.faq-group {
  font-size: 1.35rem; margin-top: 2.8rem; margin-bottom: .9rem;
  padding-bottom: .55rem; border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.faq-group:first-of-type { margin-top: 0; }

.jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.7rem; }
.jump a {
  text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px;
  padding-block: .48rem; padding-inline: .9rem;
  transition: color .15s, border-color .15s;
}
.jump a:hover { color: var(--fg); border-color: var(--blue); }

/* ── style previews ───────────────────────────────────────────────── */

.style-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2.2rem; }
.style-card { margin: 0; }
.style-card figcaption { padding-block: 1.1rem .2rem; }
.style-card h3 { margin-bottom: .25em; }
.style-card p { font-size: .92rem; color: var(--muted); }
.pv-frame { border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }

.pv {
  background: var(--pv-bg); color: var(--pv-fg);
  overflow: hidden; font-size: 11px; line-height: 1.3;
}
.pv-bar {
  display: flex; align-items: center; gap: .6rem;
  padding-block: .55rem; padding-inline: .8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--pv-fg) 14%, transparent);
}
.pv-logo {
  font-weight: 800; font-size: 11px; letter-spacing: -.02em; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 45%;
}
.pv-links { display: flex; gap: .3rem; margin-left: auto; }
.pv-links i { display: block; width: 16px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--pv-fg) 30%, transparent); }
.pv-btn {
  background: var(--pv-accent); color: #fff; font-weight: 700; font-size: 9px;
  padding-block: .22rem; padding-inline: .5rem; border-radius: 4px;
}
.pv-hero { padding-block: 1.4rem 1.2rem; padding-inline: .9rem; }
.pv-eyebrow { color: var(--pv-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 800; margin: 0 0 .4rem; }
.pv-h1 { font-size: 20px; font-weight: 800; letter-spacing: -.035em; margin: 0 0 .35rem; line-height: 1.08; overflow-wrap: break-word; }
.pv-sub { font-size: 9.5px; opacity: .68; margin: 0 0 .7rem; max-width: 26ch; }
.pv-cta { display: inline-block; background: var(--pv-accent); color: #fff; font-weight: 700; font-size: 9px; padding-block: .35rem; padding-inline: .7rem; border-radius: 5px; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding-block: 0 .9rem; padding-inline: .9rem; }
.pv-cards span { display: block; height: 34px; border-radius: 5px; background: var(--pv-card); }

.pv[data-style="craft"] .pv-h1,
.pv[data-style="craft"] .pv-logo { font-family: Georgia, 'Times New Roman', serif; }
.pv[data-style="premium"] .pv-h1 { font-weight: 400; letter-spacing: .01em; }

/* ── work & case study ────────────────────────────────────────────── */

.work-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.work-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
  padding-block: 1.6rem; padding-inline: 1.45rem;
  transition: border-color .2s, transform .3s var(--ease);
}
.work-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.work-card.feature {
  grid-column: 1 / -1; border-color: var(--blue);
  background: linear-gradient(140deg, var(--ink-3), var(--ink-2));
}
.work-kind { color: var(--blue); font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .45rem; }
.work-card h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.work-card h2 a { color: var(--fg); text-decoration: none; }
.work-card h2 a:hover { color: var(--blue); }
.work-card p { color: var(--muted); font-size: .94rem; }
.work-more { margin-bottom: 0; }
.work-more a { color: var(--blue); font-weight: 600; font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tags span {
  font-size: .71rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px;
  padding-block: .22rem; padding-inline: .62rem;
}

.find-list, .refuse-list { display: grid; gap: 1rem; margin-top: 2rem; }
.find, .refuse {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-3);
  padding-block: 1.5rem; padding-inline: 1.4rem;
  border-left: 3px solid var(--line-2);
}
.find { border-left-color: var(--red); }
.refuse { border-left-color: var(--purple); }
.find h3, .refuse h3 { margin-bottom: .5em; }
.find p, .refuse p { color: var(--muted); margin-bottom: 0; }

.built-list { display: grid; gap: 0; margin-top: 2rem; }
.built {
  display: grid; gap: 1.2rem; grid-template-columns: auto 1fr;
  padding-block: 1.7rem; border-top: 1px solid var(--line);
}
.built:first-child { border-top: 0; padding-top: .4rem; }
.built-n { font-size: .8rem; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; margin: .3rem 0 0; letter-spacing: .06em; }
.built h3 { margin-bottom: .4em; }
.built p { color: var(--muted); margin-bottom: 0; }

/* ── the intake form ──────────────────────────────────────────────── */

.progress { list-style: none; margin: 0 0 2.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.progress li {
  display: flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-block: .38rem; padding-inline: .65rem .85rem;
  border: 1px solid var(--line); border-radius: 99px;
  transition: color .2s, border-color .2s;
}
.progress li span {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--line); color: var(--fg);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  transition: background .2s;
}
.progress li.on { color: var(--fg); border-color: var(--blue); }
.progress li.on span { background: var(--blue); color: #fff; }
.progress li.done span { background: var(--purple); color: #fff; }

.intake .step { display: none; border: 0; margin: 0; padding: 0; }
.intake .step.on { display: block; animation: stepin .4s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intake legend { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; padding: 0; margin-bottom: 1.3rem; }

.field { margin-bottom: 1.4rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .45rem; }
.field label b, .field .label b { color: var(--red); }
.field-note { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
/* Referral-code confirmation. The tick and the wording carry the meaning on
   their own — the colour is a bonus, never the only signal. */
.ref-note { margin-top: .5rem; margin-bottom: 0; }
.ref-note.ok { color: var(--s2); }
.field-inline { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.field-inline label { margin-bottom: 0; }

.row { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

input[type="text"], input[type="email"], input[type="tel"], input:not([type]),
select, textarea {
  width: 100%; font: inherit; font-size: 1rem;
  color: var(--fg); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding-block: .72rem; padding-inline: .9rem;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
input[type="color"] {
  width: 3rem; height: 2.5rem; padding: 2px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; margin-bottom: 0; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-block; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px;
  padding-block: .52rem; padding-inline: 1rem;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  background: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.choice span:hover { border-color: var(--line-2); color: var(--fg); }
.choice input:checked + span {
  border-color: var(--blue); background: rgba(45, 143, 214, .14); color: var(--fg); font-weight: 600;
}

.style-choices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.style-choice { position: relative; display: block; cursor: pointer; }
.style-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.style-choice-inner {
  display: block; position: relative;
  border: 2px solid var(--line); border-radius: 16px;
  padding: .5rem; background: var(--ink-2);
  transition: border-color .2s;
}
.style-choice-inner .pv { border-radius: 10px; overflow: hidden; }
.style-choice:hover .style-choice-inner { border-color: var(--line-2); }
.style-choice input:checked + .style-choice-inner { border-color: var(--blue); }
.style-choice-meta { display: block; padding-block: .75rem .3rem; padding-inline: .35rem; }
.style-choice-meta strong { display: block; font-size: .98rem; }
.style-choice-tick {
  position: absolute; bottom: 1rem; right: 1rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--ink);
  transition: background .15s, border-color .15s;
}
.style-choice input:checked + .style-choice-inner .style-choice-tick { background: var(--blue); border-color: var(--blue); }
.style-choice input:checked + .style-choice-inner .style-choice-tick::after {
  content: ''; position: absolute; left: .45rem; top: .18rem;
  width: .3rem; height: .62rem; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-nav { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.form-msg { margin-top: 1rem; font-weight: 600; min-height: 1.6em; }
.form-msg.err { color: var(--red); }
.form-msg a { color: var(--blue); }

.hp {
  /* Off-screen AND transparent AND unfocusable. left:-9999px alone still
     leaves a field a browser considers visible: it can take keyboard focus
     and some screen readers announce it, so a sighted-keyboard or screen
     reader user tabs into a box labelled "leave this empty". It must NOT be
     display:none — the naive bots this catches skip those. */
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}

.done-panel {
  background: var(--ink-3); border: 1px solid var(--blue); border-radius: 18px;
  padding-block: 2.4rem; padding-inline: 1.7rem; text-align: center;
  animation: stepin .5s var(--ease);
}
.done-panel h2 { color: var(--blue); }

/* ── footer ───────────────────────────────────────────────────────── */

.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); position: relative; }
.site-foot::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple) 55%, var(--red));
}
.foot-inner { display: grid; gap: 2rem; padding-block: 3.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-col h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--blue); margin-bottom: .85rem; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding-block: .25rem; font-size: .94rem; }
.foot-col a:hover { color: var(--fg); }
.foot-brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.045em; margin-bottom: .5rem; }
.foot-brand em { font-style: normal; color: var(--blue); }
.foot-legal { padding-block: 1.3rem; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; }


/* ══ THE LAYER STACK ══════════════════════════════════════════════════
   Six planes in CSS 3D showing a website assembling itself. The top plane
   is the live preview component, so it carries the visitor's own business
   name — that is the point of building this rather than rendering a video
   of it. About 2KB of DOM.

   The whole thing is inert without JS and without motion: the planes simply
   sit in their resting positions, stacked and readable. Nothing here is
   parked at opacity 0 waiting for an observer that may never fire. */

.stack-outer {
  min-width: 0;
  display: grid; gap: 1.4rem;
  align-content: center;
}

.stack {
  perspective: 1500px;
  perspective-origin: 55% 40%;
  height: clamp(300px, 40vw, 420px);
  position: relative;
}
.stack-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  /* The angle. Tilted back and rotated so the stack reads as depth rather
     than as six flat cards sitting on top of each other. */
  transform: rotateX(56deg) rotateZ(-32deg) translateZ(-40px);
  transition: transform .8s var(--ease);
}
.stack:hover .stack-inner { transform: rotateX(50deg) rotateZ(-28deg) translateZ(-20px); }

.layer {
  position: absolute;
  left: 12%; top: 14%; width: 76%; aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * 46px));
}
.layer-face {
  position: absolute; inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(160, 190, 240, .22);
  background: rgba(13, 21, 38, .78);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .95);
  overflow: hidden;
}
/* ── layer 1: the grid ── */
.layer-grid .layer-face { background: rgba(10, 16, 30, .9); }
.lg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 143, 214, .30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 143, 214, .30) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ── layer 2: structure ── */
.lb { position: absolute; border: 1px dashed rgba(180, 205, 240, .38); border-radius: 4px; }
.lb1 { left: 6%; top: 8%;  width: 88%; height: 13%; }
.lb2 { left: 6%; top: 26%; width: 52%; height: 36%; }
.lb3 { left: 62%; top: 26%; width: 32%; height: 36%; }
.lb4 { left: 6%; top: 68%; width: 88%; height: 22%; }

/* ── layer 3: words ── */
.lt { position: absolute; border-radius: 3px; background: rgba(225, 235, 250, .72); }
.lt1 { left: 8%; top: 30%; width: 40%; height: 7%; }
.lt2 { left: 8%; top: 42%; width: 30%; height: 4%; opacity: .55; }
.lt3 { left: 8%; top: 49%; width: 34%; height: 4%; opacity: .55; }
.lt4 { left: 8%; top: 12%; width: 18%; height: 5%; }

/* ── layer 4: colour — where the spectrum arrives ── */
.lc { position: absolute; border-radius: 5px; }
.lc1 { left: 6%; top: 8%;  width: 88%; height: 13%; background: linear-gradient(90deg, var(--s1), var(--s3)); opacity: .85; }
.lc2 { left: 8%; top: 30%; width: 40%; height: 7%;  background: var(--s4); }
.lc3 { left: 8%; top: 64%; width: 20%; height: 8%;  background: var(--s5); }
.lc4 { left: 62%; top: 26%; width: 32%; height: 17%; background: var(--s2); opacity: .8; }
.lc5 { left: 62%; top: 46%; width: 32%; height: 16%; background: var(--s6); opacity: .8; }

/* ── layer 5: pictures ── */
.lp { position: absolute; border-radius: 6px; }
.lp1 {
  left: 6%; top: 26%; width: 52%; height: 36%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, var(--s3), var(--s1) 45%, var(--s2));
}
.lp2 {
  left: 62%; top: 68%; width: 32%; height: 22%;
  background: linear-gradient(135deg, var(--s6), var(--s4));
}

/* ── layer 6: live ── */
.layer-live .layer-face { border-color: rgba(200, 220, 255, .4); background: transparent; }
.layer-live .pv { position: absolute; inset: 0; font-size: 9px; }
.layer-live .pv-hero { padding-block: .9rem .7rem; }
.layer-live .pv-h1 { font-size: 15px; }
.layer-live .pv-cards span { height: 20px; }

/* ── the leaf fall ──────────────────────────────────────────────────
   Down, but not straight down: each plane drifts one way, checks back the
   other, and settles — the path a leaf takes. Staggered bottom-up, because
   you cannot colour a layout that has not landed yet. */
html.js .stack.armed .layer {
  animation: leaffall 1.45s var(--ease) backwards;
  animation-delay: calc(var(--i) * 190ms);
}
@keyframes leaffall {
  0% {
    opacity: 0;
    transform: translateZ(calc(var(--i) * 46px + 620px)) translate(-58px, -30px) rotate(-11deg);
  }
  30% { opacity: 1; }
  45% {
    transform: translateZ(calc(var(--i) * 46px + 330px)) translate(42px, 16px) rotate(7deg);
  }
  72% {
    transform: translateZ(calc(var(--i) * 46px + 130px)) translate(-20px, -6px) rotate(-3.5deg);
  }
  90% {
    transform: translateZ(calc(var(--i) * 46px + 26px)) translate(6px, 2px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateZ(calc(var(--i) * 46px));
  }
}

/* ── the legend beside it ── */
.stack-legend { display: grid; gap: 1rem; }
.stack-legend ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .3rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.stack-legend li {
  display: grid; gap: .05rem;
  padding-inline-start: .7rem; border-inline-start: 2px solid var(--line-2);
  font-size: .78rem;
}
.stack-legend li:nth-child(1) { border-color: var(--s1); }
.stack-legend li:nth-child(2) { border-color: var(--s2); }
.stack-legend li:nth-child(3) { border-color: var(--s3); }
.stack-legend li:nth-child(4) { border-color: var(--s4); }
.stack-legend li:nth-child(5) { border-color: var(--s6); }
.stack-legend li:nth-child(6) { border-color: var(--s5); }
.stack-legend b { font-size: .82rem; font-weight: 700; display: block; }
.stack-legend span { color: var(--muted); line-height: 1.35; }
html.js .stack.armed .stack-legend li { animation: fadeup .5s var(--ease) backwards; animation-delay: calc(var(--i) * 190ms + 400ms); }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.replay {
  justify-self: start;
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 99px;
  padding-block: .45rem; padding-inline: .9rem;
  transition: color .15s, border-color .15s;
}
.replay:hover { color: var(--fg); border-color: var(--blue); }
.replay span { display: inline-block; transition: transform .5s var(--ease); }
.replay:hover span { transform: rotate(-360deg); }

/* ── the try-it band ── */
.sec-demo { background:
  radial-gradient(60rem 30rem at 80% 0%, rgba(139, 90, 214, .10), transparent 60%),
  var(--ink-2); }
.sec-demo::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--s1), var(--s2) 25%, var(--s3) 50%, var(--s4) 70%, var(--s5) 88%, var(--s6));
}
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  margin-block: 1.8rem 0; max-width: 38rem;
}
.demo-bar input {
  flex: 1 1 17rem; min-width: 0;
  font: inherit; font-size: 1.08rem; font-weight: 600;
  color: var(--fg); background: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding-block: .85rem; padding-inline: 1rem;
}
.demo-bar input::placeholder { color: var(--faint); font-weight: 400; }
.demo-bar input:focus { border-color: var(--blue); }

/* ── confetti ── */
#confetti {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 90;
}

@media (prefers-reduced-motion: reduce) {
  .stack-inner, .stack:hover .stack-inner { transition: none; }
  html.js .stack.armed .layer,
  html.js .stack.armed .stack-legend li { animation: none; }
  .replay { display: none; }
  #confetti { display: none; }
}

/* The progress notice. Sits at the foot of step 1 because that is exactly
   where saving starts — saying it earlier would be untrue, and saying it
   later would mean data was saved before anyone was told. */
.saved-note {
  display: flex; gap: .5rem; align-items: flex-start;
  margin-top: 1.4rem; margin-bottom: 0;
  padding-block: .7rem; padding-inline: .9rem;
  border: 1px solid var(--line); border-left: 2px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--ink-2); color: var(--muted); font-size: .86rem;
}
.saved-note span { color: var(--blue); font-weight: 700; }
