/* ==========================================================================
   Vertex — vertexcrm.io. Matches the Vertex app design system 1:1.
   Warm stone neutrals · white surfaces · TEAL brand · zero drop shadows
   (depth = hairline borders + surface tints + a soft brand glow).
   2026 SaaS styling. SVG-only icons, no emoji.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@500&display=swap");

:root {
  /* ink — warm stone */
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #57534e;
  --subtle: #78716c;
  --faint: #a8a29e;
  /* surfaces */
  --bg: #ffffff;
  --canvas: #fafaf9;
  --soft: #f5f5f4;
  --soft-2: #f0fdfa;
  /* borders */
  --line: #e7e5e4;
  --line-soft: #f0efee;
  --line-strong: #d6d3d1;
  /* brand — Vertex teal */
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-press: #115e59;
  --teal-soft: #f0fdfa;
  --teal-soft-2: #ccfbf1;
  --teal-400: #2dd4bf;
  --grad: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 110%);
  /* status */
  --ok: #10b981; --ok-soft: #ecfdf5;
  --warn: #f59e0b; --warn-soft: #fffbeb;
  --info: #3b82f6; --info-soft: #eff6ff;
  --bad: #ef4444; --bad-soft: #fef2f2;
  /* radius */
  --r-sm: 6px; --r: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 24px;
  --wrap: 1140px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal-soft-2); color: var(--teal-press); }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
section { padding: 92px 0; }
.soft { background: var(--canvas); }
.tint { background: var(--teal-soft); }

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.03em; line-height: 1.04; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.02em; }
p { color: var(--ink-2); }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.55; letter-spacing: -.01em; }
.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.eyeh { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyeh .eyebrow { display: inline-block; margin-bottom: 16px; }
.eyeh p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  font: 500 14.5px/1 var(--sans); padding: 11px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .15s var(--ease), border-color .15s, color .15s, transform .15s; white-space: nowrap;
}
.btn:hover { background: var(--soft); border-color: var(--line-strong); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--soft); border-color: transparent; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }

/* ---- Header / nav ------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
header.site.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 8px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 18px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.brand .logo { width: 24px; height: 24px; }
.nlinks { display: flex; align-items: center; gap: 1px; margin-left: 16px; }
.nlinks > a, .nav-item > button {
  font: 500 14.5px/1 var(--sans); color: var(--ink-2); padding: 8px 12px; border-radius: var(--r);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: color .15s, background .15s;
}
.nlinks > a:hover, .nav-item > button:hover { color: var(--ink); background: var(--soft); }
.nav-item { position: relative; }
.nav-item > button svg { width: 13px; height: 13px; color: var(--faint); transition: transform .2s; }
.nav-item:hover > button svg { transform: rotate(180deg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity .16s, transform .16s, visibility .16s; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.menu.wide { min-width: 620px; }
.nav-item:hover .menu, .nav-item:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a { display: flex; gap: 11px; padding: 10px 11px; border-radius: var(--r-md); transition: background .15s; }
.menu a:hover { background: var(--soft); }
.menu .mi-ic { flex: none; width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.menu .mi-ic svg { width: 18px; height: 18px; }
.menu .mt { font: 600 14px/1.2 var(--sans); color: var(--ink); }
.menu .md { font: 400 12.5px/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.mobile-menu { display: none; }

/* ---- Hero --------------------------------------------------------------- */
.hero { text-align: center; padding: 78px 0 52px; position: relative; }
.hero > * { position: relative; z-index: 1; }

/* Animated "Agentic CRM" background — drifting teal aurora + an agent network
   that dispatches pulses to CRM nodes. Masked at the center so text stays crisp. */
