/* ============================================================
   Deejing — Reusable Page Template
   ------------------------------------------------------------
   A clean component layer that sits on top of the design tokens
   defined in index.html (:root). Drop this file into any page,
   reuse the components below, and the look stays consistent.

   Sections:
     1. Layout primitives  (.tmpl-section, .container, .lede)
     2. Section headings   (.s-head, .s-eyebrow, .s-title)
     3. Process flow       (.flow)
     4. Feature rows       (.feature-row)
     5. Stat band          (.stats, .stat)
     6. Chat simulation    (.chat-sim)  — WhatsApp-style demo
     7. Chart widget       (.chart-card) — animated SVG chart
     8. Marquee            (.marquee)   — scrolling tag strip
   ============================================================ */

:root {
  --tmpl-maxw: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --wa-bg: #e6ddd3;
  --wa-in: #ffffff;
  --wa-out: #d6f5c8;
  --wa-head: #128c7e;
}

/* ── 1. Layout primitives ───────────────────────────────── */
.tmpl-section {
  position: relative;
  padding: clamp(38px, 4.8vw, 72px) 0;
}

.tmpl-section.tight { padding-block: clamp(30px, 3.6vw, 54px); }

/* Exception: full-width content (e.g. the chat simulator overlay) */
.container.wide { max-width: none; }

/* The <section> spans 100% width (full-bleed band / background).
   The content inside is constrained and centered — NOT full width. */
.container {
  width: 100%;
  max-width: var(--tmpl-maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.62;
  max-width: 44ch;
}

/* Soft alternating background to separate sections without boxes */
.tmpl-section.alt {
  background: linear-gradient(180deg, rgba(232, 240, 248, .42), rgba(244, 248, 252, .7) 50%, rgba(232, 240, 248, .35));
}

/* ── 2. Section heading ─────────────────────────────────── */
.s-head { max-width: 60ch; margin-bottom: clamp(20px, 2.6vw, 36px); }
.s-head.center { margin-inline: auto; text-align: center; }

.s-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.s-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.center .s-eyebrow { justify-content: center; }
.center .s-eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.s-title {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
/* Gradient accent on a highlighted word: <em> inside the title */
.s-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), #f08a6f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s-sub { margin: 14px 0 0; }

/* ── 3. Process flow (replaces a row of cards) ──────────── */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 40px);
  position: relative;
}
/* The connecting line that "draws" in on reveal */
.flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out-expo) .2s;
  opacity: .4;
}
.flow.visible::before { transform: scaleX(1); }

.flow-step { position: relative; }
.flow-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 22px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 26px rgba(213, 58, 67, .28);
  position: relative;
  z-index: 1;
}
.flow-step h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -.03em;
  margin: 0 0 8px;
  color: var(--ink);
}
.flow-step p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: .95rem; }

@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow::before { display: none; }
}

/* ── 4. Feature row (alternating, image/visual + text) ──── */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature-row.top { align-items: start; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 104px); }
.feature-row.flip .feature-visual { order: 2; }
.feature-row h3 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.04em;
  margin: 14px 0 0;
  color: var(--ink);
}
.feature-row p { margin: 16px 0 0; color: var(--ink-soft); line-height: 1.75; }
.feature-tag {
  font-family: "Sora", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 30%, transparent 32%),
    linear-gradient(140deg, var(--accent), var(--accent-deep));
}
@media (max-width: 860px) {
  .feature-row, .feature-row.flip .feature-visual { grid-template-columns: 1fr; order: 0; }
  .feature-row .feature-visual { order: -1; }
}

/* ── 5. Stat band (animated count-up) ───────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
}
.stat {
  padding: 26px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.stat-num {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num .suffix { color: var(--accent); }
.stat-label {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.5;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── 6. WhatsApp-style chat simulation ──────────────────── */
.chat-sim {
  width: min(420px, 100%);
  margin-inline: auto;
  border-radius: 30px;
  background: #0b141a;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.chat-screen {
  border-radius: 22px;
  overflow: hidden;
  background: var(--wa-bg);
  background-image:
    radial-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  height: clamp(460px, 62vh, 600px);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--wa-head);
  color: #fff;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #25d366, #128c7e);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.chat-id { line-height: 1.2; }
