/* ==========================================================================
   Infinite Charts homepage redesign
   Editorial light theme.
   Palette : white surfaces · ink text (#14181C)
              cool hairlines (#E1E6EB) · Infinite Charts blue (#0A70B9)
             muted amber for small highlights only
   Type    : Source Serif 4 headings, IBM Plex Sans body, IBM Plex Mono labels
             IBM Plex Mono (labels, numbers, badges)
   Motif   : chart paper, faint grids, axis ticks, line + candle strokes
   Radii   : 2-6px only. No gradients, no glass, no glow, no dark hero.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #14181C;
  --ink-2: #3D4650;
  --muted: #66717D;
  --line: #E1E6EB;
  --line-2: #CBD4DD;
  --accent: #0A70B9;
  --accent-dark: #084C7A;
  --accent-wash: #EAF4FB;
  /* WhatsApp-family green. The bright brand shade #25D366 only reaches 2.0:1
     with a white label, which fails the 4.5:1 the brief mandates, so the
     buttons use this deeper green of the same hue (white = 5.3:1). */
  --wa-green: #0E7C3E;
  --wa-green-dark: #0A5F30;
  --wa-wash: #E7F7EE;
  --amber: #8A5A1E;
  --up: #5C7F66;      /* chart illustrations only, desaturated */
  --down: #9A6A5F;    /* chart illustrations only, desaturated */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 32px);
  --sec: clamp(56px, 7.5vw, 120px);
  --hdr: 64px;
  --hdr-compact: 56px;
  /* Floating header: space between the card and the viewport edges, and the
     total height content must clear (gap above the card + the card itself). */
  --hdr-gap: clamp(10px, 1.6vw, 18px);
  --hdr-space: calc(var(--hdr) + var(--hdr-gap));
  --hdr-radius: 14px;
  --r: 3px;
  --r-sm: 2px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --focus: 2px solid var(--accent);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, calc(15px + .2vw), 18px);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

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

:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

::selection { background: var(--accent-wash); color: var(--ink); }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 15px;
  text-decoration: none;
  transition: top .12s linear;
}
.skip:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 4rem); line-height: 1.06; letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.38rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; }

p { margin: 0; }

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.17rem);
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 62ch;
}

.prose { color: var(--ink-2); max-width: 68ch; }

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

/* Small mono label: the section eyebrow, used instead of icons */
.lbl {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.lbl-num { color: var(--amber); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sec {
  padding-block: var(--sec);
  scroll-margin-top: calc(var(--hdr-space) + 12px);
}

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

.sec-head {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(30px, 4vw, 52px);
}

@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 48px;
  }
  .sec-head--split .sec-head-side { padding-bottom: 6px; }
}

.sec-head .lbl { margin-bottom: 4px; }

/* Axis-tick divider: quiet chart-paper motif between blocks */
.ticks { width: 100%; height: 14px; color: var(--line-2); overflow: hidden; }
.ticks line, .ticks path { stroke: currentColor; }

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .14s linear, color .14s linear,
              border-color .14s linear, transform .12s var(--ease),
              box-shadow .2s linear;
}
/* Lift on hover, press on click, arrow runs ahead of the label */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform .16s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active .btn-arrow { transform: translateX(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 20px -16px rgba(8, 76, 122, .95); }

.btn-outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-wash); }

