/* ============================================================
   ChatWorks — Design System
   Palette derived from the ChatWorks brand: deep teal, teal,
   mint, cream. Signal green reserved for "live / delivered".
   Signature device: the double delivery tick (✓✓).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Core */
  --ink:        #03191b;
  --ink-2:      #052224;
  --deep:       #072c2e;
  --deep-3:     #0a3b3e;
  --teal:       #11676a;
  --teal-lift:  #17868a;
  --mint:       #caf5f7;
  --mint-dim:   #8fd9dd;
  --signal:     #2ed47a;
  --signal-dim: #1ea55d;
  --amber:      #f2b544;
  --bone:       #f5f3eb;
  --bone-2:     #ece8dc;
  --paper:      #ffffff;

  /* Text */
  --on-dark:      #f2f7f6;
  --on-dark-soft: rgba(242, 247, 246, .66);
  --on-dark-faint:rgba(242, 247, 246, .38);
  --on-light:     #082628;
  --on-light-soft:#3d5c5d;

  /* Lines */
  --rule-dark:  rgba(202, 245, 247, .14);
  --rule-light: rgba(8, 51, 53, .12);

  /* Type */
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --t-hero:  clamp(2.75rem, 7.2vw, 5.75rem);
  --t-h1:    clamp(2.35rem, 5.6vw, 4.25rem);
  --t-h2:    clamp(1.95rem, 3.9vw, 3.15rem);
  --t-h3:    clamp(1.35rem, 2.1vw, 1.85rem);
  --t-h4:    clamp(1.08rem, 1.4vw, 1.25rem);
  --t-lead:  clamp(1.04rem, 1.35vw, 1.24rem);
  --t-body:  1rem;
  --t-small: .875rem;
  --t-micro: .72rem;

  /* Space + shape */
  --shell:   1240px;
  --gut:     clamp(1.15rem, 4vw, 2.5rem);
  --band:    clamp(4.5rem, 9vw, 8.5rem);
  --r-sm:    10px;
  --r-md:    18px;
  --r-lg:    28px;
  --r-xl:    40px;

  --shadow-lift: 0 2px 4px rgba(3,25,27,.04), 0 12px 32px rgba(3,25,27,.07);
  --shadow-pop:  0 18px 60px rgba(3,25,27,.16);
  --shadow-glow: 0 24px 90px rgba(17,103,106,.38);

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

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body {
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--signal); color: var(--ink);
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.028em;
  font-variation-settings: "wdth" 100, "opsz" 32;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.16; letter-spacing: -.018em; }
h4 { font-size: var(--t-h4); line-height: 1.3; letter-spacing: -.012em; }

.hero-type { font-size: var(--t-hero); line-height: .96; letter-spacing: -.038em; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--on-dark-soft);
  max-width: 62ch;
}
.on-light .lead, .light .lead { color: var(--on-light-soft); }

/* Mono utility label — the site's structural voice */
.tag {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--mint-dim);
}
.light .tag, .on-light .tag { color: var(--teal); }

/* The signature: double delivery tick */
.tick { width: 1.05em; height: 1.05em; flex: none; color: var(--signal); }
.tag .tick { width: .95em; height: .95em; }

