/* BetterSign homepage: the page's own styles. Tokens, the top bar, buttons,
   the hero band, cards, badges, callouts, tables and the footer come from
   brand.css (generated from website/brand/brand.css); define shared ones there.
   Section patterns follow docs/GTM/hero-copy/styles.css. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
a { color: inherit; text-decoration: none; }
p a, .faq a, .ticks a { color: var(--bs-green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 104px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
h1.headline { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 22px; max-width: 16ch; }
body.mode-tech h1.headline { font-size: clamp(32px, 4.8vw, 54px); }
p.sub { font-size: clamp(16px, 2vw, 20px); line-height: 1.55; color: rgba(255,255,255,0.84); max-width: 52ch; margin: 0 0 26px; }
ul.points { list-style: none; padding: 0; margin: 0 0 34px; gap: 12px; max-width: 56ch; }
ul.points li { position: relative; padding-left: 28px; font-size: clamp(14px, 1.7vw, 16px); color: rgba(255,255,255,0.86); line-height: 1.45; }
ul.points li strong { color: #fff; }
ul.points li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--bs-teal), #4bbf9a); }
body.mode-tech ul.points li { font-family: var(--mono); font-size: clamp(12.5px, 1.5vw, 14px); }

.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art .art { width: 100%; max-width: 420px; color: var(--bs-teal); }
.art svg { width: 100%; height: auto; display: block; }
.art .stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art .fillt { fill: currentColor; opacity: 0.12; }
.art .accent { opacity: 0.6; }
.art .ghost { opacity: 0.3; }
.art .dot { fill: currentColor; stroke: none; }

/* ---------- plain / technical toggle ---------- */
.tagset { display: inline-flex; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); padding: 6px; border-radius: 999px; margin: 0 0 26px; }
.tag { border: none; background: transparent; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease, color .15s ease; font-family: inherit; }
.tag .glyph { font-size: 12px; opacity: 0.8; }
.tag:hover { color: #fff; }
.tag[aria-pressed="true"] { background: #fff; color: var(--bs-ink); }
.tag[data-mode="tech"][aria-pressed="true"] { background: var(--bs-teal); color: #042019; }

.plain, .tech { display: none; }
body.mode-plain .plain { display: revert; }
body.mode-tech  .tech  { display: revert; }
body.mode-plain ul.points.plain, body.mode-tech ul.points.tech { display: grid; }
body.mode-tech p.tech { font-size: 0.94em; }
.swap { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.band-oneliner { background: var(--bs-ink); color: #fff; padding: 46px 0; }
.oneliner { font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; text-align: center; }
.oneliner .hl { color: var(--bs-teal); }
.sec-lead.light { color: rgba(255,255,255,0.74); }

/* ---------- products ---------- */
.products { background: var(--bs-bg); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.prod-grid.three { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-grid.three .prod { padding: 26px; }
.prod-grid.three .prod-head h3 { font-size: 20px; }
.prod-grid.three .badge { white-space: normal; }
.prod { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prod-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.prod-head h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.prod-ic { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #eef3f6; }
.prod-ic img { border-radius: 11px; }
.glyph-ic { background: linear-gradient(135deg, var(--bs-green-br), var(--bs-green)); }
.glyph-ic svg { width: 32px; height: 32px; fill: none; stroke: #042019; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.prod-tag { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; }
.prod p.plain, .prod p.tech { font-size: 16px; line-height: 1.6; color: var(--bs-muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--bs-green-br); color: #042019; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.prod-foot { margin-top: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Product groups: "the base" (the app + Credential Vault), then what's built on it. */
.prod-group { margin: 44px 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--bs-muted); }
.prod-group + .prod-grid { margin-top: 16px; }
/* The note next to a sign-in link that needs a step first (link your email in the app). */
.caveat { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--bs-muted); }
.caveat b { color: var(--bs-ink); }
.prod .caveat { margin: 0 0 18px; }
.hero .caveat { color: rgba(255,255,255,0.7); }
.hero .caveat b { color: #fff; }

/* ---------- two paths (homepage, under the hero) ---------- */
.paths { background: var(--bs-bg); }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.path { border-radius: 22px; padding: 34px; display: flex; flex-direction: column; background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--shadow); }
.path.dark { background: linear-gradient(160deg, var(--bs-ink-2), var(--bs-ink)); color: #fff; border-color: transparent; }
.path-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--bs-green); }
.path.dark .path-kicker { color: var(--bs-teal); }
.path h3 { margin: 0 0 12px; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.path > p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--bs-muted); }
.path.dark > p { color: rgba(255,255,255,0.78); }
.path.dark .ticks li { color: rgba(255,255,255,0.9); }
.path.dark .textlink { color: var(--bs-teal); }
.path.dark .caveat { color: rgba(255,255,255,0.6); }

.path-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 24px; padding: 22px 30px; border-radius: 18px; background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--shadow); transition: border-color .15s ease; }
.path-strip:hover { border-color: var(--bs-green-br); }
.path-strip .path-kicker { margin: 0; }
.path-strip-text { font-size: 15.5px; line-height: 1.5; color: var(--bs-muted); }
.path-strip-text b { color: var(--bs-ink); }
.path-strip .go, .link-card .go { color: var(--bs-green); font-weight: 700; font-size: 15px; white-space: nowrap; }
.prod p.desc { font-size: 16px; line-height: 1.6; color: var(--bs-muted); margin: 0 0 18px; }

/* ---------- link cards: a solution's products, a product's solution ---------- */
.built { background: var(--bs-bg); }
.built.on-card { background: var(--bs-card); }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.link-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 24px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.built.on-card .link-card { background: #fbfdfe; }
.link-card:hover { border-color: var(--bs-green-br); box-shadow: var(--shadow); }
.link-card h3 { margin: 12px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.link-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--bs-muted); }
.link-card .go { margin-top: auto; }

/* ---------- flywheel band ---------- */
.flywheel { background: var(--bs-card); }
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.fw-item { border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 24px; background: #fbfdfe; }
.fw-item h3 { margin: 10px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.fw-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--bs-muted); }
body.mode-tech .fw-item p.tech { font-size: 13.5px; }
.fw-loop { margin: 28px 0 0; padding: 18px 22px; border-radius: 14px; background: #ecfbf5; border: 1px solid #bfe9d8; font-size: 15.5px; line-height: 1.55; }
.fw-loop b { color: var(--bs-green); }

/* ---------- feature deep dives ---------- */
.feature { background: var(--bs-card); }
.feature.alt { background: var(--bs-bg); }
.feature-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.feature-grid.reverse { grid-template-columns: 0.9fr 1.1fr; }
.flow-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; margin: 30px 0 0; }
.flow-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 14px 18px; border: 1px solid var(--bs-line); border-radius: 14px; background: #fbfdfe; }
.feature.alt .flow-step { background: #fff; }
.flow-step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--bs-green-br), var(--bs-green)); color: #042019; font-weight: 800; font-size: 15px; }
.flow-step p { margin: 5px 0 0; font-size: 15.5px; line-height: 1.45; }
.more-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.more-links a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--bs-line); border-radius: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.more-links a:hover { border-color: var(--bs-green-br); box-shadow: var(--shadow); }
.more-links b { color: var(--bs-green); font-size: 15px; }
.more-links b span { display: inline-block; transition: transform .15s ease; }
.more-links a:hover b span { transform: translateX(3px); }
.more-links small { color: var(--bs-muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- UI mockups ---------- */
.mock-wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.mock-wrap::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; background: radial-gradient(closest-side, rgba(21,199,154,0.22), transparent); z-index: 0; }
.phone { position: relative; z-index: 1; width: 260px; border-radius: 38px; padding: 12px; background: linear-gradient(160deg, var(--bs-ink-2), var(--bs-ink)); box-shadow: 0 30px 60px rgba(10,31,44,0.28), inset 0 0 0 1px rgba(255,255,255,0.08); }
.phone-notch { width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: var(--bs-ink-2); margin: -12px auto 0; position: relative; z-index: 2; }
.phone-body { background: #0e0f12; border-radius: 28px; padding: 34px 18px 22px; color: #f2f3f5; margin-top: -10px; }
.ph-eyebrow { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bs-teal); font-weight: 700; }
.ph-site { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.ph-site strong { display: block; font-size: 14px; }
.ph-site small { color: #9ea2ab; font-size: 11px; }
.ph-site-ic { width: 36px; height: 36px; border-radius: 10px; background: #1f6f5b; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.ph-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 10px 0; border-top: 1px solid #2a2c31; color: #9ea2ab; }
.ph-row b { color: #f2f3f5; font-weight: 600; font-family: var(--mono); font-size: 12px; }
.ph-code { text-align: center; font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: 0.08em; margin: 14px 0 6px; color: #fff; }
.ph-btn { margin-top: 14px; text-align: center; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, var(--bs-green-br), var(--bs-green)); color: #042019; }
.ph-btn.ghost { background: #1a1c20; color: #9ea2ab; margin-top: 8px; }

.browser { position: relative; z-index: 1; width: 340px; max-width: 100%; border-radius: 14px; background: #fff; border: 1px solid var(--bs-line); box-shadow: var(--shadow); overflow: hidden; margin: -60px 150px 0 0; }
.br-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eef2f5; border-bottom: 1px solid var(--bs-line); }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8de; }
.br-url { margin-left: 10px; flex: 1; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--bs-muted); font-family: var(--mono); }
.br-body { padding: 24px 26px 26px; }
.br-title { margin: 0 0 16px; font-weight: 800; font-size: 18px; }
.br-field { border: 1px solid var(--bs-line); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #9aa6ad; margin-bottom: 10px; }
.br-chip { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 10px; background: var(--bs-ink); color: #fff; font-weight: 700; font-size: 13.5px; }
.br-chip kbd { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,0.14); padding: 2px 6px; border-radius: 5px; }
.br-wait { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--bs-muted); }
.br-wait b { font-family: var(--mono); color: var(--bs-green); }
.phone.small { position: absolute; right: 0; bottom: 0; width: 200px; border-radius: 32px; padding: 10px; }
.phone.small .phone-body { padding: 28px 14px 16px; border-radius: 24px; }
.phone.small .ph-code { font-size: 28px; }

/* ---------- real screenshots ---------- */
/* A phone screenshot in a bezel, and a desktop window or browser capture. */
.phone.real { padding: 9px; border-radius: 40px; }
.phone.real img { display: block; width: 100%; height: auto; border-radius: 31px; background: #fff; }
.phone.real.small { width: 210px; padding: 7px; border-radius: 32px; }
.phone.real.small img { border-radius: 25px; }
.window-shot { position: relative; z-index: 1; margin: 0; }
.window-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--bs-line); background: #fff; box-shadow: 0 30px 60px rgba(10,31,44,0.22); }
.hero .window-shot img { border-color: rgba(255,255,255,0.12); }
.browser.real { margin: -60px 190px 0 0; width: 360px; }
.browser.real img { display: block; width: 100%; height: auto; }
.hero-art .art.combo { position: relative; max-width: 500px; padding: 0 0 40px; }
.hero-art .art.combo .window-shot { width: 78%; }
.hero-art .art.combo .phone.real { position: absolute; right: 0; bottom: 0; width: 160px; }
.hero-art .art.single { max-width: 300px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; align-items: start; }
.shot-pair figcaption, .window-shot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--bs-muted); }

/* ---------- videos ---------- */
/* A local poster that links to YouTube; site.js swaps in a youtube-nocookie
   player on click, so nothing loads from YouTube until someone presses play. */
.watch { background: var(--bs-bg); }
.watch.on-card { background: var(--bs-card); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.video-fig.video-wide { grid-column: 1 / -1; max-width: 920px; width: 100%; justify-self: center; }
.video-fig.video-solo { max-width: 920px; margin: 36px auto 0; }
.video-fig { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--bs-ink); box-shadow: 0 30px 60px rgba(10,31,44,0.22); }
.video > a, .video img, .video iframe, .video video { display: block; width: 100%; height: 100%; border: 0; }
.video video { background: #000; }
.video img { object-fit: cover; transition: transform .3s ease; }
.video > a:hover img { transform: scale(1.02); }
.video-btn { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: rgba(10,31,44,0.78); box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(255,255,255,0.85); transition: background .15s ease, transform .15s ease; }
.video-btn::before { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.video > a:hover .video-btn, .video > a:focus-visible .video-btn { background: var(--bs-green); transform: scale(1.06); }
.video-len { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(10,31,44,0.8); color: #fff; font: 700 12.5px var(--mono); }
.video-fig figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--bs-muted); }
.video-fig figcaption b { color: var(--bs-ink); }
.legal .prose .video-fig { margin: 24px 0 30px; }

/* ---------- compare ---------- */
.compare { background: var(--bs-card); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.cmp-col { border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); background: #fff; }
.cmp-col.good { background: linear-gradient(180deg, #ecfbf5, #ffffff); border-color: #bfe9d8; }
.cmp-col h3 { margin: 0 0 18px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.cmp-col.bad h3 { color: #9aa6ad; }
.cmp-col.good h3 { color: var(--bs-green); }
.cmp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp-col li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; }
.cmp-col.bad li { color: #6b7883; }
.cmp-col li .ic { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.cmp-col.bad li .ic { background: #f1e3e2; color: #b3534c; }
.cmp-col.good li .ic { background: var(--bs-green-br); color: #042019; }

/* ---------- concept cards ---------- */
.cards { background: var(--bs-ink); color: #fff; }
.cards .sec-eyebrow { color: var(--bs-teal); }
.cards .sec-title { color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.ccard { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 24px; transition: transform .14s ease, background .15s ease, border-color .15s ease; }
.ccard:hover { transform: translateY(-3px); background: rgba(255,255,255,0.09); border-color: rgba(127,240,207,0.45); }
.ccard .cglyph { font-size: 24px; color: var(--bs-teal); display: block; margin-bottom: 14px; }
.ccard h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.ccard p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.72); }
body.mode-tech .ccard p.tech { font-family: var(--mono); font-size: 12.5px; }

/* ---------- faq ---------- */
.faq { background: var(--bs-bg); }
.faq-list { margin-top: 30px; max-width: 860px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--bs-line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bs-green); font-size: 22px; font-weight: 400; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: var(--bs-muted); }

/* ---------- cta ---------- */
.cta { background: linear-gradient(160deg, var(--bs-ink-2), var(--bs-green)); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.025em; margin: 0 0 16px; }
.cta p { font-size: 18px; color: rgba(255,255,255,0.85); margin: 0 0 28px; }
.cta .cta-row { justify-content: center; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .container { display: block; }

/* ================= organizations page ================= */
.art .svgtxt { fill: currentColor; font: 700 15px var(--mono); letter-spacing: 0.06em; }
.status-strip { background: #e6eff6; border-bottom: 1px solid #d3e2ee; padding: 18px 0; }
.status-strip .container { display: flex; gap: 16px; align-items: center; }
.status-strip p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bs-ink); }
.status-strip .badge { flex: none; }
.badge.org { background: #ece6f6; color: #5a3d99; }

.benefits { background: var(--bs-bg); }
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.ben { background: #fff; border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 24px; }
.ben-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 11px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bs-green-br), var(--bs-green)); color: #042019; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.ben h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
.ben p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--bs-muted); }
body.mode-tech .ben p.tech { font-size: 13.5px; }

.arch { background: linear-gradient(160deg, var(--bs-ink-2), var(--bs-ink)); color: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.arch-title { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bs-teal); font-weight: 700; }
.arch-box { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); border-radius: 14px; padding: 14px 16px; display: grid; gap: 3px; }
.arch-box.core { border-color: rgba(127,240,207,0.55); background: rgba(127,240,207,0.09); }
.arch-box b { font-size: 15.5px; }
.arch-box span { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.arch-box em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--bs-teal); }
.arch-note { margin: 6px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.evaluate { background: var(--bs-card); }
.stage-rail { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 18px; border-radius: 999px; overflow: hidden; border: 1px solid var(--bs-line); }
.stage-rail span { text-align: center; padding: 10px 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #042019; }
.stage-rail span:nth-child(1) { background: #dff7ee; }
.stage-rail span:nth-child(2) { background: #b9eedb; }
.stage-rail span:nth-child(3) { background: #7fe0bf; }
.stage-rail span:nth-child(4) { background: var(--bs-green-br); }
.stages { display: grid; gap: 16px; }
.stage { border: 1px solid var(--bs-line); border-radius: 18px; background: #fbfdfe; overflow: hidden; }
.stage > header { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--bs-line); background: #fff; }
.stage-num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; background: linear-gradient(135deg, var(--bs-green-br), var(--bs-green)); color: #042019; }
.stage h3 { margin: 0; font-size: 20px; letter-spacing: -0.015em; }
.stage-sub { margin: 3px 0 0; font-size: 14px; color: var(--bs-muted); }
.stage-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding: 22px 24px 24px; }
.stage h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bs-green); }
.stage ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.stage ol li { font-size: 15px; line-height: 1.5; padding-left: 4px; }
.stage-side ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.stage-side ul li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.45; }
.stage-side ul li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 3px; background: var(--bs-green-br); }
.stage-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--bs-line); font-size: 13.5px; }
.stage-side dt { font-weight: 700; color: var(--bs-muted); }
.stage-side dd { margin: 0; }

.sub-title { margin: 48px 0 16px; font-size: 22px; letter-spacing: -0.015em; }
table.idp, table.cov { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.idp th, .cov th { text-align: left; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bs-muted); padding: 14px 18px; background: #f7fafb; border-bottom: 1px solid var(--bs-line); }
.idp td, .cov td { padding: 13px 18px; border-bottom: 1px solid var(--bs-line); vertical-align: top; line-height: 1.45; }
.idp tr:last-child td, .cov tr:last-child td { border-bottom: none; }
.idp td:first-child, .cov td:first-child { font-weight: 700; white-space: nowrap; }
.coverage { background: var(--bs-bg); }
.coverage .table-wrap { margin-top: 32px; }
.coverage.on-card { background: var(--bs-card); }
.when { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.when.early { background: #dcf7ec; color: var(--bs-green); }
.when.mid { background: #e6eff6; color: var(--bs-blue); }
.when.late { background: #f4ece0; color: #8a5a12; }

.editions { background: var(--bs-card); }
.ed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.ed { border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 22px; background: #fbfdfe; display: flex; flex-direction: column; }
.ed-lang { align-self: flex-start; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--bs-teal); background: var(--bs-ink); padding: 4px 10px; border-radius: 8px; margin-bottom: 14px; }
.ed h3 { margin: 0 0 8px; font-size: 18px; }
.ed p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--bs-muted); }
.ed small { margin-top: auto; font-size: 13px; color: var(--bs-ink); font-weight: 600; }

/* homepage: org summary */
.org-sum { background: linear-gradient(160deg, var(--bs-ink-2), var(--bs-ink)); color: #fff; }
.org-sum .sec-eyebrow { color: var(--bs-teal); }
.org-sum .sec-title { color: #fff; }
.org-sum .ben { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.org-sum .ben h3 { color: #fff; }
.org-sum .ben p { color: rgba(255,255,255,0.72); }
.org-sum .ben-grid { grid-template-columns: repeat(3, 1fr); }
.mini-stages { list-style: none; padding: 0; margin: 34px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stages li { border: 1px solid rgba(127,240,207,0.3); border-radius: 14px; padding: 16px 18px; background: rgba(127,240,207,0.06); }
.mini-stages b { display: block; color: var(--bs-teal); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.mini-stages span { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,0.86); }
.org-sum .btn.ghost { color: #fff; }
.org-sum .sub-title { color: #fff; margin-top: 56px; }
.org-sum .sec-lead.light + .sec-lead.light { margin-top: -6px; }
.status-line { margin: 22px 0 0; max-width: 860px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.66); }
.status-line b { color: #fff; }

.ben-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature .ben-grid.three { margin-top: 48px; }
.feature .ben { background: var(--bs-bg); }

pre.code { margin: 20px 0 0; padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: var(--bs-ink); color: #e6f2ee; font: 13px/1.6 var(--mono); }
pre.code code { font-size: inherit; }

/* follow mock (homepage) */
.fl-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; border: 1px solid var(--bs-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.fl-chain { grid-row: span 2; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--bs-green); background: #dcf7ec; border-radius: 6px; padding: 4px 6px; }
.fl-item code { font-size: 12.5px; color: var(--bs-ink); }
.fl-item small { font-size: 11.5px; color: var(--bs-muted); }

@media (max-width: 980px) {
  .ben-grid, .ben-grid.three, .ed-grid, .org-sum .ben-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-body { grid-template-columns: 1fr; }
  .mini-stages { grid-template-columns: repeat(2, 1fr); }
  .status-strip .container { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 560px) {
  .ben-grid, .ben-grid.three, .ed-grid, .org-sum .ben-grid, .mini-stages { grid-template-columns: 1fr; }
  .stage-rail { grid-template-columns: repeat(2, 1fr); border-radius: 14px; }
  .stage > header, .stage-body { padding-left: 18px; padding-right: 18px; }
}

/* ================= legal pages (privacy) ================= */
.hero.legal-hero { padding: 140px 0 64px; }
.hero.legal-hero .container { display: block; }
.legal { background: var(--bs-bg); padding: 64px 0 88px; }
.legal .prose { max-width: 760px; font-size: 16.5px; line-height: 1.65; }
.legal .prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose p, .legal .prose li { color: #2b4150; }
.legal .prose ul { padding-left: 22px; margin: 0 0 16px; }
.legal .prose li { margin: 6px 0; }
.legal .prose li a { color: var(--bs-green); text-decoration: underline; text-underline-offset: 3px; }
.legal .summary { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 22px 26px; }
.legal .summary ul { margin: 0; }

/* ================= docs (/docs/) ================= */
/* Long-form guides. Reuse .hero.legal-hero and .legal .prose; these add a
   side table of contents, callouts, numbered steps and plain tables. */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 92px; font-size: 14px; line-height: 1.5; }
.doc-toc p { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bs-muted); font-weight: 700; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--bs-line); }
.doc-toc li { margin: 0; }
.doc-toc a { display: block; padding: 5px 0 5px 14px; color: var(--bs-muted); }
.doc-toc a:hover { color: var(--bs-green); }
.legal .prose h3 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.legal .prose ol { padding-left: 22px; margin: 0 0 16px; }
.legal .prose ol > li { margin: 8px 0; padding-left: 4px; }
.legal .prose ol.flow-steps { padding-left: 0; margin: 18px 0 24px; }
.legal .prose ol.flow-steps > li { margin: 0; padding: 14px 18px; }
.legal .prose p a, .legal .prose td a { color: var(--bs-green); text-decoration: underline; text-underline-offset: 3px; }
.legal .prose kbd { font-family: var(--mono); font-size: 0.85em; background: #fff; border: 1px solid var(--bs-line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.legal .prose .ui { font-weight: 650; color: var(--bs-ink); }
.callout strong:first-child { color: var(--bs-ink); }
.doc-table td { padding: 11px 14px; border-bottom: 1px solid var(--bs-line); vertical-align: top; line-height: 1.45; color: #2b4150; }
.doc-table td:first-child { font-weight: 650; color: var(--bs-ink); }
.legal .prose .table-wrap { margin: 16px 0 22px; }
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 24px; }
.doc-card { display: block; background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 22px 24px; transition: border-color .15s ease, box-shadow .15s ease; }
.doc-card:hover { border-color: var(--bs-green-br); box-shadow: var(--shadow); }
.doc-card h3 { margin: 0 0 6px !important; }
.doc-card p { margin: 0; color: var(--bs-muted) !important; font-size: 15px; }
.doc-card .go { display: inline-block; margin-top: 12px; color: var(--bs-green); font-weight: 700; font-size: 15px; }
/* Screenshots: phone screens and browser/extension crops, side by side where they pair up. */
.shots { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin: 22px 0 28px; }
.shot { margin: 0; flex: 0 1 auto; }
.shot img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--bs-line); border-radius: 12px; box-shadow: 0 6px 22px rgba(10, 31, 44, 0.08); }
.shot-phone { width: 270px; }
.shot-phone img { border-radius: 22px; }
.shot-ext { width: 300px; }
.shot-wide { width: 360px; }
.shot figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--bs-muted); }
.legal .prose .sub-nav { font-size: 14px; color: var(--bs-muted); margin: 0 0 24px; }
.legal .prose .sub-nav a { color: var(--bs-green); }

/* ================= company (/team/, /careers/, /contact/) ================= */
/* Reuse .hero.legal-hero and .legal .prose. One card per person; the forms
   post to forms.bettersign.ing (website/mail-api/). */
.team-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin: 0 0 48px; }
.team-grid .person { grid-column: span 2; }
.team-grid .person:nth-child(4) { grid-column: 2 / span 2; }
.person { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 24px; }
.person-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.person-photo { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; background: var(--bs-bg); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bs-green-br); }
.person h3 { margin: 0; font-size: 18px; }
.person-role { margin: 2px 0 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--bs-green); }
.person p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; color: #2b4150; }
.person-links { font-size: 14px; }
.person-links a { color: var(--bs-green); text-decoration: underline; text-underline-offset: 3px; }

.bs-form { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--radius); padding: 28px; margin: 22px 0 28px; scroll-margin-top: 92px; }
.bs-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.bs-form legend { padding: 0; margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--bs-green); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 14.5px; font-weight: 650; color: var(--bs-ink); margin-bottom: 6px; }
.field > span small { font-weight: 400; color: var(--bs-muted); }
.field small.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--bs-muted); line-height: 1.45; }
.bs-form input[type="text"], .bs-form input[type="email"], .bs-form select, .bs-form textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--bs-ink); background: #fff;
  border: 1px solid #cdd8e0; border-radius: 10px; padding: 11px 13px; transition: border-color .15s ease, box-shadow .15s ease;
}
.bs-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.bs-form input:focus, .bs-form select:focus, .bs-form textarea:focus { outline: none; border-color: var(--bs-green-br); box-shadow: 0 0 0 3px rgba(21,199,154,0.18); }
.bs-form input[type="file"] { font: inherit; font-size: 14.5px; }
.bs-form [aria-invalid="true"] { border-color: var(--bs-red) !important; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.checks label { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: #2b4150; cursor: pointer; }
.checks input { margin-top: 4px; accent-color: var(--bs-green); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot p { margin: 0 !important; font-size: 13.5px; color: var(--bs-muted) !important; flex: 1 1 260px; }
.form-status:empty { display: none; }
.bs-form.sent fieldset, .bs-form.sent .form-foot { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container, .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 340px; }
  .feature-grid.reverse .mock-wrap { order: 2; }
  .prod-grid, .prod-grid.three, .cmp-grid, .path-grid, .fw-grid, .link-grid { grid-template-columns: 1fr; }
  .path-strip { grid-template-columns: 1fr; gap: 10px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid .person, .team-grid .person:nth-child(4) { grid-column: auto; }
  .doc-toc { position: static; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero { padding: 110px 0 72px; }
  .prod, .path { padding: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .doc-cards, .more-links { grid-template-columns: 1fr; }
  .team-grid, .form-row, .checks { grid-template-columns: 1fr; }
  .bs-form { padding: 20px; }
  .shots { gap: 16px; }
  .shot-phone { width: calc(50% - 8px); }
  .shot-ext, .shot-wide { width: 100%; }
  .tag { padding: 8px 12px; }
  .browser { margin: 0; width: 100%; }
  .mock-wrap { min-height: 0; flex-direction: column; gap: 20px; }
  .phone.small { position: relative; right: auto; bottom: auto; }
  .browser.real { margin: 0; width: 100%; }
  .shot-pair { grid-template-columns: 1fr; }
  .hero-art .art.combo .phone.real { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swap { animation: none; }
}
