/* ==========================================================================
   OneHive Mail public design system
   Tokens → base → layout → components → sections → mockups → responsive.
   No inline styles anywhere (CSP style-src 'self'); widths/heights use classes.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Brand */
  --honey: #F6B40E;
  --honey-600: #D99A00;
  --honey-100: #FFF1C7;
  --honey-50: #FFF9EB;
  --ink: #1A1814;
  --ink-2: #3A362D;
  --muted: #625D52;
  --line: #E9E4D8;
  --line-2: #F1EDE3;
  --bg: #FFFFFF;
  --tint: #FBF8F1;
  --dark: #17150F;
  --dark-2: #221F17;
  --teal: #0F8F7E;
  --teal-100: #DDF4EF;
  --coral: #D9480F;
  --violet: #6D5BD0;
  --link: #8A5A00;
  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Shape */
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(26 24 20 / .06);
  --shadow: 0 1px 2px rgb(26 24 20 / .05), 0 8px 24px -8px rgb(26 24 20 / .12);
  --shadow-lg: 0 2px 4px rgb(26 24 20 / .04), 0 24px 60px -18px rgb(26 24 20 / .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.022em; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
h3, .h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line-2); }
.section-dark { background: var(--dark); color: #EDE8DC; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + .section-lead, .section-head h2 + p { margin-top: 16px; }
.section-lead { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-lead, .section-dark .split-copy > p { color: #BDB6A6; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.kicker-light { color: var(--honey); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { font-size: 1.08rem; color: var(--muted); margin-bottom: 24px; }
.split-visual { margin: 0; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.logo-mark { width: 34px; height: 34px; }
.logo-xs { width: 26px; height: 26px; }

/* ---------- Buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill);
  font: 650 .98rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--honey); color: var(--ink); box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 6px 16px -6px rgb(217 154 0 / .7); }
.btn-primary:hover { background: #FFC229; color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; text-transform: none; }
.pill-soft { background: var(--honey-100); color: #7A5200; }
.section-dark .pill-soft { background: rgb(246 180 14 / .18); color: var(--honey); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgb(26 24 20 / .4); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-tag { font-size: .66rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.brand-light .brand-tag { color: var(--honey); }
.site-header .brand { gap: 12px; font-size: 1.36rem; }
.site-header .logo-mark { width: 44px; height: 44px; }
.site-header .brand-tag { font-size: .7rem; }
@media (max-width: 640px) {
  .site-header .brand { gap: 10px; font-size: 1.22rem; }
  .site-header .logo-mark { width: 38px; height: 38px; }
}
/* The logo's top cell is ink; on dark backgrounds it turns light. */
.site-footer .logo-top, .app-side .logo-top { fill: #F5F4F0; }
.site-footer .logo-flap, .app-side .logo-flap { stroke: #16181D; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { list-style: none; display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--line-2); color: var(--ink); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle-close { display: none; }
.site-header.is-open .nav-toggle-open { display: none; }
.site-header.is-open .nav-toggle-close { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
  background: radial-gradient(900px 480px at 85% 10%, rgb(246 180 14 / .16), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgb(15 143 126 / .07), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.hl { background: linear-gradient(transparent 62%, var(--honey-100) 62%); padding-inline: .04em; }
.lead { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero .cta-row { margin-top: 32px; }
.trial-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .94rem; color: var(--ink-2); }
.trial-facts li { display: inline-flex; align-items: center; gap: 6px; }
.trial-facts .icon { color: var(--teal); }
.hero-visual { margin: 0; }
.demo-note { margin-top: 12px; text-align: center; font-size: .8rem; color: var(--muted); }
.demo-note-light { color: #9E978A; }

/* ---------- Pillars / values ---------- */
.pillar { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: var(--honey-100); color: #7A5200; }
.pillar:nth-child(2) .pillar-icon { background: var(--teal-100); color: var(--teal); }
.pillar:nth-child(3) .pillar-icon { background: #ECE9FB; color: var(--violet); }
.pillar h3 { margin-bottom: 8px; }
.pillar p, .value p { color: var(--muted); }
.value { padding: 24px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line-2); }
.value h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* ---------- Features ---------- */
.feature-group { margin: 40px 0 16px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feature-group:first-of-type { margin-top: 0; }
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; gap: 16px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: #DCCFAE; box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--honey-50); color: #8A5A00; border: 1px solid var(--honey-100); }
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: .95rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; position: relative; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.step-num { position: absolute; top: -16px; left: 28px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 8px 0 18px; border-radius: 14px; background: var(--tint); color: var(--ink); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Lists ---------- */
.checklist, .icon-list { list-style: none; display: grid; gap: 12px; }
.checklist li, .icon-list li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--teal); margin-top: 3px; }
.section-dark .checklist .icon { color: var(--honey); }
.icon-list .icon { color: var(--honey-600); margin-top: 3px; }

/* ---------- Pricing ---------- */
.pricing-teaser { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pt-copy h2 { margin-bottom: 16px; }
.pt-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 24px; }
.pt-copy .muted { margin-top: 20px; font-size: .95rem; }
.pt-card { padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
.pt-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--honey), #FFD35C); }
.pt-from { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pt-price { display: flex; align-items: flex-start; font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; margin: 6px 0 14px; }
.pt-currency { font-size: 1.8rem; margin-top: 8px; }
.pt-per { align-self: flex-end; margin: 0 0 8px 8px; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.pt-note { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.trial-box { list-style: none; display: grid; gap: 10px; padding: 16px; margin-bottom: 20px; border-radius: var(--r); background: var(--honey-50); border: 1px dashed #EBCB7A; font-weight: 600; font-size: .95rem; }
.trial-box li { display: flex; align-items: center; gap: 10px; }
.pt-actions { display: grid; gap: 10px; }
.pt-copy .checklist + .small { margin-top: 18px; }
.trial-box .icon { color: #8A5A00; }

/* ---------- Trust ---------- */
.trust-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-grid li { padding: 24px; border-radius: var(--r); background: var(--dark-2); border: 1px solid #2F2B21; }
.trust-grid .icon { color: var(--honey); margin-bottom: 14px; }
.trust-grid h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-grid p { font-size: .93rem; color: #B5AE9E; }

/* ---------- Final CTA ---------- */
.cta-card { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 28px; background: radial-gradient(600px 260px at 50% 0%, rgb(255 255 255 / .55), transparent), linear-gradient(135deg, #FFD65A, var(--honey) 55%, #F0A500); color: var(--ink); box-shadow: var(--shadow-lg); }
.cta-card h2 { max-width: 16em; margin: 0 auto 14px; }
.cta-card p { max-width: 34em; margin: 0 auto 28px; font-size: 1.1rem; color: var(--ink-2); }
.cta-card .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgb(0 0 0 / .5); }
.cta-card .btn-primary:hover { background: #000; color: #fff; }
.cta-card :focus-visible { outline-color: var(--ink); }

/* ---------- Secondary pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); background: radial-gradient(700px 340px at 50% 0%, rgb(246 180 14 / .14), transparent 70%); }
.page-hero .lead { margin-inline: auto; }
.page-hero .cta-row { margin-top: 28px; }
.page-hero .muted { margin-top: 20px; }
.faq { display: grid; gap: 4px; margin-top: 28px; }
.faq dt { margin-top: 18px; font-weight: 700; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.section-tint h2 + p { margin-top: 12px; color: var(--muted); }
.notice-card { display: flex; gap: 20px; padding: 28px; margin-bottom: 40px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--tint); }
.notice-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.notice-card p + p { margin-top: 8px; }
.notice-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--honey-100); color: #7A5200; }
.narrow > .h3 { margin-bottom: 16px; }
.narrow > .checklist + p { margin-top: 20px; }

/* ---------- Pricing (/pricing) ---------- */
.section-tight + .section-tight { padding-top: 0; }
.trial-card { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--honey-50); border: 1px dashed #EBCB7A; }
.trial-card .kicker { margin-bottom: 6px; }
.trial-line { font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; }
.trial-card .btn { flex: none; align-self: flex-start; }
.trial-grid { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
@media (max-width: 860px) { .trial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trial-grid li { display: grid; align-content: start; gap: 1px; padding: 10px 12px; border-radius: var(--r); background: #fff; border: 1px solid #F1DFAE; }
.trial-grid strong { font-size: 1.1rem; letter-spacing: -.01em; }
.trial-grid span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.trial-soon { margin-top: 8px; color: var(--ink-2); }
.plans-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--tint); border: 1px solid var(--line); }
.billing-toggle button { font: inherit; font-size: .92rem; font-weight: 650; padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); cursor: pointer; }
.billing-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.plans-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.currency-toggle a { font-size: .92rem; font-weight: 650; padding: 8px 16px; border-radius: var(--r-pill); color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.currency-toggle a:hover { color: var(--ink); }
.currency-toggle a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle-note { margin-left: 4px; font-size: .78rem; font-weight: 700; color: var(--teal); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; }
.price-card h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.price-card.is-popular { border-color: var(--honey); box-shadow: 0 0 0 1px var(--honey), var(--shadow); background: linear-gradient(180deg, var(--honey-50), #fff 140px); }
.price-badge { position: absolute; top: 0; left: 24px; transform: translateY(-50%); margin: 0; padding: 3px 12px; border-radius: var(--r-pill); background: var(--honey); color: var(--ink); font-size: .78rem; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.price-card h3 span { display: block; font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-sends { margin: 6px 0 18px; color: var(--muted); font-size: .95rem; }
.price-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price-amount small { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-amount { margin-top: 14px; white-space: nowrap; }
.price-alt { margin: 4px 0 16px; }
.price-feats { list-style: none; display: grid; gap: 8px; margin: 0 0 22px; padding-top: 16px; border-top: 1px solid var(--line); flex: 1; align-content: start; font-size: .95rem; }
.price-feats li { display: flex; gap: 8px; align-items: flex-start; }
.price-feats .icon { color: var(--teal); margin-top: 3px; flex: none; }
.price-year { display: none; }
[data-billing].is-annual .price-month { display: none; }
[data-billing].is-annual .price-year { display: inline; }
.plans-note { margin-top: 14px; }
.plans-sub { margin: 40px 0 8px; }
.addon-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.addon-list li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.addon-sends { color: var(--muted); font-size: .92rem; }
.addon-sends strong { color: var(--ink); }
.addon-price { white-space: nowrap; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.addon-price small { font-size: .82rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 20px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list .icon { color: var(--teal); margin-top: 4px; flex: none; }
.feature-list div { display: grid; gap: 2px; }
.feature-list span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.sales-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--line); }
.sales-card .h3 { margin-bottom: 4px; }
.checklist-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .price-cards, .checklist-2col, .feature-list { grid-template-columns: minmax(0, 1fr); }
  .trial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trial-card .btn { align-self: stretch; }
  .addon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trial-card, .sales-card { flex-direction: column; align-items: stretch; padding: 22px; }
  .billing-toggle button { padding: 8px 12px; }
  /* Both switches full width with roomy buttons, so they're easy to tap. */
  .plans-toggles { width: 100%; }
  .plans-toggles .billing-toggle { display: flex; flex: 1 1 100%; }
  .plans-toggles .billing-toggle > * { flex: 1 1 auto; text-align: center; padding-top: 10px; padding-bottom: 10px; }
  }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #B5AE9E; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 14px 0 20px; max-width: 22em; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-heading { margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #C9C2B2; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2F2B21; font-size: .85rem; color: #8F8878; }

/* ==========================================================================
   Product mockups (illustrative, aria-hidden)
   ========================================================================== */
.mock { max-width: 100%; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--ink); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #F6F3EC; border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #E3DDCF; }
.browser-bar > span:first-child { background: #F2A597; } .browser-bar > span:nth-child(2) { background: #F6CF6A; } .browser-bar > span:nth-child(3) { background: #9FD6A2; }
.browser-url { margin-left: 12px; padding: 4px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); flex: 1; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app { display: grid; grid-template-columns: 56px 1fr; min-height: 360px; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: var(--dark); }
.app-logo { margin-bottom: 8px; }
.app-side-item { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #8F8878; }
.app-side-item.is-active { background: rgb(246 180 14 / .16); color: var(--honey); }
.app-main { padding: 18px; background: #FCFBF7; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.app-title { font-weight: 750; font-size: 15px; }
.app-sub { color: var(--muted); font-size: 12px; }
.app-btn { padding: 7px 12px; border-radius: var(--r-pill); background: var(--honey); font-weight: 700; font-size: 12px; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.email-preview { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.ep-hero { display: grid; place-items: center; height: 58px; border-radius: 8px; background: linear-gradient(135deg, #1F3A34, var(--teal)); color: #fff; font-weight: 750; letter-spacing: .02em; }
.ep-line { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w95 { width: 95%; }
.ep-img { height: 64px; border-radius: 8px; background: repeating-linear-gradient(135deg, #F4EFE3 0 10px, #EEE8DA 10px 20px); }
.ep-cta { justify-self: start; padding: 7px 14px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; }
.app-stats { display: grid; gap: 10px; align-content: start; }
.mini-stat { display: grid; grid-template-columns: 1fr auto; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mini-stat span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.mini-stat strong { font-size: 18px; letter-spacing: -.02em; }
.mini-stat em { align-self: end; font-style: normal; font-size: 11px; font-weight: 700; }
.up { color: var(--teal); }
.mini-flow { display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--dark); }
.mf-node { padding: 5px 8px; border-radius: 8px; background: #2C281F; color: #EDE8DC; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.mf-accent { background: var(--honey); color: var(--ink); }
.mf-arrow { flex: 1; height: 2px; min-width: 12px; background: #4A4436; position: relative; }
.mf-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: #4A4436; border-right: 0; }

/* Editor */
.editor { background: #1E1B15; border-color: #2F2B21; color: #EDE8DC; }
.editor-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #2F2B21; }
.editor-title { font-weight: 650; font-size: 12.5px; color: #CFC8B8; }
.device-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #2C281F; }
.device-toggle span { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 7px; color: #8F8878; }
.device-toggle .is-on { background: var(--honey); color: var(--ink); }
.editor-body { display: grid; grid-template-columns: 112px 1fr; min-height: 340px; }
.block-palette { display: grid; gap: 8px; align-content: start; padding: 14px 10px; border-right: 1px solid #2F2B21; }
.palette-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #2C281F; border: 1px solid #3A3529; font-size: 12px; font-weight: 600; color: #EDE8DC; }
.palette-item .icon { color: var(--honey); }
.canvas { position: relative; padding: 18px; background: repeating-linear-gradient(0deg, transparent 0 23px, rgb(255 255 255 / .03) 23px 24px), #26221A; }
.canvas-email { max-width: 300px; margin: 0 auto; padding: 16px; border-radius: 12px; background: #fff; color: var(--ink); display: grid; gap: 10px; }
.cb { border-radius: 8px; border: 1.5px dashed transparent; padding: 4px; }
.cb-head { font-weight: 750; font-size: 14px; }
.cb-text { display: grid; gap: 6px; }
.cb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-col { height: 56px; border-radius: 8px; background: repeating-linear-gradient(135deg, #F4EFE3 0 10px, #EEE8DA 10px 20px); }
.cb-selected { position: relative; border-color: var(--honey); background: var(--honey-50); padding: 8px; }
.cb-btn { display: inline-block; padding: 7px 14px; border-radius: var(--r-pill); background: var(--teal); color: #fff; font-weight: 700; font-size: 11.5px; }
.cb-tag { position: absolute; top: -10px; right: 8px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--honey); color: var(--ink); font-size: 10px; font-weight: 800; }
.cb-divider { height: 1px; padding: 0; background: var(--line); }
.drag-ghost { position: absolute; left: 34%; bottom: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--honey); color: var(--ink); font-size: 12px; font-weight: 750; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6); transform: rotate(-4deg); }

/* Panels (audience / analytics) */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-search { display: inline-flex; align-items: center; gap: 8px; flex: 1; max-width: 220px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--tint); border: 1px solid var(--line); color: var(--muted); }
.panel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--teal-100); color: var(--teal); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #FCFBF7; }
.mock-table td { padding: 11px 16px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.mock-table td:first-child { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 10.5px; font-weight: 800; color: #fff; }
.a1 { background: var(--violet); } .a2 { background: var(--teal); } .a3 { background: var(--coral); } .a4 { background: #8F8878; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--honey-100); color: #7A5200; font-size: 11px; font-weight: 700; }
.status { padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.status.ok { background: var(--teal-100); color: #0B6B5E; }
.status.off { background: #F1EDE3; color: var(--muted); }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: #FCFBF7; color: var(--muted); font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; }
.kpi { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; gap: 2px; }
.kpi span { color: var(--muted); font-size: 11px; }
.kpi strong { font-size: 19px; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.kpi em.up { color: var(--teal); }
.chart { margin: 0 16px 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #FCFBF7; }
.chart-title { font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #FFD35C, var(--honey)); opacity: .55; }
.bar.is-peak { opacity: 1; }
.h25 { height: 25%; } .h30 { height: 30%; } .h35 { height: 35%; } .h40 { height: 40%; } .h45 { height: 45%; } .h50 { height: 50%; }
.h55 { height: 55%; } .h60 { height: 60%; } .h65 { height: 65%; } .h70 { height: 70%; } .h90 { height: 90%; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--muted); }

/* Workflow */
.workflow { list-style: none; display: grid; justify-items: center; gap: 22px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 1px 1px, #EFEBE1 1px, transparent 0); background-size: 18px 18px; }
.wf-node { position: relative; display: flex; align-items: center; gap: 12px; width: min(100%, 320px); padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wf-node + .wf-node::before, .wf-node + .wf-split::before { content: ""; position: absolute; top: -23px; left: 50%; width: 2px; height: 22px; background: #DCD5C4; }
.wf-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 380px); }
.wf-node small { display: block; color: var(--muted); font-size: 12px; }
.wf-node .icon { color: var(--honey-600); }
.wf-trigger { background: var(--dark); color: #fff; border-color: var(--dark); }
.wf-trigger small { color: #B5AE9E; } .wf-trigger .icon { color: var(--honey); }
.wf-wait { width: auto; padding: 8px 16px; border-style: dashed; background: var(--tint); }
.wf-branch { width: auto; background: var(--honey-50); border-color: #EBCB7A; }
.wf-leaf { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-size: .88rem; font-weight: 600; }
.wf-yes { background: var(--teal-100); color: #0B6B5E; }
.wf-no { background: #F1EDE3; color: var(--ink-2); }

/* ---------- Error page (shared minimal layout) ---------- */
.wrap { max-width: 560px; margin: 12vh auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--honey); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(26 24 20 / .35); }
  .js .site-header.is-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; margin: 0; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; }
  .nav-actions .btn { min-height: 48px; }
  .hero-grid, .split, .pricing-teaser { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy { order: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero .cta-row, .trial-facts { justify-content: center; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .feature-grid, .grid-4, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .mock-table th:nth-child(2), .mock-table td:nth-child(2) { display: none; }
  .panel-chip { display: none; }
  .panel-search { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 44px 1fr; min-height: 0; }
  .app-side-item { width: 30px; height: 30px; }
  .app-body { grid-template-columns: 1fr; }
  .mini-flow { display: none; }
  .editor-body { grid-template-columns: 1fr; }
  .block-palette { grid-template-columns: repeat(5, 1fr); border-right: 0; border-bottom: 1px solid #2F2B21; }
  .palette-item { justify-content: center; padding: 8px 4px; }
  .palette-item span { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mock-table th:nth-child(3), .mock-table td:nth-child(3) { display: none; }
  .hero .btn-lg, .cta-card .btn-lg { width: 100%; }
  .notice-card { flex-direction: column; }
  .pt-card { padding: 24px; }
}

/* Savings calculator (home pricing section) */
.savings { margin-top: clamp(32px, 5vw, 56px); padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.savings-head { max-width: 720px; margin-bottom: 24px; }
.savings-head h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.02em; margin-bottom: 10px; }
.savings-head p { color: var(--muted); font-size: 1.02rem; }
.savings-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.savings-inputs { display: grid; gap: 10px; }
.savings-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: .95rem; }
.savings-label output { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.savings-range { width: 100%; accent-color: var(--honey-600); margin-bottom: 14px; }
.savings-out { display: grid; gap: 10px; margin: 0; }
.savings-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line-2); }
.savings-out dt { color: var(--muted); font-size: .95rem; }
.savings-out dd { margin: 0; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.savings-out .savings-win { background: var(--honey-50); border: 1px dashed #EBCB7A; }
.savings-out .savings-win dd { color: var(--ink); font-size: 1.3rem; }
.savings-note { margin-top: 16px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .savings-body { grid-template-columns: minmax(0, 1fr); }
  .savings-out > div { flex-wrap: wrap; }
}

/* Signup: plan choice, trial summary, card step */
.signup-plan, .signup-summary, .signup-card { margin-bottom: 36px; }
.plan-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.plan-choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; cursor: pointer; }
.plan-choice:has(input:checked) { border-color: var(--honey-600); background: var(--honey-50); }
.plan-choice input { margin-top: 5px; accent-color: var(--honey-600); }
.plan-choice > span { display: grid; gap: 2px; }
.interval-choice { display: flex; gap: 20px; border: 0; padding: 0; margin: 0 0 16px; font-weight: 600; }
.interval-choice input { accent-color: var(--honey-600); margin-right: 6px; }
.signup-options { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; }
.signup-options .interval-choice { margin: 0; }
.start-choice { flex-wrap: wrap; margin: 12px 0 28px; }
.currency-choice { padding-left: 28px; border-left: 1px solid var(--line); }
.summary-list { display: grid; gap: 8px; margin: 16px 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--tint); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; }
.auto-billing { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.signup-card .notice-card { margin: 16px 0; }
.signup-card .notice-card h3 { margin-bottom: 8px; }
.signup-card .btn { margin-top: 12px; }
.signup-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.page-hero .trial-line { margin-top: 14px; }
@media (max-width: 640px) {
  .plan-choices { grid-template-columns: minmax(0, 1fr); }
  .currency-choice { padding-left: 0; border-left: 0; }
  .summary-list > div { flex-direction: column; gap: 2px; }
  .summary-list dd { text-align: left; }
}

/* ==========================================================================
   Features, Solutions, Resources and guides
   ========================================================================== */
.page-hero .container + .container { margin-top: clamp(36px, 5vw, 56px); }
.features-hero { padding-bottom: clamp(40px, 6vw, 64px); }

/* Headline numbers under a page hero */
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.stat-band > div { padding: 22px 24px; border-left: 1px solid var(--line-2); }
.stat-band > div:first-child { border-left: 0; }
.stat-band dt { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat-band dd { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Sticky "on this page" bar */
.subnav { position: sticky; top: 72px; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-block: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 14px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--honey); }
html { scroll-padding-top: 140px; }

/* Detail grids: icon + heading + sentence */
.spec-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin-top: clamp(40px, 6vw, 64px); }
.spec-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.spec { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.spec-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--honey-50); color: #8A5A00; border: 1px solid var(--honey-100); }
.spec h3 { font-size: 1.02rem; letter-spacing: -.01em; margin: 7px 0 6px; }
.spec p { font-size: .95rem; color: var(--muted); }
.spec-dark .spec-icon { background: rgb(246 180 14 / .12); border-color: rgb(246 180 14 / .25); color: var(--honey); }
.spec-dark .spec p { color: #B5AE9E; }
.spec-dark .spec h3 { color: #fff; }

/* Template showcase */
.cat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.cat-list span { color: var(--muted); font-weight: 700; font-size: .78rem; }
.tpl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tpl { margin: 0; }
.tpl img { width: 100%; height: auto; aspect-ratio: 300 / 380; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.tpl:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl figcaption { margin-top: 10px; font-size: .88rem; font-weight: 650; text-align: center; color: var(--ink-2); }
.brand-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-band h3 { font-size: 1.35rem; margin-bottom: 10px; }
.brand-band p { color: var(--muted); }

/* CRM mock: a contact card with stages and a timeline */
.crm-mock { background: #fff; padding: 18px; display: grid; gap: 16px; }
.cm-head { display: flex; align-items: center; gap: 12px; }
.cm-avatar { width: 42px; height: 42px; font-size: 14px; }
.cm-who { display: grid; flex: 1; min-width: 0; }
.cm-who strong { font-size: 15px; }
.cm-who span { color: var(--muted); font-size: 12px; }
.cm-score { padding: 4px 10px; border-radius: var(--r-pill); background: #FDE7E1; color: #B4380C; font-weight: 800; font-size: 11.5px; white-space: nowrap; }
.cm-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cm-stages span { padding: 6px 4px; border-radius: 8px; background: var(--line-2); color: var(--muted); font-size: 10.5px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-stages .is-done { background: var(--teal-100); color: #0B6B5E; }
.cm-stages .is-on { background: var(--honey); color: var(--ink); }
.cm-timeline { list-style: none; display: grid; gap: 12px; padding-left: 4px; }
.cm-timeline li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; align-items: start; }
.cm-timeline small { display: block; color: var(--muted); font-size: 11.5px; }
.cm-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.cm-email { background: var(--violet); } .cm-call { background: var(--teal); } .cm-task { background: var(--honey-600); } .cm-note { background: var(--coral); }
.crm-cal-note { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding: 16px 20px; border-radius: var(--r); background: var(--dark-2); border: 1px solid #2F2B21; color: #CFC8B8; font-size: .95rem; }
.crm-cal-note .icon { color: var(--honey); }

/* Automation stop rule */
.wf-exit { width: auto; background: var(--teal-100); border-color: #A8DDD2; }
.wf-exit .icon { color: var(--teal); }

/* Compliance footer sample */
.footer-sample { max-width: 720px; margin: 40px auto 0; padding: 20px 24px; border-radius: var(--r); background: #fff; color: #6B675C; text-align: center; font-size: .85rem; line-height: 1.6; }
.footer-sample figcaption { margin-bottom: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A5A00; }
.fs-link { text-decoration: underline; color: #3A362D; }

/* "On the way" */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.roadmap li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px dashed #E2D6B6; }
.roadmap h3 { font-size: 1.02rem; margin: 6px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.roadmap p { color: var(--muted); font-size: .95rem; }

@media (max-width: 1080px) {
  .spec-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .spec-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-band, .roadmap { grid-template-columns: minmax(0, 1fr); }
  .subnav { top: 72px; }
}
@media (max-width: 640px) {
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band > div:nth-child(3) { border-left: 0; }
  .stat-band > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .spec-grid, .spec-grid-3, .spec-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .page-hero .cta-row .btn-lg, .cta-card .btn-lg { width: 100%; }
  .crm-cal-note { align-items: flex-start; }
  .cm-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cm-stages span:first-child { display: none; }
}

/* Solutions: audience cards, template fans, playbooks */
.solution-cards { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.solution-cards a, .quick-cards a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.solution-cards a:hover, .quick-cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCCFAE; color: var(--ink); }
.solution-cards strong, .quick-cards strong { font-size: 1.02rem; letter-spacing: -.01em; margin-top: 4px; }
.sc-text, .quick-cards a > span:last-child { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 700; color: #8A5A00; }
.tpl-fan { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 24px 12px; }
/* Each image is 118% of its column; the translations re-centre the three around the middle one. */
.tpl-fan img { width: 118%; max-width: none; height: auto; aspect-ratio: 300 / 380; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.tpl-fan img:nth-child(1) { transform: translate(13.6%, 6%) rotate(-6deg); z-index: 1; }
.tpl-fan img:nth-child(2) { transform: translate(-7.6%, -4%) scale(1.06); z-index: 2; }
.tpl-fan img:nth-child(3) { transform: translate(-28.8%, 6%) rotate(6deg); z-index: 1; }
.section-dark .tpl-fan img { border-color: #2F2B21; }
.playbook-title { margin: clamp(48px, 7vw, 80px) 0 20px; font-size: 1.35rem; }
.playbooks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.playbook { padding: 26px; border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--line-2); }
.playbook h4 { font-size: 1.08rem; margin: 14px 0 12px; }
.playbook ol { display: grid; gap: 10px; padding-left: 20px; color: var(--ink-2); font-size: .95rem; }
.playbook li::marker { color: #8A5A00; font-weight: 800; }
.pb-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--honey); }
.team-mock ul { list-style: none; display: grid; }
.team-mock li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.team-mock li:first-child { border-top: 0; }
.team-mock li > div { flex: 1; display: grid; }
.team-mock small { color: var(--muted); font-size: 12px; }
.solutions-note { margin-top: 18px; }

/* Resources: quick links, setup steps, guide cards, FAQ */
.quick-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.setup { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.setup li { position: relative; display: grid; gap: 14px; align-content: start; padding: 22px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.setup-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .92rem; }
.setup h3 { font-size: 1.02rem; margin-bottom: 6px; }
.setup p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.where { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--honey-50); border: 1px solid var(--honey-100); color: #7A5200; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.setup-more { margin-top: 28px; }
/* Flex so a short last row sits centred: 4 across, 3 for related guides and on mid widths, then 2 and 1. */
.guide-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.guide-grid > li { flex: 0 1 calc((100% - 54px) / 4); }
.guide-grid-3 > li { flex-basis: calc((100% - 36px) / 3); }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCCFAE; color: var(--ink); }
.guide-meta { margin-top: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide-card strong { font-size: 1.14rem; letter-spacing: -.015em; line-height: 1.3; }
.guide-summary { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.faq-group { margin: 36px 0 12px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.faq-group:first-of-type { margin-top: 0; }
.accordion { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--line-2); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--tint); }
.acc-icon { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.accordion details[open] .acc-icon { transform: rotate(90deg); color: var(--ink); }
.accordion details p { padding: 0 22px 20px; color: var(--muted); }

/* Guides: article layout, table of contents, prose */
.guide-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.guide-hero .container { max-width: 1180px; }
.guide-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 18em; }
.guide-hero .lead { margin-inline: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.guide-byline { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 80px); padding-top: 8px; padding-bottom: clamp(64px, 9vw, 112px); }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.toc-title { margin-bottom: 10px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
@media (min-width: 961px) { .toc summary { pointer-events: none; } }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; font-weight: 550; text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--honey); }
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; font-size: clamp(1.45rem, 2.4vw, 1.8rem); color: var(--ink); scroll-margin-top: 110px; }
.prose h3 { margin-top: 30px; font-size: 1.15rem; color: var(--ink); }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h2 + ol, .prose h3 + ul { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: #8A5A00; }
.prose strong { color: var(--ink); }
.prose code { padding: 2px 7px; border-radius: 6px; background: var(--tint); border: 1px solid var(--line); font: .88em/1.4 var(--mono); }
.prose .where { font-size: .78rem; vertical-align: 1px; }
.callout { padding: 18px 22px; border-radius: var(--r); background: var(--honey-50); border: 1px solid var(--honey-100); border-left: 4px solid var(--honey); }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { font-size: .98rem; }
.related-title { margin-bottom: 20px; }
.related-all { margin-top: 22px; font-weight: 600; }

@media (max-width: 1080px) {
  .guide-grid > li { flex-basis: calc((100% - 36px) / 3); }
  .solution-cards { display: flex; flex-wrap: wrap; justify-content: center; }
  .solution-cards li { flex: 0 1 calc((100% - 28px) / 3); }
  .setup { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .setup li { grid-template-columns: 34px minmax(0, 1fr); gap: 18px; padding: 20px 22px; }
  .setup p { margin-bottom: 10px; }
}
@media (max-width: 960px) {
  .playbooks { grid-template-columns: minmax(0, 1fr); }
  .guide-grid > li, .guide-grid-3 > li { flex-basis: calc((100% - 18px) / 2); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; overflow: visible; padding: 16px 20px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line-2); }
  .toc summary { cursor: pointer; margin: 0; }
  .toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .toc details[open] summary { margin-bottom: 10px; }
  .toc details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
  .tpl-fan { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .quick-cards { grid-template-columns: minmax(0, 1fr); }
  .guide-grid > li, .guide-grid-3 > li { flex-basis: 100%; }
  .setup li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .solution-cards li { flex-basis: 100%; }
  .solution-cards a { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .solution-cards .spec-icon { grid-row: span 2; }
  .solution-cards strong { margin-top: 0; }
  .solution-cards .sc-more { display: none; }
  .prose { font-size: 1rem; }
}

/* Homepage: link from the feature summary to the full Features page */
.features-more { margin-top: 32px; }

/* Contact form */
.contact-hero { padding-bottom: clamp(20px, 3vw, 32px); }
.contact-section { padding-top: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; font-weight: 650; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #DCD5C4; border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625D52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--honey-600); box-shadow: 0 0 0 4px rgb(246 180 14 / .22); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field-label { display: block; }
.req { color: var(--coral); }
.opt { font-weight: 500; font-size: .82rem; color: var(--muted); }
.field-error { font-weight: 600; font-size: .86rem; color: #B23A0B; }
.form-alert { padding: 12px 16px; border-radius: 12px; background: #FDEBE3; color: #9C3208; font-weight: 600; font-size: .95rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 12px; justify-items: start; margin-top: 4px; }
.sent-card { justify-items: center; text-align: center; }
.sent-card p { color: var(--muted); max-width: 32em; }
.email-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--honey-100); color: #7A5200; }
.contact-aside h2 { margin-bottom: 18px; }
.topic-list { list-style: none; display: grid; gap: 18px; }
.topic-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.topic-list h3 { font-size: 1rem; margin: 6px 0 4px; }
.topic-list p { color: var(--muted); font-size: .94rem; }
.topic-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.topic-grid li { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.topic-grid h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.topic-grid p { color: var(--muted); font-size: .95rem; }
.contact-more { margin-top: 24px; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1080px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .topic-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn-lg { width: 100%; }
}

/* About */
.principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-split .split-copy > p + p { margin-top: -8px; }
.about-links { margin-top: 28px; }

/* Legal pages */
.legal-hero h1 { max-width: none; }
.legal h3 { margin-top: 26px; }
.legal-links { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.legal-link { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.legal-link:hover { border-color: #DCCFAE; box-shadow: var(--shadow); color: var(--ink); }
.legal-link span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.legal-link.is-current { border-color: var(--honey); box-shadow: inset 0 0 0 1px var(--honey); }
@media (max-width: 1080px) { .legal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .legal-links, .principle-grid { grid-template-columns: minmax(0, 1fr); } }