/* Gradient emphasis on a word or two, used sparingly */
.hl {
  background: linear-gradient(97deg, var(--mint) 12%, var(--signal) 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.light .hl, .on-light .hl {
  background: linear-gradient(97deg, var(--teal) 8%, var(--signal-dim) 92%);
  -webkit-background-clip: text; background-clip: text;
}

/* Underline drawn like a marker stroke */
.stroke {
  position: relative;
  white-space: nowrap;
}
.stroke::after {
  content: "";
  position: absolute;
  left: -.06em; right: -.06em; bottom: .06em;
  height: .34em;
  background: rgba(46, 212, 122, .28);
  border-radius: 3px;
  z-index: -1;
}

/* ---------- 4. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.shell-wide { max-width: 1440px; }
.shell-narrow { max-width: 880px; }

.band { padding-block: var(--band); position: relative; }
.band-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.light { background: var(--bone); color: var(--on-light); }
.light h1, .light h2, .light h3, .light h4 { color: var(--on-light); }
.paper { background: var(--paper); color: var(--on-light); }
.deep  { background: var(--deep); }
.inky  { background: var(--ink); }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-wide { grid-template-columns: 1.08fr .92fr; }

.stack   { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.stack-c { align-items: center; text-align: center; }
.row     { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.head { max-width: 70ch; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.head-c { margin-inline: auto; text-align: center; }
.head .tag { margin-bottom: 1.15rem; }
.head h2 + .lead, .head h1 + .lead { margin-top: 1.15rem; }
.head-c .lead { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  line-height: 1;
  position: relative;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46,212,122,.3); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
}
.btn-ghost:hover {
  --btn-bg: rgba(202,245,247,.08);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.3);
}
.light .btn-ghost, .paper .btn-ghost {
  --btn-fg: var(--on-light);
  box-shadow: inset 0 0 0 1px var(--rule-light);
}
.light .btn-ghost:hover, .paper .btn-ghost:hover {
  --btn-bg: rgba(17,103,106,.07);
  box-shadow: inset 0 0 0 1px rgba(17,103,106,.35);
}

.btn-teal { --btn-bg: var(--teal); --btn-fg: #fff; }
.btn-teal:hover { --btn-bg: var(--teal-lift); box-shadow: 0 12px 28px rgba(17,103,106,.34); }

.btn-sm { padding: .65rem 1.15rem; font-size: .875rem; }
.btn-lg { padding: 1.08rem 2rem; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .94rem;
  color: var(--mint);
  border-bottom: 1px solid transparent;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow svg { width: 1em; height: 1em; }
.link-arrow:hover { gap: .75rem; border-bottom-color: currentColor; }
.light .link-arrow, .paper .link-arrow { color: var(--teal); }

/* ---------- 6. Header ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding-top: clamp(.6rem, 1.6vw, 1.1rem);
  transition: padding-top .35s var(--ease);
}
.masthead.pinned { padding-top: .45rem; }

.nav {
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem .5rem .5rem 1.15rem;
  border-radius: 999px;
  background: rgba(5, 34, 36, .72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.masthead.pinned .nav {
  background: rgba(3, 25, 27, .92);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.18), 0 14px 40px rgba(0,0,0,.34);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; transition: height .35s var(--ease); }
.masthead.pinned .brand img { height: 40px; }

.menu { display: flex; align-items: center; gap: .15rem; margin-inline: auto; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > .menu-top {
  display: flex; align-items: center; gap: .32rem;
  padding: .6rem .82rem;
  font-size: .9rem; font-weight: 500;
  color: var(--on-dark-soft);
  border-radius: 999px;
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.menu > li > a:hover, .menu > li > .menu-top:hover,
.menu > li:focus-within > a { color: var(--on-dark); background: rgba(202,245,247,.07); }
.menu > li > a[aria-current="page"] { color: var(--mint); }

/* A dropdown parent is one pill: the label navigates, the caret toggles. */
.menu > li.has-drop { display: flex; align-items: center; border-radius: 999px; }
.menu > li.has-drop > .menu-top { padding-right: .35rem; background: none; }
.menu > li.has-drop:hover, .menu > li.has-drop:focus-within,
.menu > li.has-drop[data-open="true"] { background: rgba(202,245,247,.07); }
.menu > li.has-drop:hover > .menu-top,
.menu > li.has-drop:focus-within > .menu-top,
.menu > li.has-drop[data-open="true"] > .menu-top { color: var(--on-dark); }

.caret-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .62rem .8rem .62rem .3rem;
  border-radius: 999px;
  color: var(--on-dark-soft);
  transition: color .22s var(--ease);
}
.menu > li.has-drop:hover .caret-btn,
.menu > li.has-drop[data-open="true"] .caret-btn { color: var(--on-dark); }

.menu .caret { width: 9px; height: 9px; opacity: .6; transition: transform .25s var(--ease); }
.menu > li:hover .caret,
.menu > li:focus-within .caret,
.menu > li[data-open="true"] .caret { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + .55rem); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 248px;
  padding: .5rem;
  border-radius: 20px;
  background: rgba(7, 44, 46, .97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: inset 0 0 0 1px var(--rule-dark), 0 22px 54px rgba(0,0,0,.46);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu > li:hover > .drop,
.menu > li[data-open="true"] > .drop,
/* focus-within is scoped to the panel itself — putting it on the <li> meant
   returning focus to the caret on Escape immediately reopened the panel. */
.menu > li > .drop:focus-within {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
/* Bridge the gap between the pill and the panel so a diagonal mouse
   movement doesn't drop the hover halfway. */
.drop::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -.75rem;
  height: .75rem;
}
.drop a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .75rem; border-radius: 13px;
  font-size: .88rem; color: var(--on-dark-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.drop a:hover { background: rgba(202,245,247,.08); color: var(--on-dark); }
.drop a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-lift); flex: none; transition: background-color .2s; }
.drop a:hover .dot { background: var(--signal); }
.drop-label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-faint);
  padding: .55rem .75rem .35rem;
}

.nav-cta { flex: none; display: flex; align-items: center; gap: .5rem; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  align-items: center; justify-content: center;
  flex: none;
}
.burger span {
  display: block; width: 17px; height: 1.5px; background: var(--on-dark);
  border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background-color .3s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: var(--on-dark); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top: 5.5px; }
body.mobile-open .burger span { background: transparent; }
body.mobile-open .burger span::before { top: 0; transform: rotate(45deg); }
body.mobile-open .burger span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 85;
  background: var(--ink);
  padding: 112px var(--gut) 2.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
