/* PathSnapper marketing site - "bold creative tool".
   Dark-first: deep ink, a violet -> magenta gradient accent with soft glows, glass surfaces,
   big tight display type. Light mode (theme toggle) keeps the same structure on paper. */

:root {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #13131f;
  --surface-2: rgba(255, 255, 255, 0.08);
  --ink: #f4f3fb;
  --soft: #c3c1d6;
  --muted: #8f8ca6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #8b6cff;
  --accent-2: #ff4fd8;
  --accent-3: #36d6ff;
  --accent-hover: #a08aff;
  --accent-weak: rgba(139, 108, 255, 0.14);
  --accent-ink: #ffffff;
  --grad: linear-gradient(110deg, #8b6cff 0%, #c25cff 45%, #ff4fd8 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 108, 255, 0.22), rgba(255, 79, 216, 0.14));
  --ok: #45d69a;
  --warn: #ffbf5a;
  --bad: #ff6b8a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(139, 108, 255, 0.35), 0 20px 80px -10px rgba(139, 108, 255, 0.45);
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-2: #ecebf6;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --surface-2: rgba(20, 16, 50, 0.05);
  --ink: #12101f;
  --soft: #45425a;
  --muted: #6d6a84;
  --line: rgba(20, 16, 50, 0.09);
  --line-strong: rgba(20, 16, 50, 0.18);
  --accent: #6c4dff;
  --accent-hover: #5a3bf0;
  --accent-weak: rgba(108, 77, 255, 0.1);
  --grad: linear-gradient(110deg, #6c4dff 0%, #b13ff0 50%, #ec2fbf 100%);
  --grad-soft: linear-gradient(135deg, rgba(108, 77, 255, 0.12), rgba(236, 47, 191, 0.08));
  --ok: #138a58; --warn: #a2620a; --bad: #d42a52;
  --shadow: 0 1px 2px rgba(20, 16, 50, 0.06), 0 18px 50px -20px rgba(20, 16, 50, 0.25);
  --glow: 0 0 0 1px rgba(108, 77, 255, 0.25), 0 20px 70px -15px rgba(108, 77, 255, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(139, 108, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(255, 79, 216, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="light"] body { background: radial-gradient(1200px 700px at 85% -10%, rgba(108, 77, 255, 0.10), transparent 60%), var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
::selection { background: rgba(139, 108, 255, 0.4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface-solid); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--soft); max-width: 44em; line-height: 1.6; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 800px; }
.wrap--wide { max-width: 1440px; }
/* the footer sits at the bottom of the window on short pages (sign-in, account, legal) */
body:has(> .site-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .site-footer) > main { flex: 1 0 auto; }
main { min-height: 60vh; }

/* ---------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(194, 92, 255, 0.7); }
.btn--primary:hover { background: var(--grad); color: #fff; box-shadow: 0 12px 40px -8px rgba(255, 79, 216, 0.75); filter: brightness(1.08); }
.btn--ghost { border-color: transparent; background: transparent; backdrop-filter: none; }
.btn--danger { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); background: transparent; }
.btn--danger:hover { background: var(--bad); color: #fff; }
.btn--large { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
button.link { background: none; border: 0; padding: 0; color: var(--accent-hover); font: inherit; text-decoration: underline; cursor: pointer; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; }
.icon-btn:hover { background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--soft); vertical-align: middle; border: 1px solid var(--line); }
.badge--accent { background: var(--grad-soft); color: var(--ink); border-color: rgba(139, 108, 255, 0.35); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo-mark rect:first-child { fill: url(#pw-grad); }
.site-nav { display: flex; align-items: center; gap: 12px; flex: 1; }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0 auto 0 18px; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.current, .nav-links a.section { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--soft); }
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; border-radius: 2px; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; padding: 14px var(--gutter) 22px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; margin: 0; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- footer */
.site-footer { position: relative; margin-top: 120px; padding: 56px 0 32px; font-size: 14px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(139, 108, 255, 0.05)); }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(640px, 80%); height: 1px; transform: translateX(-50%); background: var(--grad); opacity: 0.7; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.footer-brand p { margin-top: 12px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 6px 0 0; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 32px; font-size: 13px; }
.lang-switch select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--ink); }

/* ---------- flash messages */
.flash { margin: 22px 0; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(8px); }
.flash--good { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.flash--bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.flash--warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.inline-form { display: inline; }

/* ---------- blocks */
.block { position: relative; padding: clamp(52px, 7vw, 96px) 0; }
.block + .block::before { content: ""; position: absolute; top: 0; left: 50%; width: min(520px, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.block--pathwizard__elements__videoelement + .block::before, .block--pathwizard__elements__heroelement + .block::before { display: none; }
.bg--light { background: var(--surface); }
.bg--dark { background: #05050a; }
.bg--glass { background: var(--grad-soft); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(30px, 4vw, 48px); }
.section-head .lede { margin: 0 auto; }
.section-head--left { text-align: left; margin-left: 0; }
.page-head { padding-top: 72px; }
.prose > :last-child { margin-bottom: 0; }
.prose img { border-radius: 12px; }
.prose a { color: var(--accent-hover); }

/* hero */
.block--pathwizard__elements__heroelement { padding-top: clamp(40px, 6vw, 84px); overflow: hidden; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 760px; height: 760px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(139, 108, 255, 0.45), rgba(255, 79, 216, 0.18) 40%, transparent 68%); filter: blur(30px); }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.98; margin-bottom: 0.35em; }
.hero-title .grad-text { display: block; padding-bottom: 0.08em; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(255, 79, 216, 0.8); }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--glow); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero::before { right: -40%; } }

/* hero graphic: pixels -> paths */
.hero-graphic { position: relative; aspect-ratio: 1.12; border-radius: 26px; padding: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-strong); box-shadow: var(--glow); backdrop-filter: blur(10px); }
.hero-graphic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hg-label { font: 600 10px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--muted); }
.hg-pixels rect { transform-box: fill-box; transform-origin: center; animation: hg-pix 7s ease-in-out infinite; }
.hg-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: hg-draw 7s ease-in-out infinite; }
.hg-fill { opacity: 0; animation: hg-fill 7s ease-in-out infinite; }
.hg-node, .hg-handle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hg-node 7s ease-in-out infinite; }
.hg-scan { animation: hg-scan 7s ease-in-out infinite; }
@keyframes hg-pix { 0%, 8% { opacity: 1; } 34%, 92% { opacity: 0.18; } 100% { opacity: 1; } }
@keyframes hg-draw { 0%, 18% { stroke-dashoffset: 900; } 48%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 900; } }
@keyframes hg-fill { 0%, 44% { opacity: 0; } 58%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hg-node { 0%, 46% { opacity: 0; transform: scale(0.3); } 54%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes hg-scan { 0%, 10% { transform: translateX(0); opacity: 0; } 14% { opacity: 1; } 42% { transform: translateX(300px); opacity: 1; } 48%, 100% { transform: translateX(300px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hg-pixels rect, .hg-path, .hg-fill, .hg-node, .hg-handle, .hg-scan { animation: none; }
  .hg-path { stroke-dashoffset: 0; } .hg-fill, .hg-node, .hg-handle { opacity: 1; } .hg-pixels rect { opacity: 0.18; } .hg-scan { opacity: 0; }
}

/* split content */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--media-left .split-media { order: -1; }
.split-media img, .split-media .video-frame { border-radius: var(--radius); box-shadow: var(--glow); }
@media (max-width: 880px) { .split--media { grid-template-columns: 1fr; } .split--media-left .split-media { order: 0; } }

/* features */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 22px; }
/* four cards: one row of four on wide screens, two by two below, never three and an orphan */
.feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
/* numbered steps (a features block with Extra CSS class "steps") */
.steps .feature-grid { counter-reset: step; }
.steps .feature { counter-increment: step; padding: 24px; }
.steps .feature-icon { margin-bottom: 16px; }
.steps .feature::before { content: counter(step); position: absolute; top: 20px; right: 22px; font: 800 2.4rem/1 var(--display); color: var(--line-strong); }
/* the "customer JPG to production file" section: readable measure, centred */
.block--pathwizard__elements__contentsectionelement .split:not(.split--media) { max-width: 820px; }
.block--pathwizard__elements__contentsectionelement .prose li { margin-bottom: 0.6em; color: var(--soft); }
.block--pathwizard__elements__contentsectionelement .prose li strong { color: var(--ink); }
.feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.3s; }
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px 200px at var(--mx, 50%) 0%, rgba(139, 108, 255, 0.16), transparent 70%); }
.feature:hover { transform: translateY(-4px); border-color: rgba(139, 108, 255, 0.4); box-shadow: 0 24px 60px -24px rgba(139, 108, 255, 0.5); }
.feature:hover::after { opacity: 1; }
.feature img { border-radius: 12px; margin-bottom: 18px; }
.feature h3 { margin: 0 0 8px; }
.feature p { color: var(--soft); margin: 0; font-size: 15px; }
.feature-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px; color: #fff;
  background: var(--grad); box-shadow: 0 10px 30px -10px rgba(194, 92, 255, 0.8); }