/* WhatsApp CTA: white label on a deep green of the WhatsApp hue. */
.btn-wa { background: var(--wa-green); border-color: var(--wa-green); color: #fff; }
.btn-wa:hover { background: var(--wa-green-dark); border-color: var(--wa-green-dark); color: #fff; box-shadow: 0 10px 20px -16px rgba(6, 84, 40, .95); }
.btn-wa:active { background: #074A26; border-color: #074A26; }

.btn-block { width: 100%; }

/* Text link with a hairline underline that firms up on hover */
.lnk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s linear, border-color .12s linear;
}
.lnk:hover { color: var(--accent-dark); border-bottom-color: currentColor; }
.lnk-quiet { color: var(--ink-2); }
.lnk-quiet:hover { color: var(--ink); }

.lnk svg { width: 13px; height: 13px; flex: none; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
/* Floating header: the sticky outer layer is transparent and only holds the
   top gap; the inner row is a rounded white card inset from the viewport
   edges, with a soft shadow falling below it. Clicks in the transparent gap
   pass through to the page. */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: var(--hdr-gap);
  background: transparent;
  pointer-events: none;
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--hdr);
  /* Inset by the page's side padding, so at every width the card's edges line
     up with the content column below it (the .wrap minus its padding). */
  width: calc(100% - 2 * var(--pad));
  max-width: calc(var(--wrap) - 2 * var(--pad));
  padding-inline: clamp(14px, 2.2vw, 26px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--hdr-radius);
  box-shadow: 0 1px 2px rgba(20, 24, 28, .04),
              0 12px 28px -14px rgba(20, 24, 28, .22);
  pointer-events: auto;
  transition: min-height .15s linear, box-shadow .2s linear, background-color .2s linear;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hdr-in {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
  }
}
/* Once the page scrolls, the card tightens and the shadow deepens slightly so
   it reads clearly over the content passing underneath. */
.hdr.is-scrolled .hdr-in {
  min-height: var(--hdr-compact);
  box-shadow: 0 1px 2px rgba(20, 24, 28, .05),
              0 16px 34px -16px rgba(20, 24, 28, .30);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.brand img { height: 34px; width: auto; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: -.02em;
  color: var(--ink);
}

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: .93rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .12s linear, border-color .12s linear;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.hdr-cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform .18s var(--ease), opacity .18s linear;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 940px) {
  .nav { display: block; }
  .hdr-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .24s var(--ease), visibility 0s .24s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* visibility flips on the first frame of the open animation (not at its end),
   so focus can move into the drawer as soon as it opens */
.drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform .24s var(--ease), visibility 0s 0s;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--hdr);
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-close svg { width: 18px; height: 18px; }

.drawer nav { padding-block: 8px 4px; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}
.drawer nav a .mono { font-size: .74rem; color: var(--muted); letter-spacing: .1em; }
.drawer-foot { margin-top: auto; padding-block: 24px 32px; display: grid; gap: 14px; }
.drawer-foot .btn { width: 100%; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 6vw, 96px);
  overflow: hidden;
  scroll-margin-top: calc(var(--hdr-space) + 12px);
}

.hero-in {
  display: grid;
  gap: clamp(30px, 4.2vw, 62px);
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
}

.hero-copy { max-width: 56ch; }
.hero-kicker { display: block; margin-bottom: clamp(12px, 1.6vw, 20px); }
.hero h1 {
  margin-bottom: clamp(16px, 2.1vw, 28px);
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}
.hero-title-line { display: block; max-width: 26ch; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lede {
  max-width: 54ch;
  margin-bottom: clamp(24px, 2.8vw, 38px);
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(4px, .7vw, 10px);
  margin-bottom: 0;
}

/* The chart sits in its own framed instrument panel, aligned to the kicker. */
.hero-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: 0;
  padding: 0 12px 12px 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14px 0 0 14px;
  z-index: -1;
  border: 1px solid #DCECF7;
  background: var(--accent-wash);
}

.chart-frame {
  position: relative;
  margin: 0;
  border: 1px solid #D5E3ED;
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}
.chart-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.chart-frame-title { display: grid; gap: 3px; min-width: 0; }
.chart-frame-label {
  color: var(--accent);
  font: 400 .66rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chart-frame-title strong {
  color: var(--ink);
  font: 400 clamp(1.05rem, 1.55vw, 1.3rem)/1.25 var(--serif);
}
.chart-level-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  flex: none;
}
.chart-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-2);
  font: 400 .66rem/1 var(--mono);
  cursor: pointer;
  transition: border-color .14s linear, background-color .14s linear, color .14s linear;
}
.chart-toggle::before { content: ""; width: 7px; height: 7px; background: var(--line-2); }
.chart-toggle[data-level-toggle="target"]::before { background: #5C7F66; }
.chart-toggle[data-level-toggle="entry"]::before { background: var(--accent); }
.chart-toggle[data-level-toggle="stop"]::before { background: #9A6A5F; }
.chart-toggle[aria-pressed="false"] { color: var(--muted); background: #F7F9FB; }
.chart-toggle[aria-pressed="false"]::before { background: var(--line-2); }
.chart-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-wash); }
.chart-toggle:hover { border-color: var(--accent); }
.chart-toggle:focus-visible { outline: var(--focus); outline-offset: 2px; }
.chart-frame svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px 12px 6px;
}