.herofx { position: absolute; top: -70px; left: 50%; width: 100vw; height: 660px; transform: translateX(-50%); z-index: 0; overflow: hidden; pointer-events: none; }
.herofx .aur { position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform; }
.herofx .a1 { width: 540px; height: 540px; top: -140px; left: 50%; margin-left: -270px; background: radial-gradient(circle, rgba(45, 212, 191, .50), transparent 68%); animation: aur1 22s var(--ease) infinite alternate; }
.herofx .a2 { width: 480px; height: 480px; top: -70px; right: 6%; background: radial-gradient(circle, rgba(13, 148, 136, .40), transparent 70%); animation: aur2 27s var(--ease) infinite alternate; }
.herofx .a3 { width: 440px; height: 440px; top: 30px; left: 5%; background: radial-gradient(circle, rgba(94, 234, 212, .42), transparent 72%); animation: aur3 30s var(--ease) infinite alternate; }
@keyframes aur1 { from { transform: translate(-44px, -8px) scale(1); } to { transform: translate(44px, 28px) scale(1.16); } }
@keyframes aur2 { from { transform: translate(24px, 0) scale(1.06); } to { transform: translate(-54px, 40px) scale(.9); } }
@keyframes aur3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(52px, -18px) scale(1.14); } }
.herofx .net { position: absolute; inset: 0; width: 100%; height: 100%; }
.herofx .net .edge { fill: none; stroke: rgba(13, 148, 136, .22); stroke-width: 1.4; stroke-dasharray: 4 6; animation: flow 3s linear infinite; }
.herofx .net .node { fill: #fff; stroke: rgba(13, 148, 136, .5); stroke-width: 1.6; }
.herofx .net .ring { fill: none; stroke: rgba(45, 212, 191, .55); stroke-width: 1.4; }
.herofx .net .hub { fill: var(--teal); }
.herofx .net .pulse { fill: var(--teal-400); }
.herofx .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(13, 148, 136, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 148, 136, .05) 1px, transparent 1px); background-size: 46px 46px; mask: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 75%); }
.herofx .veil { position: absolute; inset: 0; background: radial-gradient(50% 56% at 50% 40%, rgba(255, 255, 255, .82) 30%, rgba(255, 255, 255, 0) 76%); }
.herofx .veil.bottom { background: linear-gradient(transparent 55%, #fff 96%); }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--sans);
  color: var(--teal-press); background: #fff; border: 1px solid var(--line); padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 22px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero .lead { max-width: 58ch; margin: 20px auto 0; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.micro { margin-top: 15px; font-size: 13px; color: var(--faint); }

/* Hero on-load reveal (above the fold) */
.reveal-load { opacity: 0; transform: translateY(14px); animation: revUp .8s var(--ease) forwards; }
.hero .pill { animation: revUp .6s var(--ease) both; }
.hero h1 { animation: revUp .7s .05s var(--ease) both; }
.hero .lead { animation: revUp .7s .12s var(--ease) both; }
.hero .cta { animation: revUp .7s .19s var(--ease) both; }
.hero .micro { animation: revUp .7s .24s var(--ease) both; }
.hero .frame { animation: revUp .9s .3s var(--ease) both; }
@keyframes revUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Product frame (browser shell) — matches the app dashboard ---------- */
.frame { margin: 54px auto 0; max-width: 1020px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame .bar i:nth-child(1) { background: #f87171; } .frame .bar i:nth-child(2) { background: #fbbf24; } .frame .bar i:nth-child(3) { background: #34d399; }
.frame .url { margin-left: 9px; font: 500 12px/1 var(--mono); color: var(--faint); }
.frame .body { padding: 20px; display: grid; gap: 14px; }
.dashhead { display: flex; align-items: baseline; justify-content: space-between; }
.dashhead .live { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.dashhead .t { font: 600 16px/1 var(--sans); letter-spacing: -.02em; }

/* KPI tiles — exact app pattern */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.kpi .l { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.kpi .ic { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; }
.kpi .ic svg { width: 14px; height: 14px; }
.kpi .ic.primary { background: var(--teal-soft); color: var(--teal-press); }
.kpi .ic.success { background: var(--ok-soft); color: var(--ok); }
.kpi .ic.warning { background: var(--warn-soft); color: var(--warn); }
.kpi .ic.info { background: var(--info-soft); color: var(--info); }
.kpi .v { font: 600 24px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .h { font: 500 11px/1.3 var(--sans); color: var(--subtle); margin-top: 6px; }
.kpi .d { font: 500 11px/1 var(--sans); display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; }
.kpi .d.up { color: var(--ok); } .kpi .d.dn { color: var(--bad); }
.kpi .d svg { width: 12px; height: 12px; }

.dgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.panel2 { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 16px; }
.panel2 .h { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 13px; display: flex; justify-content: space-between; align-items: center; }
.panel2 .h a, .panel2 .h .lnk { color: var(--teal); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 11px; }
.spark { height: 92px; }
.funnel { display: grid; gap: 10px; }
.frow { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 10px; }
.frow .t { font: 500 12.5px/1 var(--sans); color: var(--ink-2); }
.frow .n { font: 600 12.5px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 999px; background: var(--teal); transform-origin: left; animation: grow 1s .2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* list rows (deals / sessions) */
.rows { display: grid; }
.rows .ro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.rows .ro:first-child { border-top: 0; }
.rows .ro .nm { font: 500 13px/1.3 var(--sans); }
.rows .ro .mt { font: 400 11px/1.3 var(--sans); color: var(--subtle); margin-top: 2px; }
.tag-pill { font: 500 11px/1 var(--sans); padding: 4px 9px; border-radius: 999px; }
.tag-pill.primary { background: var(--teal-soft); color: var(--teal-press); }
.tag-pill.success { background: var(--ok-soft); color: var(--ok); }
.tag-pill.warning { background: var(--warn-soft); color: var(--warn); }

/* AI insight chip */
.aichip { display: flex; gap: 11px; align-items: flex-start; background: var(--teal-soft); border: 1px solid var(--teal-soft-2); border-radius: var(--r-md); padding: 13px 15px; font-size: 13.5px; color: var(--ink-2); }
.aichip .s { flex: none; width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--teal); color: #fff; }
.aichip .s svg { width: 15px; height: 15px; }
.aichip b { color: var(--ink); font-weight: 600; }

/* ---- Stats / strip ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats .it b { display: block; font: 700 38px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats .it span { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: block; }
.strip { display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: center; align-items: center; }
.strip .t { font: 500 14px/1 var(--sans); color: var(--faint); letter-spacing: -.01em; }

/* Animated brand marquee — "works with the platforms the world runs on" */
.marquee { position: relative; overflow: hidden; padding: 4px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.mrow { display: flex; gap: 14px; width: max-content; animation: scrollx 46s linear infinite; will-change: transform; }
.mrow.rev { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .mrow { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.bchip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--muted); font: 600 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.bchip:hover { color: var(--ink); border-color: var(--line-strong); background: var(--canvas); }
.bchip svg { width: 21px; height: 21px; flex: none; color: var(--faint); transition: color .2s, transform .2s; }
.bchip:hover svg { color: var(--teal); transform: scale(1.08); }
.trustrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.trustrow .av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-press); font: 600 12px/1 var(--sans); }
.trustrow .av:first-child { margin-left: 0; }
.trustrow .txt { margin-left: 8px; font: 500 14px/1 var(--sans); color: var(--muted); }
.trustrow .txt b { color: var(--ink); font-weight: 600; }
.trustrow .stars { display: inline-flex; gap: 1px; color: var(--warn); }
.trustrow .stars svg { width: 15px; height: 15px; }

/* ---- Feature cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.fc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color .18s, background .18s, transform .18s; }
.fc:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.fic { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-press); margin-bottom: 15px; }
.fic svg { width: 21px; height: 21px; }
.fic.grad { background: var(--teal); color: #fff; }
.fc h3 { margin-bottom: 8px; }
.fc p { font-size: 14.5px; color: var(--muted); }
.fc ul { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.fc ul li, .split .copy ul li, .ptile ul li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.fc ul li::before, .split .copy ul li::before, .ptile ul li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 999px; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.fc .more { display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; font: 500 14px/1 var(--sans); color: var(--teal); }
.fc .more svg { width: 15px; height: 15px; transition: transform .15s; }
.fc:hover .more svg { transform: translateX(3px); }

/* ---- Split -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .copy { order: 2; }
.split .tag { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.split .copy h3 { font-size: clamp(25px, 3.2vw, 35px); }
.split .copy > p { margin-top: 15px; font-size: 17px; color: var(--muted); }
.split .copy ul { margin: 20px 0 24px; padding: 0; list-style: none; display: grid; gap: 11px; }
.visual { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 18px; }

/* ---- Chat demo ---------------------------------------------------------- */
.chat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat .ch { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); font: 600 13.5px/1 var(--sans); }
.chat .ch .av { width: 25px; height: 25px; border-radius: var(--r-sm); background: var(--teal); display: grid; place-items: center; color: #fff; }
.chat .ch .av svg { width: 14px; height: 14px; }
.chat .stream { padding: 15px; display: grid; gap: 11px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; }
.bubble.user { justify-self: end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { justify-self: start; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.toolcard { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 13px; background: #fff; }
.toolcard .tl { display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--mono); color: var(--teal-press); margin-bottom: 9px; }
.toolcard .tl svg { width: 14px; height: 14px; }
.toolcard .row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.toolcard .row:first-of-type { border-top: 0; }
.toolcard .ok { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font: 500 12px/1 var(--sans); color: var(--ok); }
.toolcard .ok svg { width: 14px; height: 14px; }

/* ---- Steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step .num { width: 32px; height: 32px; border-radius: var(--r); background: var(--teal-soft); color: var(--teal-press); font: 600 15px/1 var(--sans); display: grid; place-items: center; margin-bottom: 15px; }
.step h3 { margin-bottom: 7px; } .step p { font-size: 14.5px; color: var(--muted); }

/* ---- Pricing ------------------------------------------------------------ */
.ptoggle { display: inline-flex; gap: 3px; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 36px; }
.ptoggle button { font: 500 13px/1 var(--sans); padding: 8px 15px; border-radius: 999px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.ptoggle button.on { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
/* Six self-serve rungs read as 3x2; 6 across would crush every column. Custom sits
   below in .ptiles-wide because it is off the ladder, not the seventh step. */
.ptiles.three { grid-template-columns: repeat(3, 1fr); }
.ptiles-wide { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
/* `display: grid` above beats the UA stylesheet's [hidden] { display: none }, so
   without this the inactive plan panels stay on screen and the tabs do nothing
   visible. Author rules win over UA rules regardless of specificity. */
.ptiles[hidden], .ptiles-wide[hidden] { display: none; }
/* ── Pricing control bar ──────────────────────────────────────────────────────
   type LEFT · billing period CENTRE · currency RIGHT, one row.
   Grid rather than flex+space-between so the centre group is centred against the
   PAGE: with space-between, "Everything else" being wider than "GBP £" visibly
   shoves the billing toggle off-centre. */
.pbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0 0 14px; }
.pbar > :nth-child(1) { justify-self: start; }
.pbar > :nth-child(3) { justify-self: end; }

/* One segmented-control class in two sizes, so the three groups cannot drift apart
   visually the way three separately-styled toggles did. */
.seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 13px/1 var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.seg.sm button { font-size: 12px; padding: 7px 11px; }
.seg .save { color: var(--teal); font-weight: 600; }
.gwrap { text-align: center; }
.m-only { display: none; }

/* Plan group tabs. Taller than .ptoggle because each carries a price range on a
   second line — that range is what makes splitting the ladder safe, so it is part
   of the control rather than a caption under it. */
.gtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 auto 12px; }
.gtabs button { position: relative; display: grid; gap: 2px; text-align: left; padding: 9px 18px; border-radius: var(--r-md); border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font: 500 13px/1 var(--sans); }
.gtabs button b { font: 600 14px/1 var(--sans); letter-spacing: -.01em; }
.gtabs button span { font: 500 11px/1 var(--sans); color: var(--muted-2, var(--muted)); font-variant-numeric: tabular-nums; }
.gtabs button.on { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.gtabs button.on span { color: var(--teal); }
.gtabs button .pop { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 999px; background: var(--teal); }
.gtabs button.on .pop { display: none; }
@media (max-width: 560px) {
  .gtabs { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .gtabs button { padding: 9px 8px; text-align: center; justify-items: center; }
}
.ptile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; display: flex; flex-direction: column; }
.ptile.feat { border-color: var(--teal); position: relative; }
.ptile .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font: 500 11px/1 var(--sans); padding: 5px 11px; border-radius: 999px; }
.ptile .pn { font: 600 16px/1 var(--sans); letter-spacing: -.02em; }
.ptile .pp { margin: 12px 0 3px; font: 700 36px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ptile .pp small { font: 500 14px/1 var(--sans); color: var(--muted); }
.ptile .pd { font-size: 13px; color: var(--muted); min-height: 38px; }
.ptile .btn { margin: 16px 0; width: 100%; }
.ptile ul { list-style: none; display: grid; gap: 9px; }

/* Comparison table */
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable th, .ctable td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.ctable thead th { font: 600 14px/1 var(--sans); }
.ctable td.c, .ctable th.c { text-align: center; }
.ctable .yes { color: var(--teal); font-weight: 600; } .ctable .no { color: var(--faint); }
.ctable tbody tr:hover { background: var(--canvas); }
.ctable .grp td { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-press); background: var(--canvas); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 17px 19px; font: 500 15.5px/1.4 var(--sans); display: flex; justify-content: space-between; gap: 16px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 17px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 19px 17px; color: var(--muted); font-size: 14.5px; }

/* ---- Breadcrumb / sub-hero ---------------------------------------------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding-top: 24px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--teal); }
.crumb svg { width: 13px; height: 13px; color: var(--faint); }
.crumb .cur { color: var(--ink); font-weight: 500; }
.subhero { padding: 36px 0 52px; }
.subhero .eyebrow { margin-bottom: 14px; display: block; }
.subhero h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 18ch; }
.subhero .lead { max-width: 56ch; margin-top: 16px; }
.subhero .cta { justify-content: flex-start; }
.prose { max-width: 760px; }
.prose h2 { margin: 38px 0 13px; } .prose h3 { margin: 26px 0 9px; }
.prose p { margin-bottom: 13px; color: var(--ink-2); }
.prose ul { margin: 0 0 16px 0; padding-left: 22px; color: var(--ink-2); } .prose li { margin-bottom: 6px; }
.prose .updated { color: var(--faint); font-size: 13.5px; }

/* ---- CTA band ----------------------------------------------------------- */
.band { text-align: center; max-width: 880px; margin: 0 auto; background: var(--ink); border-radius: var(--r-2xl); padding: 56px 40px; color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -10%, rgba(45, 212, 191, .28), transparent 60%); }
.band > * { position: relative; }
.band h2 { color: #fff; } .band p { color: rgba(255, 255, 255, .8); margin: 13px auto 0; max-width: 52ch; }
.band .btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.band .btn-primary:hover { background: var(--teal-hover); }
.band .cta { margin-top: 26px; }

/* ---- Footer ------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--line); padding: 60px 0 38px; background: var(--canvas); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.foot-grid .about { max-width: 280px; }
.foot-grid .about p { font-size: 13.5px; color: var(--muted); margin-top: 11px; }
.foot-col h5 { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.foot-col a:hover { color: var(--teal); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* ---- Reveal ------------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .reveal-load, .hero * { opacity: 1 !important; transform: none !important; animation: none !important; } .fill { animation: none; } html { scroll-behavior: auto; } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .nlinks, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .menu-btn { display: block; }
  .split, .split.rev .copy { grid-template-columns: 1fr; order: 0; gap: 30px; }
  .cards, .cards.two, .steps, .ptiles, .kpis, .dgrid, .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mobile-menu.open { display: block; position: fixed; inset: 62px 0 0; background: #fff; z-index: 55; padding: 18px; overflow-y: auto; }
  .mobile-menu.open a { display: block; padding: 13px 4px; font: 500 17px/1 var(--sans); border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu.open .btn { margin-top: 14px; width: 100%; }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .cards, .cards.two, .steps, .ptiles, .kpis, .dgrid, .stats, .foot-grid { grid-template-columns: 1fr; }
  .band { padding: 40px 22px; }
  .menu { min-width: 86vw; grid-template-columns: 1fr; }
}

/* Comparison, stacked — mobile only. Declared BEFORE the media query below:
   same specificity means source order decides, and writing it after silently
   beat the `display:block` inside the query at every width. */
.cmp-stack { display: none; }

/* ── Pricing, on a phone ──────────────────────────────────────────────────────
   One row of three controls does not fit at 390px, so it becomes a stack ordered
   by how much the decision matters: billing period (carries the two-months-free
   saving) full width, then the plan-group tabs, then type + currency sharing a row. */
@media (max-width: 720px) {
  .pbar { grid-template-columns: 1fr 1fr; grid-template-areas: "period period" "type currency"; gap: 10px; }
  .pbar > :nth-child(1) { grid-area: type;     justify-self: stretch; }
  .pbar > :nth-child(2) { grid-area: period;   justify-self: stretch; }
  .pbar > :nth-child(3) { grid-area: currency; justify-self: stretch; }
  /* minmax(0,1fr), NOT 1fr: a 1fr track's automatic minimum is min-content, and
     these buttons are nowrap, so "Annually −2 months" refused to shrink and pushed
     the bar past the viewport. Same trap as a flex item without min-width:0. */
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .seg button { padding: 9px 4px; text-align: center; font-size: 12px; white-space: normal; }
  .gtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .gtabs button { padding: 9px 6px; text-align: center; justify-items: center; }
  .gtabs button b { font-size: 13px; }
  .d-only { display: none; }
  .m-only { display: inline; }

  /* Plans become ONE swipeable row. Stacked cards made the page enormous — you
     scrolled past Launch and Core to reach the plan you wanted. The scroller is
     full-bleed (negative margin cancels .wrap's inset) so the next card peeks at
     the edge; that peek is what tells you it swipes. */
  .ptiles, .ptiles.three {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4vw;
    margin-inline: -4vw;
    padding: 2px 4vw 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ptiles::-webkit-scrollbar { display: none; }
  /* min-width:0 or a long bullet re-inflates the card past its flex-basis. */
  .ptiles > .ptile { flex: 0 0 82%; scroll-snap-align: start; min-width: 0; }
  .ptiles-wide > .ptile { min-width: 0; }
  .swipe-hint { display: flex; }

  /* The 8-column comparison table measures ~763px and `width:100%` cannot shrink it
     below its own cell padding, so at 390px it is what makes the whole document
     scroll sideways — wrapping it in overflow:auto does not stop it contributing to
     the root scroll width. On a phone it is not rendered at all; the same data
     becomes one collapsible block per plan. */
  .cmp-table { display: none; }
  .cmp-stack { display: block; }
}

.cmp-plan { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; background: #fff; overflow: hidden; }
.cmp-plan > summary { list-style: none; cursor: pointer; padding: 13px 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cmp-plan > summary::-webkit-details-marker { display: none; }
.cmp-plan > summary b { font: 600 15px/1 var(--sans); }
.cmp-plan > summary .pr { font: 600 14px/1 var(--sans); color: var(--teal); font-variant-numeric: tabular-nums; }
.cmp-plan[open] > summary { border-bottom: 1px solid var(--line-soft); }
.cmp-grp { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-press); background: var(--canvas); padding: 8px 15px; }
.cmp-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 15px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row dt { color: var(--muted); }
.cmp-row dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.cmp-row dd.no { color: var(--faint); font-weight: 400; }
.cmp-row dd.yes { color: var(--teal); }
.swipe-hint { display: none; justify-content: center; align-items: center; gap: 6px; margin-top: 2px; font: 500 11px/1 var(--sans); color: var(--faint); }