.chat-id strong { font-size: .95rem; font-weight: 700; }
.chat-id span { font-size: .74rem; opacity: .85; display: block; }
.chat-id span.online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #8af0a0;
}
.chat-body {
  flex: 1;
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.bubble {
  max-width: 78%;
  padding: 9px 12px 7px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.45;
  color: #0c1c14;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
  position: relative;
  /* entrance state — JS toggles .show */
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .32s var(--ease-out-quart), transform .32s var(--ease-out-quart);
}
.bubble.show { opacity: 1; transform: none; }
.bubble.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 3px; }
.bubble .time {
  display: block;
  text-align: right;
  font-size: .62rem;
  margin-top: 3px;
  color: rgba(0, 0, 0, .42);
}
.bubble.out .time::after { content: " ✓✓"; color: #34b7f1; }
.bubble .meta-tag {
  display: block;
  margin-bottom: 4px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wa-head);
}
/* typing indicator */
.typing {
  align-self: flex-start;
  display: none;
  gap: 4px;
  padding: 11px 14px;
  background: var(--wa-in);
  border-radius: 12px;
  border-top-left-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.typing.show { display: flex; }
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bb0a5;
  animation: typing-dot 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f0f0f0;
}
.chat-foot .field {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  color: #9aa0a6;
  font-size: .82rem;
}
.chat-foot .send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa-head);
  color: #fff;
  font-size: 1rem;
}

/* Playback controls — this is a tool, not a loop. */
.chat-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .84rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.chat-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chat-btn:active { transform: translateY(0) scale(.97); }
.chat-btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.chat-btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.chat-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(213, 58, 67, .22);
}
.chat-btn .ic { font-size: .9rem; line-height: 1; }
/* thin progress bar under the controls */
.chat-progress {
  width: min(420px, 100%);
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: rgba(23, 54, 95, .1);
  overflow: hidden;
}
.chat-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width .4s var(--ease-out-quart);
}