.feature-icon svg { width: 24px; height: 24px; }
.feature:nth-child(6n+2) .feature-icon { background: linear-gradient(135deg, #36d6ff, #6c7bff); box-shadow: 0 10px 30px -10px rgba(54, 214, 255, 0.7); }
.feature:nth-child(6n+3) .feature-icon { background: linear-gradient(135deg, #ff9a3c, #ff4f8b); box-shadow: 0 10px 30px -10px rgba(255, 120, 80, 0.7); }
.feature:nth-child(6n+4) .feature-icon { background: linear-gradient(135deg, #3ee8a5, #23a6d5); box-shadow: 0 10px 30px -10px rgba(62, 232, 165, 0.6); }
.feature:nth-child(6n+5) .feature-icon { background: linear-gradient(135deg, #ffd23f, #ff7a3d); box-shadow: 0 10px 30px -10px rgba(255, 190, 60, 0.6); }
.feature:nth-child(6n+6) .feature-icon { background: linear-gradient(135deg, #ff4fd8, #8b6cff); }

/* testimonials */
.quotes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(10px); }
.quote blockquote { margin: 0 0 18px; font-size: 1.08rem; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font: 800 3rem/0.6 var(--display); margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption { font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color 0.2s, background 0.2s; }
.faq-item[open] { border-color: rgba(139, 108, 255, 0.4); background: var(--grad-soft); }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-hover); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding-bottom: 20px; color: var(--soft); }

/* closing call to action */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter); border-radius: 28px; border: 1px solid rgba(139, 108, 255, 0.35);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(139, 108, 255, 0.45), transparent 70%),
    radial-gradient(600px 300px at 85% 100%, rgba(255, 79, 216, 0.35), transparent 70%),
    var(--bg-2);
  box-shadow: var(--glow); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-band .lede { margin: 0 auto 30px; }

/* before / after */
.compare { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--glow); background: #fff; user-select: none; }
.compare img { width: 100%; display: block; }
.compare-before { position: absolute; inset: 0; width: var(--pos); overflow: hidden; border-right: 2px solid #fff; box-shadow: 4px 0 20px rgba(139, 108, 255, 0.6); }
.compare-before img { width: auto; height: 100%; max-width: none; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-tag { position: absolute; top: 14px; padding: 4px 11px; border-radius: 99px; background: rgba(10, 10, 18, 0.75); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; backdrop-filter: blur(6px); }
.compare-tag--before { left: 14px; }
.compare-tag--after { right: 14px; }

/* video (ported from cc-ss4-gb VideoElemental) - framed as a glowing app window */
.video-stage { position: relative; }
.video-block--container .video-stage, .video-block--full-width-contained .video-stage {
  padding: 34px 10px 10px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong); box-shadow: var(--glow); }
.video-block--container .video-stage::before, .video-block--full-width-contained .video-stage::before {
  content: ""; position: absolute; left: 18px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; }
.video-block--container .video-stage::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; z-index: -1; filter: blur(50px);
  background: linear-gradient(90deg, rgba(139, 108, 255, 0.7), rgba(255, 79, 216, 0.6)); border-radius: 50%; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 14px; }
.video-block--full-width .video-frame { border-radius: 0; }
.video-frame video, .video-frame iframe, .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; }
.video-play img { opacity: 0.8; transition: opacity 0.2s; }
.video-play:hover img { opacity: 1; }
.video-play-icon { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--grad); box-shadow: 0 10px 40px rgba(194, 92, 255, 0.7); }
.video-play-icon::after { content: ""; position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-panel { position: absolute; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); padding: 26px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.video-block--panel-top .video-panel { top: 24px; }
.video-block--panel-center .video-panel { top: 50%; transform: translate(-50%, -50%); }
.video-block--panel-bottom .video-panel { bottom: 24px; }
@media (max-width: 640px) { .video-panel { position: static; transform: none; width: auto; margin-top: 12px; } .video-block--panel-center .video-panel { transform: none; } }
.video-title { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }

/* slider */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 720px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: thin; }
.slide { margin: 0; scroll-snap-align: start; }
.slide img, .slide .video-frame { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.slide figcaption { margin-top: 12px; color: var(--soft); font-size: 14px; }
.slider-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* logo strip */
.logo-strip-title { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.logo-strip { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.logo-strip img { max-height: 40px; width: auto; }
.logo-strip--mono img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.55; transition: opacity 0.2s, filter 0.2s; }
.logo-strip--mono a:hover img { filter: none; opacity: 1; }
:root[data-theme="light"] .logo-strip--mono img { filter: grayscale(1); opacity: 0.6; }

/* scroll reveal */
.js .reveal { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal--fade-up { transform: translateY(28px); }
.js .reveal--stagger-children { opacity: 1; }
.js .reveal--stagger-children :is(.feature-grid, .quotes, .faq, .logo-strip) > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal--stagger-children.in :is(.feature-grid, .quotes, .faq, .logo-strip) > * { opacity: 1; transform: none; }
.reveal--stagger-children.in :is(.feature-grid, .quotes, .faq, .logo-strip) > :nth-child(2) { transition-delay: 0.08s; }
.reveal--stagger-children.in :is(.feature-grid, .quotes, .faq, .logo-strip) > :nth-child(3) { transition-delay: 0.16s; }
.reveal--stagger-children.in :is(.feature-grid, .quotes, .faq, .logo-strip) > :nth-child(4) { transition-delay: 0.24s; }
.reveal--stagger-children.in :is(.feature-grid, .quotes, .faq, .logo-strip) > :nth-child(5) { transition-delay: 0.32s; }
.reveal--stagger-children.in :is(.feature-grid, .quotes, .faq, .logo-strip) > :nth-child(n+6) { transition-delay: 0.4s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal--stagger-children :is(.feature-grid, .quotes, .faq, .logo-strip) > * { opacity: 1; transform: none; transition: none; } }

/* ---------- pricing */
.pricing { padding-top: 72px; }
.pricing .section-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.interval-toggle { display: flex; justify-content: center; gap: 4px; padding: 5px; margin: 0 auto 36px; width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.interval-toggle button { border: 0; background: transparent; color: var(--soft); font: 600 14px var(--font); padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.interval-toggle button[aria-checked="true"] { background: var(--grad); color: #fff; }
.interval-toggle button[aria-checked="true"] .badge { background: rgba(255, 255, 255, 0.2); color: inherit; border-color: transparent; }
.plan-card { position: relative; max-width: 480px; margin: 0 auto; padding: 36px; border-radius: 26px; background: var(--bg-2); box-shadow: var(--glow); isolation: isolate; }
.plan-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); z-index: -1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan-card--compact { max-width: 440px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-head h2, .plan-head h3 { margin: 0; font-size: 1.5rem; }
.plan-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font: 800 3.6rem/1 var(--display); letter-spacing: -0.04em; }
.plan-price .per { color: var(--muted); }
.plan-note { font-size: 14px; margin: 10px 0 0; text-align: center; }
.plan-card .plan-note:first-of-type { text-align: left; }
.ticks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-soft); border: 1px solid rgba(139, 108, 255, 0.45); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--accent-hover); border-bottom: 2px solid var(--accent-hover); transform: rotate(-45deg); }

/* ---------- forms + auth */
.auth { display: grid; place-items: center; padding-top: 72px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(26px, 5vw, 40px); box-shadow: var(--glow); backdrop-filter: blur(16px); }
.auth-card h1 { font-size: 2.2rem; }
.auth-alt { text-align: center; font-size: 14px; margin: 16px 0 0; color: var(--muted); }
form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
form .field { margin-bottom: 18px; border: 0; padding: 0; }
form label, form .left { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--soft); }
form input.text, form input[type="email"], form input[type="password"], form input[type="text"], form select, form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.25); color: var(--ink); font: 16px var(--font);
  transition: border-color 0.2s, box-shadow 0.2s; }
:root[data-theme="light"] form input.text, :root[data-theme="light"] form input[type="email"], :root[data-theme="light"] form input[type="password"], :root[data-theme="light"] form input[type="text"] { background: #fff; }
form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-weak); }
form .field.checkbox { display: flex; align-items: flex-start; gap: 10px; }
form .field.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
form .field.checkbox label { font-weight: 400; margin: 0; order: 2; color: var(--soft); }
form .message { display: block; margin: 6px 0 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, var(--bad) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
form .message.good { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
form .Actions, form .btn-toolbar { margin-top: 10px; }
.auth-form .Actions .action { width: 100%; }
form .action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--grad); color: #fff;
  font: 600 15px var(--font); cursor: pointer; box-shadow: 0 8px 30px -8px rgba(194, 92, 255, 0.7); transition: filter 0.2s, transform 0.15s; }
form .action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hp-field { position: absolute !important; left: -9999px !important; }
.cf-turnstile { margin: 4px 0 16px; }

/* ---------- account */
.account { padding-top: 72px; }
.account-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(10px); }
.card h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.card--wide { grid-column: 1 / -1; }
.card--danger { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
@media (max-width: 780px) { .account-grid { grid-template-columns: 1fr; } }
.status { font-weight: 600; }
.status--trialing, .status--active { color: var(--ok); }
.status--past_due, .status--cancelling { color: var(--warn); }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.project-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.12); }
.project-list img, .thumb-ph { width: 64px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; display: block; }
.pl-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .project-list li { grid-template-columns: 64px minmax(0, 1fr); } .project-list li .muted { grid-column: 2; } .project-list li .btn { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ guides */
.guide-head .eyebrow a { color: inherit; text-decoration: none; }
.guide-head .eyebrow a:hover { color: var(--ink); }
.guide-head .eyebrow span[aria-hidden] { opacity: 0.5; }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.guide-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.guide-card a:hover, .guide-card a:focus-visible { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--glow); }
.guide-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card-body { display: grid; gap: 8px; padding: 22px 24px 24px; }
.guide-card-num { font: 700 12px/1 var(--font); letter-spacing: .12em; color: var(--accent-hover); }
.guide-card-num::before { content: "0"; }
.guide-card-title { font: 700 1.3rem/1.2 var(--display); color: var(--ink); }
.guide-card-text { color: var(--soft); line-height: 1.55; }
.guide-card-go { margin-top: 6px; font-weight: 600; color: var(--accent-hover); }
.guide-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 24px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.guide-nav a { color: inherit; text-decoration: none; }
.guide-nav-prev, .guide-nav-next { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.guide-nav-prev:hover, .guide-nav-next:hover { border-color: var(--line-strong); }
.guide-nav-next { text-align: right; }
.guide-nav small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.guide-nav-prev small::before { content: "\2190  "; }
.guide-nav-next small::after { content: "  \2192"; }
.guide-nav span { font-weight: 600; }
.guide-nav-all { color: var(--soft) !important; font-weight: 600; }
.guide-nav-all:hover { color: var(--ink) !important; }
@media (max-width: 640px) { .guide-nav { grid-template-columns: 1fr 1fr; } .guide-nav-all { grid-column: 1 / -1; grid-row: 2; text-align: center; } }
/* step-by-step lists in guide blocks */
.guide .prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.guide .prose ol > li { counter-increment: step; position: relative; padding-left: 42px; margin: 0 0 14px; }
.guide .prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font); color: #fff; background: var(--grad); }
.guide .prose kbd { font: 600 12px/1 var(--font); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); }
.guide .split-media .video-frame video { display: block; width: 100%; height: auto; }
/* guide head and intro run the full content width (as the blocks below), text kept to a readable measure */
.guide-head h1 { max-width: 18em; }
.guide-intro > * { max-width: 46em; }

