/* ==========================================================================
   Fugen ERP — marketing site
   An engineering-document aesthetic: ink navy, paper white, one green accent,
   hairline rules, monospace labels, editorial type scale. No gradients,
   no glow, no stock-photo softness.
   ========================================================================== */

:root {
  --ink: #0b1a20;
  --ink-2: #123039;
  --ink-3: #2a4a54;
  --paper: #f7f6f2;
  --paper-2: #efeee8;
  --white: #ffffff;
  --line: #d9d7cf;
  --line-strong: #b9b7ad;
  --muted: #5f6b70;
  --accent: #1e6f5c;
  --accent-dark: #145445;
  --accent-soft: #e4efe9;
  --amber: #b06a15;
  --red: #a3342a;
  --radius: 4px;
  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* clip, not hidden: hidden would make the page a scroll container and break sticky */
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.021em; line-height: 1.12; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); line-height: 1.16; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; }

::selection { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- structure */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.wrap-mid { max-width: 1120px; }

@media (min-width: 1800px) { :root { --maxw: 1560px; } }

section { position: relative; }
.section { padding: clamp(56px, 8vw, 116px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-dark { background: var(--ink); color: #e8eceb; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-dark .rule { background: #1f3b44; }

/* eyebrow / label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section-dark .eyebrow { color: #7fd0b6; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 62ch; }
.section-dark .lede { color: #a9bcc0; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > *, .post-layout > *, .grid > * { min-width: 0; }
.prose { min-width: 0; overflow-wrap: anywhere; max-width: 76ch; }
.split-top { align-items: start; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* any dark surface needs the outline button in light ink, or it disappears */
.section-dark .btn-ghost, .hero .btn-ghost, .cta-band .btn-ghost, .card-invert .btn-ghost,
.card-dark .btn-ghost, .roi-output .btn-ghost { color: #fff; border-color: #33555e; }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover, .cta-band .btn-ghost:hover, .card-invert .btn-ghost:hover,
.card-dark .btn-ghost:hover, .roi-output .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .link-arrow { color: #7fd0b6; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  font-weight: 550;
  font-size: 15px;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid transparent;
  transition: gap .16s ease, border-color .16s ease;
}
.link-arrow::after { content: "→"; font-family: var(--mono); }
.link-arrow:hover { gap: 12px; border-color: currentColor; }
.section-dark .link-arrow { color: #7fd0b6; }

/* -------------------------------------------------------------------- header */

.topbar {
  background: var(--ink);
  color: #cfe0dc;
  font-size: 13px;
  border-bottom: 1px solid #1c3941;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar-news { display: flex; align-items: center; gap: 10px; margin: 0; }
.topbar-contact { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 100px; color: #cfe0dc; border: 1px solid transparent;
  font-family: var(--mono); font-size: 12.6px; letter-spacing: .02em; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.topbar-contact a:hover { background: #16333c; border-color: #24424b; color: #fff; }
.topbar-contact a.wa:hover { background: #14584a; border-color: #1c7a63; }
.topbar-contact svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
@media (max-width: 860px) {
  .topbar-news { display: none; }
  .topbar .wrap { padding: 0 14px; }
  /* the pills are a nested flex row of their own: without this they run off the
     side of the phone and the email address gets cut in half */
  .topbar-contact { margin: 0 auto; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
  .topbar-contact a { padding: 5px 8px; font-size: 12px; }
}
@media (max-width: 660px) {
  .topbar-contact { padding: 3px 0; }
  .topbar-contact a { font-size: 11.7px; gap: 6px; padding: 4px 7px; }
  /* both numbers stay spelled out; the rest shrink to their icons, and the
     action bar at the bottom of the screen already carries WhatsApp */
  .topbar-contact a[href^="mailto"] span { display: none; }
  .topbar-contact a.wa { display: none; }
}
.topbar a { color: #8ad9bf; border-bottom: 1px solid transparent; }
.topbar a:hover { border-color: currentColor; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: #8ad9bf; flex: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 78px; max-width: 100%; }
.masthead { overflow-x: clip; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.02em; font-size: 17.5px; }
.brand-logo { height: 46px; width: auto; }
/* the wordmark is dark ink, so on the dark footer it sits on a white plate */
.brand-plate {
  background: #fff; border-radius: 8px; padding: 14px 20px;
  display: inline-flex; align-self: flex-start;
}
.brand-plate img { height: 44px; width: auto; }
@media (max-width: 1080px) { .brand-logo { height: 40px; } }
@media (max-width: 480px) {
  .brand-logo { height: 32px; }
  .brand-plate { padding: 11px 14px; }
  .brand-plate img { height: 34px; }
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 5px; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: -0.03em;
}
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 2px; font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > * { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; color: var(--ink-3);
  transition: color .14s ease, background .14s ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(11,26,32,.05); }
.nav-link.is-active { color: var(--accent-dark); }
.nav-link .chev { font-size: 10px; opacity: .55; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.nav-phone {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-3);
  padding: 6px 2px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-phone:hover { color: var(--accent-dark); border-color: currentColor; }
@media (max-width: 1300px) { .nav-phone { display: none; } }
@media (max-width: 1080px) { .nav-phone { display: block; text-align: center; padding: 10px 0; } }

.mega {
  position: fixed; top: auto; left: 50%; transform: translateX(-50%) translateY(-6px);
  margin-top: 10px;
  width: min(880px, calc(100vw - 32px));
  max-height: min(70vh, 620px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px; opacity: 0; visibility: hidden;
  /* closing waits a moment, so the pointer has time to travel into the panel */
  transition: opacity .16s ease .1s, transform .16s ease .1s, visibility 0s linear .26s;
  box-shadow: 0 18px 40px -28px rgba(11,26,32,.35);
}
.mega.right { left: auto; right: max(16px, calc((100vw - var(--maxw)) / 2 + var(--gutter))); transform: translateY(-6px); }

/* an invisible bridge across the gap, so hover is never broken between them */
.has-mega::after {
  content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 18px; pointer-events: none;
}
.has-mega:hover::after, .has-mega.open::after { pointer-events: auto; }

.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition-delay: 0s, 0s, 0s;
}
.has-mega:hover .mega.right, .has-mega:focus-within .mega.right, .has-mega.open .mega.right { transform: translateY(0); }
.mega:hover { opacity: 1; visibility: visible; transition-delay: 0s, 0s, 0s; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 26px; }
.mega-item { display: block; padding: 10px 12px; border-radius: var(--radius); transition: background .14s ease; }
.mega-item:hover { background: var(--paper-2); }
.mega-item strong { display: block; font-size: 14.5px; font-weight: 600; }
.mega-item span { display: block; font-size: 12.8px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mega-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mega-note { font-size: 12.8px; color: var(--muted); max-width: 46ch; }

.burger { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; position: relative; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; content: "";
}
.burger span::before { position: absolute; top: -5px; }
.burger span::after { position: absolute; top: 5px; }

@media (max-width: 1240px) {
  .nav-link { padding: 9px 8px; font-size: 14.4px; }
  .nav-actions { gap: 7px; }
}

@media (max-width: 1080px) {
  /* the drawer itself is defined further down, with the rest of its behaviour */
  .burger { display: block; }
}

/* --------------------------------------------------------------------- hero */

.hero { background: var(--ink); color: #dfe7e6; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 88px 100%;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(52px, 8vw, 104px) 0 0; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lede { color: #a9bcc0; margin-top: 22px; font-size: clamp(1.06rem, 1.5vw, 1.26rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 13.4px; color: #8fa6ab; font-family: var(--mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; background: #7fd0b6; border-radius: 50%; }

.hero-shot { margin-top: clamp(38px, 5vw, 62px); }
.hero-strip { border-top: 1px solid #1f3b44; margin-top: clamp(34px, 5vw, 58px); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-strip .cell { padding: 22px 0 26px; border-right: 1px solid #1f3b44; }
.hero-strip .cell:last-child { border-right: 0; }
.hero-strip .cell:not(:first-child) { padding-left: 26px; }
.hero-strip .num { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; color: #fff; letter-spacing: -0.03em; }
.hero-strip .cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #7f989e; margin-top: 4px; }
@media (max-width: 760px) {
  .hero-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-strip .cell { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid #1f3b44; }
}

/* ------------------------------------------------------------ screen frames */

.frame {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  overflow: hidden;
}
.frame-dark { border-color: #2b4c55; background: #0e2229; }
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.frame-dark .frame-bar { background: #14282f; border-color: #24424b; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.frame-dark .frame-bar i { background: #2f5560; }
.frame-bar .url {
  margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame-dark .frame-bar .url { color: #7f989e; }
.frame img { display: block; width: 100%; }
.frame-caption { font-size: 13px; color: var(--muted); margin-top: 10px; font-family: var(--mono); }
.section-dark .frame-caption { color: #8fa6ab; }

/* -------------------------------------------------------------------- cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(20px, 2.4vw, 28px);
  transition: border-color .16s ease, transform .16s ease;
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
}
a.card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.card h3 { font-size: 1.14rem; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-index { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.card-foot { margin-top: auto; padding-top: 14px; }
.card-dark, .card-invert { background: #102630; border-color: #24424b; color: #dfe7e6; }
.card-invert { background: var(--ink); border-color: var(--ink); }
.card-invert h3, .card-dark h3 { color: #fff; }
.card-invert p, .card-invert .muted { color: #a9bcc0; }
.card-invert .card-index, .card-dark .card-index { color: #7fd0b6; }
.card-dark p { color: #a9bcc0; }

.icon-tile {
  width: 38px; height: 38px; border-radius: 6px; flex: none;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; color: var(--accent-dark);
}
.icon-tile svg { width: 19px; height: 19px; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 11px; font-size: 15.4px; line-height: 1.55; }
.tick-list li::before {
  content: ""; flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.section-dark .tick-list li::before { background: #1c4c42; border-color: #55b399; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 12.6px; font-family: var(--mono); letter-spacing: .04em; color: var(--ink-3);
  background: var(--white);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.section-dark .chip { background: #102630; border-color: #24424b; color: #a9bcc0; }

/* --------------------------------------------------------------- step lists */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { counter-increment: step; font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15.4px; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.8px; min-width: 620px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; background: var(--paper-2);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.yes { color: var(--accent-dark); font-weight: 600; }
table.data td.no { color: var(--line-strong); }

/* ------------------------------------------------------------------ pricing */

.price-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white);
}
.price-toggle button {
  border: 0; background: transparent; cursor: pointer; padding: 8px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 550; color: var(--muted); font-family: inherit;
}
.price-toggle button.on { background: var(--ink); color: #fff; }
.price-toggle .save { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-dark); padding-right: 12px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 7px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: 0 20px 40px -34px rgba(11,26,32,.5); }
.plan-flag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 100px; padding: 4px 10px; align-self: flex-start; margin-bottom: 12px;
}
.plan h3 { font-size: 1.28rem; }
.plan .aud { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.plan .amount { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; flex-wrap: wrap; }
.plan .amount b {
  font-size: clamp(2.9rem, 3.6vw, 3.5rem); font-weight: 620; letter-spacing: -0.045em;
  line-height: 1; color: var(--ink); display: inline-flex; align-items: flex-start;
}
.plan .amount .cur { font-size: .46em; font-weight: 600; margin: .12em .06em 0 0; letter-spacing: -0.02em; }
.plan .amount > span { font-size: 15px; color: var(--muted); font-weight: 500; }
/* the custom plan shows a word, not a figure, so it needs its own size */
.plan .amount b.word { font-size: clamp(2rem, 2.6vw, 2.5rem); letter-spacing: -0.03em; }
.plan.featured .amount b { color: var(--accent-dark); }
.plan .billed { font-size: 13.4px; color: var(--muted); min-height: 20px; }
.plan .billed .save { color: var(--accent-dark); font-weight: 600; }
.plan .summary { font-size: 14.6px; color: var(--muted); margin: 14px 0 18px; }
.plan .tick-list { margin: 4px 0 22px; }
.plan .tick-list li { font-size: 14.4px; }
.plan .cta { margin-top: auto; }

/* ---------------------------------------------------------------- accordion */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-size: 17px; font-weight: 550; line-height: 1.4;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 6px; top: 17px;
  font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1;
}
.acc details[open] summary::after { content: "–"; }
.acc .answer { padding: 0 44px 22px 0; color: var(--muted); font-size: 15.6px; }
.acc .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- blog */

.post-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.post-card .thumb { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 9; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-meta .cat { color: var(--accent-dark); }
.post-card h3 { font-size: 1.18rem; line-height: 1.28; }
.post-card p { font-size: 14.8px; color: var(--muted); margin: 0; }

.post-hero { border-bottom: 1px solid var(--line); }
.prose { font-size: 17.6px; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: clamp(1.14rem, 1.7vw, 1.32rem); margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--accent-dark); border-bottom: 1px solid rgba(30,111,92,.35); }
.prose a:hover { border-color: var(--accent-dark); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.15em; color: var(--ink-2);
}
.prose code {
  font-family: var(--mono); font-size: .88em; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.4px; display: block; overflow-x: auto; }
.prose img { border-radius: 6px; border: 1px solid var(--line); }
.prose pre { overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.toc { border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 20px 22px; }
.toc h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: 14.6px; }
.toc li + li { margin-top: 7px; }
.toc a { color: var(--ink-3); }
.toc a:hover { color: var(--accent-dark); }

.takeaways { border: 1px solid var(--accent); border-left-width: 3px; border-radius: 6px; background: var(--accent-soft); padding: 22px 24px; }
.takeaways h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }

.sidebar-sticky { position: sticky; top: 92px; align-self: start; display: grid; gap: 18px; max-height: calc(100vh - 110px); overflow-y: auto; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(30px, 5vw, 72px); align-items: start; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .sidebar-sticky { position: static; } }

/* ------------------------------------------------------------------ generic */

.crumbs { font-family: var(--mono); font-size: 11.8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 9px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs span { opacity: .5; }

.page-head { padding: clamp(38px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--white); }
.page-head h1 { max-width: 24ch; }
.page-head .lede { margin-top: 18px; }

.cta-band { background: var(--ink); color: #dfe7e6; }
.cta-band h2 { color: #fff; max-width: 26ch; }
.cta-band .lede { color: #a9bcc0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; padding: clamp(40px, 6vw, 76px) 0; }
.cta-band .link-arrow { color: #7fd0b6; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15.4px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field .err { color: var(--red); font-size: 13px; }
.form-note { font-size: 13.4px; color: var(--muted); }

.alert { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 16px 18px; font-size: 15.4px; color: var(--accent-dark); }

.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.pager a, .pager span {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 13px; background: var(--white); color: var(--ink-3);
}
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------- footer */

.footer { background: var(--ink); color: #93aab0; padding: clamp(48px, 6vw, 78px) 0 34px; font-size: 14.6px; }
.footer a { color: #c2d3d3; }
.footer a:hover { color: #fff; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f8a91; margin-bottom: 14px; font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .brand { color: #fff; }
.footer .brand-mark { background: #fff; color: var(--ink); }
.footer .brand-sub { color: #6f8a91; }
.footer-blurb { margin: 16px 0 18px; max-width: 34ch; color: #93aab0; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #1f3b44;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.4px;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ------------------------------------------------------------------ helpers */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 44px; }
.mb-2 { margin-bottom: 20px; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 13.6px; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .topbar, .footer, .cta-band, .nav-actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}


/* ------------------------------------------------------------- product tour */

.tour { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tour-rail { display: grid; gap: 2px; max-height: 640px; overflow-y: auto; padding-right: 6px; }
.tour-tab {
  display: flex; gap: 12px; align-items: baseline; text-align: left; width: 100%;
  padding: 12px 14px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; cursor: pointer; font-family: inherit; font-size: 14.6px; color: var(--ink-3);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.tour-tab:hover { background: var(--white); border-color: var(--line); color: var(--ink); }
.tour-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour-tab .num { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; opacity: .7; flex: none; }
.tour-tab.on .num { color: #7fd0b6; opacity: 1; }
.tour-tab .label { line-height: 1.35; }

.tour-stage { min-width: 0; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tour-panel[hidden] { display: none; }
.tour-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.tour-dots { display: flex; gap: 7px; }
.tour-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.tour-dots .dot.on { background: var(--accent); transform: scale(1.25); }

@media (max-width: 1000px) {
  .tour { grid-template-columns: 1fr; }
  .tour-rail { grid-auto-flow: column; grid-auto-columns: minmax(190px, auto); overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .tour-panel { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- payback calculator */

.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.roi-inputs, .roi-output {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 2.6vw, 30px);
}
.roi-inputs .field { margin-bottom: 20px; }
.roi-inputs label { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14.6px; font-weight: 550; margin-bottom: 8px; }
.roi-inputs .hint { font-family: var(--mono); font-size: 13px; color: var(--accent-dark); font-weight: 500; white-space: nowrap; }
.roi-inputs input[type=range] { width: 100%; accent-color: var(--accent); height: 22px; }
.roi-output {
  background: var(--ink); border-color: var(--ink); color: #cfdcd9;
  position: sticky; top: 96px; align-self: start;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.roi-output .eyebrow { color: #7fd0b6; }
.roi-big { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 600; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.roi-output table.data { background: transparent; font-size: 14.4px; }
.roi-output table.data td { border-color: #24424b; color: #cfdcd9; padding: 11px 0; }
.roi-output .right-align { text-align: right; font-family: var(--mono); color: #fff; }
.roi-cta { display: grid; gap: 10px; margin-top: 22px; }
.roi-assumptions { margin-top: 18px; border-top: 1px solid #24424b; padding-top: 14px; }
.roi-assumptions summary { cursor: pointer; font-size: 14px; color: #7fd0b6; }
.roi-assumptions .tick-list li { font-size: 13.8px; color: #a9bcc0; }
.roi-assumptions .tick-list li::before { background: #1c4c42; border-color: #55b399; }
@media (max-width: 960px) { .roi { grid-template-columns: 1fr; } .roi-output { position: static; } }

/* ------------------------------------------------------------- plan finder */

.finder { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 2.6vw, 30px); }
.finder-q { display: grid; gap: 10px; margin-bottom: 20px; }
.finder-q > span { font-size: 14.6px; font-weight: 550; }
.finder-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-opts label {
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 8px 15px; cursor: pointer;
  font-size: 14px; background: var(--white); transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.finder-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.finder-opts label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder-opts input:checked + span { color: #fff; }
.finder-opts label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-result { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.finder-result b { font-size: 1.15rem; }

/* --------------------------------------------------- article reading progress */

.read-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 80; transition: width .12s linear; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------- phone action bar */

.action-bar { display: none; }
@media (max-width: 720px) {
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(11, 26, 32, .96); backdrop-filter: blur(8px);
    border-top: 1px solid #1f3b44;
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px; border-radius: 5px; font-size: 13.6px; font-weight: 550;
    background: #17313a; color: #fff; border: 1px solid #24424b;
  }
  .action-bar a.primary { background: var(--accent); border-color: var(--accent); }
  body { padding-bottom: 74px; }
}


/* -------------------------------------------------- reading and navigation UX */

/* anchor targets must clear the sticky masthead, or the heading hides under it */
h2[id], h3[id], section[id], .step[id], .tour-panel[id] { scroll-margin-top: 104px; }

/* keyboard users get a visible ring everywhere, not just in forms */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* the contents list follows the reader down the page */
.toc a.on, .sidebar-sticky .tick-list a.on { color: var(--accent-dark); font-weight: 600; }

/* a way back up from the long pages */
.to-top {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 65;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  box-shadow: 0 10px 26px -18px rgba(11,26,32,.6);
}
.to-top.on { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.to-top svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 720px) { .to-top { bottom: 84px; } }


/* ============================================================== scrollbars */

* { scrollbar-width: thin; scrollbar-color: rgba(11, 26, 32, .22) transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(11, 26, 32, .22);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(11, 26, 32, .38); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* on dark surfaces the same bar, inverted */
.section-dark, .hero, .cta-band, .footer, .roi-output, .card-dark, .card-invert, .topbar {
  scrollbar-color: rgba(255, 255, 255, .24) transparent;
}
.section-dark ::-webkit-scrollbar-thumb, .hero ::-webkit-scrollbar-thumb,
.roi-output::-webkit-scrollbar-thumb, .footer ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .24); background-clip: content-box;
}
.section-dark ::-webkit-scrollbar-thumb:hover, .hero ::-webkit-scrollbar-thumb:hover,
.roi-output::-webkit-scrollbar-thumb:hover, .footer ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .4); background-clip: content-box;
}

/* the small inner panes deserve an even lighter bar */
.sidebar-sticky::-webkit-scrollbar, .mega::-webkit-scrollbar, .tour-rail::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar, .prose table::-webkit-scrollbar { width: 8px; height: 8px; }

/* ================================================================ hero art */

.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .5;
}
.hero-art .line { fill: none; stroke: #2f6f60; stroke-width: 1.2; stroke-linecap: round; opacity: .55; }
.hero-art .line-soft { stroke: #24505c; opacity: .35; }
.hero-art .node { fill: #0e2229; stroke: #3c7f6d; stroke-width: 1.2; }
.hero-art .node-core { fill: #55b399; }
.hero-art .flow {
  fill: none; stroke: #7fd0b6; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 12 260; opacity: .9;
  animation: flow 9s linear infinite;
}
.hero-art .flow.b { animation-delay: 3s; stroke: #4fbfa0; }
.hero-art .flow.c { animation-delay: 6s; stroke: #a7e6d3; }
.hero-art .pulse { animation: pulse 4.5s ease-in-out infinite; transform-origin: center; }
.hero-art .pulse.b { animation-delay: 1.4s; }
.hero-art .pulse.c { animation-delay: 2.8s; }

@keyframes flow { from { stroke-dashoffset: 272; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

.hero-inner { position: relative; z-index: 1; }
.hero-rise { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.hero-rise-2 { animation-delay: .08s; }
.hero-rise-3 { animation-delay: .16s; }
.hero-rise-4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-shot { animation: rise .9s .18s cubic-bezier(.2, .7, .3, 1) both; }
.hero-shot .frame { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.hero-shot:hover .frame { transform: translateY(-4px); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #7f989e;
}
.scroll-cue i {
  width: 22px; height: 34px; border: 1px solid #2a5460; border-radius: 12px; position: relative; flex: none;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 2px;
  background: #7fd0b6; transform: translateX(-50%); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: 1; } 60% { transform: translate(-50%, 11px); opacity: .2; } }

/* ============================================================ mobile drawer */

.drawer-close, .drawer-contact { display: none; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(6, 16, 20, .55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; z-index: 58;
}
body.nav-open .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  /* backdrop-filter makes the header a containing block, which would trap the
     fixed drawer inside the 68px header — so it goes on phones */
  .masthead { backdrop-filter: none; background: var(--paper); }

  .masthead .nav, .masthead.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(420px, 88vw); max-height: 100vh; overflow-y: auto; z-index: 59;
    background: var(--white); border-left: 1px solid var(--line); border-bottom: 0;
    padding: 74px 20px calc(28px + env(safe-area-inset-bottom));
    transform: translateX(103%); transition: transform .26s cubic-bezier(.2, .7, .3, 1);
    box-shadow: -24px 0 60px -40px rgba(11, 26, 32, .5);
  }
  .masthead.open .nav { transform: translateX(0); }

  .masthead .nav > .has-mega, .masthead .nav > .nav-link { border-bottom: 1px solid var(--line); }
  .masthead .nav .nav-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 4px; font-size: 16.5px; font-weight: 550; color: var(--ink); border-radius: 0;
  }
  .masthead .nav .nav-link:hover { background: transparent; }
  .masthead .nav .chev { font-size: 13px; opacity: .5; transition: transform .2s ease; }
  .has-mega.open .chev { transform: rotate(180deg); }

  /* the panels collapse instead of hovering */
  .masthead .mega {
    position: static; width: auto; max-height: 0; overflow: hidden; opacity: 1; visibility: visible;
    transform: none; border: 0; box-shadow: none; padding: 0; background: transparent;
    transition: max-height .28s ease, padding .28s ease;
  }
  /* stronger than the hover rules above, which still carry the centring transform */
  .masthead .has-mega .mega, .masthead .has-mega.open .mega {
    position: static; transform: none; left: auto; right: auto; width: auto;
  }
  .masthead .has-mega.open .mega { max-height: 1200px; padding: 2px 0 14px; overflow-y: auto; }
  .masthead .mega-grid { grid-template-columns: 1fr; gap: 2px; }
  .masthead .mega-item { padding: 11px 12px; border-radius: 6px; background: var(--paper); margin-bottom: 6px; }
  .masthead .mega-item span { font-size: 12.5px; }
  .masthead .mega-foot { display: none; }
  .has-mega::after { display: none; }

  .nav-actions { display: grid; gap: 10px; margin: 22px 0 0; }
  .nav-actions .btn { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }

  .drawer-contact { display: grid; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); gap: 10px; }
  .drawer-contact a { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-3); }
  .drawer-contact a svg { width: 16px; height: 16px; fill: var(--accent); flex: none; }

  .drawer-close {
    display: grid; position: sticky; top: 8px; z-index: 3; align-self: flex-end; margin: -58px -4px 8px 0;
    width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer;
    display: grid; place-items: center; color: var(--ink);
  }
  .drawer-close svg { width: 16px; height: 16px; fill: currentColor; }
  .burger { display: grid; place-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .flow, .hero-art .pulse, .scroll-cue i::after { animation: none; }
  .hero-rise, .hero-shot { animation: none; }
}

/* ------------------------------------------------------- hero, second pass */

/* the headline gets one focal phrase */
.hero h1 .mark {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 .mark::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .06em;
  height: .09em; border-radius: 2px;
  background: linear-gradient(90deg, #2dd4a7, #1e6f5c);
  transform: scaleX(0); transform-origin: left;
  animation: underline .8s .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

/* the screenshot sits on a stage, lifted off the background */
.hero-stage { position: relative; }
.hero-glow {
  position: absolute; inset: -14% -10% -22% -10%;
  background: radial-gradient(60% 60% at 55% 40%, rgba(45, 212, 167, .16), rgba(45, 212, 167, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-stage .frame {
  position: relative;
  border-color: #2f5c66;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(127, 208, 182, .09);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* small facts that belong to the screen behind them */
.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 13px; border-radius: 8px;
  background: rgba(10, 27, 33, .92); border: 1px solid #2a5460;
  backdrop-filter: blur(6px);
  font-size: 12.6px; color: #a9bcc0; white-space: nowrap;
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .9);
  opacity: 0; animation: chip-in .7s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero-chip b { font-size: 15px; color: #fff; font-weight: 620; letter-spacing: -0.01em; }
.hero-chip.chip-a { top: 12%; left: -6%; animation-delay: .7s; }
.hero-chip.chip-b { bottom: 20%; left: -4%; animation-delay: .9s; }
.hero-chip.chip-c { bottom: 6%; right: -3%; animation-delay: 1.1s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .hero-chip.chip-a { left: 0; }
  .hero-chip.chip-b { display: none; }
  .hero-chip.chip-c { right: 0; }
}
@media (max-width: 620px) { .hero-chip { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-stage .frame { animation: none; }
  .hero-chip { opacity: 1; animation: none; }
  .hero h1 .mark::after { animation: none; transform: scaleX(1); }
}
