/* =====================================================================
   MyHostVault — marketing layer (loaded after app.css on the public site
   and the auth pages). Premium look: gradient accents, motion that respects
   prefers-reduced-motion, no external assets, no inline styles anywhere.
   Sections: tokens, motion utilities, header/buttons, hero v3 (aurora,
   3D scene, device mockup, chips, orbit, rotator), marquee, feature cards,
   dashboard preview, numbers, terminal, migration art, bento, pricing,
   compare table, CTA band, dark page hero, auth split, password field.
   ===================================================================== */

:root {
    --ink: #070f22;
    --ink-2: #0b1630;
    --grad-a: #2563eb;
    --grad-b: #6366f1;
    --grad-c: #06b6d4;
    --grad: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 55%, var(--grad-c) 100%);
    --glow: 0 20px 60px rgba(37, 99, 235, 0.22);
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --mx: 50%;
    --my: 40%;
}

/* ---------- Motion utilities ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.js .reveal.is-inview { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
.js .reveal[data-delay="5"] { transition-delay: 0.40s; }
.js .reveal[data-delay="6"] { transition-delay: 0.48s; }

.text-gradient {
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 45%, #22d3ee 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.icon-flip { transform: scaleX(-1); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.7; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -24px) scale(1.06); }
    66% { transform: translate(-20px, 18px) scale(0.96); }
}
@keyframes aurora-a { 0%, 100% { transform: translate(-10%, -10%) rotate(0deg) scale(1); } 50% { transform: translate(8%, 6%) rotate(25deg) scale(1.15); } }
@keyframes aurora-b { 0%, 100% { transform: translate(10%, 0) rotate(0deg) scale(1.05); } 50% { transform: translate(-6%, -8%) rotate(-30deg) scale(0.95); } }
@keyframes aurora-c { 0%, 100% { transform: translate(0, 10%) scale(1); } 50% { transform: translate(-12%, -4%) scale(1.2); } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-18deg); } 60%, 100% { transform: translateX(220%) skewX(-18deg); } }
@keyframes bar-grow { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes led { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Header and buttons polish ---------- */
.site-header { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); background: rgba(255, 255, 255, 0.98); }
.site-nav__link { position: relative; }

.btn { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #4338ca); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36); }
.btn-primary:active { transform: translateY(0); }
.btn-light { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.btn-light:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: shine 3.2s ease-in-out infinite; pointer-events: none;
}
.btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); color: #fff; transform: translateY(-1px); }