.chart-frame text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  fill: var(--muted);
}

/* Hero drawing: the whole plan builds once, under 1.2s, then rests */
@keyframes chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chart-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-rise {
  from { opacity: 0; transform: translateY(12px) scaleY(.25); }
  to { opacity: 1; transform: none; }
}
@keyframes chart-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes chart-tick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
/* Candles keep printing: each bar drops out and rebuilds in turn, so a wave
   of new candles travels across the plot every 6.5s. */
@keyframes chart-print {
  0% { transform: none; opacity: 1; }
  5% { transform: translateY(10px) scaleY(.1); opacity: 0; }
  14% { transform: none; opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* 1. risk / reward washes wipe out from the left */
.chart-zone {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: chart-wipe .5s var(--ease) .5s both;
}
/* 2. candles rise into place, staggered left to right, then keep printing */
.chart-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: chart-rise .34s var(--ease) both;
  animation-delay: calc(60ms + var(--i) * 42ms);
}
.chart-bar-print {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: chart-print 6.5s linear infinite;
  animation-delay: calc(1.9s + var(--i) * .14s);
}
/* 3. area wash, then the line draws */
.chart-area { animation: chart-fade .45s linear .7s both; }
.chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: chart-draw .95s var(--ease) .1s both;
}
/* 4. last close marker settles, then ticks like a live quote */
.chart-last { animation: chart-fade .3s linear 1s both; }
.chart-last-dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: chart-tick 2.6s ease-in-out 1.4s infinite;
}
.chart-frame .chart-last-label { fill: var(--accent-dark); }
/* 5. levels extend from the left, labels follow */
.chart-level-line {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: chart-wipe .4s var(--ease) .8s both;
}
.chart-level-label { animation: chart-fade .3s linear .98s both; }
.chart-level { opacity: 1; transition: opacity .32s linear; }
/* Spotlight: one level is lit at a time while the cycle plays */
.chart-level.is-dim { opacity: .34; }
.chart-level.is-active .chart-level-line { stroke-width: 1.9; }
.chart-zone.is-active { fill-opacity: .13; }

/* Level labels carry their own tone; 11px needs more contrast than the hairline */
.chart-level-target .chart-level-label { fill: #46664F; }
.chart-level-entry .chart-level-label { fill: var(--accent-dark); }
.chart-level-stop .chart-level-label { fill: #87574D; }

/* Equal columns: the plot box is measured from the copy beside it, so the
   chart panel and the title column always finish level at any desktop width. */
@media (min-width: 960px) {
  .hero-visual { height: 100%; }
  .chart-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .chart-frame-head { flex: none; }
  .chart-frame svg { flex: 1 1 auto; height: 0; min-height: 0; }
}

@media (max-width: 959px) {
  .hero-in { gap: 34px; }
  .hero-copy { max-width: 62ch; }
  .hero-title-line { max-width: 26ch; }
  .hero-visual { width: min(100%, 680px); margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero { padding-block: 44px; }
  .hero-in { gap: 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.3rem); }
  .hero-title-line { max-width: 26ch; }
  .hero-lede { margin-bottom: 20px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 14px; }
  .hero-visual { padding: 0 8px 8px 0; }
  .hero-visual::before { inset: 9px 0 0 9px; }
  .chart-frame-head { display: grid; gap: 10px; padding: 12px; }
  .chart-level-controls { justify-content: flex-start; }
  .chart-frame svg { padding: 4px 6px 5px; }
}

/* --------------------------------------------------------------------------
   8. WhatsApp integration — homepage product block
   Replaces the old "What we build" service list. Every selector is prefixed
   .wa-alert- and reuses .sec, .wrap, .sec-head, .lbl, .lede and the tokens.
   Light surfaces, hairlines, 2–3px radii, no gradients or shadows.
   -------------------------------------------------------------------------- */
.wa-alert-body {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(30px, 4vw, 50px);
}

@media (min-width: 900px) {
  .wa-alert-body {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(38px, 5vw, 68px);
  }
}

.wa-alert-copy { min-width: 0; }

.wa-alert-kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

.wa-alert-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.wa-alert-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.wa-alert-n {
  padding-top: .25em;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--wa-green);
}

.wa-alert-steps h3 {
  margin: 0 0 4px;
  font-size: clamp(1.02rem, 1.15vw, 1.12rem);
  line-height: 1.3;
}

.wa-alert-steps p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.55;
}