body.mobile-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer-group { border-bottom: 1px solid var(--rule-dark); }
.drawer-group > a, .drawer-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.05rem 0;
  font-family: var(--display); font-size: 1.32rem; font-weight: 600;
  letter-spacing: -.02em; text-align: left;
}
.drawer-toggle .caret { width: 13px; height: 13px; opacity: .5; transition: transform .3s var(--ease); }
.drawer-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.drawer-toggle[aria-expanded="true"] + .drawer-sub { grid-template-rows: 1fr; }
.drawer-sub > div { overflow: hidden; }
.drawer-sub a {
  display: block; padding: .6rem 0 .6rem 1rem;
  font-size: .95rem; color: var(--on-dark-soft);
  border-left: 1px solid var(--rule-dark);
}
.drawer-sub > div { padding-bottom: .8rem; }
.drawer-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: .7rem; }
.drawer-foot .btn { justify-content: center; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 15vw, 11.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(900px 560px at 78% 8%, rgba(17,103,106,.5), transparent 62%),
    radial-gradient(700px 480px at 6% 82%, rgba(46,212,122,.14), transparent 64%),
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(900px 620px at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 620px at 50% 30%, #000 20%, transparent 78%);
  opacity: .55;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-copy .lead { margin-top: 1.5rem; }
.hero-actions { margin-top: 2.1rem; }

.hero-proof {
  margin-top: 2.6rem; padding-top: 1.7rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; align-items: center;
}
.hero-proof .meta-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-soft);
}
.meta-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal), var(--deep-3));
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.2);
}
.meta-mark svg { width: 14px; height: 14px; color: var(--mint); }

/* Mini stat trio under hero copy */
.microstats { display: flex; gap: 2rem; flex-wrap: wrap; }
.microstats div { line-height: 1.2; }
.microstats b {
  display: block;
  font-family: var(--display); font-size: 1.55rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--mint);
}
.microstats > div > span {
  display: block;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-faint);
}

/* ---------- 8. The signature: live chat thread ---------- */
.thread-wrap { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.thread-wrap::after {
  content: "";
  position: absolute; inset: 12% -14% -10% -14%;
  background: radial-gradient(closest-side, rgba(46,212,122,.2), transparent 72%);
  filter: blur(18px); z-index: 0; pointer-events: none;
}

.thread {
  position: relative; z-index: 1;
  border-radius: 34px;
  background: linear-gradient(176deg, #0a3234, #061e20 72%);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.16), var(--shadow-glow);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 496px;
}
.thread-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.15rem;
  background: rgba(202,245,247,.05);
  border-bottom: 1px solid var(--rule-dark);
}
.thread-av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--teal-lift), var(--deep));
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.22);
}
.thread-av img { width: 62%; height: 62%; object-fit: contain; }
.thread-id { flex: 1; min-width: 0; }
.thread-id b { display: block; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; }
.thread-id span {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(46,212,122,.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(46,212,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,212,122,0); }
}

.thread-body {
  flex: 1;
  padding: 1.15rem;
  display: flex; flex-direction: column; gap: .6rem;
  justify-content: flex-end;
  background-image: radial-gradient(rgba(202,245,247,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bub {
  max-width: 82%;
  padding: .7rem .9rem .5rem;
  border-radius: 16px;
  font-size: .875rem; line-height: 1.5;
  position: relative;
  animation: bubIn .42s var(--ease) both;
}
@keyframes bubIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
}
.bub-in  { align-self: flex-start; background: #10403f; border-bottom-left-radius: 5px; }
.bub-out { align-self: flex-end; background: var(--teal); border-bottom-right-radius: 5px; color: #eefbfb; }
.bub-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: .3rem;
  margin-top: .3rem;
  font-family: var(--mono); font-size: .62rem;
  color: rgba(242,247,246,.5);
}
.bub-out .bub-meta .tick { color: #7fe9ff; width: 13px; height: 13px; }
.bub strong { font-weight: 600; }

/* In-bubble rich cards */
.bub-card {
  margin-top: .55rem;
  border-radius: 11px;
  background: rgba(3,25,27,.4);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.14);
  padding: .65rem .75rem;
  display: flex; align-items: center; gap: .65rem;
}
.bub-card svg { width: 17px; height: 17px; color: var(--mint); flex: none; }
.bub-card div { min-width: 0; }
.bub-card b { display: block; font-size: .8rem; font-weight: 600; }
.bub-card span { font-family: var(--mono); font-size: .64rem; color: var(--on-dark-faint); letter-spacing: .06em; }
.bub-btn {
  margin-top: .5rem;
  display: block; width: 100%;
  text-align: center;
  padding: .5rem;
  border-radius: 9px;
  background: rgba(46,212,122,.15);
  box-shadow: inset 0 0 0 1px rgba(46,212,122,.35);
  color: var(--signal);
  font-size: .78rem; font-weight: 600;
}

.typing { display: flex; gap: 3.5px; align-items: center; padding: .85rem .95rem; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint-dim);
  animation: blip 1.25s infinite;
}
.typing i:nth-child(2) { animation-delay: .17s; }
.typing i:nth-child(3) { animation-delay: .34s; }
@keyframes blip {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

.thread-input {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem 1.05rem;
  border-top: 1px solid var(--rule-dark);
}
.thread-input .fake-field {
  flex: 1; padding: .6rem .9rem; border-radius: 999px;
  background: rgba(202,245,247,.06);
  font-size: .8rem; color: var(--on-dark-faint);
}
.thread-send {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--signal); color: var(--ink);
}
.thread-send svg { width: 15px; height: 15px; }

/* Floating scenario chip */
.scenario-chip {
  position: absolute; z-index: 2;
  left: -6%; bottom: 8%;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(5,34,36,.92);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.2), 0 14px 36px rgba(0,0,0,.4);
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--mint);
  white-space: nowrap;
}
.scenario-chip .tick { color: var(--signal); }

