:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cta: #c2410c;
  --cta-dark: #9a3412;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --tint: #e9eff8;
  --gutter: 120px;
  --navy: #0b1630;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Glass */
.glass { background: rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 32px rgba(15,23,42,0.18); color: #fff; }
.glass:hover { color: #fff; background: rgba(255,255,255,0.2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 12px; min-height: 44px; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-outline { border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { color: #fff; border-color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Header / nav */
.hero { position: relative; background: var(--primary); background-image: radial-gradient(900px 520px at 88% -10%, rgba(255,255,255,0.28), rgba(255,255,255,0) 60%), radial-gradient(700px 480px at -5% 105%, rgba(14,165,233,0.55), rgba(14,165,233,0) 60%); }
.nav { position: sticky; top: 0; z-index: 50; height: 76px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,0.6); box-shadow: 0 1px 0 rgba(15,23,42,0.06); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand:hover { color: var(--ink); }
.brand em { font-style: normal; color: var(--primary); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) { padding: 10px 14px; color: #334155; font-weight: 600; font-size: 15px; border-radius: 8px; }
.nav-links > a:not(.btn):hover { color: var(--ink); background: rgba(15,23,42,0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { margin-left: 12px; padding: 11px 20px; font-size: 15px; border-radius: 10px; }
/* Mega menu */
.mega-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; font: inherit; color: #334155; font-weight: 600; font-size: 15px; border-radius: 8px; cursor: pointer; transition: color 200ms ease, background-color 200ms ease; }
.mega-trigger:hover, .mega-trigger[aria-expanded="true"] { color: var(--ink); background: rgba(15,23,42,0.05); }
.mega-trigger svg { transition: transform 240ms cubic-bezier(.2,.8,.2,1); opacity: .7; }
.mega-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 10px); left: 50%; width: min(1180px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 8px 20px; padding: 24px 24px 0; background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(15,23,42,0.35), 0 10px 24px -12px rgba(15,23,42,0.18); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.985); transform-origin: 50% 0;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 220ms; }
.mega[data-open] { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity 180ms ease, transform 260ms cubic-bezier(.2,.8,.2,1), visibility 0s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; } /* hover bridge */

.mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-col h4 { margin: 0 0 8px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.mega-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 12px; border-radius: 14px; color: var(--text); }
.mega-item:hover, .mega-item:focus-visible { background: var(--bg); color: var(--text); }
.mega-item .icon-box { width: 40px; height: 40px; border-radius: 11px; transition: background-color 200ms ease, color 200ms ease, transform 200ms ease; }
.mega-item:hover .icon-box, .mega-item:focus-visible .icon-box { background: var(--primary); color: #fff; transform: translateY(-1px); }
.mega-item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-item strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.mega-item small { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mega-item em { margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--primary); }

.mega-feature { position: relative; display: flex; align-items: flex-end; min-height: 100%; border-radius: 16px; overflow: hidden; color: #fff; background: #0b1630; isolation: isolate; }
.mega-feature:hover { color: #fff; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.mega-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,22,48,0.15) 0%, rgba(11,22,48,0.7) 45%, rgba(11,22,48,0.95) 100%); }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature-copy { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.mega-tag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mega-feature strong { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.mega-feature small { font-size: 13.5px; line-height: 1.5; color: #dbe4f5; }
.mega-feature-cta { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: var(--cta); font-size: 14px; font-weight: 700; transition: background-color 200ms ease; }
.mega-feature-cta svg { transition: transform 200ms ease; }
.mega-feature:hover .mega-feature-cta { background: var(--cta-dark); }
.mega-feature:hover .mega-feature-cta svg { transform: translateX(3px); }

.mega-foot { grid-column: 1 / -1; margin: 16px -24px 0; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); border-top: 1px solid var(--line); font-size: 13px; }
.mega-foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; }
.mega-foot li { display: flex; align-items: center; gap: 6px; }
.mega-foot li svg { color: #16a34a; }
.mega-foot > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.mega-foot > a svg { transition: transform 200ms ease; }
.mega-foot > a:hover svg { transform: translateX(3px); }

/* Staggered reveal of columns */
.mega > * { opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 260ms cubic-bezier(.2,.8,.2,1); }
.mega[data-open] > * { opacity: 1; transform: none; }
.mega[data-open] > :nth-child(2) { transition-delay: 30ms; }
.mega[data-open] > :nth-child(3) { transition-delay: 60ms; }
.mega[data-open] > :nth-child(4) { transition-delay: 90ms; }

.mega-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15,23,42,0.28); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; }
.mega-scrim[data-open] { opacity: 1; visibility: visible; transition: opacity 220ms ease, visibility 0s; }

/* Mobile product accordion */
.m-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary svg { transition: transform 200ms ease; color: var(--muted); }
.m-group[open] summary svg { transform: rotate(180deg); }
.m-items { display: flex; flex-direction: column; padding: 0 0 8px 8px; }
.m-label { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.menu-panel .m-items a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-weight: 600; font-size: 15px; }
.m-items a svg { color: var(--primary); }

.menu { display: none; position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,0.16); padding: 8px; display: flex; flex-direction: column; }
.menu-panel a:not(.btn) { padding: 12px 14px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.menu-panel .btn { margin-top: 6px; padding: 12px; }

.hero-body { padding-top: 96px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero h1 { font-size: 60px; line-height: 1.08; color: #fff; font-weight: 800; }
.hero-lede { font-size: 19px; line-height: 1.6; color: #e0ebff; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-actions .btn-cta { box-shadow: 0 8px 24px rgba(194,65,12,0.35); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* No backdrop-filter on tiles: they sit on a smooth gradient, so blur adds nothing visually,
   and Chrome repaints part of the blur wrongly when a sibling tile changes on hover
   (a lighter band appears across other tiles, esp. at 125/150% scaling). */
.tile { padding: 24px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; isolation: isolate; transition: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255,255,255,0.08); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.tile.glass:hover { background: rgba(255,255,255,0.14); }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile strong { font-size: 16px; }
.tile span { font-size: 13px; color: #dbe7ff; }

/* Proof strip */
.proof { padding-top: 40px; padding-bottom: 40px; background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proof-item { display: flex; align-items: center; gap: 14px; }
.proof-item strong { display: block; color: var(--ink); font-size: 16px; }
.proof-item span { font-size: 13px; color: var(--muted); }
.icon-box { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.icon-box.lg { width: 48px; height: 48px; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section.white { background: #fff; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
.section-head > div { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 12px; }
.section-head > p { grid-column: 9 / span 4; font-size: 17px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.section h2 { font-size: 48px; line-height: 1.05; color: var(--ink); font-weight: 800; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--text); transition: border-color 200ms ease, transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
a.card:hover, .card:hover { border-color: var(--primary); color: var(--text); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15,23,42,0.28); }
a.card:active { transform: translateY(-1px); transition-duration: 80ms; }
.card h3 { font-size: 19px; color: var(--ink); font-weight: 700; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); flex-grow: 1; }
.more { font-size: 15px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.step { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.card .step + h3 { font-size: 20px; }

/* Ottawa band */
.band { position: relative; min-height: 640px; overflow: hidden; display: flex; align-items: center; background: #0b1630; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,22,48,0.88) 0%, rgba(11,22,48,0.6) 50%, rgba(11,22,48,0.2) 100%); }
.band-copy { position: relative; z-index: 1; width: 100%; }
.band-copy > div { max-width: 600px; display: flex; flex-direction: column; gap: 18px; padding: 96px 0; }
.band .eyebrow { color: #7dd3fc; }
.band h2 { font-size: 44px; line-height: 1.08; color: #fff; font-weight: 800; }
.band p { font-size: 17px; line-height: 1.6; color: #dbe4f5; }
.band .btn { align-self: flex-start; margin-top: 6px; padding: 14px 24px; font-size: 15px; }
.band + .section { padding-top: 96px; }

/* Testimonials */
.stars { display: flex; gap: 4px; color: #d97706; }
.quote { font-size: 16px; line-height: 1.65; color: var(--text); font-style: italic; flex-grow: 1; margin: 0; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.who strong { display: block; color: var(--ink); }
.who span { font-size: 14px; color: var(--muted); }

/* CTA */
.cta { background: var(--primary); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; min-height: 520px; overflow: hidden; }
.cta-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 16px; padding: 96px 0; }
.cta .eyebrow { color: #c7d8ff; }
.cta h2 { font-size: 48px; line-height: 1.05; color: #fff; font-weight: 800; }
.cta-copy > p { font-size: 18px; line-height: 1.6; color: #e0ebff; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-actions .btn { padding: 18px 30px; font-size: 17px; }
.cta .sig { margin-top: 18px; font-size: 15px; color: #c7d8ff; }
.cta .sig b { color: #fff; }
.cta-photo { grid-column: 9 / span 4; display: flex; justify-content: center; }
.cta-photo img { width: 380px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

/* Footer */
.footer { padding-top: 72px; padding-bottom: 32px; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 10px; }
.footer-cols > :first-child { gap: 16px; }
.footer-cols p { line-height: 1.6; max-width: 340px; }
.footer h4 { margin: 0 0 6px; color: var(--ink); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.footer-cols a:not(.brand) { color: var(--muted); }
.footer-cols a:not(.brand):hover { color: var(--primary); }
.footer-base { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Responsive */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 48px; }
  .mega { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-feature { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .hero-body { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .section-head > div, .section-head > p { grid-column: 1 / -1; }
  .section-head { row-gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta-copy, .cta-photo { grid-column: 1 / -1; }
  .cta-copy { padding: 72px 0 24px; }
  .cta-photo img { width: 300px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .nav { height: 64px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tiles { gap: 12px; }
  .tile { padding: 16px; border-radius: 14px; }
  .proof, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .section h2, .cta h2 { font-size: 34px; }
  .band { min-height: 520px; }
  .band h2 { font-size: 32px; }
  .band-copy > div { padding: 64px 0; }
  .band::after { background: linear-gradient(180deg, rgba(11,22,48,0.55) 0%, rgba(11,22,48,0.9) 100%); }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .card { transition: none; }
  .mega, .mega[data-open], .mega > * { transform: translate(-50%, 0); transition: opacity 120ms ease, visibility 0s; }
  .mega > * { transform: none; }
  .mega-feature img, .mega-item .icon-box { transition: none; transform: none !important; }
}

/* ---------- Service pages ---------- */
.page-hero-body { padding-top: 56px; padding-bottom: 88px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.page-hero-body.single { grid-template-columns: minmax(0, 1fr); }
.page-hero-body.single .hero-lede { max-width: 720px; }
.page-hero h1 { font-size: 52px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #c7d8ff; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.answer { border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.answer:hover { background: rgba(255,255,255,0.14); }
.answer-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.answer > p { font-size: 16px; line-height: 1.65; color: #eef3ff; }
.answer strong { color: #fff; }
.facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.25); }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.18); font-size: 14px; line-height: 1.5; }
.facts dt { color: #c7d8ff; font-weight: 600; }
.facts dd { margin: 0; color: #fff; }

.feature-list, .steps { list-style: none; margin: 0; padding: 0; }
.feature-list .card h3 { font-size: 18px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.plans { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.plans caption { position: absolute; left: -9999px; }
.plans th, .plans td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.plans tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.plans td { color: var(--muted); }
.plans tbody tr:last-child > * { border-bottom: 0; }

.fit { background: var(--tint); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.fit h3 { font-size: 19px; color: var(--ink); }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.fit li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.fit li svg { color: var(--primary); margin-top: 3px; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--primary); transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover h3 { color: var(--primary); }
.faq summary h3 { transition: color 200ms ease; }
/* Smooth open/close where supported (Chromium 131+); other browsers toggle instantly. */
@supports selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 360ms var(--ease-out), content-visibility 360ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq summary h3 { font-size: 18px; color: var(--ink); font-weight: 700; line-height: 1.4; }
.faq details > p { padding: 0 40px 24px 0; font-size: 16px; line-height: 1.7; color: var(--muted); }

@media (max-width: 1200px) {
  .page-hero h1 { font-size: 44px; }
}
@media (max-width: 960px) {
  .page-hero-body { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
  .fit ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: 34px; }
  .answer { padding: 20px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary h3 { font-size: 17px; }
}

/* ======================================================================
   Variety + motion layer
   ====================================================================== */

/* Section backgrounds (alternating rhythm). --sec-bg lets rings/notches match the section. */
.section { --sec-bg: var(--bg); }
.section.white { --sec-bg: #fff; }
.section.tint { --sec-bg: var(--tint); background: var(--tint); }
.section.tint .section-head { border-bottom-color: rgba(15,23,42,0.85); }

/* Buttons: press feedback */
.btn { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform 260ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* Card hover: icon fill + nudge, arrow slide */
.icon-box { transition: background-color 260ms ease, color 260ms ease; }
.icon-box svg, .tile svg, .more svg { transition: transform 320ms var(--ease-out); }
@media (hover: hover) {
  a.card:hover .icon-box { background: var(--primary); color: #fff; }
  a.card:hover .icon-box svg { transform: translateY(-2px) rotate(-6deg); }
  a:hover .more svg { transform: translateX(5px); }
  .tile:hover > svg { transform: translateY(-2px) scale(1.08); }
}
@media (hover: none) {
  a.card:hover { transform: none; box-shadow: none; }
}

/* ---------- Hero motion ---------- */
.hero > :not(.hero-fx):not(.nav) { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-fx span { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero-fx .o1 { width: 440px; height: 440px; right: 4%; top: 24%; background: rgba(56,189,248,0.55); animation: drift-a 19s ease-in-out infinite alternate; }
.hero-fx .o2 { width: 380px; height: 380px; left: -6%; bottom: -14%; background: rgba(129,140,248,0.5); animation: drift-b 23s ease-in-out infinite alternate; }
.hero-fx .o3 { width: 200px; height: 200px; left: 46%; top: 58%; background: rgba(251,146,60,0.22); animation: drift-c 17s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-70px, 50px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(80px, -40px, 0) scale(0.94); } }
@keyframes drift-c { to { transform: translate3d(-50px, -60px, 0) scale(1.15); } }
/* Glass in the hero sits on a gradient with moving orbs: no backdrop-filter (blur adds nothing
   here, and re-blurring a moving backdrop is what causes Chrome repaint bands). */
.hero .glass { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Hero entrance: pure CSS so it never depends on JS (fill: backwards so hover transforms still work after) */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
.hero-copy > *, .page-hero .answer { animation: rise 760ms var(--ease-out) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
.page-hero .answer { animation-delay: 220ms; }
.tiles > * { animation: rise 680ms var(--ease-out) backwards; }
.tiles > :nth-child(1) { animation-delay: 180ms; }
.tiles > :nth-child(2) { animation-delay: 240ms; }
.tiles > :nth-child(3) { animation-delay: 300ms; }
.tiles > :nth-child(4) { animation-delay: 360ms; }
.tiles > :nth-child(5) { animation-delay: 420ms; }
.tiles > :nth-child(6) { animation-delay: 480ms; }
.tile { transition: transform 300ms var(--ease-out); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); } }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #dbe7ff; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { color: #7dd3fc; }

/* ---------- Scroll reveal (only once JS has added .motion) ---------- */
.motion [data-reveal]:not(.in):not(.seen),
.motion [data-reveal="stagger"]:not(.in):not(.seen) > * { opacity: 0; }
.motion [data-reveal="stagger"]:not(.in):not(.seen) { opacity: 1; }
[data-reveal].in { animation: rise 760ms var(--ease-out) backwards; }
[data-reveal="stagger"].in { animation: none; }
[data-reveal="stagger"].in > * { animation: rise 700ms var(--ease-out) backwards; }
[data-reveal="stagger"].in > :nth-child(2) { animation-delay: 70ms; }
[data-reveal="stagger"].in > :nth-child(3) { animation-delay: 140ms; }
[data-reveal="stagger"].in > :nth-child(4) { animation-delay: 210ms; }
[data-reveal="stagger"].in > :nth-child(5) { animation-delay: 280ms; }
[data-reveal="stagger"].in > :nth-child(6) { animation-delay: 350ms; }
[data-reveal="stagger"].in > :nth-child(7) { animation-delay: 420ms; }
[data-reveal="stagger"].in > :nth-child(8) { animation-delay: 490ms; }
[data-reveal="stagger"].in > :nth-child(9) { animation-delay: 560ms; }
@keyframes settle { from { transform: scale(1.12); } }
.motion [data-reveal="zoom"]:not(.in):not(.seen) { opacity: 1; transform: scale(1.12); }
[data-reveal="zoom"].in { animation: settle 2600ms var(--ease-out) backwards; }

/* ---------- Credential band ---------- */
.proof-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: -4px; }
.proof-label::before, .proof-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.proof-item .icon-box { transition: transform 320ms var(--ease-out), background-color 260ms ease, color 260ms ease; }
@media (hover: hover) { .proof-item:hover .icon-box { transform: translateY(-3px); background: var(--primary); color: #fff; } }

/* ---------- Tags (sub-feature chips) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Product grid with featured card ---------- */
.products-grid > .feature-card { grid-column: span 2; grid-row: span 2; }
.feature-card { position: relative; overflow: hidden; isolation: isolate; border: 0; padding: 40px; gap: 16px; color: #fff; background: linear-gradient(150deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100%); justify-content: flex-end; }
a.feature-card:hover { color: #fff; box-shadow: 0 28px 60px -24px rgba(29,78,216,0.65); }
.feature-card .bg-icon { position: absolute; right: -40px; top: -40px; z-index: -1; color: #fff; opacity: 0.12; transform: rotate(-12deg); transition: transform 900ms var(--ease-out); }
@media (hover: hover) { a.feature-card:hover .bg-icon { transform: rotate(-4deg) scale(1.06); } }
.feature-card .badge { align-self: flex-start; margin-bottom: auto; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); }
.feature-card .icon-box { background: rgba(255,255,255,0.18); color: #fff; width: 56px; height: 56px; border-radius: 14px; }
a.feature-card:hover .icon-box { background: #fff; color: var(--primary); }
.feature-card h3 { font-size: 34px; line-height: 1.1; color: #fff; }
.feature-card p { color: #e0ebff; font-size: 17px; flex-grow: 0; max-width: 460px; }
.feature-card .tags span { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); color: #fff; }
.feature-card .price { font-size: 15px; font-weight: 700; color: #fff; }
.feature-card .more { color: #fff; }

/* ---------- Stat strip ---------- */
.stats { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(37,99,235,0.45), transparent 70%), radial-gradient(500px 280px at 90% 100%, rgba(14,165,233,0.3), transparent 70%); pointer-events: none; }
.stat { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.14); }
.stat strong { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.stat strong small { font-size: 22px; font-weight: 700; color: #7dd3fc; letter-spacing: 0; }
.stat > span { font-size: 15px; line-height: 1.5; color: #b6c4e0; max-width: 240px; }

/* ---------- Tabbed showcase ---------- */
.tab-list { display: none; }
.js .tab-list { display: inline-flex; align-self: flex-start; gap: 4px; padding: 6px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.tab-list button { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 11px; padding: 12px 18px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 160ms var(--ease-out); }
.tab-list button:hover { color: var(--ink); }
.tab-list button:active { transform: scale(0.97); }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(15,23,42,0.08), 0 6px 16px -6px rgba(15,23,42,0.18); }
.tab-list button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.tabs { display: flex; flex-direction: column; gap: 24px; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 48px; border-radius: 24px; background: linear-gradient(135deg, var(--tint) 0%, #f3f7fd 100%); border: 1px solid var(--line); }
.tab-panel[hidden] { display: none; }
.js .tab-panel:not([hidden]) { animation: rise 520ms var(--ease-out) backwards; }
.tp-copy { display: flex; flex-direction: column; gap: 16px; }
.tp-copy h3 { font-size: 30px; line-height: 1.15; color: var(--ink); }
.tp-copy > p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.checks svg { color: var(--primary); margin-top: 3px; }
.tp-links { display: flex; flex-direction: column; gap: 12px; }
.row-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--text); transition: border-color 200ms ease, transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.row-link strong { display: block; color: var(--ink); font-size: 16px; }
.row-link span { font-size: 14px; color: var(--muted); }
.row-link > svg { color: var(--primary); transition: transform 320ms var(--ease-out); }
@media (hover: hover) {
  .row-link:hover { border-color: var(--primary); color: var(--text); transform: translateX(4px); box-shadow: 0 12px 28px -16px rgba(15,23,42,0.3); }
  .row-link:hover > svg { transform: translateX(4px); }
  .row-link:hover .icon-box { background: var(--primary); color: #fff; }
}

/* ---------- Timeline (how it works) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--primary), #0ea5e9 60%, rgba(14,165,233,0.15)); transform-origin: left center; }
.timeline > li { position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline .step { width: 56px; height: 56px; border-radius: 16px; font-size: 20px; box-shadow: 0 0 0 8px var(--sec-bg, var(--bg)), 0 10px 24px -8px rgba(37,99,235,0.6); transition: transform 320ms var(--ease-out); }
.timeline h3 { font-size: 21px; color: var(--ink); margin-top: 8px; }
.timeline p { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 360px; }
@media (hover: hover) { .timeline > li:hover .step { transform: translateY(-3px) rotate(-4deg); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
.motion .timeline:not(.in):not(.seen)::before { transform: scaleX(0); }
.timeline.in::before { animation: draw-x 1300ms var(--ease-out) 150ms backwards; }

/* ---------- Reviews: featured + small ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 24px; }
.reviews > .quote-feature { grid-row: span 2; }
.quote-feature { position: relative; overflow: hidden; background: var(--navy); border: 0; padding: 44px; gap: 24px; justify-content: space-between; }
.quote-feature:hover { border-color: transparent; }
.quote-feature::before { content: "\201C"; position: absolute; right: 28px; top: -24px; font-size: 220px; line-height: 1; font-weight: 800; color: rgba(125,211,252,0.14); pointer-events: none; }
.quote-feature .quote { font-size: 24px; line-height: 1.5; color: #fff; font-style: normal; font-weight: 600; letter-spacing: -0.01em; }
.quote-feature .who strong { color: #fff; }
.quote-feature .who span { color: #b6c4e0; }
.quote-feature .avatar { background: #fff; color: var(--primary); }

/* ---------- Service pages: icon-led feature rows ---------- */
.feature-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.feature-rows > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; padding: 24px 0; border-top: 1px solid rgba(15,23,42,0.1); }
.feature-rows .icon-box { grid-row: span 2; background: #fff; box-shadow: 0 6px 16px -8px rgba(37,99,235,0.45); transition: transform 320ms var(--ease-out), background-color 260ms ease, color 260ms ease; }
.feature-rows h3 { font-size: 18px; color: var(--ink); align-self: center; }
.feature-rows p { font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (hover: hover) { .feature-rows > li:hover .icon-box { transform: translateY(-2px); background: var(--primary); color: #fff; } }

/* ---------- Responsive for the layer above ---------- */
@media (max-width: 1200px) {
  .products-grid > .feature-card { grid-row: span 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .tab-panel { padding: 36px; gap: 32px; }
}
@media (max-width: 960px) {
  .tab-panel { grid-template-columns: 1fr; }
  .js .tab-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch; }
  .tab-list button { justify-content: center; }
  .reviews { grid-template-columns: 1fr; }
  .reviews > .quote-feature { grid-row: auto; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), #0ea5e9 70%, rgba(14,165,233,0.15)); transform-origin: center top; }
  .timeline > li { padding-left: 84px; min-height: 56px; }
  .timeline .step { position: absolute; left: 0; top: 0; }
  .timeline h3 { margin-top: 12px; }
  .motion .timeline:not(.in):not(.seen)::before { transform: scaleY(0); }
  .timeline.in::before { animation-name: draw-y; }
  .feature-rows { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .products-grid > .feature-card { grid-column: auto; }
  .feature-card { padding: 28px; }
  .feature-card h3 { font-size: 28px; }
  .feature-card .bg-icon { width: 160px; height: 160px; right: -30px; top: -30px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-top: 56px; padding-bottom: 56px; }
  .stat { padding-left: 14px; }
  .stat strong { font-size: 40px; }
  .stat strong small { font-size: 17px; }
  .stat > span { font-size: 14px; }
  .tab-panel { padding: 24px; border-radius: 18px; }
  .tp-copy h3 { font-size: 24px; }
  .tab-list button { padding: 10px 8px; font-size: 14px; }
  .row-link { padding: 14px; gap: 12px; }
  .quote-feature { padding: 28px; }
  .quote-feature .quote { font-size: 20px; }
  .quote-feature::before { font-size: 160px; }
  .hero-fx .o1 { width: 280px; height: 280px; top: 40%; }
  .hero-fx .o2 { width: 260px; height: 260px; }
}

/* ---------- Reduced motion: no movement anywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-fx { display: none; }
  a.card:hover, .tile:hover, .row-link:hover, .btn:active { transform: none; }
}
.menu-panel .m-items a.m-all:not(.btn) { margin-top: 4px; color: var(--primary); font-weight: 700; }

/* =====================================================================
   Shop: cart button, product configurator, cart drawer, checkout
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-links { margin-left: auto; }
.cart-btn { position: relative; margin-left: 8px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); }
.cart-btn:hover { color: var(--ink); background: rgba(15,23,42,0.05); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.cart-count.bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.mega-foot-links { display: inline-flex; align-items: center; gap: 18px; }
.mega-foot-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.mega-foot-links a:first-child { color: var(--muted); }
.mega-foot-links a:first-child:hover { color: var(--ink); }
.mega-shop svg { transition: transform 200ms ease; }
.mega-shop:hover svg { transform: translateX(3px); }

.hero-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #e0ebff; font-size: 15px; font-weight: 600; }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks svg { color: #7dd3fc; }

/* Buttons used by the shop */
.btn-block { width: 100%; padding: 14px 20px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
button.btn { font: inherit; font-weight: 700; cursor: pointer; border: 0; transition: background-color 200ms ease, transform 160ms var(--ease-out), border-color 200ms ease; }
button.btn.btn-ghost { border: 1.5px solid var(--line); }
button.btn:active:not(:disabled) { transform: scale(0.98); }
button.btn:disabled { opacity: .7; cursor: progress; }

/* Configurator layout */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.buy fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.buy-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.buy-step { display: flex; flex-direction: column; gap: 20px; }
.buy-step-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.buy-step-head h3 { font-size: 24px; color: var(--ink); margin-right: auto; }
.buy-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* Segmented billing toggle */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease; }
.seg em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 3px 7px; border-radius: 999px; background: #dcfce7; color: #15803d; }
.seg input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(15,23,42,0.5); }
.seg input:checked + span em { background: rgba(255,255,255,0.18); color: #bbf7d0; }
.seg input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Plan cards (radio) */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-card { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); transition: border-color 200ms ease, box-shadow 260ms var(--ease-out), transform 260ms var(--ease-out); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
@media (hover: hover) { .plan-card:hover { border-color: #93b4f5; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(15,23,42,0.35); } }
.plan-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.14), 0 18px 36px -20px rgba(37,99,235,0.55); }
.plan-card:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.plan-head { display: flex; align-items: center; gap: 8px; padding-right: 28px; }
.plan-head strong { font-size: 17px; color: var(--ink); }
.plan-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #fff1e6; color: var(--cta); }
.plan-card > small { font-size: 14px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 4px; color: var(--ink); }
.plan-price b { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-card ul { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text); }
.plan-card li svg { color: var(--primary); margin-top: 3px; }
.plan-tick { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 260ms var(--ease-out); }
.plan-card:has(input:checked) .plan-tick { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.05); }

/* Options + fields */
.pick legend, .field label { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt-card { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); transition: border-color 200ms ease, box-shadow 200ms ease; }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card strong { color: var(--ink); font-size: 15px; }
.opt-card small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.opt-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.14); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.field { display: flex; flex-direction: column; }
.field label { display: block; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); max-width: 480px; transition: border-color 200ms ease, box-shadow 200ms ease; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.16); }
.field input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.field-msg { min-height: 20px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #b91c1c; }
.buy-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--tint); color: var(--text); font-size: 14px; line-height: 1.55; }
.buy-note svg { color: var(--primary); margin-top: 2px; }

/* Order summary card */
.buy-summary { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -32px rgba(15,23,42,0.35); }
.buy-summary h3 { font-size: 18px; color: var(--ink); }
.sum-plan { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-plan strong { display: block; color: var(--ink); }
.sum-plan span { font-size: 13.5px; color: var(--muted); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--ink); font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 160ms ease; }
.stepper button:hover { background: var(--bg); }
.stepper button:active { background: var(--tint); }
.stepper input { width: 52px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.stepper.sm button { width: 32px; height: 32px; }
.stepper.sm input { width: 40px; height: 32px; font-size: 14px; }
.sum-rows { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.sum-rows dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.sum-total dt { color: var(--ink); font-weight: 700; }
.sum-total b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.sum-total dd span { font-size: 14px; color: var(--muted); margin-left: 2px; }
.sum-save { margin-top: -6px; font-size: 13.5px; font-weight: 700; color: #15803d; }
.sum-save[hidden] { display: none; }
.sum-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.sum-trust svg { color: #16a34a; }

/* Shop index */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shop-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: border-color 220ms ease, transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.shop-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), #0ea5e9); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out); }
.shop-card h3 { font-size: 20px; color: var(--ink); }
.shop-card p { font-size: 15px; line-height: 1.6; color: var(--muted); flex-grow: 1; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.shop-from { font-weight: 800; color: var(--ink); font-size: 15px; }
.shop-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: 14px; }
.shop-go svg { transition: transform 260ms var(--ease-out); }
.shop-card .icon-box { transition: background-color 220ms ease, color 220ms ease; }
@media (hover: hover) {
  .shop-card:hover { color: var(--text); border-color: transparent; transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(15,23,42,0.4); }
  .shop-card:hover::before { transform: scaleX(1); }
  .shop-card:hover .shop-go svg { transform: translateX(4px); }
  .shop-card:hover .icon-box { background: var(--primary); color: #fff; }
}

/* Cart drawer */
html.cart-lock { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: transparent; overflow: visible; }
.cart-drawer::backdrop { background: rgba(15,23,42,0.4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 260ms ease; }
.cart-drawer.is-open::backdrop { opacity: 1; }
.cd-panel { height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -24px 0 60px -20px rgba(15,23,42,0.4); transform: translateX(100%); transition: transform 300ms var(--ease-out); }
.cart-drawer.is-open .cd-panel { transform: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cd-head h2 { font-size: 20px; color: var(--ink); }
.cd-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 160ms ease; }
.cd-close:hover { background: var(--bg); }
.cd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px; }
.cd-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 14px; }
.cd-foot:empty { display: none; }
.cd-totals { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-totals > div { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.cd-totals dd { margin: 0; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-lines { list-style: none; margin: 0; padding: 0; }
.cd-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity 200ms ease, transform 200ms ease; }
.cd-line:last-child { border-bottom: 0; }
.cd-line.is-new { animation: line-in 700ms var(--ease-out); }
@keyframes line-in { 0% { background: rgba(37,99,235,0.12); transform: translateY(-4px); } 100% { background: transparent; transform: none; } }
.cd-line.is-leaving { opacity: 0; transform: translateX(16px); }
.cd-line-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd-name { font-weight: 700; color: var(--ink); }
.cd-name:hover { color: var(--primary); }
.cd-meta { font-size: 13.5px; color: var(--muted); }
.cd-domain { font-size: 13px; font-weight: 600; color: var(--primary); overflow-wrap: anywhere; }
.cd-line-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cd-remove { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.cd-remove:hover { color: #b91c1c; }
.cd-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cd-price b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-price span, .cd-price small { font-size: 12.5px; color: var(--muted); }
.cd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 56px 12px; }
.cd-empty p { display: flex; flex-direction: column; gap: 4px; }
.cd-empty strong { color: var(--ink); font-size: 17px; }
.cd-empty span { color: var(--muted); font-size: 14px; }
.cd-empty .btn { padding: 12px 22px; }

/* Checkout page */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.checkout-lines { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.checkout-loading { color: var(--muted); }
.co-group { padding: 8px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.co-group h3 { display: flex; align-items: center; gap: 12px; padding: 18px 0 10px; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.co-continue { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.co-continue svg { transform: rotate(180deg); }
.checkout-pay[hidden] { display: none; }
.co-split { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text); background: var(--tint); padding: 12px 14px; border-radius: 12px; }
.co-split svg { color: var(--primary); margin-top: 2px; }
.co-pay { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.co-pay:last-child { border-bottom: 0; }
[data-pay-groups] { display: flex; flex-direction: column; gap: 4px; }
.co-renew { font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.checkout-error { font-size: 14px; font-weight: 600; color: #b91c1c; }
.checkout-error:empty { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .buy { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .plan-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cart-btn { margin-left: auto; margin-right: 4px; }
  .buy, .checkout-grid { grid-template-columns: 1fr; }
  .buy-summary { position: static; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shop-grid, .opt-grid, .plan-grid-4 { grid-template-columns: 1fr; }
  .buy-summary { padding: 20px; }
  .co-group { padding: 4px 18px; }
  .cd-head, .cd-body, .cd-foot { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-panel, .cart-drawer::backdrop, .plan-card, .shop-card, .shop-card::before, .cd-line { transition: none; }
  .cd-line.is-new, .cart-count.bump { animation: none; }
}
.mega-trigger.is-current { color: var(--ink); }
.co-offline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: var(--text); font-size: 14px; line-height: 1.5; }
.co-offline svg { color: var(--cta); margin-top: 2px; }
.co-offline strong { color: var(--ink); }