.wa-alert-copy .btn { margin-top: 2px; }

.wa-alert-visual {
  width: 100%;
  max-width: min(420px, 55vh);
  min-width: 0;
  margin: 0 auto;
}

.wa-alert-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Shared ruled rows (legal page, why list). */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  gap: 6px 26px;
  padding-block: clamp(20px, 2.8vw, 30px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 880px) {
  .row {
    grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: baseline;
  }
}

.row-n {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--amber);
  padding-top: .35em;
}

.row h3 { max-width: 22ch; }
.row p { color: var(--ink-2); max-width: 62ch; }

/* --------------------------------------------------------------------------
   9. Strategy library
   -------------------------------------------------------------------------- */
.lib-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* One row: category segment, search, and Reset — Reset sits at the far right
   and is absent (hidden) until a filter or a search is actually applied.
   Vertical padding is tight because the visible Category/Search labels are gone;
   each control now carries its own accessible name instead. */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 1.6vw, 16px) clamp(16px, 2.2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: clamp(24px, 3vw, 34px);
}
.filters .search { flex: 1 1 200px; min-width: 0; max-width: 340px; }
.filters .reset { margin-left: auto; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0 clamp(6px, 1.2vw, 15px);
  min-height: 44px;
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.1vw, .76rem);
  letter-spacing: .04em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear;
}
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button:hover { background: var(--accent-wash); color: var(--accent-dark); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0 12px;
  min-height: 46px;
}
.search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.search input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: .92rem;
}
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Result count: removed from view (the owner asked for the "16 of 16" text to
   go) but kept in the DOM as the visually hidden aria-live region, so screen
   reader users still hear how many strategies a filter leaves. */
.filter-count {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.reset {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  min-height: 44px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.reset:hover { border-bottom-color: currentColor; }

/* Grid */
.lib {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.sc {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 16px 6px;
  transition: border-color .15s linear;
}
.sc:hover { border-color: var(--line-2); }
.sc[hidden] { display: none; }

.sc-gallery {
  margin: -16px -16px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.sc-image-main {
  position: relative;
  display: block;
  height: clamp(132px, 15vw, 184px);
  background-color: var(--paper);
}
.sc-image-main picture, .sc-image-main img {
  display: block;
  width: 100%;
  height: 100%;
}
.sc-image-main img { object-fit: contain; }
.sc-image-main img { transition: opacity .24s linear; }
.sc-image-main img.is-changing { opacity: .28; }
.sc-image-count {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(20,24,28,.82);
  color: #fff;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .05em;
}
.sc-gallery-trigger { cursor: zoom-in; }
.sc-gallery-trigger:focus-visible { outline: var(--focus); outline-offset: -2px; z-index: 1; }
.sc-gallery-trigger:hover img { opacity: .88; }
/* Backend category badge sits on the image, bottom-left, clear of the counter */
.sc-badges {
  position: absolute;
  left: 9px;
  bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 84px);
}
.qv-image-open { display: block; cursor: zoom-in; }
.qv-image-open picture { display: block; }

.sc-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }

.badge {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  padding: 3px 7px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
}
.badge-fmt { border-color: rgba(10, 112, 185, .34); color: var(--accent); background: var(--accent-wash); }

.sc h3 { font-size: 1.2rem; margin-bottom: 7px; }

.sc-style {
  font-family: var(--mono);
  font-size: .71rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 11px;
}

.sc-sum {
  font-size: .93rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 14px;
  flex: 1 0 auto;
}

.sc-act {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-inline: -16px;
  padding: 12px 16px 14px;
}
.sc-act .lnk {
  appearance: none;
  box-sizing: border-box;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font: 400 .72rem/1.2 var(--mono);
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s linear, border-color .15s linear, color .15s linear, transform .1s var(--ease);
}
.sc-act .lnk:hover { border-color: var(--wa-green); color: var(--wa-green-dark); background: var(--wa-wash); transform: translateY(-1px); }
.sc-act .lnk:active { transform: translateY(1px); }
.sc-act [data-quick] { border-color: var(--accent); background: var(--accent); color: #fff; }
.sc-act [data-quick]:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.sc-act [data-quick]:active { transform: translateY(1px); }
.sc-act > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.sc-open {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
}
.sc-open:hover { border-bottom-color: var(--accent); color: var(--accent); }

.lib-empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: clamp(24px, 4vw, 40px);
  text-align: left;
  color: var(--ink-2);
}

/* Quick-view: side panel on desktop, bottom drawer on mobile */
.qv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 24, 28, .34);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s linear, visibility .2s;
}
.qv-backdrop.is-open { opacity: 1; visibility: visible; }

