/* RestoreUnited marketing site — design system.
   Brand: logo brick red + charcoal, site teal #004C66 (from restoreunited.com), refined into a
   deep-navy SaaS palette. System font stack (no third-party font requests; CSP font-src 'self'). */

:root {
  --navy-900: #04202c;
  --navy-800: #062f40;
  --teal-700: #004c66;
  --teal-600: #0a6382;
  --teal-500: #11819f;
  --teal-100: #e3f2f6;
  --brick-600: #b33a24;
  --brick-500: #c4432b;
  --brick-400: #e0623f;
  --brick-100: #fdeee9;
  --charcoal: #2f2f37;
  --ink: #0f1d26;
  --body: #33434e;
  --muted: #5d6d78;
  --line: #dde6eb;
  --mist: #f4f8fa;
  --white: #fff;
  --green: #1f8a5b;
  --amber: #b7791f;
  --red: #c0392b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(6, 47, 64, .06), 0 1px 3px rgba(6, 47, 64, .08);
  --shadow: 0 10px 30px -12px rgba(6, 47, 64, .25), 0 4px 10px -6px rgba(6, 47, 64, .12);
  --shadow-lg: 0 30px 60px -20px rgba(4, 32, 44, .45);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brick-400); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.big { font-size: 1.2rem; color: var(--ink); }
