/* NERP website — plain CSS, no build step. Light and dark themes via custom properties. */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5d5a53;
  --line: #e3dfd5;
  --brand: #0f766e;
  --brand-strong: #0b5c56;
  --brand-soft: #d9efec;
  --accent: #c2410c;
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 8px 24px rgba(28, 27, 25, .08);
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412;
    --bg-alt: #181b19;
    --surface: #1e2220;
    --text: #ecebe6;
    --muted: #a6a39b;
    --line: #2d322f;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #123631;
    --accent: #fb923c;
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121412;
  --bg-alt: #181b19;
  --surface: #1e2220;
  --text: #ecebe6;
  --muted: #a6a39b;
  --line: #2d322f;
  --brand: #2dd4bf;
  --brand-strong: #5eead4;
  --brand-soft: #123631;
  --accent: #fb923c;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: -.02em; }
h1 em { font-style: italic; color: var(--brand); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .78em 1.3em; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
:root[data-theme="dark"] .btn { color: #06201d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #06201d; } }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-1px); }
.btn-small { padding: .5em 1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; border-color: #fff; color: #0b5c56 !important; }
.btn-light:hover { background: #e6f5f2; border-color: #e6f5f2; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .header-actions .btn-small { display: none; } }

/* Hero */
.hero { padding: 56px 0 64px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .9em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.cta-row.center { justify-content: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 16px; height: 9px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg) translateY(-2px); }

/* Product mock */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 12.5px; min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 112px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line); padding: 12px 8px; display: grid; align-content: start; gap: 2px; }
.mock-side i { font-style: normal; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.mock-side i.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.mock-main { padding: 14px; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock-head strong { font-size: 14px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.col h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.col h4 small { font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 2px; background: var(--bg); }
.card.won { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card span { color: var(--muted); }
.card em { font-style: normal; font-size: 11px; font-weight: 600; }
.card em.ok { color: var(--ok); }
.card em.warn { color: var(--warn); }
.mock-spark { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.mock-spark span { color: var(--muted); }
.mock-spark svg { width: 100%; height: 40px; }
.mock-spark polyline { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 26px; }
@media (min-width: 820px) { .strip-row { grid-template-columns: repeat(4, 1fr); } }
.strip strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--brand); line-height: 1.1; }
.strip span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.modules, .three, .stack { grid-template-columns: 1fr; }
@media (min-width: 640px) { .modules, .three, .stack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .modules, .three, .stack { grid-template-columns: repeat(3, 1fr); } }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }
.tile.plain h3 { padding-left: 14px; border-left: 3px solid var(--brand); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: .85fr 1.15fr; gap: 64px; } .split > div:first-child { position: sticky; top: 100px; } }
.split > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 48px; position: relative; color: var(--muted); }
.feature-list li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 4px; background: var(--brand); opacity: .85; }
.feature-list strong { color: var(--text); }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.calc label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; font-weight: 600; }
.calc input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; accent-color: var(--brand); }
.calc output { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 700; }
.money { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.money select, .money input { border: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 10px; }
.money select { border-right: 1px solid var(--line); cursor: pointer; }
.money input { width: 7em; text-align: right; font-variant-numeric: tabular-nums; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result div { border-radius: 12px; padding: 14px 16px; background: var(--bg-alt); display: grid; gap: 4px; min-width: 0; }
.calc-result span { color: var(--muted); font-size: .88rem; }
.calc-result strong { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--accent); }
.calc-result .nerp { background: var(--brand-soft); }
.calc-result .nerp strong { color: var(--brand); }
.fine { font-size: .84rem; color: var(--muted); margin: 0; }

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 900px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 28px; margin: 0; background: var(--brand); color: var(--surface); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: .1em 0 .4em; line-height: 1.2; }
.price span { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan > p { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final { background: linear-gradient(135deg, #0f766e, #0b4f4a 60%, #3b2a14); color: #fff; padding: 80px 0; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; }
.final-inner { max-width: 760px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-row p { margin: 10px 0 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.footer-row nav a { color: var(--muted); text-decoration: none; }
.footer-row nav a:hover { color: var(--text); }
.copy { margin-top: 28px; font-size: .84rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────────── Fancy layer: motion, glow and gradients. Still no outside requests. ───────────── */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --glow: color-mix(in srgb, var(--brand) 38%, transparent);
  --grad: linear-gradient(120deg, var(--brand), var(--accent));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
::selection { background: var(--brand); color: var(--surface); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
@keyframes drift { to { transform: translate3d(70px, 45px, 0) scale(1.15); } }
@keyframes pulse { to { box-shadow: 0 0 0 10px transparent; } }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes spin { to { --spin: 360deg; } }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* Header */
.site-header { transition: border-color .2s, box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .45); }
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.1); }
@media (min-width: 901px) {
  .nav a { position: relative; padding: 6px 0; transition: color .2s; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
  .nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
}
.icon-btn { transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }

/* Buttons: gradient, glow and a shine sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); box-shadow: 0 8px 22px -10px var(--glow); transition: transform .2s var(--ease), box-shadow .2s, background .15s, border-color .15s; }
.btn:hover { background: linear-gradient(135deg, var(--brand-strong), var(--brand)); transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--glow); }
.btn:active { transform: translateY(0); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost, .btn-outline-light { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn-light { background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn-light:hover { background: #e6f5f2; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); }
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora i { position: absolute; width: clamp(320px, 46vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .26; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--brand); top: -30%; right: -8%; }
.aurora i:nth-child(2) { background: var(--accent); bottom: -40%; left: -12%; opacity: .15; animation-duration: 28s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: var(--brand-strong); width: clamp(220px, 30vw, 480px); top: 30%; left: 38%; opacity: .12; animation-duration: 34s; animation-delay: -14s; }

.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; font-size: .72rem; letter-spacing: .07em;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); }
.hero .eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; white-space: nowrap; }

.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

/* Product mock: tilted in 3D, with a glow behind and floating chips in front */
.mock-stage { position: relative; min-width: 0; perspective: 1400px; animation: rise 1s var(--ease) .25s both; }
.mock-stage::before { content: ""; position: absolute; inset: 10% 4% -4%; z-index: -1; background: var(--grad); filter: blur(60px); opacity: .3; border-radius: 40px; }
.mock-tilt { position: relative; transform-style: preserve-3d; transition: transform .35s var(--ease); }
@media (min-width: 980px) { .mock-tilt { transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); } }
.mock { box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -24px rgba(0, 0, 0, .4), 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent); }
.mock-bar span:nth-child(1) { background: #f87171; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: #34d399; }
.kanban .card { animation: rise .6s var(--ease) both; transition: transform .2s var(--ease), border-color .2s; }
.kanban .col:nth-child(1) .card { animation-delay: .6s; }
.kanban .col:nth-child(2) .card { animation-delay: .75s; }
.kanban .col:nth-child(3) .card { animation-delay: .9s; }
.kanban .col .card:nth-child(3) { animation-delay: 1s; }
.mock-spark svg { color: var(--brand); animation: draw 1.8s var(--ease) 1.1s both; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; white-space: nowrap; font-size: 12px; line-height: 1.35;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateZ(50px); animation: bob 6s ease-in-out infinite; }
.chip b { display: block; font-size: 13px; }
.chip span { color: var(--muted); }
.chip i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.chip-a { top: -20px; right: -18px; }
.chip-b { bottom: -22px; left: -26px; animation-delay: -3s; }
.chip-b i { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
@media (max-width: 1100px) { .chip { display: none; } }

/* Strip and marquee */
.strip strong { width: fit-content; font-size: clamp(2rem, 4vw, 2.8rem); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee { overflow: hidden; padding-block: 18px; border-bottom: 1px solid var(--line); }
.marquee-track { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.marquee li { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .2s, border-color .2s; }
.marquee li:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.marquee.ready { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee.ready .marquee-track { flex-wrap: nowrap; justify-content: flex-start; padding: 0; width: max-content; animation: marquee 48s linear infinite; }
.marquee.ready:hover .marquee-track { animation-play-state: paused; }

/* Section headings */
.section .eyebrow { display: flex; align-items: center; gap: 10px; }
.section .eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Cards: lift, cursor spotlight, livelier icons */
.tile, .plan, .feature-list li { position: relative; }
.tile::before, .plan::before, .feature-list li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
.tile:hover::before, .plan:hover::before, .feature-list li:hover::after { opacity: 1; }
.tile > *, .plan > * { position: relative; }
.tile { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 24px 40px -28px var(--glow); }
.tile.plain h3 { border-left: 3px solid; border-image: linear-gradient(var(--brand), var(--accent)) 1; }
.ico { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 16%, var(--brand-soft))); transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .25s; }
.tile:hover .ico { transform: scale(1.08) rotate(-5deg); background: var(--brand); color: var(--surface); box-shadow: 0 10px 22px -10px var(--glow); }

.feature-list li { transition: transform .25s var(--ease), border-color .25s; }
.feature-list li:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.feature-list li::before { background: var(--grad); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }

.calc { box-shadow: var(--shadow), 0 40px 70px -40px var(--glow); }
.calc-result .nerp { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }

/* Pricing */
.plan { transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--spin), var(--brand), var(--accent), var(--brand-strong), var(--brand)) border-box;
  box-shadow: var(--shadow), 0 30px 70px -30px var(--glow); animation: spin 7s linear infinite; }
.plan .badge { background: var(--grad); }
.plan .price { color: var(--text); }

/* FAQ */
.faq details { transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--brand); }
.faq details[open] p { animation: fade-down .35s var(--ease) both; }

/* Final CTA */
.final { position: relative; overflow: hidden; isolation: isolate; padding: 104px 0; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%); }
.final::after { content: ""; position: absolute; z-index: -1; width: clamp(360px, 55vw, 820px); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 55%; translate: -50% 0;
  background: radial-gradient(circle, rgba(251, 146, 60, .32), transparent 60%); animation: drift 16s ease-in-out infinite alternate; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* Theme switch: circular reveal (driven from main.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .btn::after { display: none; }
  .mock-tilt, .btn, .tile, .plan, .ico, .feature-list li { transition: none; }
}

/* Pricing: four plans, one-off services and a currency switch */
.plans { max-width: none; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } .plan { padding: 26px 22px; } }
.price .amt { font: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .price { font-size: 1.85rem; }
.cur-switch { display: inline-flex; padding: 4px; margin: -12px 0 30px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cur-switch button { border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--font); padding: 6px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.cur-switch button[aria-pressed="true"] { background: var(--brand); color: var(--surface); }
.extras { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.extra > div { flex: 1 1 220px; }
.extra h3 { margin-bottom: .3em; }
.extra p { margin: 0; color: var(--muted); font-size: .96rem; }
.extra .price { color: var(--text); font-size: 1.5rem; white-space: nowrap; }
.plan ul { align-content: start; }
