/* ==========================================================================
   MARKHRiS — site stylesheet
   Plain CSS, no framework. Brand: #2f4ace (primary), #002366 (navy), #ffd700 (gold)
   Fonts: Montserrat (headings), Open Sans (body)
   ========================================================================== */

:root {
  --brand: #2f4ace;
  --brand-strong: #2238a8;
  --brand-soft: #eef1fd;
  --navy: #0b1638;
  --navy-2: #13204a;
  --gold: #ffd700;

  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, .06), 0 20px 48px rgba(0, 0, 0, .10);

  --header-h: 56px;
  --container: 1120px;
  --gutter: 22px;
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.25, .1, .25, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.022em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.site-nav a.nav-link {
  font-size: 14px; color: var(--ink-2); letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.site-nav a.nav-link:hover { color: var(--ink); text-decoration: none; }
.site-nav a.nav-link[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative; color: var(--ink);
}
.nav-toggle span {
  position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border-radius: 980px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-soft); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { min-height: 32px; padding: 6px 14px; font-size: 13px; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translate(3px, -1px); }

.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.actions.center { justify-content: center; }

/* ---------- Sections & type ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #d9def0; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.section-dark .eyebrow { color: #8fa2ff; }

.headline { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
.headline.headline-md { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; }
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .headline + .lede { margin-top: 18px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); margin: 0; }
.section-dark .lede { color: #b4bdd8; }
.text-muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.hero .hero-product {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -0.01em;
  margin-bottom: 12px; color: var(--ink);
}
.hero .hero-product .plus { color: var(--brand); padding: 0 .15em; }
.hero .lede { max-width: 640px; margin: 22px auto 0; }
.hero .actions { margin-top: 34px; }
.hero-media {
  margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1200px; padding: 0 var(--gutter);
}
.hero-media img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 42%;
  border-radius: var(--radius-lg);
}
.gradient-text {
  background: linear-gradient(100deg, var(--navy) 0%, var(--brand) 55%, #5b74ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Product promo tiles ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-start; text-align: center; align-items: center;
}
.promo h3 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; margin-bottom: 10px; }
.promo p { max-width: 420px; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.promo .actions { margin-top: auto; padding-top: 24px; justify-content: center; }
.promo-light { background: var(--bg-alt); }
.promo-dark { background: radial-gradient(120% 90% at 50% 0%, #1d2f7a 0%, var(--navy) 60%); color: #fff; }
.promo-dark h3 { color: #fff; }
.promo-dark p { color: #c4cbe3; }
.promo-dark .link-arrow { color: #a9b8ff; }
.promo .promo-tag { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.promo-dark .promo-tag { color: #9aa6cc; }
.promo .promo-icon { width: 56px; height: 56px; margin-bottom: 20px; color: var(--brand); }
.promo-dark .promo-icon { color: #8fa2ff; }

/* ---------- Feature cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px 32px;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.section:not(.section-alt):not(.section-dark) .card { background: var(--bg-alt); box-shadow: none; }
.section:not(.section-alt):not(.section-dark) .card:hover { box-shadow: none; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.icon-badge svg, .icon svg { width: 26px; height: 26px; }
.icon { display: inline-flex; color: var(--brand); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 26px; margin: 8px 0;
  font-size: 15.5px; line-height: 1.5; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); transform-origin: center;
}

/* dark cards */
.section-dark .card { background: var(--navy-2); box-shadow: none; border: 1px solid rgba(255, 255, 255, .07); }
.section-dark .card:hover { box-shadow: none; border-color: rgba(143, 162, 255, .35); }
.section-dark .card p, .section-dark .ticks li { color: #b9c1db; }
.section-dark .icon-badge { background: rgba(143, 162, 255, .14); color: #a9b8ff; }
.section-dark .ticks li::before { border-color: #8fa2ff; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy .headline { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 22px; }
.split-copy p { color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.split-copy .actions { margin-top: 28px; }

/* ---------- Compact feature list (icon rows) ---------- */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.feature-list .item h3 { font-size: 19px; font-weight: 700; margin: 16px 0 8px; letter-spacing: -0.01em; line-height: 1.3; }
.feature-list .item p { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0; }
.feature-list .icon svg { width: 34px; height: 34px; }

/* ---------- Flow (better together) ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; margin-bottom: clamp(48px, 6vw, 72px); }
.flow-step {
  background: var(--bg-alt); border-radius: var(--radius); padding: 30px 28px; text-align: center;
}
.flow-step.is-accent { background: var(--brand); color: #fff; }
.flow-step.is-accent h3, .flow-step.is-accent .flow-label { color: #fff; }
.flow-step.is-accent p { color: #dfe5ff; }
.flow-step .flow-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.flow-step h3 { font-size: 22px; margin-bottom: 10px; }
.flow-step p { font-size: 15.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.flow-arrow { display: grid; place-items: center; color: var(--line); }
.flow-arrow svg { width: 28px; height: 28px; }

/* ---------- Stats / highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.highlight { border-top: 1px solid var(--line); padding-top: 22px; }
.highlight h3 { font-size: 20px; margin-bottom: 6px; line-height: 1.3; }
.highlight p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-title {
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--font-head); font-size: clamp(17px, 1.8vw, 19px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.4;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer .ticks { margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.contact-card h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 18px 0 10px;
}
.contact-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .headline { margin-bottom: 18px; }
.cta-band .lede { max-width: 620px; margin: 0 auto; }
.cta-band .actions { margin-top: 32px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -0.03em; }
.page-hero .lede { max-width: 720px; margin: 20px auto 0; }
.page-hero .actions { margin-top: 32px; }
.page-hero-dark {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.page-hero-dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 56, .55) 0%, rgba(11, 22, 56, .85) 100%); }
.page-hero-dark > * { position: relative; }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .lede { color: #d0d6ea; }

/* ---------- Local (product) sub-nav ---------- */
.local-nav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
html:has(.local-nav) { scroll-padding-top: calc(var(--header-h) + 52px + 16px); }
.local-nav .container { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 20px; max-width: 1200px; }
.local-nav .title { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.local-nav .title:hover { text-decoration: none; }
.local-nav nav { display: flex; align-items: center; gap: 22px; }
.local-nav nav ul { list-style: none; display: flex; gap: 22px; }
.local-nav nav a:not(.btn) { font-size: 13px; color: var(--ink-2); }
.local-nav nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.local-nav nav a.is-active { color: var(--brand); }

/* ---------- Module pills ---------- */
.module-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.module-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 980px;
  background: #fff; border: 1px solid var(--line-soft); color: var(--ink);
  font-weight: 600; font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.module-pill:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 6px 18px rgba(47, 74, 206, .12); }
.module-pill .icon svg { width: 22px; height: 22px; }

/* ---------- Module detail blocks ---------- */
.module + .module { margin-top: clamp(80px, 11vw, 140px); }
.module .split-copy .ticks li { font-size: 16.5px; margin: 10px 0; }
.module .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(36px, 5vw, 72px); }
.module .split.reverse { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.module-num { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; display: block; }

/* ---------- Screenshot placeholders (TODO) ---------- */
.shot-todo {
  position: relative; border-radius: var(--radius-lg); aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(47, 74, 206, .06), rgba(47, 74, 206, .02)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(47, 74, 206, .035) 14px 28px),
    var(--bg-alt);
  border: 2px dashed rgba(47, 74, 206, .35);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--brand); font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.shot-todo.wide { aspect-ratio: 16 / 9; }
.shot-todo small { display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.section-dark .shot-todo { background: var(--navy-2); border-color: rgba(143, 162, 255, .45); color: #a9b8ff; }

/* ---------- Device frames (product screenshots) ---------- */
.device-stage { position: relative; isolation: isolate; }
.device-stage::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 6% -4%;
  background: radial-gradient(60% 60% at 50% 45%, rgba(47, 74, 206, .28), rgba(47, 74, 206, 0) 70%);
  filter: blur(30px);
}
.section-dark .device-stage::before { background: radial-gradient(60% 60% at 50% 45%, rgba(110, 135, 255, .35), rgba(110, 135, 255, 0) 70%); }
.device-browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 40px -12px rgba(16, 24, 64, .25), 0 40px 90px -30px rgba(16, 24, 64, .35);
}
.section-dark .device-browser { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px rgba(0, 0, 0, .6); }
.device-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: linear-gradient(#f7f7f9, #eeeef2); border-bottom: 1px solid #e3e3e8;
}
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4da; display: block; }
.device-bar i:nth-child(1) { background: #ff5f57; } .device-bar i:nth-child(2) { background: #febc2e; } .device-bar i:nth-child(3) { background: #28c840; }
.device-bar span {
  margin: 0 auto; transform: translateX(-24px); min-width: 40%; text-align: center;
  font-size: 12px; color: var(--muted); background: #fff; border: 1px solid #e3e3e8; border-radius: 7px; padding: 3px 14px; line-height: 1.4;
}
.device-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.device-phone {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 46px; padding: 11px; background: #15161a;
  box-shadow: inset 0 0 0 2px #3a3b40, 0 30px 70px -20px rgba(16, 24, 64, .45), 0 0 0 1px rgba(0, 0, 0, .2);
}
.device-phone::before { /* camera island */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 24px; border-radius: 14px; background: #000; z-index: 2;
}
.device-phone .screen { border-radius: 36px; overflow: hidden; background: #fff; padding-top: 11%; }
.device-phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.device-stack { position: relative; padding-right: 9%; padding-bottom: 6%; }
.device-stack .device-phone { position: absolute; right: 0; bottom: 0; width: 23%; max-width: 230px; border-radius: 34px; padding: 8px; }
.device-stack .device-phone::before { top: 14px; height: 17px; }
.device-stack .device-phone .screen { border-radius: 27px; }
.shot-caption { margin: 18px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.section-dark .shot-caption { color: #8f9abd; }
@media (max-width: 640px) {
  .device-bar { height: 24px; padding: 0 10px; gap: 5px; }
  .device-bar i { width: 7px; height: 7px; }
  .device-bar span { display: none; }
  .device-browser { border-radius: 10px; }
  .device-stack .device-phone { border-radius: 22px; padding: 5px; }
  .device-stack .device-phone::before { top: 9px; height: 10px; }
  .device-stack .device-phone .screen { border-radius: 18px; }
}

/* ---------- Legal / long-form pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; padding-right: 8px; }
.legal-toc p { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-soft); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.legal-toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--ink); }
.legal-toc a.is-active { color: var(--brand); border-left-color: var(--brand); }
.legal-toc-mobile { display: none; margin-bottom: 32px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.legal-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px; }
.legal-toc-mobile ol { margin: 0; padding: 0 18px 14px 38px; font-size: 15px; line-height: 1.9; }
.legal-toc-mobile a { color: var(--ink-2); }

.prose { max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose h2 {
  font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.015em; color: var(--ink);
  margin: 56px 0 16px; padding-top: 8px; line-height: 1.3;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.legal-updated {
  display: inline-block; font-size: 14px; color: var(--muted);
  background: var(--bg-alt); border-radius: 980px; padding: 6px 14px; margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--muted); font-size: 13px; line-height: 1.6; padding: 56px 0 28px; border-top: 1px solid var(--line-soft); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; margin: 0; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin: 0 0 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > :nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-visible > :nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-visible > :nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > :nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-visible > :nth-child(6) { transition-delay: .40s; }
.js .reveal-stagger.is-visible > :nth-child(n+7) { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 900px) {
  /* mobile navigation */
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 18px 40px 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed panel */
  .nav-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav a.nav-link { display: block; padding: 16px 0; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
  .site-nav .btn { margin-top: 28px; align-self: flex-start; min-height: 44px; padding: 11px 22px; font-size: 16px; }

  .local-nav nav ul { display: none; }

  .split, .promo-grid, .module .split, .module .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  .highlights { grid-template-columns: 1fr; gap: 0; }
  .highlight { padding: 20px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-toc-mobile { display: block; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .card-grid, .card-grid.cols-2, .feature-list { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .promo { min-height: 0; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .split-media img, .shot-todo { border-radius: var(--radius); }
  .actions:not(.keep-inline) { flex-direction: column; align-items: stretch; }
  .actions:not(.keep-inline) .btn { width: 100%; }
  .actions .link-arrow { justify-content: center; }
  .faq .answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .site-nav { padding: 12px 24px 32px; }
  .local-nav .btn { padding: 6px 12px; }
}