/* ------------------------------------------------------------------ use-case landing pages */
.use-head .crumbs a { color: inherit; text-decoration: none; }
.use-head .crumbs a:hover { color: var(--ink); }
.use-head .crumbs span[aria-hidden] { opacity: 0.5; }
.use-head h1 { max-width: 18em; }
.use-head .actions { margin-top: 28px; }
.use-body { padding-top: 40px; }
.use-body > * { max-width: 46em; }
.use-body h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.25; margin: 2.2em 0 0.6em; }
.use-body ul li { margin-bottom: 0.4em; }
.use-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15px; }
.use-body th, .use-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.use-body th { color: var(--ink); font-weight: 600; border-bottom-color: var(--line-strong); }
.use-body td { color: var(--soft); }
.use-body .note { padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
@media (max-width: 700px) { .use-body table { display: block; overflow-x: auto; } }
.use-related { padding-top: 24px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.use-related h2 { font-size: 1.1rem; margin: 0 0 14px; }
.use-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.use-related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); text-decoration: none; background: var(--surface); }
.use-related a:hover { color: var(--ink); border-color: var(--line-strong); }
/* footer: links for each trade */
.footer-trades h2 { font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
.footer-trades ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-trades a { color: var(--soft); text-decoration: none; }
.footer-trades a:hover { color: var(--ink); }
/* feature cards that link somewhere (the trades block on the home page) */
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a::after { content: " \2192"; color: var(--accent-hover); }
.feature h3 a:hover { color: var(--accent-hover); }

/* ------------------------------------------------- full-size view of looping clips */
.video-frame--loop { position: relative; cursor: zoom-in; }
.video-expand { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; color: #fff; background: rgba(10, 10, 18, 0.62); backdrop-filter: blur(8px); cursor: pointer; opacity: 0.85; transition: opacity .2s, transform .2s, background .2s; }
.video-frame--loop:hover .video-expand, .video-expand:focus-visible { opacity: 1; background: rgba(139, 108, 255, 0.85); transform: scale(1.06); }
.video-modal { width: min(96vw, 1680px); max-width: none; max-height: 96vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); color: var(--ink); box-shadow: var(--glow); overflow: hidden; }
.video-modal::backdrop { background: rgba(4, 4, 10, 0.82); backdrop-filter: blur(6px); }
.video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.video-modal-head h2 { margin: 0; font: 700 1.05rem/1.3 var(--display); }
.video-modal-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--surface-2); cursor: pointer; }
.video-modal-close:hover, .video-modal-close:focus-visible { background: var(--accent); color: #fff; }
.video-modal video { display: block; width: 100%; height: auto; max-height: calc(96vh - 64px); background: #000; }

/* ---------- cookie consent: block page interaction and scrolling while choosing */
html:has(.consent:modal) { overflow: hidden; }
.consent { position: fixed; inset: auto auto 20px 20px; z-index: 60; width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); margin: 0; padding: 0; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); color: var(--ink); box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, 0.35); }
.consent:modal { inset: 0; margin: auto; }
.consent::backdrop { background: rgba(4, 4, 10, 0.6); backdrop-filter: blur(4px); }
.consent-inner { padding: 22px 22px 18px; }
.consent [hidden] { display: none !important; }
.consent h2 { margin: 0 0 8px; font: 700 1.15rem/1.3 var(--display); }
.consent-text { margin: 0 0 14px; font-size: 14px; color: var(--soft); }
.consent-groups { margin: 0 0 14px; border-top: 1px solid var(--line); }
.consent-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.consent-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.consent-group-title { font-weight: 600; }
.consent-always { font-size: 13px; color: var(--muted); }
.consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-toggle { position: relative; flex: none; width: 40px; height: 22px; border-radius: 22px; background: var(--line-strong); transition: background .2s; }
.consent-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.consent-switch input:checked + .consent-toggle { background: var(--accent); }
.consent-switch input:checked + .consent-toggle::after { transform: translateX(18px); }
.consent-switch input:focus-visible + .consent-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-group-text { margin-top: 4px; font-size: 13px; color: var(--muted); }
.consent-group-text p { margin: 0; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; }
.consent-links { margin: 12px 0 0; font-size: 13px; text-align: center; }
@media (max-width: 520px) { .consent:not(:modal) { inset: auto 10px 10px 10px; width: auto; } }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ink); }
/* headings inside long-form page text (legal pages, page Content): document scale, not display scale */
.page > .prose h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.25; letter-spacing: -0.01em; margin: 2.4em 0 0.7em; }
.page > .prose h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.page > .prose h4 { font-size: 1.02rem; margin: 1.6em 0 0.4em; }
.page > .prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------------------------------------------- pricing: passes + Pro */
.plan-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; max-width: 1120px; margin: 0 auto; }
.plan-grid .plan-card { max-width: none; margin: 0; display: flex; flex-direction: column; padding: 30px; }
.plan-grid .plan-card .btn--block { margin-top: auto; }
.plan-grid .plan-card .plan-note { margin-top: 10px; }
.plan-card--pass { background: var(--surface); box-shadow: none; border: 1px solid var(--line-strong); }
.plan-card--pass::before { display: none; }
.plan-card--pass .plan-price .amount { font-size: 2.8rem; }
.plan-card--pass .plan-note.muted { margin-bottom: 26px; }
.plan-card--pro .interval-toggle { margin: 18px 0 0; }
.plan-card--pro .btn--block { margin-top: 22px; }
@media (max-width: 960px) { .plan-grid { grid-template-columns: 1fr 1fr; } .plan-card--pro { grid-column: 1 / -1; order: -1; } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-includes { max-width: 760px; margin: 56px auto 0; }
.plan-includes h2 { font-size: 1.3rem; text-align: center; margin-bottom: 4px; }
.plan-includes .ticks { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin: 22px 0; }
.plan-small { font-size: 14px; text-align: center; }
.pricing-current { text-align: center; margin: -12px auto 28px; color: var(--soft); }
.pricing-verify, .pricing-error { max-width: 760px; margin: 0 auto 26px; }
.confirming { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 0 auto 32px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(139, 108, 255, 0.45); background: var(--accent-weak); }
.confirming p { margin: 6px 0 0; }
.spinner { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.2); border-top-color: var(--accent-hover); animation: pw-spin .8s linear infinite; }
@keyframes pw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.plan-grid .plan-note { text-align: left; }
.ticks--small { gap: 8px; margin: 0 0 26px; font-size: 14.5px; }
.ticks--small li { padding-left: 28px; }
.ticks--small li::before { width: 17px; height: 17px; top: 2px; }
.ticks--small li::after { left: 5px; top: 7px; width: 7px; height: 3.5px; }
.plan-card--pass .plan-note.muted { margin-bottom: 18px; }
/* reference guides: contents list, tables, anchors clear of the sticky header */
.guide-toc { margin: 28px 0 8px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide-toc ol { margin: 0; padding-left: 22px; columns: 2 280px; column-gap: 32px; }
.guide-toc li { margin: 4px 0; break-inside: avoid; }
.guide .prose h2[id], .guide .prose h3[id] { scroll-margin-top: 96px; }
.guide .prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15px; }
.guide .prose th, .guide .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.guide .prose th { color: var(--ink); font-weight: 600; border-bottom-color: var(--line-strong); }
.guide .prose td { color: var(--soft); }
@media (max-width: 700px) { .guide .prose table { display: block; overflow-x: auto; } }
.guide .prose .guide-toc ol { list-style: decimal; counter-reset: none; padding-left: 22px; }
.guide .prose .guide-toc ol > li { padding-left: 4px; margin: 0 0 6px; }
.guide .prose .guide-toc ol > li::before { content: none; }
.guide .prose .guide-toc li::marker { color: var(--muted); font-size: 0.9em; }