.qv {
  position: fixed;
  z-index: 90;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transition: transform .24s var(--ease), visibility 0s .24s;
}

/* Desktop: right-hand side panel */
@media (min-width: 768px) {
  .qv {
    top: 0; right: 0; bottom: 0;
    width: min(452px, 94vw);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    box-shadow: -14px 0 34px rgba(20, 24, 28, .10);
  }
  .qv.is-open { transform: none; }
}

/* Mobile: bottom drawer */
@media (max-width: 767px) {
  .qv {
    left: 0; right: 0; bottom: 0;
    max-height: 88dvh;
    border-top: 1px solid var(--line);
    border-radius: var(--r) var(--r) 0 0;
    transform: translateY(100%);
    box-shadow: 0 -14px 34px rgba(20, 24, 28, .12);
  }
  .qv.is-open { transform: none; }
}
/* visibility flips on the first frame of the open animation (not at its end),
   so focus can move into the panel as soon as it opens */
.qv.is-open {
  visibility: visible;
  transition: transform .24s var(--ease), visibility 0s 0s;
}

.qv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.qv-head .sc-top { margin-bottom: 8px; }
.qv-head h3 { font-size: 1.4rem; }

.qv-close {
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.qv-close:hover { border-color: var(--ink); }
.qv-close svg { width: 17px; height: 17px; }

.qv-body { padding: 18px 20px 4px; overflow-y: auto; overscroll-behavior: contain; }

.qv-shot {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--paper);
}
.qv-shot picture { display: block; }
.qv-shot img { width: 100%; }

.qv-cap { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0 0 6px; padding: 0; list-style: none; }
.qv-cap li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 11px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-2);
}
.qv-cap li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: .5em;
  background: var(--accent);
  border-radius: 1px;
}
.qv-k {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.qv-foot {
  margin-top: auto;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  background: var(--surface);
}
.qv-foot .lnk { justify-content: center; border: 1px solid var(--line-2); border-radius: var(--r); min-height: 46px; }
.qv-foot .lnk:hover { border-color: currentColor; }

/* Product gallery lightbox: native dialog provides focus containment and Esc close. */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px clamp(12px, 3vw, 36px);
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.gallery-lightbox[open] {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}
.gallery-lightbox::backdrop { background: rgba(14, 18, 20, .94); }
.gallery-lightbox-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.gallery-lightbox-content picture {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.gallery-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 112px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-lightbox-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1100px);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.78);
}
.gallery-lightbox-meta p { margin: 0; color: #fff; }
.gallery-lightbox-nav, .gallery-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r-sm);
  background: rgba(20,24,28,.48);
  color: #fff;
  cursor: pointer;
}
.gallery-lightbox-nav:hover, .gallery-lightbox-close:hover { background: rgba(255,255,255,.15); }
.gallery-lightbox-nav svg, .gallery-lightbox-close svg { width: 22px; height: 22px; }
.gallery-lightbox-nav[hidden] { display: none; }
.gallery-lightbox-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.gallery-lightbox :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 600px) {
  .gallery-lightbox { padding: 66px 10px 18px; }
  .gallery-lightbox[open] { grid-template-columns: 42px minmax(0,1fr) 42px; gap: 6px; }
  .gallery-lightbox-nav { width: 40px; height: 44px; }
  .gallery-lightbox-close { top: 10px; right: 10px; }
  .gallery-lightbox-content img { max-height: calc(100dvh - 142px); }
  .gallery-lightbox-meta { font-size: .68rem; }
}