/* ---------- 9. Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3rem);
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: slide 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-set { display: flex; align-items: center; gap: clamp(2rem, 4.5vw, 4rem); padding-right: clamp(2rem, 4.5vw, 4rem); }

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 600; letter-spacing: -.02em;
  color: var(--on-dark-soft);
  white-space: nowrap;
  transition: color .25s var(--ease), opacity .25s var(--ease);
  opacity: .72;
}
.wordmark:hover { color: var(--mint); opacity: 1; }
.light .wordmark { color: var(--on-light-soft); }
.light .wordmark:hover { color: var(--teal); }
.wordmark em { font-style: normal; color: var(--signal); }

/* ---------- 10. Cards ---------- */
.card {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--r-lg);
  background: rgba(202,245,247,.035);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  background: rgba(202,245,247,.06);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.26), 0 20px 46px rgba(0,0,0,.28);
}
.light .card, .paper .card {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-light), var(--shadow-lift);
}
.light .card:hover, .paper .card:hover {
  box-shadow: inset 0 0 0 1px rgba(17,103,106,.28), var(--shadow-pop);
}
.card h3, .card h4 { margin-bottom: .6rem; }
.card p { color: var(--on-dark-soft); font-size: .95rem; }
.light .card p, .paper .card p { color: var(--on-light-soft); }

.card-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
  background: linear-gradient(145deg, rgba(23,134,138,.3), rgba(46,212,122,.12));
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.2);
  color: var(--mint);
  transition: transform .4s var(--ease);
}
.card:hover .card-icon { transform: scale(1.06) rotate(-4deg); }
.card-icon svg { width: 21px; height: 21px; }
.light .card-icon, .paper .card-icon {
  background: linear-gradient(145deg, rgba(17,103,106,.14), rgba(46,212,122,.1));
  box-shadow: inset 0 0 0 1px rgba(17,103,106,.16);
  color: var(--teal);
}

/* Bento sizing */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
.sp-2 { grid-column: span 2; }
.sp-3 { grid-column: span 3; }
.sp-4 { grid-column: span 4; }
.sp-6 { grid-column: span 6; }

/* Feature card with a hairline index */
.idx-card { padding-top: clamp(1.4rem, 2.4vw, 2rem); }
.idx-card .idx {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .2em; color: var(--on-dark-faint);
  display: block; margin-bottom: .85rem;
}
.light .idx-card .idx { color: rgba(8,38,40,.4); }

/* ---------- 11. Stats ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(202,245,247,.04);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-right: 1px solid var(--rule-dark);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700; letter-spacing: -.045em; line-height: 1;
  color: var(--mint);
  margin-bottom: .5rem;
}
.stat b .unit { color: var(--signal); }
.stat > span { font-size: .9rem; color: var(--on-dark-soft); line-height: 1.45; display: block; }
.stat > span.src {
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-faint); margin-top: .7rem; display: block;
}

/* ---------- 12. Alternating feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.feature-row:nth-child(even) .feature-visual { order: -1; }

.feature-copy h3 { margin-bottom: 1rem; }
.feature-copy .tag { margin-bottom: 1rem; }
.feature-copy p { color: var(--on-dark-soft); max-width: 52ch; }
.light .feature-copy p { color: var(--on-light-soft); }
.feature-copy .checks { margin-top: 1.5rem; }

.checks { display: flex; flex-direction: column; gap: .7rem; }
.checks li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .95rem; color: var(--on-dark-soft);
}
.light .checks li, .paper .checks li { color: var(--on-light-soft); }
.checks .tick { margin-top: .3em; }

/* Visual panel that mimics a product surface */
.panel {
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  background: linear-gradient(168deg, rgba(23,134,138,.2), rgba(3,25,27,.6));
  box-shadow: inset 0 0 0 1px var(--rule-dark), 0 24px 60px rgba(0,0,0,.28);
}
.light .panel, .paper .panel {
  background: linear-gradient(168deg, #ffffff, #eef6f5);
  box-shadow: inset 0 0 0 1px var(--rule-light), var(--shadow-lift);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .9rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-dark);
}
.light .panel-head, .paper .panel-head { border-bottom-color: var(--rule-light); }
.panel-head .tag { margin: 0; }
.panel-dots { display: flex; gap: 5px; }
.panel-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-dark); }
.light .panel-dots i { background: rgba(8,51,53,.18); }

