/* SketchVidz public site: landing, auth, legal and 404 pages. */
:root {
  --ink: #14182b;
  --ink-2: #2a3050;
  --paper: #fffaf2;
  --card: #ffffff;
  --muted: #5d6380;
  --line: #ece4d6;
  --coral: #ff5d3a;
  --orange: #ff9f1c;
  --sun: #ffd23f;
  --mint: #2ec4b6;
  --sky: #3a86ff;
  --violet: #8338ec;
  --pink: #ff3e9d;
  --head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "SketchVidz Hand", "Segoe Print", "Comic Sans MS", cursive;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(20, 24, 43, .04), 0 18px 40px -18px rgba(20, 24, 43, .25);
  --pop: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.sv-site { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.hand-font { font-family: var(--hand); font-weight: 700; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; }
.wrap--narrow { width: min(820px, 100% - 40px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 14px; border: 2.5px solid var(--ink);
  background: var(--bg); color: var(--fg); font: 700 15px/1 var(--head); text-decoration: none; cursor: pointer;
  box-shadow: var(--pop); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { --bg: linear-gradient(110deg, var(--violet), var(--pink) 40%, var(--coral) 70%, var(--violet)); --fg: #fff; background: var(--bg); background-size: 260% 100%; animation: btn-sheen 7s linear infinite; position: relative; overflow: hidden; }
.btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; pointer-events: none; }
.btn--primary:hover::after { transform: translateX(120%); }
@keyframes btn-sheen { to { background-position: -260% 0; } }
@media (prefers-reduced-motion: reduce) { .btn--primary { animation: none; } }
.btn--sun { --bg: var(--sun); }
.btn--ghost { --bg: transparent; box-shadow: none; }
.btn--ghost:hover { background: #fff; box-shadow: var(--pop); }
.btn--light { --bg: #fff; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn__arrow { width: 20px; height: 20px; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn.is-busy { pointer-events: none; filter: saturate(.7); }
.btn.is-busy span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { background: rgba(255, 250, 242, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--head); text-decoration: none; color: var(--ink); letter-spacing: -.02em; }
.logo--light { color: #fff; }
.logo__mark { width: 34px; height: 34px; animation: spin-slow 12s linear infinite; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav__sep { width: 1px; height: 22px; background: var(--line); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; box-shadow: 3px 3px 0 var(--ink); }
.nav-toggle i { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(4) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Decorative blobs & confetti ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.blob--1 { width: 480px; height: 480px; background: #ffc6b3; left: -120px; top: -80px; }
.blob--2 { width: 420px; height: 420px; background: #c9e4ff; right: -100px; top: 60px; animation-delay: -6s; }
.blob--3 { width: 360px; height: 360px; background: #ffe58a; left: 40%; bottom: -160px; animation-delay: -12s; }
.blob--4 { width: 300px; height: 300px; background: #e2d4ff; right: 22%; top: -120px; animation-delay: -3s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 10px) scale(.95); } }

.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cf { position: absolute; width: 38px; animation: float 7s ease-in-out infinite; }
.cf svg { width: 100%; height: auto; }
.cf-squiggle { width: 80px; }
.confetti--a .cf-1 { left: 1.5%; top: 6%; animation-duration: 6s; }
.confetti--a .cf-2 { left: 47%; top: 3%; animation-duration: 8s; animation-delay: -2s; }
.confetti--a .cf-3 { right: 2%; top: 4%; animation-duration: 9s; }
.confetti--a .cf-4 { left: 2%; bottom: 6%; animation-duration: 7s; animation-delay: -3s; }
.confetti--a .cf-5 { right: 2%; bottom: 10%; animation-duration: 6.5s; animation-delay: -1s; }
.confetti--a .cf-6 { left: 44%; bottom: 4%; width: 26px; animation-duration: 5.5s; }
.confetti--a .cf-7 { right: 46%; top: 46%; width: 22px; animation-duration: 4.8s; animation-delay: -2s; }
.confetti--b .cf-1 { left: 3%; top: 10%; }
.confetti--b .cf-2 { right: 5%; top: 16%; animation-delay: -2s; }
.confetti--b .cf-3 { left: 6%; bottom: 10%; animation-delay: -4s; }
.confetti--b .cf-4 { right: 8%; bottom: 14%; animation-delay: -1s; }
.confetti--b .cf-5 { left: 48%; top: 4%; animation-delay: -3s; }
.cf-star svg, .cf-spark svg, .cf-plus svg { animation: spin-slow 14s linear infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Pills, eyebrows, tiles ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font: 700 14px/1 var(--head); box-shadow: 3px 3px 0 var(--ink); }
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(46, 196, 182, .7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, .7); } 100% { box-shadow: 0 0 0 12px rgba(46, 196, 182, 0); } }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 700 13px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow--sky { background: #dceaff; color: #1d5fd6; }
.eyebrow--coral { background: #ffe1d8; color: #c73a17; }
.eyebrow--violet { background: #ebdfff; color: #6020c9; }
.eyebrow--mint { background: #d5f5f1; color: #0d8077; }
.eyebrow--pink { background: #ffdcec; color: #c9157a; }

.tile { width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.tile .ani-icon { width: 62%; height: 62%; overflow: visible; }
.tile--sm { width: 40px; height: 40px; border-radius: 12px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.tile--lg { width: 80px; height: 80px; border-radius: 22px; }
.tile--xl { width: 110px; height: 110px; border-radius: 30px; }
.tile--xxl { width: 150px; height: 150px; border-radius: 40px; border-width: 3px; box-shadow: 6px 6px 0 var(--ink); }
.tile--coral { background: #ffd9cf; }
.tile--sun { background: #fff1b8; }
.tile--mint { background: #c9f2ec; }
.tile--sky { background: #d4e6ff; }
.tile--violet { background: #e4d6ff; }
.tile--pink { background: #ffd3e7; }
.tile--glass { background: rgba(255, 255, 255, .92); }

/* ---------- Animated icon parts ---------- */
.ani-icon * { transform-box: fill-box; transform-origin: center; }
.ink { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.a-twinkle { animation: twinkle 1.8s ease-in-out infinite; }
.a-pop { animation: pop 2.4s ease-in-out infinite; }
.a-wiggle { animation: wiggle 1.2s ease-in-out infinite; transform-origin: 20% 80%; }
.a-scribble { animation: scribble 2.6s ease-in-out infinite; }
.a-wave { animation: wave 1.4s ease-in-out infinite; }
.a-slide { animation: slide 2.4s steps(1) infinite; transform-box: view-box; transform-origin: 0 0; }
.a-bounce { animation: bounce 1.2s ease-in-out infinite; }
.a-turn { animation: turn 3s ease-in-out infinite; }
.a-orbit { animation: orbit 4s linear infinite; transform-box: view-box; transform-origin: 24px 24px; }
.a-spin-slow { animation: spin-slow 10s linear infinite; }
.a-ring { animation: ring 1.8s ease-out infinite; }
.a-shackle { animation: shackle 2.4s ease-in-out infinite; }
.a-drop { animation: drop 1.4s ease-in-out infinite; }
.a-type { animation: type 3s ease-in-out infinite; transform-origin: left center; }
.a-blink { animation: blink 1s steps(1) infinite; }
.a-reel { animation: reel 1.2s linear infinite; transform-box: view-box; }
.a-hover { animation: hover 2.2s ease-in-out infinite; }
.a-flame { animation: flame .25s ease-in-out infinite alternate; transform-origin: top center; }
.a-key { animation: keyturn 2.6s ease-in-out infinite; transform-origin: 30% 50%; }
.a-zap { animation: zap 1.6s ease-in-out infinite; }
.a-grow { animation: grow 2.8s ease-in-out infinite; transform-origin: bottom center; }
.a-needle { animation: needle 3s ease-in-out infinite; transform-box: view-box; transform-origin: 24px 34px; }
.d2 { animation-delay: .3s; }
.d3 { animation-delay: .6s; }
.d4 { animation-delay: .9s; }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes pop { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg) translate(-1px, 0); } 50% { transform: rotate(6deg) translate(2px, 1px); } }
@keyframes scribble { 0% { stroke-dashoffset: 1; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes wave { 0%, 100% { opacity: .3; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes slide { 0% { transform: translateX(0); } 33% { transform: translateX(11px); } 66% { transform: translateX(23px) scaleX(.67); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.15); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes shackle { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-4px); } }
@keyframes drop { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes type { 0% { transform: scaleX(0); } 45%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes reel { to { transform: translateX(-9px); } }
@keyframes hover { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
@keyframes flame { from { transform: scaleY(.7); } to { transform: scaleY(1.2); } }
@keyframes keyturn { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes zap { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(.95) rotate(4deg); } }
@keyframes grow { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes needle { 0%, 100% { transform: rotate(-80deg); } 60%, 80% { transform: rotate(0); } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 90px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; z-index: 1; }
.hero__copy { position: relative; z-index: 1; }
.hero__title { font-size: clamp(40px, 5.6vw, 72px); margin: 22px 0 20px; }
.scribble-word { position: relative; display: inline-block; color: var(--coral); white-space: nowrap; }
.scribble-word svg { position: absolute; left: -2%; right: -2%; bottom: -12px; width: 104%; height: 22px; overflow: visible; }
.scribble-word path { fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: underline 1.1s .7s cubic-bezier(.6, .1, .3, 1) forwards; }
@keyframes underline { to { stroke-dashoffset: 0; } }
.hero__text { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); }
.tick::after { content: ""; width: 7px; height: 4px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.tick--mint { background: var(--mint); }
.tick--sky { background: #8ec0ff; }
.tick--pink { background: #ff9cca; }
.hero__art { position: relative; z-index: 1; }
.hero-board { width: 100%; height: auto; overflow: visible; animation: board-in 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes board-in { from { transform: rotate(-4deg) scale(.92); opacity: 0; } to { transform: rotate(-1.5deg) scale(1); opacity: 1; } }
.hero-pen { filter: drop-shadow(0 6px 6px rgba(20, 24, 43, .2)); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--pop); font-size: 13px; line-height: 1.25; animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip b { display: block; font-family: var(--head); font-size: 14px; }
.chip small { color: var(--muted); }
.chip__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.chip__ico .ani-icon { width: 28px; height: 28px; overflow: visible; }
.chip--voice { left: -34px; top: -30px; animation-delay: -1s; }
.chip--voice .chip__ico { background: #d4e6ff; }
.chip--cc { right: -26px; bottom: 2%; animation-delay: -3s; }
.chip--cc .chip__ico { background: #e4d6ff; }
.chip--mp4 { left: 0; bottom: -22px; animation-delay: -4.5s; }
.chip--mp4 .chip__ico { background: #ffd9cf; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; border-block: 3px solid var(--ink); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 26px; width: max-content; padding: 18px 0; animation: marquee 38s linear infinite; }
.mq { font: 700 26px/1 var(--head); letter-spacing: -.01em; }
.mq--coral { color: #ff8a6e; }
.mq--violet { color: #b993ff; }
.mq--mint { color: #6fe3d6; }
.mq--sky { color: #8ec0ff; }
.mq--sun { color: var(--sun); }
.mq--pink { color: #ff8cc2; }
.mq-star { color: #fff; opacity: .6; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section--tint { background: linear-gradient(180deg, #fff3e6 0%, #fdf0ff 100%); overflow: hidden; }
.section > .wrap { z-index: 1; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(32px, 4vw, 48px); }
.section__head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 1; }
.step { position: relative; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 34px 28px 30px; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s ease; }
.step:hover { transform: translateY(-6px) rotate(-.6deg); }
.step__num { position: absolute; top: -20px; right: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--head); border: 2.5px solid var(--ink); background: #fff; }
.step--coral .step__num { background: var(--coral); color: #fff; }
.step--sun .step__num { background: var(--sun); }
.step--mint .step__num { background: var(--mint); color: #fff; }
.step h3 { font-size: 22px; margin: 22px 0 10px; }
.step p { color: var(--muted); }
.steps__path { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 60px; z-index: 0; overflow: visible; }
.steps__path path { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .012 .02; opacity: .55; animation: dash-move 8s linear infinite; }
@keyframes dash-move { to { stroke-dashoffset: -.64; } }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: .5; transition: transform .4s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: 6px 6px 0 var(--ink); }
.feature:hover::before { transform: scale(1.6); }
.feature--coral::before { background: #ffe1d8; }
.feature--sun::before { background: #fff1b8; }
.feature--mint::before { background: #d5f5f1; }
.feature--sky::before { background: #dceaff; }
.feature--violet::before { background: #ebdfff; }
.feature--pink::before { background: #ffdcec; }
.feature .tile { position: relative; }
.feature h3 { font-size: 21px; margin: 20px 0 8px; position: relative; }
.feature p { color: var(--muted); position: relative; }

/* Formats */
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.format { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s ease; }
.format:hover { transform: translateY(-6px) rotate(.6deg); }
.format-art { width: 100%; height: auto; border-radius: 14px; margin-bottom: 16px; }
.format--coral .format-art { background: #ffe1d8; }
.format--violet .format-art { background: #ebdfff; }
.format--mint .format-art { background: #d5f5f1; }
.format--sky .format-art { background: #dceaff; }
.format--sun .format-art { background: #fff1b8; }
.format--pink .format-art { background: #ffdcec; }
.format h3 { font-size: 19px; padding: 0 6px; }
.format p { color: var(--muted); font-size: 15px; padding: 6px 6px 0; }
.format--cta { background: linear-gradient(150deg, var(--violet), var(--pink)); color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 26px; gap: 6px; }
.format--cta p { color: rgba(255, 255, 255, .85); padding: 0 0 12px; }
.format--cta h3 { padding: 0; }
.format-cta__art { width: 74px; height: 74px; background: #fff; border-radius: 20px; display: grid; place-items: center; border: 2.5px solid var(--ink); margin-bottom: 10px; }
.format-cta__art .ani-icon { width: 46px; height: 46px; overflow: visible; }

/* Stats */
.stats { background: linear-gradient(120deg, var(--coral), var(--pink) 45%, var(--violet)); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font: 700 clamp(40px, 5vw, 60px)/1 var(--head); letter-spacing: -.03em; text-shadow: 3px 3px 0 rgba(20, 24, 43, .35); }
.stat span { font-weight: 600; opacity: .9; }

/* Keys */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.keys h2 { font-size: clamp(30px, 3.6vw, 44px); }
.lead { font-size: 18px; color: var(--muted); margin: 16px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%2314182b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.vault { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.vault__ring { position: absolute; inset: 12%; border: 3px dashed rgba(131, 56, 236, .4); border-radius: 50%; animation: spin-slow 30s linear infinite; }
.vault__ring--2 { inset: 0; border-color: rgba(255, 62, 157, .3); animation-direction: reverse; animation-duration: 44s; }
.orbit-chip { position: absolute; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); font: 700 14px/1 var(--head); box-shadow: 3px 3px 0 var(--ink); animation: float 5s ease-in-out infinite; }
.orbit-chip--1 { top: 4%; left: 30%; background: #ffe1d8; }
.orbit-chip--2 { top: 30%; right: -2%; background: #d5f5f1; animation-delay: -1s; }
.orbit-chip--3 { bottom: 12%; right: 10%; background: #dceaff; animation-delay: -2s; }
.orbit-chip--4 { bottom: 4%; left: 12%; background: #ebdfff; animation-delay: -3s; }
.orbit-chip--5 { top: 34%; left: -4%; background: #fff1b8; animation-delay: -4s; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font: 700 18px/1.35 var(--head); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); transition: transform .25s ease, background .25s ease; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.6px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--pink); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* Final CTA */
.final { padding: 30px 0 120px; }
.final__card { position: relative; overflow: hidden; text-align: center; padding: 80px 30px; border-radius: 34px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: radial-gradient(circle at 20% 20%, #4b2bb0 0, transparent 50%), radial-gradient(circle at 80% 80%, #d61f7a 0, transparent 50%), var(--ink); color: #fff; }
.final__card h2 { font-size: clamp(32px, 4.4vw, 54px); position: relative; }
.final__card p { opacity: .8; font-size: 19px; margin: 16px 0 32px; position: relative; }
.final__card .btn { position: relative; }
.final__card .cf-6, .final__card .cf-7 { display: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: #cfd3e6; }
.site-footer__wave svg { width: 100%; height: 80px; display: block; }
.site-footer__body { background: var(--ink); padding: 30px 0 30px; margin-top: -1px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer__grid a:not(.logo) { display: block; text-decoration: none; padding: 4px 0; color: #cfd3e6; transition: color .15s ease, transform .15s ease; }
.site-footer__grid a:not(.logo):hover { color: var(--sun); transform: translateX(3px); }
.site-footer__tag { margin-top: 14px; font-family: var(--hand); font-size: 26px; color: var(--sun); }
.site-footer__base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: 14px; opacity: .75; }

/* ---------- Auth pages ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth__art { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; color: #fff; border-right: 3px solid var(--ink); }
.auth__art .blob { opacity: .5; }
.auth__art--night { background: linear-gradient(160deg, #1d2350 0%, #14182b 60%); }
.auth__art--night .blob--1 { background: #ff5d3a; }
.auth__art--night .blob--2 { background: #3a86ff; }
.auth__art--night .blob--3 { background: #8338ec; }
.auth__art--sunset { background: linear-gradient(160deg, #ff7a45 0%, #ff3e9d 55%, #8338ec 100%); }
.auth__art--sunset .blob--1 { background: #ffd23f; }
.auth__art--sunset .blob--2 { background: #ff9f1c; }
.auth__art--sunset .blob--3 { background: #3a86ff; }
.auth__art--ocean { background: linear-gradient(160deg, #2ec4b6 0%, #3a86ff 60%, #5a3fd8 100%); }
.auth__art--ocean .blob--1 { background: #ffd23f; }
.auth__art--ocean .blob--2 { background: #8de8dd; }
.auth__art--ocean .blob--3 { background: #ff3e9d; }
.auth__art .logo, .auth__scene, .auth__copy { position: relative; z-index: 1; }
.auth__art .confetti--b .cf-3 { left: auto; right: 8%; bottom: 38%; }
.auth__scene { flex: 1; display: grid; place-items: center; }
.auth__board { width: min(520px, 100%); }
.auth__copy h2 { font-size: clamp(28px, 3vw, 38px); max-width: 480px; }
.auth__copy p { margin-top: 12px; opacity: .85; max-width: 440px; font-size: 17px; }
.launch { position: relative; animation: launch 3.2s ease-in-out infinite; }
.launch .tile .ani-icon { width: 70%; height: 70%; }
.launch__trail { position: absolute; left: 50%; top: 92%; width: 18px; height: 120px; margin-left: -9px; border-radius: 10px; background: linear-gradient(#ffd23f, rgba(255, 210, 63, 0)); filter: blur(2px); }
@keyframes launch { 0%, 100% { transform: translateY(6px) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.perks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .35); border-radius: 16px; font-weight: 600; backdrop-filter: blur(6px); }
.safe { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.safe .tile { animation: hover 3s ease-in-out infinite; }
.safe .tile .ani-icon { width: 66%; height: 66%; }
.safe__ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); animation: ripple 2.8s ease-out infinite; }
.safe__ring--2 { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.safe__spark { position: absolute; width: 16px; height: 16px; background: var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 1.6s ease-in-out infinite; }
.safe__spark--1 { top: 10%; left: 16%; }
.safe__spark--2 { top: 20%; right: 8%; animation-delay: .5s; background: #fff; }
.safe__spark--3 { bottom: 14%; left: 24%; animation-delay: 1s; background: var(--pink); }

.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px; position: relative; background: radial-gradient(circle at 90% 10%, #ffe9df 0, transparent 40%), radial-gradient(circle at 10% 90%, #e5f0ff 0, transparent 40%), var(--paper); }
.auth__top { position: absolute; top: 26px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; }
.auth__mobile-logo { visibility: hidden; font-size: 19px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.back-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.back-link:hover { background: #fff; color: var(--ink); }
.back-link:hover svg { transform: translateX(-3px); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 3px solid var(--ink); border-radius: 28px; padding: 36px 34px; box-shadow: 8px 8px 0 var(--ink); animation: card-in .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(20px) rotate(-1deg); } to { opacity: 1; transform: none; } }
.auth-card h1 { font-size: 32px; }
.auth-card__sub { color: var(--muted); margin: 8px 0 24px; }
.auth-card__switch { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth-card__switch a, .fine a { color: var(--violet); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(131, 56, 236, .3); }
.auth-card__switch a:hover { border-color: var(--violet); }
.success-burst { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); margin-bottom: 18px; background: #c9f2ec; animation: burst .6s .2s cubic-bezier(.3, 1.6, .5, 1) both; }
.success-burst .ani-icon { width: 40px; height: 40px; overflow: visible; }
.success-burst--sun { background: #fff1b8; }
.success-burst--coral { background: #ffd9cf; }
.success-burst--violet { background: #e4d6ff; }
.success-burst--mail { background: #ffd3e7; }
@keyframes burst { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.auth__legal { position: absolute; bottom: 20px; font-size: 13px; color: var(--muted); }
.auth__legal a { color: var(--muted); }
.stack { display: grid; gap: 12px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; font: 700 14px/1 var(--head); }
.field__aside { font: 600 13px/1 var(--body); color: var(--violet); text-decoration: none; }
.field__aside:hover { text-decoration: underline; }
.field__box { position: relative; display: flex; align-items: center; }
.field__ico { position: absolute; left: 14px; width: 20px; height: 20px; color: #9aa1b8; pointer-events: none; transition: color .15s ease; }
.field__box input { width: 100%; height: 52px; padding: 0 48px 0 44px; border: 2.5px solid #d9d2c3; border-radius: 14px; background: #fff; font: 500 16px var(--body); color: var(--ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.field__box input:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--sky); }
.field__box input:focus ~ .field__ico, .field__box:focus-within .field__ico { color: var(--sky); }
.field__eye { position: absolute; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #9aa1b8; cursor: pointer; display: grid; place-items: center; }
.field__eye svg { width: 20px; height: 20px; }
.field__eye:hover, .field__eye[aria-pressed="true"] { color: var(--violet); background: #f3edff; }
.meter { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.meter i { flex: 1; height: 6px; border-radius: 6px; background: #ece6da; transition: background .25s ease; }
.meter em { font: 600 12px/1 var(--body); font-style: normal; color: var(--muted); min-width: 70px; text-align: right; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--coral); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--orange); }
.meter[data-level="3"] i:nth-child(-n+3) { background: var(--sky); }
.meter[data-level="4"] i:nth-child(-n+4) { background: var(--mint); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.sv-auth__notice { padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 15px; font-weight: 500; border: 2px solid; display: flex; gap: 10px; align-items: flex-start; animation: shake .4s ease; }
.sv-auth__notice::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--head); color: #fff; }
.sv-auth__notice--error { background: #fff0ec; color: #a12b12; border-color: #ffb9a6; }
.sv-auth__notice--error::before { background: var(--coral); }
.sv-auth__notice--success { background: #e6faf7; color: #0b6b63; border-color: #9ee5dc; animation: none; }
.sv-auth__notice--success::before { content: "✓"; background: var(--mint); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Legal pages ---------- */
.doc-hero { position: relative; overflow: hidden; padding: 60px 0 50px; text-align: center; }
.doc-hero .wrap { z-index: 1; display: grid; justify-items: center; gap: 18px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.doc-hero__meta { color: var(--muted); }
.doc { background: #fff; border: 2.5px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); padding: 48px clamp(22px, 5vw, 60px); margin-bottom: 110px; font-size: 17px; }
.doc h2 { font-size: 26px; margin: 36px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; color: #363b55; }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { color: var(--violet); }

/* ---------- 404 ---------- */
.lost { position: relative; overflow: hidden; padding: 40px 0 120px; }
.lost__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; z-index: 1; }
.lost__art { position: relative; }
.lost__board { width: 100%; height: auto; overflow: visible; transform: rotate(-2deg); filter: drop-shadow(8px 8px 0 var(--ink)); }
.lost__plane { position: absolute; width: 90px; right: -10px; top: -40px; animation: plane 6s ease-in-out infinite; }
.lost__trail { position: absolute; width: 260px; right: 50px; top: -30px; opacity: .5; }
@keyframes plane { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-30px, 18px) rotate(8deg); } }
.lost__copy h1 { font-size: clamp(38px, 5vw, 60px); }
.lost__copy p { color: var(--muted); font-size: 18px; margin-top: 18px; }
.lost__links { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.lost__links a { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; font-weight: 700; transition: transform .15s ease; }
.lost__links a:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .chip--voice { left: 0; }
  .chip--cc { right: 0; }
  .hero__art { margin-top: 30px; }
}
@media (max-width: 920px) {
  .hero__grid, .keys, .lost__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .hero__art { max-width: 640px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps__path { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .auth__panel { padding-top: 100px; min-height: 100vh; }
  .auth__mobile-logo { visibility: visible; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 12px 10px; border-radius: 10px; }
  .site-nav a:not(.btn):hover { background: var(--paper); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav__sep { width: auto; height: 1px; margin: 6px 0; }
  .site-nav .btn { margin-top: 6px; }
}
@media (max-width: 600px) {
  .confetti .cf-2, .confetti .cf-6, .confetti .cf-7 { display: none; }
  .feature-grid, .format-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .chip { transform: scale(.85); }
  .chip--mp4 { display: none; }
  .hero__ctas .btn { width: 100%; }
  .auth-card { padding: 28px 22px; box-shadow: 5px 5px 0 var(--ink); }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ink { stroke-dashoffset: 0; }
}