/* --------------------------------------------------------------------------
   10. Brief builder
   -------------------------------------------------------------------------- */
.brief {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 960px) {
  .brief { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

.fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 clamp(16px, 2vw, 22px);
  padding: 0 0 clamp(14px, 1.6vw, 18px);
}
/* Last group closes the stack: no trailing hairline, no trailing gap. */
.fieldset:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.fieldset legend {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0;
  margin-bottom: clamp(11px, 1.2vw, 14px);
}

.opts { display: flex; flex-wrap: wrap; gap: clamp(8px, .9vw, 10px); }

.opt { position: relative; display: inline-flex; }
.opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--ink-2);
  transition: background-color .12s linear, border-color .12s linear, color .12s linear;
}
.opt:hover span { border-color: var(--ink); color: var(--ink); }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt input:focus-visible + span { outline: var(--focus); outline-offset: 2px; }

.brief-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 2.4vw, 24px);
  position: sticky;
  top: calc(var(--hdr-space) + 20px);
}
.brief-preview h3 { font-size: 1.15rem; margin-bottom: 4px; }
.brief-text {
  font-size: .95rem;
  line-height: 1.62;
  color: var(--ink-2);
  min-height: 132px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-block: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.brief-text:empty::before { content: attr(data-empty); color: var(--muted); }
.brief-actions { display: grid; gap: 9px; }
.brief-hint { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .03em; line-height: 1.7; }

.copied { color: var(--accent); }

/* --------------------------------------------------------------------------
   11. Why: split layout
   -------------------------------------------------------------------------- */
.why { display: grid; gap: clamp(26px, 3.5vw, 52px); }
@media (min-width: 940px) {
  .why { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); align-items: start; }
  .why-head { position: sticky; top: calc(var(--hdr-space) + 28px); }
}
.why-head .lede { margin-top: 16px; }

.why-list { border-top: 1px solid var(--line); }
.why-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 18px;
  padding-block: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}
.why-item .row-n { padding-top: .3em; }
.why-item h3 { font-size: clamp(1.05rem, 1.4vw, 1.24rem); margin-bottom: 5px; }
.why-item p { color: var(--ink-2); font-size: .96rem; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(17px, 2.2vw, 24px);
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.03rem, 1.35vw, 1.2rem); max-width: 60ch; }
.faq summary:hover h3 { color: var(--accent); }

.faq-mark {
  flex: none;
  width: 26px; height: 26px;
  margin-top: .2em;
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform .16s var(--ease), opacity .16s linear;
}
.faq-mark::before { left: 6px; right: 6px; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-mark::after { top: 6px; bottom: 6px; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq details[open] .faq-mark::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

.faq-body {
  padding: 0 46px clamp(20px, 2.4vw, 28px) 0;
  color: var(--ink-2);
  max-width: 74ch;
}
.faq-body p + p { margin-top: 11px; }

/* --------------------------------------------------------------------------
   13. Closing CTA + contact
   -------------------------------------------------------------------------- */
.contact-in {
  display: grid;
  gap: clamp(26px, 3.5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 4vw, 52px);
}
@media (min-width: 940px) {
  .contact-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
.contact-in h2 { margin-bottom: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 30px); }

.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid;
  gap: 3px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.contact-list .spec-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list .spec-v { color: var(--ink-2); }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover { border-bottom-color: currentColor; }
.contact-list .spec-ico { width: 15px; height: 15px; flex: none; color: var(--accent); }
.contact-list .hours { display: grid; gap: 5px; }
.contact-list .h-row { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--ink-2); }
.contact-list .h-row b { color: var(--ink); font-weight: 600; }
.placeholder, p.placeholder { color: var(--amber); font-family: var(--mono); font-size: .9em; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-block: clamp(40px, 5vw, 68px) 0;
  scroll-margin-top: calc(var(--hdr-space) + 12px);
}
.foot-grid { display: grid; gap: clamp(28px, 3.4vw, 44px); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); } }