.rowline {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem .85rem;
  border-radius: 13px;
  background: rgba(202,245,247,.05);
  font-size: .875rem;
}
.rowline + .rowline { margin-top: .5rem; }
.light .rowline, .paper .rowline { background: rgba(17,103,106,.06); }
.rowline .ico {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: rgba(46,212,122,.14); color: var(--signal);
}
.light .rowline .ico { background: rgba(17,103,106,.1); color: var(--teal); }
.rowline .ico svg { width: 15px; height: 15px; }
.rowline .grow { flex: 1; min-width: 0; }
.rowline b { display: block; font-weight: 600; font-size: .88rem; }
.rowline small { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--on-dark-faint); }
.light .rowline small, .paper .rowline small { color: rgba(8,38,40,.5); }
.rowline .state {
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .24rem .55rem; border-radius: 999px;
  background: rgba(46,212,122,.14); color: var(--signal);
  white-space: nowrap;
}
.rowline .state.wait { background: rgba(242,181,68,.16); color: var(--amber); }

/* Bar chart used on the "better than email" panel */
.bars { display: flex; align-items: flex-end; gap: clamp(.8rem, 2vw, 1.5rem); height: 210px; padding-top: 1rem; }
.bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: .6rem; }
.bars .col {
  border-radius: 12px 12px 4px 4px;
  position: relative;
  transform-origin: bottom;
  animation: growBar 1.1s var(--ease) both;
}
@keyframes growBar { from { transform: scaleY(0); opacity: 0; } }
.bars .col span {
  position: absolute; top: -1.65rem; left: 0; right: 0; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
}
.bars .lbl {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; text-align: center; color: var(--on-dark-faint);
}
.light .bars .lbl, .paper .bars .lbl { color: rgba(8,38,40,.5); }
.bars .c-wa { background: linear-gradient(180deg, var(--signal), var(--teal)); }
.bars .c-wa span { color: var(--signal); }
.bars .c-sm { background: linear-gradient(180deg, rgba(202,245,247,.35), rgba(202,245,247,.14)); }
.bars .c-em { background: linear-gradient(180deg, rgba(202,245,247,.24), rgba(202,245,247,.08)); }
.bars .c-sm span, .bars .c-em span { color: var(--on-dark-soft); }
.light .bars .c-sm { background: linear-gradient(180deg, rgba(17,103,106,.3), rgba(17,103,106,.12)); }
.light .bars .c-em { background: linear-gradient(180deg, rgba(17,103,106,.2), rgba(17,103,106,.07)); }
.light .bars .c-sm span, .light .bars .c-em span { color: var(--on-light-soft); }

/* ---------- 13. Process — message states ---------- */
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); position: relative; }
.states::before {
  content: "";
  position: absolute; top: 27px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--rule-dark), rgba(46,212,122,.5), var(--rule-dark));
}
.light .states::before { background: linear-gradient(90deg, var(--rule-light), rgba(17,103,106,.5), var(--rule-light)); }
.state-step { position: relative; padding-top: 0; }
.state-mark {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  margin-bottom: 1.4rem;
  position: relative; z-index: 1;
  color: var(--on-dark-faint);
  transition: color .4s var(--ease), box-shadow .4s var(--ease);
}
.light .state-mark { background: var(--bone); box-shadow: inset 0 0 0 1px var(--rule-light); }
.state-mark svg { width: 22px; height: 22px; }
.state-step:hover .state-mark, .state-step.on .state-mark {
  color: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(46,212,122,.45), 0 0 0 6px rgba(46,212,122,.08);
}
.state-step .tag { margin-bottom: .8rem; display: block; }
.state-step h3 { margin-bottom: .7rem; }
.state-step p { color: var(--on-dark-soft); font-size: .95rem; }
.light .state-step p { color: var(--on-light-soft); }