/* ── 7. Chart widget (animated SVG, reusable) ───────────── */
.chart-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(244, 248, 252, .85));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-md);
}
.chart-card h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.chart-card .chart-note { margin: 6px 0 22px; color: var(--ink-muted); font-size: .85rem; }
.chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.chart-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.legend-accent { background: linear-gradient(140deg, var(--accent), var(--accent-deep)); }
.legend-sky { background: linear-gradient(140deg, #9fcef5, #6e9ec7); }

/* line chart paths animate via stroke-dash */
.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s var(--ease-out-expo) .2s;
}
.chart-svg.visible .chart-line { stroke-dashoffset: 0; }
.chart-area {
  opacity: 0;
  transition: opacity 1s ease 1s;
}
.chart-svg.visible .chart-area { opacity: 1; }
.chart-dot { opacity: 0; transition: opacity .4s ease 1.4s; }
.chart-svg.visible .chart-dot { opacity: 1; }

/* bar chart (CSS-driven grow) */
.bars { display: grid; gap: 16px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.bar-row .bar-label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.bar-track {
  position: relative;
  height: 30px;
  border-radius: 8px;
  background: rgba(23, 54, 95, .06);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  transition: width 1.3s var(--ease-out-expo);
}
.bar-fill.accent { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.bar-fill.sky { background: linear-gradient(90deg, #6e9ec7, #9fcef5); }

/* ── 8. Marquee (industries, replaces a card grid) ──────── */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .chart-line { stroke-dashoffset: 0 !important; }
  .chart-area, .chart-dot { opacity: 1 !important; }
  .bubble { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Deejing Agent v2 — Dee components (added for the rebuild)
   ============================================================ */

/* ── Moving grid net (living background) ────────────────── */
.grid-net {
  position: fixed;
  inset: -60px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 117, 168, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 117, 168, .06) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 28%, #000 0%, rgba(0,0,0,.35) 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 28%, #000 0%, rgba(0,0,0,.35) 55%, transparent 82%);
  animation: grid-pan 48s linear infinite;
  will-change: background-position;
}
.grid-net::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(213,58,67,.06), transparent 60%);
  animation: net-glow 26s var(--ease) infinite alternate;
}
@keyframes grid-pan { to { background-position: 84px 84px, 84px 84px; } }
@keyframes net-glow {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(58vw, 38vh); }
}

/* ── Hero additions ─────────────────────────────────────── */
.hero h1 .grad {
  display: block;
  background: linear-gradient(120deg, var(--accent), #f0866f 60%, #e0a35a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  font-size: .86rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.hero-trust img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* Mobile menu toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.nav-toggle-close {
  display: none;
  width: 22px;
  height: 22px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
.bar.nav-open .nav-toggle-bars { background: transparent; }
.bar.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.bar.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.bar.nav-open .nav-toggle-close { display: block; }
.bar.nav-open .nav-toggle-bars { display: none; }

/* Nav "Book a call" as a pill button */
.nav a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 22px rgba(213, 58, 67, .22);
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { color: #fff; box-shadow: 0 16px 30px rgba(213, 58, 67, .3); }

/* ── Section 2 · Choose your Dee ─────────────────────────── */
.dee-picker {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}
.dee-tiles { display: flex; flex-direction: column; gap: 14px; }
.dee-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.dee-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dee-tile:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.dee-tile.active {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(244,248,252,.9));
  border-color: rgba(213, 58, 67, .35);
  box-shadow: 0 18px 40px rgba(213, 58, 67, .14);
}
.dee-emoji {
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(141, 197, 242, .16);
  transition: transform .25s var(--ease);
}
.dee-emoji img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.dee-tile.active .dee-emoji { transform: scale(1.08) rotate(-4deg); background: rgba(213, 58, 67, .12); }
.dee-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.dee-tagline { font-size: .8rem; color: var(--ink-muted); font-weight: 700; letter-spacing: .02em; }

.dee-detail {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(213,58,67,.08), transparent 42%),
    linear-gradient(160deg, rgba(255,255,255,.94), rgba(240,246,250,.9));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dee-detail-art {
  width: clamp(90px, 12vw, 132px);
  height: clamp(90px, 12vw, 132px);
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(141,197,242,.25), rgba(245,214,167,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.dee-detail-icon {
  width: clamp(74px, 9vw, 108px);
  height: clamp(74px, 9vw, 108px);
  object-fit: contain;
}
.dee-detail.swap .dee-detail-art { animation: pop .4s var(--ease-out-expo); }
.dee-detail.swap .dee-detail-body > * { animation: hero-enter .45s var(--ease-out-expo) backwards; }
.dee-detail.swap .dee-detail-body > *:nth-child(2) { animation-delay: .05s; }
.dee-detail.swap .dee-detail-body > *:nth-child(3) { animation-delay: .1s; }
.dee-detail.swap .dee-detail-body > *:nth-child(4) { animation-delay: .15s; }
.dee-detail.swap .dee-detail-body > *:nth-child(5) { animation-delay: .2s; }
@keyframes pop { 0% { transform: scale(.82); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
.dee-detail-eyebrow {
  margin: 0 0 4px;
  font-family: "Sora", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.dee-detail-name { font-family: "Sora", sans-serif; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.04em; color: var(--ink); }
.dee-detail-tag { margin: 6px 0 0; font-weight: 800; color: var(--ink-soft); }
.dee-detail-persona { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.7; }
.dee-detail-best { margin: 14px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.dee-detail-best strong { color: var(--ink); font-family: "Sora", sans-serif; }

@media (max-width: 860px) {
  .dee-picker { grid-template-columns: 1fr; }
  .dee-tiles { flex-direction: row; flex-wrap: wrap; }
  .dee-tile { flex: 1 1 160px; }
  .dee-detail { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ── Section 3 · The Problem (pain cloud) ───────────────── */
.pain-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.pain {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink-soft);
  cursor: default;
  transition: transform .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  animation: pain-float 6s var(--ease) infinite;
}
.pain::before {
  content: "";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: url("../icons/alert-dot.svg") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.pain:nth-child(2n) { animation-delay: -1.5s; }
.pain:nth-child(3n) { animation-delay: -3s; }
.pain:nth-child(4n) { animation-delay: -4.5s; }
.pain:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(213, 58, 67, .55);
}
.pain:hover::before {
  background-image: url("../icons/check-circle.svg");
  transform: rotate(360deg);
}
@keyframes pain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ── Section 3 · "The Glue" — isometric pain→resolve narrative ───────────
   Built from the hero's isometric-cube language. The animation is an
   enhancement: the RESTING state (no .play / no-JS / crawlers) is the
   resolved beat 6 — calm line, red Dee cubes seated in the gaps, the
   expert back at the start. .play (added on scroll) replays the full
   story from the connected line through the overwhelm and back to calm. */
.s-line { display: block; }

.glue {
  --glue-dur: 9s;
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}
.glue-stage {
  position: relative;
  width: 100%;
  margin-inline: auto;
}
.glue-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 22px 28px rgba(23, 54, 95, .12)) saturate(1.08);
}

.glue-line {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 1.95rem);
  text-wrap: balance;
}
.glue-freeze { margin-top: 4px; color: var(--ink); opacity: 0; }
.glue-release { margin-top: 10px; color: var(--accent); }

/* Resting = resolved beat 6 */
.glue-svg .blk-b { transform: translateX(92px); }
.glue-svg .blk-c,
.glue-svg .blk-d { transform: translateX(184px); }
.glue-svg .item-1,
.glue-svg .item-2,
.glue-svg .item-x1,
.glue-svg .item-x2,
.glue-svg .item-r { opacity: 0; }
.glue-svg .figure {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  transform: translate(-238px, -10px);
}

.glue-svg .dee,
.glue-svg .item,
.glue-svg .figure {
  filter: drop-shadow(0 8px 10px rgba(23, 54, 95, .16));
}

.glue-svg .dee polygon {
  filter: saturate(1.18);
}

/* ── Playing: drive every part off one shared 13s timeline ── */
.glue.play .blk-b { animation: glueBlkB var(--glue-dur) linear both; }
.glue.play .blk-c { animation: glueBlkC var(--glue-dur) linear both; }
.glue.play .blk-d { animation: glueBlkC var(--glue-dur) linear both; }
.glue.play .dee-1 { animation: glueDee1 var(--glue-dur) linear both; }
.glue.play .dee-2 { animation: glueDee2 var(--glue-dur) linear both; }
.glue.play .item-1 { animation: glueItem1 var(--glue-dur) linear both; }
.glue.play .item-2 { animation: glueItem2 var(--glue-dur) linear both; }
.glue.play .item-x1 { animation: glueItemX1 var(--glue-dur) linear both; }
.glue.play .item-x2 { animation: glueItemX2 var(--glue-dur) linear both; }
.glue.play .item-r { animation: glueItemR var(--glue-dur) linear both; }
.glue.play .figure { animation: glueFigure var(--glue-dur) linear both; }
.glue.play .glue-freeze { animation: glueFreezeText var(--glue-dur) linear both; }
.glue.play .glue-release { animation: glueReleaseText var(--glue-dur) linear both; }

/* Beats: 1 ideal 0-20% · 2 crack 20-34% · 3 catch 34-48% ·
   4 recurrence 48-62% · 5 freeze 62-78% · 6 exhale 78-100% */
@keyframes glueBlkB { 0%,48%{transform:translateX(0)} 60%,100%{transform:translateX(92px)} }
@keyframes glueBlkC { 0%,20%{transform:translateX(0)} 32%,48%{transform:translateX(92px)} 60%,100%{transform:translateX(184px)} }

@keyframes glueDee1 {
  0%,78%{opacity:0; transform:translateY(-230px)}
  88%{opacity:1; transform:translateY(12px)}
  93%{transform:translateY(0)}
  100%{opacity:1; transform:translateY(0)}
}
@keyframes glueDee2 {
  0%,80%{opacity:0; transform:translateY(-230px)}
  90%{opacity:1; transform:translateY(12px)}
  95%{transform:translateY(0)}
  100%{opacity:1; transform:translateY(0)}
}

@keyframes glueItem1 {
  0%{opacity:0; transform:translateX(0)}
  4%{opacity:1}
  17%{opacity:1; transform:translateX(384px)}
  21%,100%{opacity:0; transform:translateX(384px)}
}
@keyframes glueItem2 {
  0%,20%{opacity:0; transform:translate(0,0)}
  23%{opacity:1; transform:translate(0,0)}
  31%{opacity:1; transform:translate(238px,0)}
  35%{opacity:1; transform:translate(238px,96px)}
  38%,80%{opacity:1; transform:translate(238px,96px)}
  86%{opacity:1; transform:translate(238px,-44px)}
  93%{opacity:1; transform:translate(568px,-44px)}
  97%,100%{opacity:0; transform:translate(568px,-44px)}
}
@keyframes glueItemX1 {
  0%,46%{opacity:0; transform:translate(0,0)}
  50%{opacity:1; transform:translate(0,0)}
  58%{opacity:1; transform:translate(0,92px)}
  62%,80%{opacity:1; transform:translate(0,92px)}
  87%,100%{opacity:0; transform:translate(0,92px)}
}
@keyframes glueItemX2 {
  0%,52%{opacity:0; transform:translate(0,0)}
  56%{opacity:1; transform:translate(0,0)}
  63%{opacity:1; transform:translate(0,92px)}
  66%,80%{opacity:1; transform:translate(0,92px)}
  87%,100%{opacity:0; transform:translate(0,92px)}
}
@keyframes glueItemR {
  0%,82%{opacity:0; transform:translateX(0)}
  85%{opacity:1; transform:translateX(0)}
  97%,100%{opacity:1; transform:translateX(568px)}
}

@keyframes glueFigure {
  0%,28%{opacity:0; transform:translate(330px,70px)}
  32%{opacity:1; transform:translate(0,0)}
  38%{transform:translate(-128px,0)}
  44%{transform:translate(0,0)}
  50%{transform:translate(-128px,4px) rotate(-5deg)}
  56%{transform:translate(-20px,4px) rotate(4deg)}
  62%,78%{opacity:1; transform:translate(-74px,8px) rotate(-4deg)}
  90%,100%{opacity:1; transform:translate(-238px,-10px) rotate(0deg)}
}

@keyframes glueFreezeText {
  0%,62%{opacity:0; transform:translateY(10px)}
  69%,78%{opacity:1; transform:none}
  85%,100%{opacity:0; transform:translateY(-6px)}
}
@keyframes glueReleaseText {
  0%,80%{opacity:0; transform:translateY(10px)}
  90%,100%{opacity:1; transform:none}
}

@media (max-width: 620px) {
  .glue-svg { overflow: hidden; }
}

/* ── Section 4 · Flow showcase ──────────────────────────── */
.flow-show {
  display: grid;
  grid-template-columns: 1fr auto 1.05fr;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: center;
}
.flow-input {
  align-self: center;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 20px 44px rgba(213, 58, 67, .26);
}
.flow-input-label {
  font-family: "Sora", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}
.flow-input-text { margin: 12px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; font-weight: 600; }

.flow-bridge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.flow-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .25;
  animation: flow-pulse 1.6s var(--ease) infinite;
}
.flow-pulse:nth-child(2) { animation-delay: .25s; }
.flow-pulse:nth-child(3) { animation-delay: .5s; }
@keyframes flow-pulse {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}
.flow-does-label {
  display: block;
  margin-bottom: 14px;
  font-family: "Sora", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.flow-action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.flow-action:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.flow-action .fa-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(141, 197, 242, .18);
}
.flow-action div { display: flex; flex-direction: column; }
.flow-action strong { font-family: "Sora", sans-serif; color: var(--ink); font-size: .98rem; }
.flow-action span { color: var(--ink-muted); font-size: .85rem; margin-top: 2px; }

@media (max-width: 860px) {
  .flow-show { grid-template-columns: 1fr; }
  .flow-bridge { flex-direction: row; justify-content: center; padding: 6px 0; }
}

/* ── Section 5 · Modules (connected list, not cards) ────── */
.module-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.module {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.module::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module:hover::before { transform: scaleY(1); }
.module-ic {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(141,197,242,.22), rgba(245,214,167,.18));
}
.module-ic img { width: 26px; height: 26px; opacity: .9; }
.module-text h3 { font-family: "Sora", sans-serif; margin: 0; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); }
.module-text p { margin: 4px 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 720px) { .module-list { grid-template-columns: 1fr; } }

/* ── Section 6 · Specialist (numbered showcase) ─────────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.spec-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(244,248,252,.8));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.spec-num {
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(213, 58, 67, .5);
  display: block;
  margin-bottom: 12px;
}
.spec-card h3 { font-family: "Sora", sans-serif; margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); }
.spec-card p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } }

/* ── Section 7 · Trust badges ───────────────────────────── */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.4;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.trust-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tb-ic {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(141,197,242,.22), rgba(255,255,255,.5));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.tb-ic img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@media (max-width: 820px) { .trust-badges { grid-template-columns: 1fr; } }

/* ── FAQ accordions (native <details>) ──────────────────── */
.faq { margin-top: clamp(20px, 2.6vw, 34px); }
.faq-label {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.faq-list { display: grid; gap: 8px; max-width: 60rem; }
.faq-item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.faq-item[open] { border-color: rgba(213, 58, 67, .28); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-ic {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.faq-ic img {
  width: 22px;
  height: 22px;
}
.faq-item[open] .faq-ic { transform: rotate(45deg); }
.faq-a { padding: 0 18px 15px; }
.faq-a p { margin: 0; color: var(--ink-soft); line-height: 1.58; font-size: .93rem; }
.faq-item[open] .faq-a { animation: faq-in .3s var(--ease-out-quart); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ── Non-hero section refresh ────────────────────────────── */
main > .tmpl-section {
  overflow: hidden;
  border-top: 1px solid rgba(112, 140, 172, .16);
}

main > .tmpl-section > .container {
  position: relative;
}

.tmpl-section:not(.alt) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(245, 249, 252, .76));
}

.tmpl-section.alt {
  background:
    linear-gradient(180deg, rgba(225, 235, 246, .62), rgba(244, 248, 252, .82) 48%, rgba(231, 240, 248, .52));
}

.s-head {
  max-width: 68ch;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}

.s-head.center .lede {
  margin-inline: auto;
}

.s-title {
  max-width: 17ch;
  margin-inline: auto;
}

.s-sub {
  max-width: 58ch;
}

.hub,
.dee-picker,
.checklist,
.steps,
.why-wrap,
.glue,
.priv-grid,
.trust-badges {
  position: relative;
}

.hub {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(236, 244, 251, .62)),
    linear-gradient(90deg, rgba(213, 58, 67, .06), rgba(74, 117, 168, .07));
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-md);
}

.hub-node,
.check,
.trust-badge,
.faq-item,
.flow-action,
.module,
.spec-card,
.priv-card {
  backdrop-filter: blur(14px);
}

.hub-node {
  justify-content: center;
  min-height: 58px;
  box-shadow: none;
}

.hub-core {
  min-height: 122px;
  box-shadow: 0 20px 46px rgba(23, 54, 95, .14);
}

.hub-text,
.value-close {
  max-width: 58ch;
  margin-inline: auto;
}

.callout {
  max-width: 760px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(213, 58, 67, .11), rgba(255, 255, 255, .72) 26%, rgba(141, 197, 242, .14));
  border: 1px solid rgba(213, 58, 67, .16);
}

.dee-picker {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(14px, 2.4vw, 24px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(255, 255, 255, .72);
}

.dee-tile {
  min-height: 86px;
  box-shadow: none;
}

.dee-detail {
  min-height: 100%;
}

.checklist {
  max-width: 940px;
  margin-inline: auto;
  gap: 12px;
}

.check {
  min-height: 74px;
  align-items: center;
  border-color: rgba(255, 255, 255, .82);
}

.steps {
  max-width: 880px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .76);
}

.step {
  grid-template-columns: 64px 1fr;
}

.step-body {
  padding: 12px 0 0;
}

.why-wrap {
  max-width: 860px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 20%, rgba(213, 58, 67, .08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(238, 245, 250, .7));
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-sm);
}

.glue {
  padding: clamp(12px, 2vw, 24px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 34%, rgba(213, 58, 67, .1), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(231, 241, 249, .78));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 58px rgba(25, 54, 89, .1);
}

.pain-cloud {
  max-width: 1040px;
  margin-inline: auto;
}

.priv-grid {
  max-width: 980px;
  margin-inline: auto;
}

.trust-badges {
  max-width: 1000px;
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-badge {
  align-items: flex-start;
  min-height: 92px;
}

.faq {
  max-width: 880px;
  margin-inline: auto;
}

.faq-label {
  text-align: center;
}

.faq-list {
  max-width: none;
}

.faq-item {
  background: rgba(255, 255, 255, .56);
}

.cta-box {
  max-width: 920px;
  margin-inline: auto;
}

@media (max-width: 980px) {
  .hub,
  .trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .s-title {
    max-width: 18ch;
  }

  .hub,
  .trust-badges {
    grid-template-columns: 1fr;
  }

  .steps {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .step {
    grid-template-columns: 46px 1fr;
  }
}

/* ── Footer additions ───────────────────────────────────── */
.foot { flex-wrap: wrap; align-items: center; }
.foot-links { display: inline-flex; gap: 18px; }
.foot-links a { color: var(--ink-soft); font-weight: 700; transition: color .18s var(--ease); }
.foot-links a:hover { color: var(--accent); }
.foot-flag { color: var(--ink-muted); font-weight: 700; }

/* ── Thai typography ────────────────────────────────────── */
html[lang="th"] body { font-family: "Noto Sans Thai", "Manrope", "Segoe UI", sans-serif; }
html[lang="th"] .brand-name,
html[lang="th"] .eyebrow,
html[lang="th"] .s-eyebrow,
html[lang="th"] .s-title,
html[lang="th"] .hero h1,
html[lang="th"] .section h2,
html[lang="th"] .cta h2,
html[lang="th"] .dee-name,
html[lang="th"] .dee-detail-name,
html[lang="th"] .flow-input-text,
html[lang="th"] .faq-item summary,
html[lang="th"] .module-text h3,
html[lang="th"] .spec-card h3,
html[lang="th"] .pain {
  font-family: "Noto Sans Thai", "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0;
}
html[lang="th"] .hero h1 { line-height: 1.12; }
html[lang="th"] .s-title { line-height: 1.2; }

/* ── How it works · vertical step timeline ──────────────── */
.steps {
  list-style: none;
  margin: clamp(10px, 2vw, 22px) auto 0;
  padding: 0;
  max-width: 760px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  min-height: 124px;
  padding-bottom: 0;
  opacity: 0;
  transform: translate3d(-18px, 18px, 0) scale(.985);
  filter: blur(4px);
  transition:
    opacity .58s var(--ease-out-expo),
    transform .58s var(--ease-out-expo),
    filter .58s var(--ease-out-expo);
}
.step:last-child { min-height: 76px; }
.step::before {
  content: "";
  position: absolute;
  left: 82px;
  right: 0;
  top: 12px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(213, 58, 67, .42), rgba(141, 197, 242, .28), transparent);
  opacity: 0;
  transform: scaleX(.18);
  transform-origin: left;
  transition: opacity .45s var(--ease-out-quart), transform .72s var(--ease-out-expo);
}
.steps.visible .step {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.steps.visible .step::before {
  opacity: .75;
  transform: scaleX(1);
}
.steps.visible .step:nth-child(1) { transition-delay: .06s; }
.steps.visible .step:nth-child(2) { transition-delay: .16s; }
.steps.visible .step:nth-child(3) { transition-delay: .26s; }
.steps.visible .step:nth-child(4) { transition-delay: .36s; }
.steps.visible .step:nth-child(5) { transition-delay: .46s; }
.steps.visible .step:nth-child(1)::before { transition-delay: .16s; }
.steps.visible .step:nth-child(2)::before { transition-delay: .26s; }
.steps.visible .step:nth-child(3)::before { transition-delay: .36s; }
.steps.visible .step:nth-child(4)::before { transition-delay: .46s; }
.steps.visible .step:nth-child(5)::before { transition-delay: .56s; }

.step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 26px rgba(213, 58, 67, .28);
  transform: scale(.92);
  transition: transform .48s var(--ease-out-expo), box-shadow .32s var(--ease-out-quart);
}
.steps.visible .step-num { transform: scale(1); }
.steps.visible .step:nth-child(1) .step-num { transition-delay: .1s; }
.steps.visible .step:nth-child(2) .step-num { transition-delay: .2s; }
.steps.visible .step:nth-child(3) .step-num { transition-delay: .3s; }
.steps.visible .step:nth-child(4) .step-num { transition-delay: .4s; }
.steps.visible .step:nth-child(5) .step-num { transition-delay: .5s; }
/* a soft ring that pulses outward, cascading down the timeline */
.step-num::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(213, 58, 67, .45);
  opacity: 0;
}
.steps.visible .step-num::after { animation: step-ring 3s var(--ease) infinite; }
.steps.visible .step:nth-child(2) .step-num::after { animation-delay: .4s; }
.steps.visible .step:nth-child(3) .step-num::after { animation-delay: .8s; }
.steps.visible .step:nth-child(4) .step-num::after { animation-delay: 1.2s; }
.steps.visible .step:nth-child(5) .step-num::after { animation-delay: 1.6s; }
@keyframes step-ring {
  0% { opacity: .55; transform: scale(.82); }
  60%, 100% { opacity: 0; transform: scale(1.35); }
}

/* connector segment from this node down to the next */
.step-rail {
  position: absolute;
  left: 27px;
  top: 56px;
  height: 68px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--sky));
  opacity: .45;
  transform: scaleY(0);
  transform-origin: top;
}
.steps.visible .step-rail {
  opacity: .86;
  transform: scaleY(1);
  transition: transform .62s var(--ease-out-expo), opacity .35s var(--ease-out-quart);
}
.steps.visible .step:nth-child(1) .step-rail { transition-delay: .18s; }
.steps.visible .step:nth-child(2) .step-rail { transition-delay: .30s; }
.steps.visible .step:nth-child(3) .step-rail { transition-delay: .42s; }
.steps.visible .step:nth-child(4) .step-rail { transition-delay: .54s; }

.step-body { padding-top: 5px; min-width: 0; }
.step-body h3 {
  font-family: "Sora", sans-serif;
  margin: 0 0 6px;
  font-size: 1.18rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.step-body p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: .95rem; }

@media (max-width: 520px) {
  .step { grid-template-columns: 46px 1fr; gap: 14px; min-height: 150px; }
  .step:last-child { min-height: 112px; }
  .step::before { left: 60px; top: 10px; }
  .step-num { width: 46px; height: 46px; font-size: 1rem; }
  .step-rail { left: 22px; top: 46px; height: 104px; }
}

/* ── Why private is better · argument cards ─────────────── */
.priv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.priv-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(244, 248, 252, .82));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.priv-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sky), var(--accent));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.priv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.priv-card:hover::before { transform: scaleX(1); animation: priv-sweep 2.4s linear infinite; }
@keyframes priv-sweep { to { background-position: -200% 0; } }
.priv-ic {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 16px;
  background: linear-gradient(160deg, rgba(141, 197, 242, .22), rgba(245, 214, 167, .18));
}
.priv-ic img { width: 26px; height: 26px; }
.priv-card h3 {
  font-family: "Sora", sans-serif;
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.priv-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: .92rem; }
.priv-tag {
  margin-top: 14px !important;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: .82rem !important;
  line-height: 1.45 !important;
  color: var(--accent) !important;
  letter-spacing: -.01em;
}
@media (max-width: 720px) { .priv-grid { grid-template-columns: 1fr; } }