.foot h4 {
  font-family: var(--mono);
  font-size: .71rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 2px; }
.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .94rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot li a:hover { color: var(--accent); border-bottom-color: currentColor; }

.foot-brand .brand { margin-right: 0; margin-bottom: 12px; }
.foot-risk {
  font-size: .84rem;
  line-height: 1.66;
  color: var(--muted);
  max-width: 46ch;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.foot-plat { font-family: var(--mono); font-size: .8rem; line-height: 1.9; color: var(--muted); }

.foot-bottom {
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
}
.foot-bottom p { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); }

/* --------------------------------------------------------------------------
   Legal document modals
   Native dialogs keep the page inert while open. The card is capped against
   the viewport and scrolls internally, so a long policy never grows the page.
   -------------------------------------------------------------------------- */
.legal-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 3vw, 36px);
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.legal-modal[open] {
  display: grid;
  place-items: center;
}

.legal-modal::backdrop {
  background: rgba(14, 18, 20, .58);
}

.legal-modal-inner {
  display: flex;
  flex-direction: column;
  width: min(100%, 820px);
  max-height: min(88vh, 920px, 100%);
  max-height: min(88dvh, 920px, 100%);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.legal-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px) clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.legal-modal-heading { min-width: 0; }

.legal-modal-head .lbl { margin-bottom: 8px; }

.legal-modal-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.legal-modal-lede {
  max-width: 56ch;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.6;
}

.legal-modal-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
}

.legal-modal-close:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.legal-modal-close svg {
  width: 16px;
  height: 16px;
}

.legal-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(6px, 1.2vw, 10px) clamp(18px, 3vw, 32px) clamp(18px, 2.6vw, 28px);
}