/* ---------- 14. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-radius: var(--r-lg);
  background: rgba(202,245,247,.035);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(202,245,247,.24), 0 24px 56px rgba(0,0,0,.3); }
.plan.featured {
  background: linear-gradient(168deg, rgba(23,134,138,.3), rgba(3,25,27,.5));
  box-shadow: inset 0 0 0 1.5px rgba(46,212,122,.45), 0 28px 70px rgba(0,0,0,.34);
}
.plan-flag {
  position: absolute; top: -12px; left: clamp(1.6rem, 2.6vw, 2.2rem);
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--signal); color: var(--ink);
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.plan h3 { margin-bottom: .45rem; }
.plan > p { color: var(--on-dark-soft); font-size: .92rem; min-height: 3em; }
.plan-price { margin: 1.4rem 0 1.2rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--rule-dark); }
.plan-price .amt {
  font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--mint);
  display: block;
}
.plan.featured .plan-price .amt { color: #fff; }
.plan-price .pre { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-faint); display: block; margin-bottom: .55rem; }
.plan-price .plan-note { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--on-dark-faint); display: block; margin-top: .55rem; }
.plan .checks { flex: 1; margin-bottom: 1.6rem; }
.plan .checks li { font-size: .9rem; }
.plan .btn { justify-content: center; width: 100%; }
.plan-for {
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-dark);
  font-size: .84rem; color: var(--on-dark-faint); line-height: 1.5;
}
.plan-for b { color: var(--mint-dim); font-weight: 600; }

.toggle-wrap { display: flex; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.toggle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(202,245,247,.06);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
}
.toggle button {
  padding: .62rem 1.3rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--on-dark-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.toggle button[aria-selected="true"] { background: var(--signal); color: var(--ink); }

/* ---------- 15. Accordion ---------- */
.acc { border-top: 1px solid var(--rule-dark); }
.light .acc, .paper .acc { border-top-color: var(--rule-light); }
.acc-item { border-bottom: 1px solid var(--rule-dark); }
.light .acc-item, .paper .acc-item { border-bottom-color: var(--rule-light); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; text-align: left;
  font-family: var(--display); font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 600; letter-spacing: -.018em;
  transition: color .25s var(--ease);
}
.acc-btn:hover { color: var(--mint); }
.light .acc-btn:hover, .paper .acc-btn:hover { color: var(--teal); }
.acc-sign {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.light .acc-sign, .paper .acc-sign { box-shadow: inset 0 0 0 1px var(--rule-light); }
.acc-sign svg { width: 12px; height: 12px; }
.acc-btn[aria-expanded="true"] .acc-sign { transform: rotate(45deg); background: var(--signal); color: var(--ink); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-btn[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: 1.5rem; color: var(--on-dark-soft); max-width: 72ch; }
.light .acc-panel p, .paper .acc-panel p { color: var(--on-light-soft); }

/* ---------- 16. Articles ---------- */
.post {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden; height: 100%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-light), var(--shadow-lift);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(17,103,106,.26), var(--shadow-pop); }
.post-top {
  padding: 1.5rem 1.5rem 1.2rem;
  background: linear-gradient(150deg, var(--deep), var(--teal));
  color: var(--on-dark);
  position: relative;
  min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.post-top::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(202,245,247,.16) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: .7;
}
.post-top > * { position: relative; z-index: 1; }
.post-cat {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--mint);
}
.post-date { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: rgba(242,247,246,.6); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.post-body h3 { font-size: 1.15rem; line-height: 1.28; color: var(--on-light); }
.post-body p { font-size: .92rem; color: var(--on-light-soft); flex: 1; }

/* ---------- 17. Form ---------- */
.form-card {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-light), var(--shadow-pop);
  color: var(--on-light);
}
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.05rem; }
.field label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 500;
}
.field label .req { color: var(--signal-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 13px;
  border: 1px solid var(--rule-light);
  background: #fbfaf6;
  color: var(--on-light);
  font-size: .95rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17,103,106,.12);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(8,38,40,.35); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2311676a' stroke-width='1.8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 11px;
  padding-right: 2.6rem;
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form-note { font-size: .82rem; color: var(--on-light-soft); margin-top: .9rem; }
.form-ok {
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 13px;
  background: rgba(46,212,122,.12);
  box-shadow: inset 0 0 0 1px rgba(46,212,122,.35);
  color: #0d6b3c; font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; gap: .6rem;
}
.form-ok .tick { color: var(--signal-dim); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d4553f; box-shadow: 0 0 0 3px rgba(212,85,63,.1); }
.field .err { font-size: .78rem; color: #c2452f; display: none; }
.field.invalid .err { display: block; }

/* ---------- 18. Contact aside ---------- */
.contact-line {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.contact-line .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(46,212,122,.12); color: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(46,212,122,.24);
}
.contact-line .ico svg { width: 17px; height: 17px; }
.contact-line b { display: block; font-size: .95rem; font-weight: 600; }
.contact-line span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-faint); }