/* ── CTA · "what to prepare" chips ──────────────────────── */
.cta h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), #f08a6f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-prep-label {
  margin: 22px 0 14px !important;
  font-family: "Sora", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cta-prep {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: transform .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cta-chip::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
}
.cta-chip:hover {
  transform: translateY(-3px);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  border-color: rgba(213, 58, 67, .3);
}
.cta-note { margin: 18px 0 0 !important; font-weight: 700; color: var(--ink-soft); font-size: .92rem; }

.contact-form {
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
  margin: clamp(20px, 3vw, 30px) auto 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  text-align: left;
}
.contact-field span {
  font-family: "Sora", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(23, 54, 95, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  color: var(--ink);
  font: inherit;
  font-size: .96rem;
  line-height: 1.45;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.contact-field input {
  min-height: 50px;
  padding: 0 15px;
}
.contact-field textarea {
  min-height: 132px;
  resize: vertical;
  padding: 14px 15px;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(213, 58, 67, .44);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 4px rgba(213, 58, 67, .1);
}
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-status {
  min-height: 1.35em;
  margin: 0 !important;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
}
.contact-status[data-tone="success"] { color: #18765b; }
.contact-status[data-tone="error"] { color: var(--accent-deep); }
.contact-form .cta-actions {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .cta-actions { justify-content: stretch; }
  .contact-form .btn { width: 100%; }
}

/* ── S1 · Connected-system hub (3×3 with Dee at the centre) ─ */
.hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
  max-width: 720px;
  margin: clamp(12px, 2vw, 28px) auto 0;
}
.hub-node {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hub-node:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(213, 58, 67, .3); }
.hub-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sky), #6e9ec7);
}
.hub-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-md);
  color: #fff;
  text-align: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  box-shadow: 0 18px 40px rgba(213, 58, 67, .3);
}
.hub-core-mark {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 7px;
  transform: rotate(45deg);
}
.hub-core-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.hub-core::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-md) + 8px);
  border: 2px solid rgba(213, 58, 67, .4);
  opacity: 0;
}
.hub.visible .hub-core::after { animation: hub-pulse 2.8s var(--ease) infinite; }
@keyframes hub-pulse {
  0% { opacity: .5; transform: scale(.94); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}
.hub-text {
  max-width: 46ch;
  margin: clamp(20px, 3vw, 30px) auto 0;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
}
@media (max-width: 600px) {
  .hub { grid-template-columns: repeat(2, 1fr); }
  .hub-core { grid-column: 1 / -1; order: -1; padding: 24px; }
}

/* ── S2 · Benefit checklist ─────────────────────────────── */
.checklist {
  list-style: none;
  margin: clamp(8px, 2vw, 18px) auto 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.4;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.check:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.check::before {
  content: "";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: url("../icons/check-circle.svg") center / contain no-repeat;
  box-shadow: 0 6px 14px rgba(213, 58, 67, .25);
}
.value-close {
  max-width: 40ch;
  margin: clamp(20px, 3vw, 32px) auto 0;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink);
}
@media (max-width: 680px) { .checklist { grid-template-columns: 1fr; } }

/* ── S4 · Why it works (typographic) ────────────────────── */
.why-wrap { max-width: 760px; margin-inline: auto; text-align: center; }
.why-lead { margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.8; }
.why-emph {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}
.why-close {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.15;
  background: linear-gradient(120deg, var(--accent), #f0866f 60%, #e0a35a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Thai typography for the new headings */
html[lang="th"] .step-body h3,
html[lang="th"] .priv-card h3,
html[lang="th"] .cta-chip,
html[lang="th"] .hub-node,
html[lang="th"] .hub-core-name,
html[lang="th"] .check,
html[lang="th"] .value-close,
html[lang="th"] .why-close {
  font-family: "Noto Sans Thai", "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

/* Note: motion is intentionally NOT gated on prefers-reduced-motion here.
   The owner's Windows setup falsely reports `reduce`, which previously
   froze the living background grid, the floating pain pills and the flow
   pulses. See the "Motion policy" note in index.html. */