/* ------------------------------------------------------- try it free (/try) */
.try { padding-top: 72px; padding-bottom: 40px; }
.try .section-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.try-drop { display: grid; justify-items: center; gap: 10px; max-width: 760px; margin: 0 auto; padding: 44px 28px; text-align: center; border: 2px dashed rgba(139, 108, 255, 0.45); border-radius: 22px; background: var(--grad-soft); color: var(--accent-hover); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.try-drop strong { color: var(--ink); font: 700 1.3rem/1.3 var(--display); }
.try-drop:hover, .try-drop:focus-visible, .try-drop.over { border-color: var(--accent-hover); transform: translateY(-2px); }
.try-drop.over { background: var(--accent-weak); }
.try-drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.try-human { display: flex; justify-content: center; margin: 18px auto 0; }
.try-status { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px auto 0; color: var(--soft); }
.try-error { max-width: 760px; margin: 22px auto 0; }
.try-viewer { margin: 48px auto 0; max-width: 1100px; scroll-margin-top: 90px; }
.try-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; width: max-content; max-width: 100%; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.try-tabs button { border: 0; background: transparent; color: var(--soft); font: 600 14px var(--font); padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.try-tabs button[aria-selected="true"] { background: var(--grad); color: #fff; }
.try-stage { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--glow); background: #f4f4f7; cursor: zoom-in; line-height: 0; }
.try-stage.zoomed { cursor: zoom-out; }
.try-stage img { display: block; width: 100%; height: auto; user-select: none; }
.try-stage > img { transition: transform .25s ease; }
.try-compare { position: relative; }
.try-compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.try-compare input[type=range] { position: absolute; left: 0; right: 0; bottom: 12px; width: calc(100% - 40px); margin: 0 20px; accent-color: var(--accent); }
.try-zoom-hint { text-align: center; font-size: 13px; margin: 10px 0 0; }
.try-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 26px 0 0; }
.try-stats div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.try-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.try-stats dd { margin: 4px 0 0; font: 700 1.45rem/1.2 var(--display); color: var(--ink); }
.try-hint { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.try-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 26px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid rgba(139, 108, 255, 0.45); background: var(--grad-soft); }
.try-offer h2 { margin: 0 0 6px; font-size: 1.5rem; }
.try-offer p { margin: 0; max-width: 34em; }
.try-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.try-offer-small { font-size: 13px; }
.try-notes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; max-width: 1100px; margin: 56px auto 0; padding: 0; }
.try-notes li { color: var(--soft); line-height: 1.55; }
.try-notes strong { display: block; color: var(--ink); margin-bottom: 4px; }
.try [hidden] { display: none !important; } /* the display rules above must not override hidden */
.try-compare { cursor: ew-resize; touch-action: pan-y; }
/* the app's compare divider (css/app.css .divider) */
.try-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 2px solid var(--accent); pointer-events: none; z-index: 3; }
.try-handle { position: absolute; top: 50%; left: -15px; width: 28px; height: 28px; margin-top: -14px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35); cursor: ew-resize; pointer-events: auto; touch-action: none; }
.try-handle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.try-ctag { position: absolute; top: 10px; z-index: 2; font: 600 11px/1 var(--font); letter-spacing: .02em; color: #2b2b3a; background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 6px; padding: 5px 9px; pointer-events: none; line-height: 1; }
.try-ctag.l { left: 10px; } .try-ctag.r { right: 10px; }