/* ---------- 19. CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.6rem, 5vw, 4rem);
  background:
    radial-gradient(760px 440px at 82% 12%, rgba(46,212,122,.24), transparent 62%),
    linear-gradient(145deg, var(--teal) 0%, var(--deep) 62%, var(--ink) 100%);
  box-shadow: inset 0 0 0 1px rgba(202,245,247,.2), 0 32px 80px rgba(0,0,0,.3);
  color: var(--on-dark);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(202,245,247,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lead { color: rgba(242,247,246,.78); margin: 1.2rem auto 2rem; max-width: 56ch; }
.cta .row { justify-content: center; }
.cta-mini {
  margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap;
  gap: .7rem 1.8rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .13em; text-transform: uppercase; color: rgba(242,247,246,.6);
}
.cta-mini span { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- 20. Footer ---------- */
.foot { background: var(--ink); padding-top: clamp(3.5rem, 7vw, 6rem); position: relative; }
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-dark) 20%, rgba(46,212,122,.4) 50%, var(--rule-dark) 80%, transparent);
}
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(1.6rem, 3.5vw, 3rem); }
.foot-brand img { height: 52px; margin-bottom: 1.4rem; }
.foot-brand p { color: var(--on-dark-soft); font-size: .92rem; max-width: 34ch; }
.foot h4 {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--mint-dim); font-weight: 500; margin-bottom: 1.1rem;
}
.foot ul { display: flex; flex-direction: column; gap: .62rem; }
.foot ul a { font-size: .9rem; color: var(--on-dark-soft); transition: color .22s var(--ease); }
.foot ul a:hover { color: var(--mint); }


.foot-base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--on-dark-faint);
}
.foot-base a { color: var(--on-dark-soft); }
.foot-base a:hover { color: var(--mint); }
.foot-base .row { gap: 1.4rem; }

/* ---------- 21. Page hero (inner pages) ---------- */
.phero {
  position: relative; overflow: hidden;
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(760px 460px at 72% 0%, rgba(17,103,106,.5), transparent 64%),
    var(--ink);
}
.phero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(760px 520px at 60% 20%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(760px 520px at 60% 20%, #000, transparent 76%);
  opacity: .5;
}
.phero > * { position: relative; z-index: 1; }
.phero .lead { margin-top: 1.4rem; }
.phero .row { margin-top: 2rem; }

.crumbs {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-faint); margin-bottom: 1.3rem;
}
.crumbs a { color: var(--mint-dim); }
.crumbs a:hover { color: var(--mint); }
.crumbs svg { width: 10px; height: 10px; opacity: .5; }

/* ---------- 22. Misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .9rem; border-radius: 999px;
  background: rgba(202,245,247,.07);
  box-shadow: inset 0 0 0 1px var(--rule-dark);
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dim);
}
.light .pill, .paper .pill {
  background: rgba(17,103,106,.07);
  box-shadow: inset 0 0 0 1px rgba(17,103,106,.16);
  color: var(--teal);
}
.pill .tick { color: var(--signal); }

.rule { height: 1px; background: var(--rule-dark); border: 0; }
.light .rule, .paper .rule { background: var(--rule-light); }

.to-top {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal); color: var(--ink);
  box-shadow: 0 12px 30px rgba(46,212,122,.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 17px; height: 17px; }

/* WhatsApp quick-chat floating action */
.wa-fab {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: calc(clamp(1rem, 2.5vw, 2rem) + 58px);
  z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  box-shadow: 0 12px 30px rgba(17,103,106,.4);
  transition: transform .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 21px; height: 21px; }