/* ---------- Hero v3 ---------- */
.hero-v3 {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 64px 0 80px; color: #e2e8f0; background: var(--ink);
}
.hero-v3 .container { position: relative; z-index: 2; }
.hero-v3 .eyebrow { color: #93c5fd; }
.hero-v3 .hero__title { color: #fff; font-size: clamp(2.4rem, 5.2vw + 0.5rem, 4.4rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 14px; text-wrap: balance; }
.hero-v3 .hero__text { color: #b6c2d6; font-size: 1.12rem; max-width: 560px; margin-bottom: 26px; }
.hero-v3 .hero__points { color: #cbd5e1; }
.hero-v3 .hero__points .icon { color: #34d399; }
.hero__inner--v3 { align-items: center; }

.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora > span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; will-change: transform; }
.aurora__a { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -15%; top: -35%; background: radial-gradient(circle at 30% 30%, #2563eb, #1e3a8a 55%, transparent 72%); animation: aurora-a 22s ease-in-out infinite; }
.aurora__b { width: 55vw; height: 55vw; max-width: 700px; max-height: 700px; right: -18%; top: -20%; background: radial-gradient(circle at 60% 40%, #7c3aed, #312e81 55%, transparent 72%); animation: aurora-b 26s ease-in-out infinite; }
.aurora__c { width: 45vw; height: 45vw; max-width: 560px; max-height: 560px; left: 30%; bottom: -45%; background: radial-gradient(circle at 50% 50%, #06b6d4, #0e7490 50%, transparent 72%); opacity: 0.45; animation: aurora-c 24s ease-in-out infinite; }
.hero__grid-lines {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}
.hero__spot { position: absolute; inset: 0; background: radial-gradient(520px 360px at var(--mx) var(--my), rgba(96, 165, 250, 0.16), transparent 70%); transition: background-position 0.2s; }

.hero__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: orb-float 14s ease-in-out infinite; }
.orb--1 { width: 420px; height: 420px; left: -120px; top: -80px; background: #2563eb; }
.orb--2 { width: 360px; height: 360px; right: -100px; top: 40px; background: #7c3aed; animation-delay: -4s; animation-duration: 18s; }
.orb--3 { width: 300px; height: 300px; left: 40%; bottom: -160px; background: #06b6d4; animation-delay: -9s; animation-duration: 16s; }

.hero__pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; margin-bottom: 18px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
    color: #dbeafe; font-size: 0.9rem; font-weight: 600; backdrop-filter: blur(6px);
}
.hero__pill-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: inline-grid; place-items: center; flex: none; }
.hero__pill-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }

.hero__rotator { font-size: clamp(1.15rem, 1.4vw + 0.6rem, 1.6rem); font-weight: 600; color: #cbd5e1; margin: 0 0 16px; min-height: 1.6em; }
.rotator { color: #fff; position: relative; }
.rotator__word { background: linear-gradient(90deg, #60a5fa, #a78bfa 50%, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.rotator__caret { display: inline-block; width: 2px; height: 1.05em; background: #93c5fd; margin-left: 3px; vertical-align: -0.15em; animation: blink 1s steps(2) infinite; }

.hero__stagger > * { animation: rise 0.8s var(--ease-out) both; }
.hero__stagger > *:nth-child(2) { animation-delay: 0.08s; }
.hero__stagger > *:nth-child(3) { animation-delay: 0.16s; }
.hero__stagger > *:nth-child(4) { animation-delay: 0.24s; }
.hero__stagger > *:nth-child(5) { animation-delay: 0.32s; }
.hero__stagger > *:nth-child(6) { animation-delay: 0.40s; }
.hero__stagger > *:nth-child(7) { animation-delay: 0.48s; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: #94a3b8; font-size: 0.88rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: #60a5fa; }

/* ---------- 3D scene: device mockup, chips, orbit ---------- */
.hero__visual { position: relative; max-width: 560px; margin: 36px auto 0; }
.hero__visual--3d { perspective: 1400px; }
.scene {
    position: relative; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -9deg));
    transition: transform 0.35s var(--ease-out);
    animation: rise 1s 0.2s var(--ease-out) both;
}
.orbit { position: absolute; inset: -14% -10%; width: 120%; height: 128%; pointer-events: none; z-index: 0; }
.orbit__ring { fill: none; stroke: rgba(148, 163, 184, 0.18); stroke-width: 1; stroke-dasharray: 6 10; animation: dash 6s linear infinite; }
.orbit__ring--inner { stroke: rgba(96, 165, 250, 0.22); stroke-dasharray: 2 12; animation-duration: 9s; animation-direction: reverse; }
.orbit__dot { fill: #60a5fa; filter: drop-shadow(0 0 8px #60a5fa); }
.orbit__dot--2 { fill: #22d3ee; filter: drop-shadow(0 0 6px #22d3ee); }

.device {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 10px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(10px);
    transform: translateZ(calc(var(--depth, 10) * 1px));
}
.device__bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.device__bar i:nth-child(1) { background: #f87171; }
.device__bar i:nth-child(2) { background: #fbbf24; }
.device__bar i:nth-child(3) { background: #34d399; }
.device__url { margin-left: 10px; flex: 1; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 5px 10px; color: #94a3b8; font-size: 0.74rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.device__url .icon { color: #34d399; }
.device__body { display: grid; grid-template-columns: 52px 1fr; gap: 10px; background: var(--ink-2); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); padding: 12px; min-height: 300px; }
.device__side { display: grid; align-content: start; gap: 10px; padding-top: 4px; }
.device__side b { display: block; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); margin: 0 auto 6px; }
.device__side i { display: block; width: 26px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); margin: 0 auto; }
.device__side i.is-active { background: #60a5fa; }
.device__main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.device__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.tile small { display: block; color: #64748b; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.tile strong { display: block; color: #fff; font-size: 0.98rem; line-height: 1.2; }
.tile strong em { font-style: normal; color: #64748b; font-weight: 500; font-size: 0.75rem; }
.tile--ok strong { color: #34d399; }
.meter { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #6366f1); }
.device__chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 8px 10px 6px; background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
.device__chart i { flex: 1; display: block; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #60a5fa, rgba(99, 102, 241, 0.35)); transform-origin: bottom; animation: bar-grow 3.6s ease-in-out infinite; }
.device__chart i:nth-child(2n) { animation-delay: -0.6s; }
.device__chart i:nth-child(3n) { animation-delay: -1.2s; }
.device__chart i:nth-child(4n) { animation-delay: -1.8s; }
.device__chart i:nth-child(5n) { animation-delay: -2.4s; }
.device__chart i:nth-child(7n) { animation-delay: -3s; }

.provision { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.provision li {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.04); color: #94a3b8; font-size: 0.86rem;
    animation: step-on 9s linear infinite;
}
.provision--compact li { padding: 7px 10px; font-size: 0.8rem; }
.provision li:nth-child(2) { animation-delay: 1.5s; }
.provision li:nth-child(3) { animation-delay: 3s; }
.provision li:nth-child(4) { animation-delay: 4.5s; }
.provision li:nth-child(5) { animation-delay: 6s; }
.provision li .tick {
    width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #334155;
    display: inline-grid; place-items: center; color: transparent; font-size: 11px; font-weight: 800; line-height: 1;
    animation: tick-on 9s linear infinite; animation-delay: inherit;
}
@keyframes step-on { 0%, 8% { background: rgba(255, 255, 255, 0.04); color: #94a3b8; } 14%, 100% { background: rgba(52, 211, 153, 0.10); color: #e2e8f0; } }
@keyframes tick-on { 0%, 8% { border-color: #334155; background: transparent; color: transparent; } 14%, 100% { border-color: #34d399; background: #34d399; color: #062b1f; } }

.chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.96); color: var(--navy);
    border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 0.88rem; line-height: 1.2;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    transform: translate3d(calc(var(--px, 0) * var(--depth, 40) * -0.4px), calc(var(--py, 0) * var(--depth, 40) * -0.4px), calc(var(--depth, 40) * 1px));
    transition: transform 0.35s var(--ease-out);
    animation: bob 6s ease-in-out infinite;
}
.chip small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.74rem; }
.chip .icon { color: var(--primary); flex: none; }
.chip--1 { top: -14px; right: -6px; }
.chip--2 { bottom: 40px; right: -18px; animation-delay: -2s; }
.chip--3 { bottom: -16px; left: -10px; animation-delay: -4s; }

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden; padding: 18px 0; background: #fff; border-bottom: 1px solid var(--border);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-muted); color: var(--navy); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.marquee__item .icon { color: var(--primary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Feature cards v2 ---------- */
.feature-card { position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12); }
.feature-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon { transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; background: linear-gradient(135deg, var(--primary-50), #eef2ff); }
.feature-card:hover .feature-card__icon { transform: rotate(-6deg) scale(1.08); background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff; }

/* ---------- Dark section + dashboard preview ---------- */
.section--dark { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 80% 0%, #1e3a8a 0%, transparent 60%), var(--ink); color: #cbd5e1; }
.section--dark .container { position: relative; z-index: 1; }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__lead { color: #b6c2d6; }
.section__head--light .eyebrow { color: #93c5fd; }
.preview { max-width: 1040px; margin: 0 auto; perspective: 1600px; }
.js .preview.reveal { transform: perspective(1600px) rotateX(10deg) translateY(30px); }
.js .preview.reveal.is-inview { transform: perspective(1600px) rotateX(0) translateY(0); }
.device--wide { transform: none; }
.device--wide .device__body { grid-template-columns: 150px 1fr; min-height: 320px; }
.device__side--labels { gap: 4px; padding-top: 6px; }
.device__side--labels span { display: block; padding: 7px 10px; border-radius: 8px; color: #94a3b8; font-size: 0.8rem; font-weight: 500; }
.device__side--labels span.is-active { background: rgba(96, 165, 250, 0.14); color: #fff; }
.preview__head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 0.95rem; }
.preview__btn { background: var(--grad); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.preview__rows { display: grid; gap: 6px; }
.preview__row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.82rem; }
.preview__dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.preview__dot--ok { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
.preview__dot--wait { background: #fbbf24; animation: led 1.6s ease-in-out infinite; }
.preview__domain { color: #fff; font-weight: 600; }
.preview__meta { color: #64748b; grid-column: 2; font-size: 0.74rem; }
.preview__badge { grid-column: 3; grid-row: 1 / span 2; background: rgba(255, 255, 255, 0.08); color: #cbd5e1; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.preview__badge--ok { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.device__tiles--3 .tile strong { font-size: 0.9rem; }

/* ---------- Numbers (real plan limits, counted up) ---------- */
.numbers { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.number-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 16px; text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.number-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.number-card__value {
    display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1d4ed8, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.number-card__label { color: var(--navy); font-weight: 600; margin: 10px 0 2px; font-size: 0.95rem; }
.number-card__hint { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Terminal (automation story) ---------- */
.terminal {
    background: var(--ink-2); color: #cbd5e1; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35); overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem;
}
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.terminal__bar i:nth-child(1) { background: #f87171; }
.terminal__bar i:nth-child(2) { background: #fbbf24; }
.terminal__bar i:nth-child(3) { background: #34d399; }
.terminal__bar span { margin-left: auto; color: #64748b; font-size: 0.76rem; font-family: var(--font); }
.terminal__body { padding: 18px; display: grid; gap: 10px; min-height: 240px; align-content: start; }
.terminal__line { opacity: 0; white-space: nowrap; overflow: hidden; animation: term-line 13s linear infinite both; }
.terminal__line:nth-child(2) { animation-delay: 1.6s; }
.terminal__line:nth-child(3) { animation-delay: 3.2s; }
.terminal__line:nth-child(4) { animation-delay: 4.8s; }
.terminal__line:nth-child(5) { animation-delay: 6.4s; }
.terminal__line:nth-child(6) { animation-delay: 8s; }
@keyframes term-line { 0% { opacity: 0; width: 0; } 2% { opacity: 1; } 10% { width: 100%; } 86% { opacity: 1; width: 100%; } 94% { opacity: 0; } 100% { opacity: 0; } }
.terminal__prompt { color: #60a5fa; margin-right: 8px; }
.terminal__ok { color: #34d399; margin-right: 8px; }
.terminal__muted { color: #64748b; }
.terminal__cursor { display: inline-block; width: 8px; height: 1em; background: #93c5fd; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }

.split--story .split__content h2 { margin-bottom: 14px; }
.story-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.story-points li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.story-points__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: inline-grid; place-items: center; }
.story-points strong { display: block; color: var(--navy); }
.story-points span { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Migration illustration (inline SVG) ---------- */
.migrate-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.12)); }
.migrate-art__old rect:first-child { fill: #f1f5f9; stroke: #cbd5e1; stroke-width: 2; }
.migrate-art .slot { fill: #fff; stroke: #e2e8f0; }
.migrate-art__new .slot { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.14); }
.migrate-art .led { fill: #34d399; animation: led 1.8s ease-in-out infinite; }
.migrate-art .led--2 { animation-delay: -0.6s; }
.migrate-art .led--3 { animation-delay: -1.2s; }
.migrate-art .led--grey { fill: #cbd5e1; animation: none; }
.migrate-art .label { fill: #64748b; font-family: var(--font); font-size: 15px; font-weight: 600; }
.migrate-art .label--strong { fill: var(--navy); }
.migrate-art__route { fill: none; stroke: url(#mg-path); stroke-width: 3; stroke-dasharray: 8 10; animation: dash 1.2s linear infinite; }
.migrate-art__route-glow { fill: none; stroke: #60a5fa; stroke-width: 12; opacity: 0.12; }
.migrate-art .packet rect { fill: #2563eb; stroke: #fff; stroke-width: 2; }
.migrate-art .packet--2 rect { fill: #6366f1; }
.migrate-art .packet--3 rect { fill: #06b6d4; }
.migrate-art__shield path { fill: var(--success-bg); stroke: #16a34a; stroke-width: 3; stroke-linejoin: round; }
.migrate-art__shield polyline { fill: none; stroke: #16a34a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.migrate-art__steps rect { fill: #fff; stroke: #e2e8f0; }
.migrate-art .step { fill: var(--navy); font-family: var(--font); font-size: 13px; font-weight: 600; }
.migrate-art .step--ok { fill: #15803d; }

/* ---------- Bento (why us) ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bento__item { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento__item > .icon { color: var(--primary); margin-bottom: 12px; }
.bento__item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.bento__item p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.bento__item--accent { background: radial-gradient(500px 240px at 100% 0%, #312e81 0%, transparent 60%), linear-gradient(135deg, #0b1f3a, #1e3a8a); border: 0; color: #dbeafe; }
.bento__item--accent h3 { color: #fff; }
.bento__item--accent p { color: #bfdbfe; }
.bento__item--accent > .icon { color: #93c5fd; }
.bento__item--accent .btn { margin-top: 16px; }

/* ---------- Steps ---------- */
.steps__item { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.steps__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps__number { background: linear-gradient(135deg, #2563eb, #6366f1); }

/* ---------- Pricing ---------- */
.cycle-toggle { box-shadow: var(--shadow-sm); gap: 2px; }
.cycle-toggle__btn { display: inline-flex; align-items: center; gap: 8px; }
.cycle-toggle__btn.is-active { background: linear-gradient(135deg, #0b1f3a, #1e3a8a); }
.cycle-toggle__save { background: var(--success-bg); color: var(--success); font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.02em; }
.cycle-toggle__btn.is-active .cycle-toggle__save { background: #34d399; color: #062b1f; }
.cycle-toggle__note { display: none; align-items: center; gap: 6px; margin: 0 auto 22px; color: var(--success); font-weight: 700; font-size: 0.85rem; background: var(--success-bg); border: 1px solid #bbf7d0; padding: 6px 12px; border-radius: 999px; }

.pricing__grid { align-items: stretch; padding-top: 18px; }
.cycle-toggle { margin-bottom: 28px; }
.plan-card { max-width: none; padding: 26px 24px 22px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12); }
.plan-card.is-featured {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
    box-shadow: var(--glow);
}
.plan-card__badge { background: linear-gradient(135deg, #2563eb, #6366f1); left: 50%; transform: translateX(-50%); }
.plan-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-50), #eef2ff); color: var(--primary); margin-bottom: 12px; }
.plan-card.is-featured .plan-card__icon { background: var(--grad); color: #fff; }
.plan-card__price-row { animation: fade-in 0.35s ease; }
.plan-card__cta { margin-top: 4px; }
.plan-card__specs { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 6px; font-size: 0.88rem; color: var(--navy); font-weight: 600; }
.plan-card__specs li { display: flex; align-items: center; gap: 8px; }
.plan-card__specs .icon { color: var(--primary); flex: none; }
.plan-card__features { margin-top: 16px; padding-top: 16px; }

/* ---------- Compare table ---------- */
.compare-wrap { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.compare { min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 0.95rem; }
.compare thead th { background: var(--bg-muted); color: var(--navy); font-weight: 700; font-size: 1rem; }
.compare thead th.is-featured { background: linear-gradient(135deg, #0b1f3a, #1e3a8a); color: #fff; }
.compare tbody th { color: var(--navy); font-weight: 600; width: 30%; }
.compare tbody td { color: var(--text); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: #fafbfd; }
.compare__badge { display: inline-block; margin-left: 8px; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.compare__yes { color: var(--success); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(800px 400px at 85% 0%, #312e81 0%, transparent 60%), var(--navy); }
.cta-band .container { position: relative; z-index: 1; }

/* ---------- Dark inner-page hero ---------- */
.page-hero--dark { position: relative; overflow: hidden; background: var(--ink); color: #cbd5e1; border-bottom: 0; }
.page-hero--dark .container { position: relative; z-index: 1; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .page-hero__text { color: #b6c2d6; }
.page-hero--dark .eyebrow { color: #93c5fd; }

/* ---------- Auth split layout ---------- */
.auth-body { margin: 0; background: var(--bg-muted); }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-aside {
    display: none; position: relative; overflow: hidden; color: #dbeafe; padding: 48px;
    background: radial-gradient(900px 500px at 10% 0%, #1e3a8a 0%, transparent 60%), radial-gradient(700px 400px at 100% 100%, #312e81 0%, transparent 55%), var(--ink);
}
.auth-aside__inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100%; gap: 28px; }
.auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 2.2vw, 2.2rem); letter-spacing: -0.02em; margin: 36px 0 12px; }
.auth-aside p { color: #b6c2d6; }
.auth-aside .eyebrow { color: #93c5fd; }
.auth-aside .check-list { margin-top: 20px; }
.auth-aside .check-list li { color: #e2e8f0; }
.auth-aside .check-list .icon { color: #34d399; }
.auth-aside__card { margin-top: auto; }
.auth-aside__card .panel-mock { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 12px; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.auth-aside__card .panel-mock__screen { background: var(--ink-2); border-radius: 12px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.08); }
.panel-mock__title { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin: 0 0 12px; font-size: 0.92rem; }
.panel-mock__title small { display: block; color: #64748b; font-weight: 500; font-size: 0.76rem; }
.badge-live { background: rgba(52, 211, 153, 0.15); color: #34d399; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.auth-aside__foot { color: #64748b; font-size: 0.85rem; margin: 0; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-main .brand { margin-bottom: 22px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08); animation: rise 0.6s var(--ease-out) both; }
.auth-card--wide { max-width: 560px; }
.auth-card__title { font-size: 1.7rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-card__subtitle { color: var(--text-muted); margin-bottom: 22px; }
.auth-card .form { gap: 16px; }
.auth-card .form__field input { padding: 13px 14px; border-radius: 10px; }
.auth-card .form .btn { justify-self: stretch; }
.auth-card .btn-lg { padding: 14px 24px; border-radius: 10px; margin-top: 4px; }
.form__row--between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form__link { font-size: 0.92rem; font-weight: 600; }
.auth-footer { margin: 20px 0 0; color: var(--text-muted); text-align: center; }
.auth-back { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.auth-note { display: flex; gap: 8px; align-items: center; background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; margin-bottom: 18px; font-size: 0.95rem; }
.auth-note .icon { flex: none; }
.auth-actions { margin-top: 20px; display: grid; gap: 10px; }
.auth-actions form .btn { justify-self: start; }

/* ---------- Google sign-in ---------- */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { background: #fff; color: var(--navy); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); gap: 10px; }
.btn-google:hover { background: #f8fafc; border-color: var(--navy); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-google svg { flex: none; }
.auth-google-finish { display: flex; align-items: center; gap: 12px; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: 12px; padding: 10px 12px; margin-bottom: 18px; }
.auth-google-finish img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.auth-google-finish strong { display: block; color: var(--navy); font-size: 0.95rem; }
.auth-google-finish span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Password field ---------- */
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); display: inline-grid; place-items: center; cursor: pointer; }
.password-toggle:hover { background: var(--bg-muted); color: var(--navy); }
.password-toggle .icon-off { display: none; }
.password-toggle.is-visible .icon-on { display: none; }
.password-toggle.is-visible .icon-off { display: block; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.strength i { display: block; height: 5px; border-radius: 999px; background: var(--border); transition: background-color 0.25s ease; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #ef4444; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #22c55e; }
.strength[data-level="4"] i:nth-child(-n+4) { background: #16a34a; }
.strength__label { font-size: 0.82rem; color: var(--text-muted); margin: 2px 0 0; min-height: 1.2em; }

/* ---------- Versus (typical hosting vs us) ---------- */
.versus { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
.versus__col { border-radius: 20px; padding: 26px 24px; border: 1px solid var(--border); background: #fff; }
.versus__col--them { background: #f8fafc; }
.versus__col--us { background: radial-gradient(520px 260px at 100% 0%, #312e81 0%, transparent 60%), linear-gradient(160deg, #0b1f3a, #0f2a6b); color: #dbeafe; border: 0; box-shadow: var(--glow); }
.versus__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; }
.versus__col--them .versus__title { color: var(--text-muted); }
.versus__col--us .versus__title { color: #fff; }
.versus__tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #e2e8f0; color: #475569; }
.versus__col--us .versus__tag { background: rgba(52, 211, 153, 0.18); color: #34d399; }
.versus__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.versus__list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 0.97rem; }
.js .versus__list li { opacity: 0; transform: translateX(-8px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .is-inview .versus__list li { opacity: 1; transform: none; }
.js .is-inview .versus__list li:nth-child(2) { transition-delay: 0.08s; }
.js .is-inview .versus__list li:nth-child(3) { transition-delay: 0.16s; }
.js .is-inview .versus__list li:nth-child(4) { transition-delay: 0.24s; }
.js .is-inview .versus__list li:nth-child(5) { transition-delay: 0.32s; }
.js .is-inview .versus__list li:nth-child(6) { transition-delay: 0.40s; }
.js .is-inview .versus__list li:nth-child(7) { transition-delay: 0.48s; }
.versus__no, .versus__yes { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 0.85rem; line-height: 1; }
.versus__no { background: #fee2e2; color: #b91c1c; }
.versus__yes { background: #34d399; color: #062b1f; }
.versus__col--them li { color: var(--text-muted); }
.versus__col--them li s { text-decoration-color: rgba(185, 28, 28, 0.5); }
.versus__col--us li strong { color: #fff; }

/* ---------- Guarantee strip ---------- */
.guarantee { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 36px; }
.guarantee__item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.guarantee__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.guarantee__icon { width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); flex: none; }
.guarantee__icon .icon { color: #fff; }
.guarantee__item strong { display: block; color: var(--navy); font-size: 1.02rem; line-height: 1.25; }
.guarantee__text { color: var(--text-muted); font-size: 0.9rem; margin: 4px 0 0; }

/* ---------- Timeline (how it works) ---------- */
.timeline { position: relative; list-style: none; margin: 0 auto; padding: 0 0 0 36px; max-width: 760px; }
.timeline__item { position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--border); z-index: 0; }
.timeline::after { content: ""; position: absolute; left: 16px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--grad); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease-out); z-index: 0; }
.js .timeline.is-inview::after { transform: scaleY(1); }
.timeline__item { position: relative; padding: 0 0 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -36px; top: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--border); box-shadow: 0 0 0 5px var(--bg-muted); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: var(--text-muted); transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease; }
.js .timeline.is-inview .timeline__dot { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 0 0 5px var(--bg-muted), 0 8px 18px rgba(37, 99, 235, 0.3); }
.js .timeline.is-inview .timeline__item:nth-child(2) .timeline__dot { transition-delay: 0.3s; }
.js .timeline.is-inview .timeline__item:nth-child(3) .timeline__dot { transition-delay: 0.6s; }
.js .timeline.is-inview .timeline__item:nth-child(4) .timeline__dot { transition-delay: 0.9s; }
.js .timeline.is-inview .timeline__item:nth-child(5) .timeline__dot { transition-delay: 1.2s; }
.timeline__card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.timeline__card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.timeline__card h3 { font-size: 1.05rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline__card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.timeline__time { font-size: 0.72rem; font-weight: 700; color: var(--primary); background: var(--primary-50); padding: 2px 8px; border-radius: 999px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(11, 31, 58, 0.96); color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); backdrop-filter: blur(10px); transform: translateY(140%); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s ease; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.sticky-cta.is-visible { transform: none; opacity: 1; }
.sticky-cta > div { min-width: 0; }
.sticky-cta strong { display: block; font-size: 0.95rem; white-space: nowrap; }
.sticky-cta small { display: block; color: #94a3b8; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { flex: none; }
.js body.has-sticky-cta .site-footer { padding-bottom: 96px; }

/* ---------- Cursor glow on cards ---------- */
.glow-card { position: relative; }
.glow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(260px 180px at var(--gx, 50%) var(--gy, 50%), rgba(99, 102, 241, 0.14), transparent 70%); }
.glow-card:hover::after { opacity: 1; }

/* ---------- Migration art v2 ---------- */
.migrate-art__halo { fill: #2563eb; opacity: 0.35; }
.migrate-art__shadow { fill: rgba(15, 23, 42, 0.08); }
.migrate-art .packet text { fill: #fff; font-family: var(--font); font-size: 9px; font-weight: 700; }
.migrate-art__badge circle { fill: #fff; stroke: #bbf7d0; stroke-width: 3; }
.migrate-art__badge path { fill: var(--success-bg); stroke: #16a34a; stroke-width: 2.5; stroke-linejoin: round; }
.migrate-art__badge polyline { fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.migrate-art__cloud { fill: #fff; stroke: #e2e8f0; stroke-width: 2; }
.migrate-art .cloud-label { fill: var(--text-muted); font-family: var(--font); font-size: 11px; font-weight: 600; }

.number-card__value--word { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; padding: 0.35em 0 0.2em; }

@media (min-width: 640px) {
    .guarantee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .versus { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
    .guarantee { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sticky-cta { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
    .chip--2 { display: none; }
    .chip { font-size: 0.8rem; padding: 8px 12px; }
    .hero__visual--3d { perspective: none; }
}

@media (min-width: 640px) {
    .hero__trust { gap: 10px 24px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    .site-nav__link::after {
        content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
        background: linear-gradient(90deg, var(--grad-a), var(--grad-c));
        transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
    }
    .site-nav__link:hover { background: transparent; }
    .site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }

    .hero-v3 { padding: 92px 0 112px; }
    .hero-v3 .hero__inner { grid-template-columns: 1.02fr 0.98fr; gap: 56px; }
    .hero__visual { margin-top: 0; }
    .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bento__item--wide { grid-column: span 2; }
    .split--migration { grid-template-columns: 1fr 1.1fr; }
    .plan-card.is-featured { transform: scale(1.04); z-index: 1; }
    .plan-card.is-featured:hover { transform: scale(1.04) translateY(-4px); }
    .auth-split { grid-template-columns: 1fr 1fr; }
    .auth-aside { display: block; }
    .auth-main { padding: 48px 40px; }
    .auth-main .brand { display: none; }
}


/* ---------- Final touches: readable hero copy, mobile layout fixes ---------- */
.hero-v3 .hero__text { font-size: 1.08rem; line-height: 1.65; max-width: 520px; }
.hero__text strong { color: #fff; font-weight: 600; }
.section__lead { text-wrap: balance; }

/* Pricing toggle: a clean 4-cell segmented control on phones, badge stacked under "12 Months" */
.cycle-toggle__btn { position: relative; }
@media (max-width: 639px) {
    .pricing { padding: 0 2px; }
    .cycle-toggle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 4px; padding: 4px; border-radius: 14px; margin-bottom: 10px; }
    .cycle-toggle__btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 2px; font-size: 0.82rem; border-radius: 10px; line-height: 1.1; white-space: nowrap; }
    .cycle-toggle__save { display: none; }
    .cycle-toggle__note { display: inline-flex; }
    .pricing__grid { padding-top: 14px; }
    .plan-card { padding: 22px 18px 18px; }
    .plan-card.is-featured { transform: none; }
    .plan-card__amount { font-size: 2.2rem; }
    .plan-card__badge { font-size: 0.68rem; }
}

@media (max-width: 639px) {
    /* Hero */
    .hero-v3 { padding: 40px 0 52px; }
    .hero-v3 .hero__title { font-size: 2.35rem; line-height: 1.05; margin-bottom: 10px; }
    .hero__rotator { font-size: 1.05rem; margin-bottom: 12px; }
    .hero-v3 .hero__text { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
    .hero__actions { gap: 10px; margin-bottom: 20px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__points { grid-template-columns: 1fr; gap: 6px; font-size: 0.92rem; }
    .hero__trust { gap: 8px 14px; font-size: 0.8rem; margin-top: 18px; }
    .hero__visual--3d { margin-top: 40px; }
    .scene { transform: none; }
    .device { padding: 8px; }
    .device__body { grid-template-columns: 40px 1fr; padding: 10px; gap: 8px; min-height: 0; }
    .device__side b { width: 24px; height: 24px; }
    .device__side i { width: 20px; }
    .device__tiles { gap: 6px; }
    .tile { padding: 7px 8px; }
    .tile small { font-size: 0.56rem; }
    .tile strong { font-size: 0.86rem; }
    .device__chart { height: 48px; }
    .device__url { font-size: 0.64rem; }
    .chip--1 { top: -12px; right: -4px; }
    .chip--3 { bottom: -12px; left: -4px; }

    /* Dashboard preview: stack sidebar as scrollable chips, rows wrap, no 3D tilt */
    .js .preview.reveal { transform: translateY(24px); }
    .js .preview.reveal.is-inview { transform: none; }
    .device--wide .device__body { grid-template-columns: 1fr; min-height: 0; }
    .device__side--labels { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .device__side--labels::-webkit-scrollbar { display: none; }
    .device__side--labels span { white-space: nowrap; font-size: 0.72rem; padding: 6px 10px; flex: none; }
    .preview__head { font-size: 0.9rem; }
    .preview__row { grid-template-columns: 10px 1fr; row-gap: 2px; }
    .preview__meta { grid-column: 2; }
    .preview__badge { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
    .device__tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .device__tiles--3 .tile:last-child { grid-column: span 2; }

    /* Terminal: no typing animation, wrap lines */
    .terminal { font-size: 0.8rem; }
    .terminal__body { min-height: 0; padding: 14px; }
    .terminal__line { white-space: normal; animation: none; opacity: 1; width: auto; }
    .terminal__cursor { display: none; }

    /* Versus / numbers / timeline / guarantee spacing */
    .versus__col { padding: 20px 18px; }
    .versus__list li { font-size: 0.92rem; }
    .number-card { padding: 18px 12px; }
    .number-card__value { font-size: 1.9rem; }
    .number-card__value--word { font-size: 1.35rem; }
    .guarantee { gap: 10px; }
    .guarantee__item { padding: 16px; }
    .timeline { padding-left: 32px; }
    .timeline__dot { left: -32px; width: 30px; height: 30px; font-size: 0.78rem; }
    .timeline::before, .timeline::after { left: 14px; }
    .timeline__card { padding: 14px 16px; }
    .bento__item { padding: 20px 18px; }
    .section__head { margin-bottom: 26px; }
    .section__lead { font-size: 1rem; }
    .marquee__item { font-size: 0.82rem; padding: 7px 12px; }
}

@media (min-width: 640px) and (max-width: 959px) {
    .cycle-toggle { gap: 2px; }
    .device--wide .device__body { grid-template-columns: 120px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal, .js .preview.reveal { opacity: 1; transform: none; }
    .scene { transform: none; }
    .provision li { background: rgba(52, 211, 153, 0.10); color: #e2e8f0; }
    .provision li .tick { background: #34d399; color: #062b1f; border-color: #34d399; }
    .terminal__line { opacity: 1; width: 100%; }
    .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
    .device__chart i { transform: scaleY(0.7); }
    .btn-shine::after { display: none; }
}

/* ---------- Express checkout (/checkout/{plan}) ---------- */
.checkout { padding: 28px 0 72px; background: radial-gradient(60% 40% at 10% -10%, rgba(99, 102, 241, 0.12), transparent 60%), radial-gradient(45% 30% at 100% 0%, rgba(14, 165, 233, 0.1), transparent 60%), var(--bg-muted); min-height: 70vh; }
.co-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.co-steps li { display: inline-flex; align-items: center; gap: 8px; }
.co-steps li span { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--border-strong); font-size: 0.74rem; font-weight: 800; }
.co-steps li.is-current { color: var(--navy); }
.co-steps li.is-current span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.co-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.co-main { display: grid; gap: 18px; }
.co-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.2); }
.co-card__head { margin-bottom: 14px; }
.co-card__title { font-size: 1.5rem; margin: 0 0 2px; letter-spacing: -0.02em; }
.co-card__title--sm { font-size: 1.15rem; }
.co-card__sub { margin: 0; color: var(--text-muted); }
.co-label { margin: 0 0 10px; font-weight: 600; color: var(--navy); }
.cycle-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cycle-card { position: relative; display: block; cursor: pointer; }
.cycle-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cycle-card__body { display: grid; gap: 2px; padding: 14px 14px 12px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.cycle-card:hover .cycle-card__body { border-color: var(--border-strong); transform: translateY(-1px); }
.cycle-card input:checked + .cycle-card__body { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.cycle-card input:focus-visible + .cycle-card__body { outline: 3px solid var(--accent); outline-offset: 2px; }
.cycle-card__name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.cycle-card__pm { color: var(--text-muted); font-size: 0.9rem; }
.cycle-card__pm strong { color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.cycle-card__total { font-size: 0.82rem; color: var(--text-muted); }
.cycle-card__save { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--success); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; }
.co-includes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: 1fr; font-size: 0.9rem; color: var(--text-muted); }
.co-includes li { display: flex; align-items: center; gap: 8px; }
.co-includes .icon { color: var(--success); flex: none; }
.co-coupon { margin-top: 14px; }
.co-coupon summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 0.9rem; list-style: none; }
.co-coupon summary::-webkit-details-marker { display: none; }
.co-coupon summary::before { content: "+ "; }
.co-coupon[open] summary::before { content: "− "; }
.co-coupon .form__field { margin-top: 10px; max-width: 320px; }
.co-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.co-divider::before, .co-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.co-side { position: sticky; top: calc(var(--header-h) + 16px); }
.co-summary { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 50px -24px rgba(15, 23, 42, 0.35); }
.co-summary__title { font-size: 1.05rem; margin: 0 0 12px; }
.co-summary__rows { margin: 0; display: grid; gap: 8px; }
.co-summary__rows div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.93rem; }
.co-summary__rows dt { color: var(--text-muted); }
.co-summary__rows dd { margin: 0; font-weight: 600; color: var(--navy); }
.co-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 600; }
.co-summary__total strong { font-size: 1.7rem; color: var(--navy); letter-spacing: -0.02em; }
.co-summary__note { margin: 0 0 14px; font-size: 0.84rem; color: var(--text-muted); }
.co-summary .form__field--check { margin: 0 0 14px; font-size: 0.86rem; }
.co-summary .btn-primary { box-shadow: 0 12px 28px -12px rgba(37, 99, 235, 0.8); }
.co-trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.co-trust li { display: flex; align-items: center; gap: 8px; }
.co-trust .icon { color: var(--primary); flex: none; }
.co-summary__change { display: block; text-align: center; margin-top: 12px; font-size: 0.88rem; }
@media (min-width: 640px) {
    .cycle-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .co-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .co-card { padding: 26px 26px; }
}
@media (min-width: 960px) {
    .co-grid { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 24px; }
    .checkout { padding-top: 36px; }
}
/* Checkbox rows on public pages (checkout terms): box on the left, text beside it. */
.form__field--check label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; text-align: left; }
.form__field--check input { margin: 4px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--primary); }
.co-summary .form__field--check label.check { font-size: 0.88rem; line-height: 1.5; }