.legal-modal-body:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.legal-modal-sec {
  padding-block: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.legal-modal-sec:last-child { border-bottom: 0; }

.legal-modal-sec h3 {
  margin-bottom: 7px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

.legal-modal-sec p {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: .94rem;
  line-height: 1.62;
}

.legal-modal-sec p + p { margin-top: 8px; }

.legal-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 14px clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.legal-modal-foot p {
  max-width: 60ch;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.5;
}

.legal-modal-foot .lnk {
  flex: none;
  font-size: .8rem;
}

@media (min-width: 561px) and (max-height: 560px) {
  .legal-modal { padding: 12px; }

  .legal-modal-head { padding: 12px 16px; }
  .legal-modal-head .lbl { margin-bottom: 4px; }
  .legal-modal-head h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
  .legal-modal-lede { margin-top: 4px; font-size: .86rem; line-height: 1.45; }
  .legal-modal-body { padding: 2px 16px 12px; }
  .legal-modal-foot { padding: 10px 16px; }
}

@media (max-width: 560px) {
  .legal-modal { padding: 0; }

  .legal-modal-inner {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .legal-modal-head { padding: 16px 18px 14px; }
  .legal-modal-body { padding: 4px 18px 16px; }
  .legal-modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------------------------
   15. Mobile WhatsApp button (mobile only, never covers the footer)
   -------------------------------------------------------------------------- */
.wa-fab { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .wa-fab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    min-height: 46px;
    padding: 0 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .18);
  }
  .wa-fab:hover { background: var(--accent-dark); }
  .wa-fab svg { width: 18px; height: 18px; }
}

/* --------------------------------------------------------------------------
   16. Scroll reveal: only armed by main.js after observers attach,
       so content is never hidden when JavaScript is off or fails to load.
       Disabled entirely under prefers-reduced-motion.
   -------------------------------------------------------------------------- */
.reveal-on .reveal { opacity: 0; transform: translateY(10px); }
.reveal-on .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal, .reveal-on .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .chart-zone, .chart-bar, .chart-bar-print, .chart-area, .chart-line, .chart-last,
  .chart-last-dot, .chart-level-line, .chart-level-label { animation: none; }
  .drawer, .qv, .qv-backdrop { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   18. Wide screens: more whitespace, not bigger content
   -------------------------------------------------------------------------- */
@media (min-width: 1800px) {
  :root { --sec: clamp(96px, 6vw, 140px); }
}

/* --------------------------------------------------------------------------
   19. Tingle — mobile alert app (homepage only)
   New component block: every selector below is prefixed .tingle- so it cannot
   collide with the sections above. It reuses .sec, .wrap, .sec-head, .lbl and
   .lede plus the existing colour tokens. No new library, no gradient, no
   shadow. Layout: heading + lede, then one card column, the product mockup,
   and the second card column (no call to action — removed 2026-11-11).
   -------------------------------------------------------------------------- */

/* Body: three parts in DOM order — cards 01-03, artwork, cards 04-06 — which
   stack in that same order on phones and tablets. On wide screens the row
   becomes three columns (cards | artwork | cards); auto-flow places each part
   in its own column, so no grid-column rules are needed. */
.tingle-body {
  display: grid;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 54px);
}
/* 1080x1080 square served as WebP; width/height attributes reserve the box.
   Capped at 440px — at full column width the render overpowered the section,
   and inside the middle column it is additionally limited to 34vw so the two
   card columns keep the larger share of the row. */
.tingle-mockup {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
}

/* Feature grid: three cards per column. Breakpoints instead of auto-fill, so
   a column never holds a partial row — 1x3 on phones, one row of three per
   half on tablets, and one column of three beside the artwork on wide
   screens. */
.tingle-feats {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .tingle-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  /* Columns start level with each other (the two card sets are separate
     grids, so centring would stagger their first cards when the text wraps to
     different heights); only the artwork is centred in the row. */
  .tingle-body { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; }
  .tingle-feats { grid-template-columns: minmax(0, 1fr); }
  .tingle-mockup { max-width: min(440px, 34vw); align-self: center; }
}

/* Cards: hairline panels with an interactive state — border, tint, icon and
   index move together and the card lifts 2px. Flat colour only: no shadow,
   no gradient. Hover is gated behind (hover: hover) so touch devices keep the
   resting state. */
.tingle-feat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.tingle-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.tingle-feat-n {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--muted);
  transition: color .18s ease;
}
.tingle-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.tingle-ico svg { width: 16px; height: 16px; }
.tingle-feat h3 { font-size: clamp(1.02rem, 1.2vw, 1.14rem); }
.tingle-feat p { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .tingle-feat:hover {
    background: var(--accent-wash);
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .tingle-feat:hover .tingle-ico {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  /* muted is 4.46:1 on the wash, so the index switches to the accent (4.62:1) */
  .tingle-feat:hover .tingle-feat-n { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   20. Banner lightbox — image set in Settings → Banner, shown on the homepage
   A native <dialog> opened with showModal(): the rest of the page stays inert,
   Esc closes, and while it is closed the image is not part of the rendered
   document. Flat panel, hairline border, one restrained shadow.
   -------------------------------------------------------------------------- */
.site-banner {
  width: min(92vw, 680px);
  max-width: min(92vw, 680px);
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.site-banner::backdrop { background: rgba(15, 23, 42, .66); }

.site-banner:focus,
.site-banner:focus-visible { outline: none; }

.site-banner-inner {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--r);
}

.site-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(88vh - 2px);
  max-height: calc(88dvh - 2px);
  object-fit: contain;
  background: #fff;
}

.site-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: #7a1f2b;
  cursor: pointer;
  transition: background-color .14s linear, color .14s linear;
}
.site-banner-close svg { width: 18px; height: 18px; }
.site-banner-close:hover { background: rgba(122, 31, 43, .10); color: #5c111d; }
.site-banner-close:focus-visible {
  outline: 2px solid #7a1f2b;
  outline-offset: 2px;
}

.site-banner[open] .site-banner-inner { animation: banner-in .3s var(--ease) both; }
.site-banner[open]::backdrop { animation: banner-fade .24s linear both; }
@keyframes banner-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes banner-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 599px) {
  .site-banner { width: 94vw; max-width: 94vw; max-height: 84vh; max-height: 84dvh; }
  .site-banner img { max-height: calc(84vh - 2px); max-height: calc(84dvh - 2px); }
  .site-banner-close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-banner[open] .site-banner-inner,
  .site-banner[open]::backdrop { animation: none; }
}