/* ---------- 23. Scroll reveal ---------- */
[data-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rise].seen { opacity: 1; transform: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
  .nav { padding: .45rem .45rem .45rem 1rem; }
  .brand img { height: 40px; }
  .masthead.pinned .brand img { height: 36px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .thread-wrap { order: -1; max-width: 390px; margin-inline: auto; }
  .hero-copy { max-width: 100%; }
  .split, .split-wide, .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule-dark); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .states { grid-template-columns: 1fr; gap: 2rem; }
  .states::before { display: none; }
  .sp-2, .sp-3, .sp-4 { grid-column: span 3; }
  .bento { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  :root { --band: 3.75rem; --t-micro: .66rem; }
  .tag { letter-spacing: .14em; flex-wrap: wrap; row-gap: .25rem; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .sp-2, .sp-3, .sp-4, .sp-6 { grid-column: span 1; }
  .stat-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule-dark); }
  .stat:last-child { border-bottom: 0; }
  .field-2 { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-actions, .cta .row, .phero .row { width: 100%; }
  .hero-actions .btn, .cta .row .btn, .phero .row .btn { flex: 1; justify-content: center; min-width: 170px; }
  .microstats { gap: 1.4rem; }
  .scenario-chip { left: 50%; transform: translateX(-50%); bottom: -14px; }
  .thread { min-height: 440px; }
  .foot-base { justify-content: flex-start; }
}

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rise] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- 26. Print ---------- */
@media print {
  .masthead, .drawer, .to-top, .wa-fab, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 27. Client logo wall ----------
   Supplied logos arrive on mixed grounds (white JPEGs, a black one, a navy
   one, transparent PNGs). Each tile carries its own --tile background so the
   artwork sits seamlessly: full-bleed where the logo has its own ground,
   contained with padding where it doesn't. */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.7rem, 1.4vw, 1.1rem);
}
.logo-tile {
  --tile: #ffffff;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: var(--tile);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.inky .logo-tile, .deep .logo-tile { box-shadow: inset 0 0 0 1px var(--rule-dark); }
.logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(17,103,106,.3), var(--shadow-lift);
}
.logo-tile img {
  /* Absolute fill: a percentage height would not resolve against the tile's
     content-sized grid row, so square artwork fell back to its intrinsic size. */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(.85rem, 2vw, 1.4rem);
  opacity: .92;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.logo-tile:hover img { opacity: 1; transform: scale(1.035); }
/* Logos that ship with their own background fill the tile edge to edge. */
.logo-tile.bleed img { object-fit: cover; padding: 0; }
/* Square artwork on its own ground: contain it (never crop the wordmark) and
   drop the padding — the matching tile colour hides the letterboxing. */
.logo-tile.own-bg img { object-fit: contain; padding: 0; }
/* Square artwork on white: tighten the padding so it isn't dwarfed by the tile. */
.logo-tile.sq img { padding: clamp(.3rem, .8vw, .55rem); }

/* A client without supplied artwork gets a matching name plate. */
.logo-tile.plate {
  font-family: var(--display);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--teal);
  text-align: center;
  padding: 1rem;
  line-height: 1.2;
}

@media (max-width: 860px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 28. Integration logos ----------
   Partner logos are almost all dark ink on transparent, so they need a light
   plate to sit on over the dark bands. Solumed ships a white wordmark, so it
   gets a deep-teal plate instead — same per-brand approach as the client wall. */
.logo-chip {
  --tile: #ffffff;
  position: relative;
  display: block;
  flex: none;
  width: clamp(132px, 13vw, 176px);
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  background: var(--tile);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(8,51,53,.1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.logo-chip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(.6rem, 1.4vw, .95rem) clamp(.85rem, 1.8vw, 1.25rem);
  opacity: .9;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.logo-chip:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(46,212,122,.45), 0 14px 32px rgba(0,0,0,.28);
}
.logo-chip:hover img { opacity: 1; transform: scale(1.04); }

/* Logo plate inside an integration card on a dark band. */
.int-plate {
  --tile: #ffffff;
  position: relative;
  display: block;
  width: 152px;
  aspect-ratio: 16 / 6;
  border-radius: 12px;
  background: var(--tile);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(8,51,53,.1);
}
.int-plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .45rem .8rem;
}
.card:hover .int-plate { box-shadow: inset 0 0 0 1px rgba(46,212,122,.4); }

@media (max-width: 480px) {
  .logo-chip { width: 124px; }
  .int-plate { width: 132px; }
}

/* Very small screens: keep the wordmark readable but let the burger breathe. */
@media (max-width: 420px) {
  .brand img,
  .masthead.pinned .brand img { height: 34px; }
  .nav { padding: .4rem .4rem .4rem .85rem; }
}

/* ---------- 29. CTA panel: force on-dark colours ----------
   A .cta sits inside a .light or .paper band but paints its own dark gradient,
   so the section-level light-text rules have to be reversed inside it.
   Specificity is deliberately higher than `.light h2` so order can't break it. */
.light .cta h1, .light .cta h2, .light .cta h3, .light .cta h4,
.paper .cta h1, .paper .cta h2, .paper .cta h3, .paper .cta h4 {
  color: var(--on-dark);
}
.light .cta .lead, .paper .cta .lead { color: rgba(242, 247, 246, .78); }
.light .cta p, .paper .cta p { color: rgba(242, 247, 246, .78); }

.light .cta .tag, .paper .cta .tag { color: var(--mint-dim); }

.light .cta .pill, .paper .cta .pill {
  background: rgba(202, 245, 247, .12);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(202, 245, 247, .24);
}

.light .cta .btn-ghost, .paper .cta .btn-ghost {
  --btn-fg: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(202, 245, 247, .34);
}
.light .cta .btn-ghost:hover, .paper .cta .btn-ghost:hover {
  --btn-bg: rgba(202, 245, 247, .12);
  box-shadow: inset 0 0 0 1px rgba(202, 245, 247, .55);
}

.light .cta .checks li, .paper .cta .checks li { color: rgba(242, 247, 246, .78); }
.light .cta .link-arrow, .paper .cta .link-arrow { color: var(--mint); }