.ic { width: 22px; height: 22px; flex: none; }
.ic-xl { width: 56px; height: 56px; }
.hp { position: absolute; left: -9999px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.35em; border-radius: 10px; border: 1.5px solid transparent;
  background: linear-gradient(180deg, var(--brick-400), var(--brick-500)); color: #fff; font: inherit; font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(196, 67, 43, .6), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(196, 67, 43, .7); }
.btn-ghost { background: var(--white); color: var(--teal-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--teal-700); border-color: var(--teal-500); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.btn-light:hover { color: var(--brick-500); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .5em .95em; font-size: .9rem; border-radius: 8px; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish.danger { color: var(--red); }

/* Preview bar */
.preview-bar { background: var(--charcoal); color: #e9edf0; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; padding: 6px 24px; flex-wrap: wrap; }
.preview-bar a, .preview-bar .linkish { color: #fff; }
.pb-links { display: flex; gap: 1rem; align-items: center; }
.pb-links form { margin: 0; }

/* Header */
/* The frosted backdrop lives on ::before: a backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu and squeeze the menu into the header's 72px. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(6,47,64,.5); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 178px; height: auto; }
.primary-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-top { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px; color: var(--ink); font: inherit; font-size: .96rem; font-weight: 560; text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-top[aria-expanded="true"] { background: var(--mist); color: var(--teal-700); }
@media (hover: hover) { .nav-top:hover { background: var(--mist); color: var(--teal-700); } }
button.nav-top::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 6px; opacity: .6; transition: transform .2s; }
button.nav-top[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.has-mega { position: relative; }
.mega { position: absolute; left: -20px; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 60; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; gap: 22px; }
.mega-4 { grid-template-columns: repeat(3, minmax(170px, 1fr)) 230px; width: min(920px, 92vw); }
.mega-2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); width: min(560px, 92vw); }
.mega-h { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.mega ul { list-style: none; margin: 0 0 14px; padding: 0; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.mega li a:hover { background: var(--mist); color: var(--teal-700); }
.mega li .ic { width: 18px; height: 18px; color: var(--teal-600); }
.mega-feature { background: linear-gradient(160deg, var(--teal-100), #fff); border-radius: 12px; padding: 16px; font-size: .9rem; grid-row: span 2; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .9rem; }
.mega-all .ic { width: 16px; height: 16px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { color: var(--ink); text-decoration: none; font-weight: 560; font-size: .96rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #d7e6ec; background: var(--navy-900); padding: 84px 0 96px; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 85% 10%, rgba(17,129,159,.45), transparent 60%),
  radial-gradient(700px 420px at 10% 100%, rgba(196,67,43,.30), transparent 60%),
  linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(90deg, #ffb39c, var(--brick-400) 45%, #ff8a6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brick-500); margin: 0 0 14px; }
.eyebrow .ic { width: 16px; height: 16px; }
.hero .eyebrow { color: #ffb39c; }
.hero-lede { font-size: 1.22rem; color: #c6dbe3; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .96rem; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points .ic { width: 18px; height: 18px; color: #7fd6c0; }
.hero-visual { position: relative; }
.concept-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .74rem; color: #9fb9c4; }
.concept-tag .ic { width: 14px; height: 14px; }

/* Animated concept dashboard */
.showcase { position: relative; padding: 0 0 40px; }
.app-window { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transform-origin: left center; animation: float 9s ease-in-out infinite; color: var(--body); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f7; border-bottom: 1px solid var(--line); }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dfe4; }
.app-bar .dot:first-child { background: #f08a6c; }
.app-url { margin-left: 10px; font-size: .72rem; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 54px 1fr; min-height: 330px; }
.app-side { background: var(--navy-800); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
.side-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brick-500); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.side-logo:has(img) { background: #fff; }
.side-logo img { width: 24px; height: 24px; display: block; }
.side-i { color: #7fa7b6; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.side-i .ic { width: 18px; height: 18px; }
.side-i.is-on { background: rgba(255,255,255,.1); color: #fff; }
.app-main { padding: 16px; background: #f8fbfc; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; }
.kpi-l { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi-v { font-size: 1.55rem; font-weight: 780; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-d { font-size: .68rem; color: var(--muted); }
.kpi-d.up { color: var(--green); }
.kpi-d.warn { color: var(--amber); }
.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.panel-h { font-size: .7rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.panel-h.mt { margin-top: 12px; }
.joblist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.joblist li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: .7rem; padding: 6px 0; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateX(-10px); animation: slideIn .6s var(--ease) forwards; }
.joblist li.d0 { animation-delay: .5s; } .joblist li.d1 { animation-delay: .75s; } .joblist li.d2 { animation-delay: 1s; } .joblist li.d3 { animation-delay: 1.25s; }
.jl-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.t-water { background: #e2f0fb; color: #1f6aa5; } .t-fire { background: #fde9e3; color: var(--brick-600); } .t-mold { background: #e6f5ec; color: var(--green); } .t-storm { background: #ece9fb; color: #5b47b8; }
.pill { font-size: .6rem; padding: 2px 7px; border-radius: 99px; font-weight: 650; white-space: nowrap; }
.p-blue { background: var(--teal-100); color: var(--teal-700); } .p-amber { background: #fdf3df; color: var(--amber); } .p-green { background: #e6f5ec; color: var(--green); } .p-red { background: #fde8e6; color: var(--red); }
.sched { display: grid; gap: 7px; }
.sched-row { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 6px; font-size: .64rem; color: var(--muted); }
.bar { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); transform-origin: left; transform: scaleX(0); animation: grow 1s var(--ease) forwards; }
.b1 { width: 82%; animation-delay: .6s; margin-left: 4%; } .b2 { width: 64%; animation-delay: .8s; margin-left: 18%; background: linear-gradient(90deg, var(--brick-400), var(--brick-500)); } .b3 { width: 74%; animation-delay: 1s; } .b4 { width: 40%; animation-delay: 1.2s; margin-left: 46%; background: linear-gradient(90deg, #8f7be0, #5b47b8); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal-500), var(--teal-100)); transform-origin: bottom; transform: scaleY(0); animation: rise .9s var(--ease) forwards; }
.spark .h1 { height: 40%; animation-delay: .9s; } .spark .h2 { height: 55%; animation-delay: 1s; } .spark .h3 { height: 48%; animation-delay: 1.1s; } .spark .h4 { height: 70%; animation-delay: 1.2s; }
.spark .h5 { height: 62%; animation-delay: 1.3s; } .spark .h6 { height: 78%; animation-delay: 1.4s; background: linear-gradient(180deg, var(--brick-400), var(--brick-100)); } .spark .h7 { height: 66%; animation-delay: 1.5s; }
.phone { position: absolute; right: -10px; bottom: 0; width: 150px; height: 290px; border-radius: 26px; background: var(--charcoal); padding: 8px; box-shadow: var(--shadow-lg); animation: float 9s ease-in-out infinite reverse; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 46px; height: 12px; margin-left: -23px; border-radius: 0 0 8px 8px; background: var(--charcoal); z-index: 2; }
.phone-screen { background: #fff; border-radius: 20px; height: 100%; padding: 22px 10px 10px; display: flex; flex-direction: column; gap: 6px; font-size: .62rem; }
.ph-h { font-weight: 750; color: var(--ink); margin: 0; font-size: .74rem; }
.ph-sub { color: var(--muted); margin: 0; }
.ph-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.ph-photos i { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #b7cfd8, #6f97a6); }
.ph-photos i:nth-child(2) { background: linear-gradient(135deg, #d9c2b4, #a67b62); }
.ph-photos .uploading { background: linear-gradient(135deg, #c9d9df, #94b4c0); animation: pulse 1.6s ease-in-out infinite; }
.ph-progress { height: 5px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.ph-progress span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; animation: progress 3.2s var(--ease) infinite; }
.ph-note { color: var(--green); font-weight: 650; margin: 0; }
.ph-btn { margin-top: auto; background: var(--brick-500); color: #fff; text-align: center; border-radius: 8px; padding: 7px; font-weight: 700; }
/* Showcase animations wait until the showcase is on screen (site.js adds .is-playing). */
.js .showcase:not(.is-playing) *, .js .showcase:not(.is-playing) { animation-play-state: paused; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes slideIn { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes progress { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

/* Sections */
.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.strip { border-bottom: 1px solid var(--line); background: var(--white); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 24px; }
.strip-grid div { display: grid; gap: 2px; }
.strip-grid strong { color: var(--ink); }
.strip-grid span { font-size: .88rem; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--body);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c5d8e0; color: var(--body); }
.fcard h3 { margin: 6px 0 2px; }
.fcard p { font-size: .94rem; color: var(--muted); margin: 0; }
.fcard-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--teal-100), #fff); color: var(--teal-700); border: 1px solid #cfe5ec; }
.fcard-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 640; font-size: .9rem; color: var(--teal-600); }
.fcard-more .ic { width: 16px; height: 16px; transition: transform .2s; }
.fcard:hover .fcard-more .ic { transform: translateX(3px); }
.fcard.is-soon { background: var(--mist); }
.feature-group { margin-bottom: 48px; }

/* Tour */
.tour-section { background: var(--mist); }
.tour-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 28px; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.tour-tabs button { border: 0; background: none; font: inherit; font-weight: 620; padding: 10px 18px; border-radius: 8px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tour-tabs button[aria-selected="true"] { background: var(--navy-800); color: #fff; }
/* Author display rules beat the UA [hidden] rule; keep hidden elements hidden everywhere */
[hidden] { display: none !important; }
.tour-panel { display: grid; grid-template-columns: .9fr 1.2fr; gap: 40px; align-items: center; animation: fadeUp .4s var(--ease); }
.tour-copy a { display: inline-flex; gap: 6px; align-items: center; font-weight: 640; }
.tour-copy .ic { width: 16px; height: 16px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 0; background: linear-gradient(180deg, rgba(4,32,44,.1), rgba(4,32,44,.55)); color: #fff; font: inherit; font-weight: 650; cursor: pointer; padding: 16px; text-align: center; }
.video-play .ic { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--brick-500); fill: #fff; stroke: none; box-shadow: 0 0 0 10px rgba(196,67,43,.25); transition: transform .2s; }
.video-play:hover .ic { transform: scale(1.06); }
.video-tag { position: absolute; left: 10px; top: 10px; font-size: .7rem; background: rgba(4,32,44,.72); color: #fff; padding: 3px 8px; border-radius: 6px; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: s; position: relative; }
.flow::before { content: ""; position: absolute; top: 28px; left: 7%; right: 7%; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--brick-400)); opacity: .5; }
.flow-step { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.flow-step strong { color: var(--ink); font-size: .95rem; }
.flow-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--teal-500); color: var(--teal-700); display: grid; place-items: center; box-shadow: var(--shadow-sm); position: relative; z-index: 1; }
.flow-step:last-child .flow-ic { border-color: var(--brick-500); color: var(--brick-500); }
/* Live flow: progress line fills and steps light up in turn */
.flow::after { content: ""; position: absolute; top: 28px; left: 7%; right: 7%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal-500), var(--brick-500)); transform-origin: left; transform: scaleX(var(--flow-p, 0)); transition: transform .8s var(--ease); opacity: 0; }
.flow.is-live::after { opacity: 1; }
.flow-ic { transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s; }
.flow-step strong { transition: color .3s; }
.flow-step.is-done .flow-ic { background: var(--teal-100); }
.flow-step.is-active .flow-ic { transform: scale(1.14); background: var(--teal-700); color: #fff; box-shadow: 0 0 0 8px rgba(17,129,159,.15), var(--shadow); }
.flow-step:last-child.is-active .flow-ic { background: var(--brick-500); box-shadow: 0 0 0 8px rgba(196,67,43,.15), var(--shadow); }
.flow-step.is-active strong { color: var(--teal-700); }
.flow-step { cursor: default; }
/* Tour auto-advance progress on the active tab */
.tour-tabs button { position: relative; overflow: hidden; }
.tour.is-auto.tick .tour-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.75); transform-origin: left; animation: tabProgress var(--auto-ms, 7s) linear forwards; }
@keyframes tabProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Card tilt with a soft light that follows the pointer */
.tilt { transition: transform .25s var(--ease), box-shadow .25s; transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt:hover { box-shadow: var(--shadow-lg); }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); opacity: 0; transition: opacity .25s; }
.tilt:hover::after { opacity: 1; }
/* Reading progress */
/* Deep page sections: generous whitespace, short measures */
.mt-md { margin-top: 1.5rem; }
.deep { padding: 96px 0; }
.deep + .deep { padding-top: 0; }
.deep-head { max-width: 680px; margin: 0 0 40px; }
.deep-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.deep-head p { color: var(--muted); font-size: 1.08rem; }
.lead-paras { max-width: 680px; }
.lead-paras p { font-size: 1.14rem; line-height: 1.75; color: var(--body); margin: 0 0 1.2em; }
.wsteps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.wsteps > li { counter-increment: st; position: relative; padding: 26px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.wsteps > li::before { content: counter(st, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--teal-500); margin-bottom: 10px; }
.wsteps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.wsteps p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.role-card h3 { font-size: 1.02rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.role-card h3 .fcard-ic { width: 36px; height: 36px; }
.role-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.ba { display: grid; gap: 14px; max-width: 900px; }
.ba-head, .ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-head span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 20px; }
.ba-row > div { padding: 18px 20px; border-radius: 14px; line-height: 1.55; }
.ba-before { background: #fbf1ee; color: #6b3a2e; }
.ba-after { background: #e9f5f7; color: var(--teal-800, #063c4d); }
.sign-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.sign-list > li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; line-height: 1.55; }
.sign-list > li .ic { flex: none; width: 22px; height: 22px; color: var(--brick-500); margin-top: 2px; }
.moments { list-style: none; padding: 0 0 0 26px; margin: 0; border-left: 3px solid var(--teal-100); display: grid; gap: 26px; max-width: 760px; }
.moment { position: relative; }
.moment::before { content: ""; position: absolute; left: -35px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-500); }
.moment strong { display: block; color: var(--teal-700); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.moment p { margin: 0; line-height: 1.65; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.watch-grid > div { padding: 22px; border-radius: 16px; background: linear-gradient(160deg, var(--navy-800), var(--teal-700)); color: #cfe2e9; }
.watch-grid h3 { color: #fff; font-size: 1rem; margin: 0 0 6px; }
.watch-grid p { margin: 0; font-size: .95rem; line-height: 1.55; }
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 760px; counter-reset: q; }
.q-list li { counter-increment: q; padding: 14px 18px 14px 56px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.q-list li::before { content: counter(q); position: absolute; left: 16px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); font-weight: 700; font-size: .85rem; }
@media (max-width: 680px) { .deep { padding: 64px 0; } .ba-head { display: none; } .ba-row { grid-template-columns: 1fr; } .lead-paras p { font-size: 1.05rem; } }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 80; background: linear-gradient(90deg, var(--teal-500), var(--brick-500)); transform-origin: left; transform: scaleX(0); }
/* Primary buttons: a light sweep on hover */
.btn:not(.btn-ghost) { position: relative; overflow: hidden; }
.btn:not(.btn-ghost)::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:not(.btn-ghost):hover::before { left: 120%; }

/* Split / use cases / integrations */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { background: linear-gradient(170deg, var(--mist), #fff); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.split-card h2 { font-size: 1.6rem; }
.split-card a { display: inline-flex; gap: 6px; align-items: center; font-weight: 640; }
.split-card a .ic { width: 16px; height: 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004c66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks-warn li::before { background: var(--brick-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4432b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h0'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks-lg { font-size: 1.06rem; }
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.use-card { border-radius: 18px; padding: 26px; color: #d8e7ed; text-decoration: none; background: linear-gradient(160deg, var(--navy-800), var(--teal-700)); position: relative; overflow: hidden; transition: transform .2s var(--ease); }
.use-card:hover { transform: translateY(-4px); color: #fff; }
.use-card h3 { color: #fff; }
.use-card p { font-size: .93rem; margin: 0; }
.use-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); color: #ffb39c; margin-bottom: 18px; }
.integrations-band { background: var(--mist); }
.int-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.int-cards { display: grid; gap: 14px; }
.int-card { display: grid; gap: 2px; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); box-shadow: var(--shadow-sm); }
.int-card strong { color: var(--ink); font-size: 1.1rem; }

/* Case / compare */
.case-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.case-img img { border-radius: 20px; box-shadow: var(--shadow); }
.case h2 { font-size: 1.5rem; font-weight: 680; }
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; }
.stat-row span { display: grid; font-size: .86rem; color: var(--muted); }
.stat-row strong { font-size: 1.8rem; color: var(--brick-500); line-height: 1.1; }
.unverified { position: relative; border: 2px dashed #e7b24a; background: #fff9ec; border-radius: 12px; padding: 14px 14px 30px; margin: 0 0 1em; }
.unverified-tag { position: absolute; left: 14px; bottom: 7px; font-size: .7rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.cmp thead th { background: var(--mist); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp tbody th { color: var(--ink); font-weight: 650; }
.cmp .ru { background: #f2fafc; color: var(--teal-700); font-weight: 620; }
.cmp thead .ru { background: var(--navy-800); color: #fff; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* Resources */
.resources-band { background: linear-gradient(180deg, #fff, var(--mist)); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.res-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--muted); }
.res-card h3 { margin: 0; }
.res-card p { font-size: .92rem; margin: 0; }
.res-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--brick-500); display: inline-flex; gap: 6px; align-items: center; }
.res-tool { background: linear-gradient(160deg, var(--brick-100), #fff); border-color: #f5d3c8; }

/* CTA band */
.cta-band { background: radial-gradient(700px 300px at 90% 0%, rgba(196,67,43,.45), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--teal-700)); color: #cfe2e9; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 44px; background: radial-gradient(800px 300px at 90% -10%, rgba(17,129,159,.14), transparent 60%), linear-gradient(180deg, var(--mist), #fff); border-bottom: 1px solid var(--line); }
.page-hero .lede, .lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.center .lede { margin-left: auto; margin-right: auto; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b5c4cc; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-600); }
.feature-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-placeholder { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 2px dashed #c5d8e0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background: #fff; }
.media-placeholder .ic-xl { color: var(--teal-500); margin: 0 auto 10px; }
.notice { background: #fff9ec; border: 1px solid #f1d9a4; border-left: 4px solid #e7b24a; border-radius: 10px; padding: 14px 16px; color: #6a5220; }
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 2em; }
.example { background: var(--mist); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.example p { margin: 0; font-size: .96rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; }
.panel-accent { background: linear-gradient(170deg, var(--teal-100), #fff); border-color: #cfe5ec; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--brick-500); background: var(--brick-100); border-radius: 0 12px 12px 0; font-size: 1.15rem; color: var(--ink); font-weight: 560; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--mist); color: var(--ink); }
.callout { background: var(--teal-100); border-radius: 12px; padding: 14px 18px; margin: 0 0 1em; color: var(--ink); }
.wide-img { border-radius: 16px; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.facts div { background: var(--mist); border-radius: 12px; padding: 12px 14px; display: grid; }
.facts span { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts strong { color: var(--ink); }
.link-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.link-list.cols-2 { grid-template-columns: 1fr 1fr; }
.related-answers { margin: 2em 0; }

/* FAQ */
.faq { margin: 2.4em 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 650; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal-600); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--body); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.plan.is-featured { border: 2px solid var(--brick-500); box-shadow: var(--shadow); }
.plan.is-selected { outline: 3px solid var(--teal-500); }
.plan-flag { position: absolute; top: -12px; left: 30px; background: var(--brick-500); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h2 { font-size: 1.4rem; margin: 0; }
.plan-users { color: var(--muted); margin: 0 0 10px; }
.plan-price { font-size: 1.7rem; font-weight: 780; color: var(--ink); margin: 0 0 18px; }
.plan .ticks { flex: 1; font-size: .95rem; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 620; font-size: .9rem; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid #cfdbe1; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(17,129,159,.15); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brick-500); }
input[type="range"] { padding: 0; accent-color: var(--brick-500); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.err { color: var(--red); font-size: .84rem; margin: 0; }
.hint { color: var(--muted); font-size: .82rem; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 450; color: var(--body); }
.check input { margin-top: .3em; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alert { background: #fde8e6; color: #8a2a1e; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 20px; }
.contact-cards > * { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--body); }
.contact-cards span { display: grid; }
.contact-cards strong { color: var(--ink); }
.contact-cards .ic { color: var(--teal-600); }
.search-inline { display: flex; gap: 8px; max-width: 620px; margin-top: 18px; }
.center .search-inline { margin-left: auto; margin-right: auto; }
.search-inline .btn .ic { width: 18px; height: 18px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2rem; color: #cfdbe1; cursor: pointer; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f2a93b; }
.stars input:focus-visible + label { outline: 3px solid var(--brick-400); border-radius: 4px; }

/* Assessment & calculators */
.assess-list { list-style: none; padding: 0; counter-reset: q; display: grid; gap: 18px; }
.assess-q { counter-increment: q; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.assess-q legend::before { content: counter(q) ". "; color: var(--brick-500); }
.assess-q legend { font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; height: 100%; text-align: center; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .88rem; cursor: pointer; transition: all .15s; }
.seg input:checked + span { border-color: var(--teal-600); background: var(--teal-100); color: var(--teal-700); font-weight: 650; }
.seg input:focus-visible + span { outline: 3px solid var(--brick-400); }
.assess-result { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: linear-gradient(160deg, var(--navy-800), var(--teal-700)); color: #d5e6ec; border-radius: 20px; padding: 28px; margin: 28px 0; }
.assess-result h2 { color: #fff; }
.assess-result .muted { color: #a9c3cd; }
.assess-result .ticks li::before { background-color: rgba(255,255,255,.9); }
.score-ring { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--brick-400) var(--p, 0%), rgba(255,255,255,.12) 0); position: relative; color: #fff; }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--navy-800); }
.score-ring span, .score-ring small { position: relative; }
.score-ring span { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.assess-capture, .tool-save { background: var(--mist); border-radius: 20px; padding: 28px; display: grid; gap: 14px; margin-top: 24px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-in { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.calc-in fieldset { display: grid; gap: 12px; }
.calc-out { position: sticky; top: 96px; background: linear-gradient(160deg, var(--navy-800), var(--teal-700)); color: #d5e6ec; border-radius: 20px; padding: 28px; }
.big-stat { display: grid; margin-bottom: 18px; }
.big-stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #a9c3cd; }
.big-stat strong { font-size: 3rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.out-grid div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; display: grid; }
.out-grid span { font-size: .78rem; color: #a9c3cd; }
.out-grid strong { color: #fff; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cost-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 18px 0 6px; background: rgba(255,255,255,.1); }
.cost-bar i { display: block; height: 100%; transition: flex-grow .3s var(--ease); }
.how { margin-top: 16px; font-size: .88rem; }
.how summary { cursor: pointer; color: #fff; }
.calc-out a { color: #ffb39c; }
.gauge { height: 14px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 16px; }
.gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7fd6c0, #f2a93b, var(--brick-400)); transition: width .3s var(--ease); }
.calc-note { margin: 14px 0 0; color: #fff; font-weight: 600; }
output { font-weight: 700; color: var(--brick-500); }

/* Signup */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 18px 0 26px; flex-wrap: wrap; }
.center .steps { justify-content: center; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); font-weight: 700; font-size: .78rem; }
.steps .now { border-color: var(--brick-500); color: var(--ink); font-weight: 650; }
.steps .now span { background: var(--brick-500); color: #fff; }
.steps .done span { background: var(--green); color: #fff; }
/* Narrow screens: only the current step keeps its label (others show the number; the text stays for screen readers). */
@media (max-width: 420px) {
  .steps li:not(.now) { font-size: 0; gap: 0; padding: 4px; }
  .steps li:not(.now) span { font-size: .78rem; }
}
.summary { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; background: #fff; padding: 14px 18px; flex-wrap: wrap; }
.summary span { color: var(--muted); }
.summary strong { color: var(--ink); }
.agreement-signed { display: flex; gap: 10px; align-items: flex-start; background: #e3f4ea; border: 1px solid #bfe3cc; border-radius: 10px; padding: 12px 14px; color: var(--ink); font-size: .92rem; margin: 0; }
.agreement-signed .ic { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: .1em; }
.testmode { border: 2px dashed var(--teal-500); background: var(--teal-100); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; color: var(--ink); }
.next-steps { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 12px; }
.next-steps li { counter-increment: n; position: relative; padding: 16px 18px 16px 62px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.next-steps li::before { content: counter(n); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); font-weight: 800; }

/* Answer hub & articles */
.hub-hero .search-inline { margin-top: 24px; }
.hub-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.hub-cats { position: sticky; top: 96px; }
.hub-cats ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.hub-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--body); font-size: .92rem; }
.hub-cats a:hover, .hub-cats a[aria-current] { background: var(--mist); color: var(--teal-700); }
.hub-cats a[aria-current] { font-weight: 650; }
.count { font-size: .76rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; }
.answer-list { display: grid; gap: 14px; }
.answer-card { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); background: #fff; transition: border-color .2s, box-shadow .2s; }
.answer-card:hover { border-color: #b9d3dc; box-shadow: var(--shadow); color: var(--muted); }
.answer-card h2 { font-size: 1.22rem; margin: 0; }
.answer-card p { margin: 0; font-size: .95rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--muted); background: #fff; padding: 0 0 20px; }
.post-card > *:not(.post-art) { padding: 0 22px; }
.post-card h2 { font-size: 1.2rem; margin: 0; }
.post-card p { font-size: .94rem; margin: 0; }
.post-art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--navy-800); margin-bottom: 8px; }
.post-card.is-lead .post-art { aspect-ratio: 16 / 7; }
.post-meta { margin-top: auto; color: var(--muted); font-size: .84rem; }
.post-card .post-meta { padding-top: 6px; }
.answer-card .post-meta { font-size: .82rem; }
.queue-note { margin: 40px 0 18px; padding: 14px 18px; border: 1px dashed #b9d3dc; border-radius: 12px; background: var(--mist); color: var(--ink); font-size: .94rem; }
.article-cover { margin-top: -8px; margin-bottom: 28px; }
.article-cover .cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 480; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.article-video { margin: 36px 0; }
/* Resources hub */
.section-tint { background: var(--mist); }
.section.section-tint, .section-tint + .section { padding-top: 72px; padding-bottom: 72px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; flex-basis: 100%; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more .ic { width: 16px; height: 16px; }
.res-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: .95rem; }
.res-stats strong { color: var(--ink); font-size: 1.15rem; margin-right: 4px; }
.path-card { align-content: start; }
.path-links { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.dated-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.dated-list li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dated-list a { font-weight: 600; text-decoration: none; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.topic-h { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.topic-h .fcard-ic { width: 38px; height: 38px; margin: 0; flex: none; }
.topic-h .count { margin-left: auto; }
.topic-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.editorial-note { margin-top: 40px; padding: 24px 28px; border-left: 4px solid var(--teal-500); background: var(--mist); border-radius: 0 14px 14px 0; }
.editorial-note h2 { font-size: 1.15rem; margin-top: 0; }
.editorial-note p { margin: 0; color: var(--muted); }
.timeline { list-style: none; margin: 18px 0 28px; padding: 0 0 0 22px; border-left: 3px solid var(--teal-100); display: grid; gap: 18px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--teal-500); border: 3px solid #fff; }
.tl-when { font-weight: 700; color: var(--ink); }
.unverified .timeline { margin: 0; }
.gl-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gl-jump a { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; }
.gl-group { scroll-margin-top: 90px; margin-bottom: 44px; }
.gl-group dl > div { scroll-margin-top: 90px; }
.gl-rel { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.tool-guides { display: grid; gap: 12px; margin-top: 24px; }
.tool-guide { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.tool-guide summary { cursor: pointer; padding: 16px 0; display: grid; gap: 4px; }
.tool-guide summary span { color: var(--muted); font-size: .95rem; }
.tool-guide h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.support-topics { margin-top: 22px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid figure { margin: 0; }
.video-grid figcaption { margin-top: 8px; font-weight: 600; }
@media (max-width: 960px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .video-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .topic-grid, .dated-list { grid-template-columns: 1fr; } }
.article-video h2 { font-size: 1.25rem; }
.post-card.is-lead { grid-column: span 2; }
.draft-banner { background: #fff4e5; border-bottom: 1px solid #f1d9a4; padding: 10px 24px; font-size: .9rem; text-align: center; }
.article-hero { padding-bottom: 32px; }
.byline { color: var(--muted); font-size: .92rem; margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.article-main { max-width: 760px; }
.short-answer { background: linear-gradient(160deg, var(--teal-100), #fff); border: 1px solid #cfe5ec; border-left: 5px solid var(--teal-600); border-radius: 0 14px 14px 0; padding: 20px 24px; margin-bottom: 28px; font-size: 1.12rem; color: var(--ink); }
.short-answer p:last-child { margin: 0; }
.sa-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; color: var(--teal-700); margin-bottom: 6px !important; }
.prose { font-size: 1.06rem; }
.prose li { margin-bottom: .4em; }
.auto-link { text-decoration-style: dotted; }
.sources { margin: 2em 0; font-size: .92rem; }
.article-cta { display: grid; gap: 16px; background: linear-gradient(140deg, var(--navy-800), var(--teal-700)); color: #cfe2e9; border-radius: 20px; padding: 28px; margin: 2.5em 0 1.5em; }
.article-cta h2 { color: #fff; font-size: 1.4rem; }
.article-cta .eyebrow { color: #ffb39c; }
.article-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.share { font-size: .9rem; color: var(--muted); }
.article-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 22px; }
.toc ol, .side-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.toc a, .side-related a { text-decoration: none; color: var(--body); }
.toc a:hover, .side-related a:hover { color: var(--teal-600); }
.side-cta { background: var(--mist); border-radius: 14px; padding: 18px; }
.side-cta p { margin: 0 0 8px; }
.glossary { display: grid; gap: 14px; }
.glossary div { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.glossary dt { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.glossary dd { margin: 4px 0 0; }

/* Integrations list */
.int-list { display: grid; gap: 14px; }
.int-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; flex-wrap: wrap; }
.int-row h2 { font-size: 1.2rem; margin: 0 0 4px; }
.int-row p { margin: 0; color: var(--muted); }
.int-row > div:last-child { display: flex; gap: 12px; align-items: center; }

/* Badges */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: capitalize; vertical-align: middle; }
.b-green { background: #e3f4ea; color: var(--green); } .b-blue { background: var(--teal-100); color: var(--teal-700); } .b-amber { background: #fdf1d9; color: #8a5a10; }
.b-red { background: #fde3e0; color: var(--red); } .b-gray { background: #eef1f3; color: var(--muted); }

/* Feedback widget */
.fb { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; justify-items: end; gap: 10px; }
.fb-open { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--charcoal); color: #fff; padding: 11px 16px; border-radius: 99px; font: inherit; font-weight: 650; cursor: pointer; box-shadow: var(--shadow-lg); }
.fb-open .ic { width: 18px; height: 18px; }
.fb-panel { width: min(340px, calc(100vw - 36px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 10px; }
.fb-panel[hidden] { display: none; }
.fb-h { font-weight: 700; color: var(--ink); margin: 0; }
.fb-row { display: flex; gap: 10px; align-items: center; }
.fb-status { font-size: .86rem; color: var(--green); }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb7c1; padding: 64px 0 28px; font-size: .94rem; }
.site-footer a { color: #d2e2e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.foot-brand img { width: 170px; background: #fff; padding: 8px 10px; border-radius: 10px; margin-bottom: 14px; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.newsletter { margin: 40px 0 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.newsletter label { color: #fff; font-weight: 600; }
.nl-row { display: flex; gap: 8px; flex: 0 1 420px; }
.nl-row input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; }
.foot-bottom p { margin: 0; }

/* Plain (access) layout */
body.plain { background: radial-gradient(900px 500px at 80% 0%, rgba(17,129,159,.35), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(196,67,43,.25), transparent 60%), var(--navy-900); min-height: 100vh; }
.plain-main { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 32px 16px; gap: 18px; }
.plain-card { width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); }
.plain-card img { width: 200px; margin-bottom: 22px; }
.plain-card h1 { font-size: 1.6rem; }
.plain-card .lead { color: var(--muted); }
.plain-foot { color: #9fb7c1; font-size: .82rem; max-width: 460px; text-align: center; margin: 0; }
.plain-foot a { color: #d2e2e8; }

/* Reveal on scroll (only when JS marks the page ready and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Admin */
body.admin { background: var(--mist); font-size: 15px; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav { background: var(--navy-900); color: #b8ccd4; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand img { background: #fff; border-radius: 8px; padding: 6px 8px; width: 160px; }
.admin-sub { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; margin: 6px 0 12px; color: #7f9ba6; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.admin-nav ul a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: #cfe0e6; text-decoration: none; font-size: .92rem; }
.admin-nav ul a:hover, .admin-nav ul a[aria-current] { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav .ic { width: 17px; height: 17px; }
.admin-user { margin-top: auto; display: grid; gap: 6px; font-size: .82rem; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user a, .admin-user .linkish { color: #cfe0e6; }
.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.admin-card h2 { font-size: 1.1rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 22px; }
.stat-tiles a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; display: grid; color: var(--muted); font-size: .84rem; }
.stat-tiles strong { font-size: 1.6rem; color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafcfd; }
.tbl tr.dim { opacity: .55; }
.tbl pre { white-space: pre-wrap; font-size: .76rem; max-width: 380px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; }
.filters a { padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--body); }
.filters a[aria-current] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.filters .sep { color: #b5c4cc; }
.flash { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.flash-ok { background: #e3f4ea; color: #145c3c; }
.flash-err { background: #fde3e0; color: #8a2a1e; }
.flash-warn { background: #fff4e5; color: #6a4a10; }
.copy { margin-top: 8px; font-family: var(--mono); font-size: .82rem; }
.chk { margin: 4px 0; padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.chk-err { background: #fde3e0; color: #8a2a1e; }
.chk-warn { background: #fff4e5; color: #6a4a10; }
.ok { color: var(--green); font-weight: 650; }
.score { font-size: .9rem; background: var(--teal-100); color: var(--teal-700); padding: 2px 8px; border-radius: 99px; margin-left: 8px; }
.wf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.wf-btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.editor { display: grid; gap: 14px; }
.mono { font-family: var(--mono); font-size: .88rem; line-height: 1.5; }
.faq-row { margin-bottom: 8px; }
.inline-form { display: inline; margin: 0; }
.inline-form select { width: auto; padding: 4px 8px; font-size: .86rem; }
.snap { white-space: pre-wrap; font-size: .8rem; max-height: 320px; overflow: auto; background: var(--mist); padding: 10px; border-radius: 8px; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: 12px; align-items: center; font-size: .9rem; }
.funnel-bar { height: 14px; background: var(--mist); border-radius: 8px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--brick-400)); }
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }

/* Responsive */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .flow::before { display: none; }
  .foot-top { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: fixed; top: var(--nav-top, 72px); left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; overscroll-behavior: contain; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 12px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s var(--ease); visibility: hidden; }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 6px 0 12px; display: none; }
  .has-mega.is-open .mega { display: block; }
  .mega-4, .mega-2 { grid-template-columns: 1fr 1fr; width: auto; }
  .mega-feature { grid-column: 1 / -1; grid-row: auto; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .nav-login { padding: 10px 0; text-align: center; }
}
@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid, .feature-hero-grid, .tour-panel, .int-grid, .case-grid, .demo-grid, .calc, .two-col, .split { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .calc-out { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-cats { position: static; }
  .hub-cats ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .hub-cats a { border: 1px solid var(--line); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; }
  .admin-nav ul { grid-template-columns: repeat(2, 1fr); }
  .admin-cols { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px 48px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .card-grid, .card-grid-3, .card-grid-2, .use-grid, .examples, .facts, .row-2, .row-3, .checks, .link-list.cols-2, .post-grid, .wf-form { grid-template-columns: 1fr; }
  .post-card.is-lead { grid-column: auto; }
  .strip-grid { grid-template-columns: 1fr 1fr; padding: 20px 16px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .app-window { transform: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .phone { width: 120px; height: 232px; right: 0; }
  .showcase { padding-bottom: 70px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .assess-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .out-grid { grid-template-columns: 1fr; }
  .big-stat strong { font-size: 2.4rem; }
  .form-card, .plain-card { padding: 22px; }
  .funnel-row { grid-template-columns: 110px 1fr 44px; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; }
  /* Feedback shrinks to an icon so it does not sit on top of page buttons */
  .fb { right: 12px; bottom: 12px; }
  .fb-open { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .fb-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-footer { padding-bottom: 76px; }
}
body.nav-open .fb { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; }
}
@media print {
  .site-header, .site-footer, .preview-bar, .fb, .cta-band, .article-side { display: none; }
}

.foot-preview { font-size: .85rem; }
.foot-preview form { display: inline; }
.foot-preview .linkish { color: #d2e2e8; font-size: inherit; }
.form-error { background: #fbeceb; color: #8a2116; border: 1px solid #f1c2bc; border-radius: 10px; padding: 10px 14px; }

/* Founders plans, signup checkout and the Subscription Terms dialog (2026-11-10). */
.plans.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.plan-per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.founders-includes { max-width: 860px; margin: 28px auto 10px; padding: 26px 30px; border-radius: 20px; background: var(--mist); border: 1px solid var(--line); }
.founders-includes h2 { font-size: 1.2rem; margin: 0 0 12px; }
.founders-includes .ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; }
.founders-switch { margin: 18px auto 24px; }
.stripe-test-badge { font-size: .8rem; margin-right: 6px; }
.billing-contact { border: 0; padding: 0; margin: 0; }
.billing-contact .row-2 { margin-top: 10px; }
[data-billing-fields][hidden] { display: none; }
.terms-accept { font-size: 1rem; }
.terms-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--body); }
.terms-dialog[open] { display: flex; flex-direction: column; }
.terms-dialog::backdrop { background: rgba(6, 30, 40, .55); }
.terms-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.terms-dialog-head h2 { font-size: 1.15rem; margin: 0; }
.terms-dialog-x { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.terms-dialog-body { overflow-y: auto; padding: 18px 22px; flex: 1; }
.terms-dialog-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--mist); }
@media (max-width: 760px) {
  .plans.plans-2, .founders-includes .ticks { grid-template-columns: 1fr; }
  .founders-includes { padding: 20px; }
}
