:root {
  --bg: #0b0b12;
  --bg-alt: #10101a;
  --card: #161622;
  --line: #262638;
  --text: #f3f3f8;
  --muted: #a3a3b8;
  --brand-1: #ff4d6d;
  --brand-2: #7c5cff;
  --grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 77, 109, .6); }
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(255, 77, 109, .8); }
.btn-ghost { border-color: var(--line); background: var(--tint-1); }
.btn-ghost:hover { background: var(--tint-2); }
.btn-light { background: #fff; color: #111; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open { background: var(--nav-bg); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; pointer-events: none; }
.glow-1 { width: 520px; height: 520px; background: var(--brand-1); top: -160px; right: -80px; }
.glow-2 { width: 460px; height: 460px; background: var(--brand-2); bottom: -200px; left: -140px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.store { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; background: #000; border: 1px solid #333; font-weight: 600; font-size: 15px; line-height: 1.15; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 10px; font-weight: 400; color: #bbb; }
.store:hover { border-color: #666; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; height: 610px; border-radius: 46px; background: #050507; padding: 12px; box-shadow: 0 0 0 2px #2a2a38, 0 40px 80px -20px rgba(0,0,0,.8), 0 0 80px -20px rgba(124, 92, 255, .5); position: relative; transform: rotate(-3deg); }
.notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #000; border-radius: 20px; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 36px; background: #121218; overflow: hidden; display: flex; flex-direction: column; }
.screen-top { display: flex; justify-content: space-between; align-items: center; padding: 50px 16px 10px; font-size: 12px; color: #ccc; }
.screen-top .save { background: var(--grad); color: #fff; padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.preview { position: relative; height: 290px; margin: 0 12px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.preview-bg { position: absolute; inset: -20px; background: linear-gradient(160deg, #ff8a5b, #ff4d6d 45%, #7c5cff); filter: blur(18px) brightness(.7); }
.preview-frame { position: relative; width: 100%; height: 150px; background: linear-gradient(180deg, #ffb36b 0%, #ff6b6b 55%, #3b2a8a 56%, #2a1f6b 100%); overflow: hidden; }
.sun { position: absolute; left: 50%; top: 42%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 40px #ffd166; animation: sun 6s ease-in-out infinite alternate; }
.wave { position: absolute; left: -10%; width: 120%; height: 30px; border-radius: 50%; background: rgba(255,255,255,.15); animation: wave 3s ease-in-out infinite alternate; }
.w1 { top: 62%; } .w2 { top: 78%; animation-delay: -1.5s; }
.caption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-weight: 800; font-size: 18px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.5); }
.timeline { position: relative; margin: 14px 12px 0; display: grid; gap: 5px; }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; left: 20%; z-index: 2; border-radius: 2px; animation: play 6s linear infinite; }
.track { height: 22px; border-radius: 6px; font-size: 10px; display: flex; align-items: center; padding: 0 8px; color: #fff; }
.clips { padding: 0; gap: 2px; overflow: hidden; height: 34px; }
.clips i { flex: 1; height: 100%; background: linear-gradient(135deg, var(--c), rgba(0,0,0,.4)); }
.music { background: rgba(40, 194, 255, .35); width: 85%; }
.text { background: rgba(255, 77, 109, .35); width: 55%; margin-left: 20%; }
.tools { margin-top: auto; display: flex; justify-content: space-around; padding: 14px 6px 26px; border-top: 1px solid #222; font-size: 9px; color: #aaa; }
.tools span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tools b { font-size: 16px; color: #fff; }
.float-card { position: absolute; padding: 10px 16px; border-radius: 14px; background: var(--float-bg); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); animation: float 5s ease-in-out infinite; }
.fc-1 { top: 18%; left: 0; } .fc-2 { bottom: 18%; right: 0; animation-delay: -2.5s; }
.fc-1 b { color: var(--brand-1); }

@keyframes sun { to { transform: translateY(14px); } }
@keyframes wave { to { transform: translateX(6%); } }
@keyframes play { from { left: 0; } to { left: 100%; } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; }
.strip-grid div { display: flex; flex-direction: column; }
.strip-grid b { font-size: 28px; font-weight: 800; }
.strip-grid span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-1); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ficon { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase-copy p { color: var(--muted); margin: 16px 0 20px; font-size: 17px; }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 77, 109, .15); color: var(--brand-1); font-size: 12px; font-weight: 800; margin-right: 10px; }
.ratios { display: flex; align-items: flex-end; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ratio { position: relative; border-radius: 12px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); background: linear-gradient(160deg, #ff8a5b, #ff4d6d 45%, #7c5cff); }
.ratio::after { content: ""; position: absolute; inset: 30% 0; background: linear-gradient(180deg, #ffb36b, #ff6b6b 55%, #2a1f6b 56%); box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.ratio span { position: relative; z-index: 1; font-weight: 800; font-size: 14px; background: rgba(0,0,0,.55); padding: 2px 10px; border-radius: 999px; }
.r916 { width: 120px; height: 213px; } .r11 { width: 160px; height: 160px; } .r169 { width: 220px; height: 124px; } .r45 { width: 140px; height: 175px; }
.r169::after { inset: 0 18%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 10px; }

.cta { text-align: center; padding: 70px 24px; border-radius: 28px; background: var(--grad); position: relative; overflow: hidden; }
.cta p { margin: 12px 0 28px; opacity: .9; font-size: 18px; }

.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-grid p { margin-top: 12px; max-width: 280px; font-size: 14px; }
.footer h4 { font-size: 14px; margin-bottom: 12px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-grid a:not(.logo):hover { color: var(--text); }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ================= Animation ================= */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 100; pointer-events: none; }

/* Hero entrance: copy rises in one line at a time, phone swings in */
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
.hero-copy > :nth-child(5) { animation-delay: .52s; }
.hero-visual { animation: swing-in 1.1s .2s var(--ease-out) both; }
.float-card { animation: pop-in .6s var(--ease-spring) both, float 5s ease-in-out infinite; }
.fc-1 { animation-delay: .9s, 1.5s; }
.fc-2 { animation-delay: 1.1s, 4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
@keyframes swing-in { from { opacity: 0; transform: translateY(40px) rotate(6deg) scale(.94); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }

/* Headline gradient drifts */
.grad-text { background-image: linear-gradient(90deg, var(--brand-1), var(--brand-2), #28c2ff, var(--brand-1)); background-size: 300% auto; animation: grad-drift 8s linear infinite; }
@keyframes grad-drift { to { background-position: 300% center; } }

/* Phone tilts toward the pointer (vars set by script) */
.phone { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-3deg); transition: transform .5s var(--ease-out); will-change: transform; }
.screen .preview-frame { animation: ken-burns 12s ease-in-out infinite alternate; }
@keyframes ken-burns { to { transform: scale(1.08) translateY(-4px); } }
.tools span { transition: transform .2s var(--ease-spring); }
.tools span:hover { transform: translateY(-3px); }

/* Nav links: sliding underline */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* Primary buttons: light sweep on hover */
.btn-primary, .btn-light { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-light::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s var(--ease-out); }
.btn-primary:hover::after, .btn-light:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(.97); }
.store { transition: transform .2s var(--ease-spring), border-color .2s; }
.store:hover { transform: translateY(-2px); }

/* Scroll reveal (only when JS is running, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(28px); }
/* Transition only on the way in, so hiding (when the page loads) is instant. */
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .ratio.reveal { transform: translateY(28px) scale(.9); }
.js .ratio.reveal.in { transform: none; }

/* Feature cards: cursor spotlight + icon bounce */
.feature { position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 77, 109, .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature:hover .ficon { animation: wiggle .6s var(--ease-spring); }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.12); } 60% { transform: rotate(6deg) scale(1.05); } }

/* Formats showcase: frames light up in turn, lift on hover */
.ratios .ratio.shown { transition: transform .3s var(--ease-spring); animation: breathe 6s ease-in-out infinite; }
.ratios .ratio.shown:hover { transform: translateY(-6px) scale(1.04); }
.ratios .ratio:nth-child(2).shown { animation-delay: 1.5s; }
.ratios .ratio:nth-child(3).shown { animation-delay: 3s; }
.ratios .ratio:nth-child(4).shown { animation-delay: 4.5s; }
@keyframes breathe { 0%, 30%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } 15% { box-shadow: 0 0 0 4px rgba(255, 77, 109, .5); } }

/* How-it-works numbers spin in when revealed */
.step.in .num, .step.shown .num { animation: num-pop .7s .2s var(--ease-spring) both; }
@keyframes num-pop { from { transform: scale(0) rotate(-90deg); } }

/* FAQ answer slides open */
.faq details[open] p { animation: rise .45s var(--ease-out); }
.faq details { transition: border-color .2s, background .2s; }
.faq details:hover { border-color: var(--line-strong); }

/* CTA band: slowly shifting gradient */
.cta { background: linear-gradient(120deg, var(--brand-1), var(--brand-2), #28c2ff, var(--brand-1)); background-size: 300% 300%; animation: cta-flow 14s ease infinite; }
@keyframes cta-flow { 50% { background-position: 100% 50%; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .showcase { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .stores { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--nav-bg-solid); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .section { padding: 70px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .phone { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(.88) rotate(-3deg); margin: -30px 0; }
  .fc-1 { left: -4px; } .fc-2 { right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= Content pages: guides, about, legal ================= */
.page-hero { position: relative; padding: 56px 0 36px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .glow-1 { width: 420px; height: 420px; top: -220px; right: -120px; opacity: .25; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 860px; }
.page-hero .lead { max-width: 720px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.meta-line span::before { content: "•"; margin-right: 8px; color: var(--brand-1); }
.meta-line span:first-child::before { display: none; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a:hover { color: var(--text); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 48px 0 80px; align-items: start; }
.article-layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.toc { position: sticky; top: 90px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt); font-size: 14px; }
.toc h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.toc a:hover { color: var(--text); background: var(--tint-1); }
.toc a.active { color: var(--text); border-left-color: var(--brand-1); background: rgba(255, 77, 109, .08); }
.toc .btn { width: 100%; margin-top: 14px; }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--prose); max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); color: var(--text); margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; color: var(--text); margin-top: 1.8em; scroll-margin-top: 90px; letter-spacing: -.01em; }
.prose a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-color: rgba(255, 138, 160, .4); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand-1); }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--tint-2); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--card); color: var(--text); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 16px 18px 16px 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); position: relative; font-size: 16px; }
.callout::before { position: absolute; left: 16px; top: 15px; font-size: 18px; }
.callout.tip { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .06); }
.callout.tip::before { content: "💡"; }
.callout.warn { border-color: rgba(255, 196, 0, .35); background: rgba(255, 196, 0, .06); }
.callout.warn::before { content: "⚠️"; }
.callout.try { border-color: rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .07); }
.callout.try::before { content: "▶"; color: var(--brand-1); }
.steps-list { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps-list > li { counter-increment: step; position: relative; padding-left: 46px; }
.steps-list > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.summary-box { padding: 20px 22px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.summary-box h2 { margin-top: 0 !important; font-size: 18px !important; }
.updated-note { font-size: 14px; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform .2s, border-color .2s; }
.guide-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.guide-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.guide-card:hover::before { opacity: 1; }
.guide-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-1); }
.guide-card h3 { font-size: 19px; line-height: 1.3; }
.guide-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.guide-card .more { font-size: 14px; font-weight: 600; }
.guide-card .more::after { content: " →"; transition: margin .2s; }
.guide-card:hover .more::after { margin-left: 4px; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 22px; margin-bottom: 18px; }
.related .guide-grid { grid-template-columns: repeat(2, 1fr); }

/* Ad slots stay collapsed until an AdSense unit is actually loaded (see site.js). */
.ad-slot { display: none; }
.ad-slot.ad-ready { display: block; margin: 36px 0; min-height: 120px; }
.ad-slot.ad-ready::before { content: "Advertisement"; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.contact-card { display: grid; gap: 14px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.contact-card a.email { font-size: 20px; font-weight: 700; }
.home-guides { margin-top: 8px; }
.section-foot { text-align: center; margin-top: 36px; }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .guide-grid, .related .guide-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
  .article-layout { padding: 32px 0 60px; gap: 28px; }
}
.hero-note { margin-top: 22px; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) { .hero-note { margin-inline: auto; max-width: 440px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= Brand logo ================= */
.logo { gap: 10px; }
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; transition: transform .3s var(--ease-spring, ease); }
.logo:hover .logo-icon { transform: rotate(-6deg) scale(1.06); }
.wordmark { display: inline-flex; align-items: center; gap: 6px; font-family: Anton, Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; font-size: 23px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--wordmark); }
.wordmark .wm-red { background: #e3141f; color: #fff; padding: 4px 6px 3px; border-radius: 2px; }
.footer .logo-icon { width: 34px; height: 34px; }
.footer .wordmark { font-size: 20px; }
.brand-logo { display: block; width: min(320px, 70%); height: auto; margin: 0 auto 8px; border-radius: 18px; }
@media (max-width: 380px) { .wordmark { font-size: 20px; gap: 4px; } .logo-icon { width: 34px; height: 34px; } }
.guide-group-title { font-size: 22px; margin: 44px 0 18px; display: flex; align-items: center; gap: 12px; }
.guide-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section > .container > .guide-group-title:first-child { margin-top: 0; }

/* ================= Day / night themes ================= */
/* Night (default) tokens — the site's original look. */
:root {
  --tint-1: rgba(255,255,255,.03); --tint-2: rgba(255,255,255,.07);
  --nav-bg: rgba(11, 11, 18, .85); --nav-bg-solid: rgba(11, 11, 18, .97);
  --float-bg: rgba(22, 22, 34, .85); --line-strong: #3a3a55;
  --prose: #d9d9e6; --link: #ff8aa0; --wordmark: #fff;
  --glow-opacity: .35; --card-shadow: none;
  color-scheme: dark;
}
/* Day */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-alt: #f5f5fa; --card: #ffffff; --line: #e4e4ee; --line-strong: #cdcddd;
  --text: #15151f; --muted: #5a5a70; --prose: #34344a; --link: #d11d48; --wordmark: #111;
  --tint-1: rgba(20, 20, 45, .03); --tint-2: rgba(20, 20, 45, .06);
  --nav-bg: rgba(255, 255, 255, .86); --nav-bg-solid: rgba(255, 255, 255, .98);
  --float-bg: rgba(255, 255, 255, .92);
  --glow-opacity: .16; --card-shadow: 0 1px 2px rgba(20, 20, 45, .04), 0 10px 30px -14px rgba(20, 20, 45, .18);
  color-scheme: light;
}
body { transition: background-color .35s ease, color .35s ease; }
.glow { opacity: var(--glow-opacity); }
.feature, .guide-card, .step, .faq details, .contact-card, .summary-box, .toc, .callout { box-shadow: var(--card-shadow); }
.cta, .cta h2 { color: #fff; }
:root[data-theme="light"] .float-card { box-shadow: 0 16px 36px -12px rgba(20, 20, 45, .25); }
:root[data-theme="light"] .brand-logo { box-shadow: var(--card-shadow); border: 1px solid var(--line); }
:root[data-theme="light"] .prose th { background: var(--bg-alt); }
:root[data-theme="light"] .ratio span { color: #fff; }

/* Theme toggle button */
.nav-inner { gap: 14px; }
.nav-links { margin-left: auto; }
.theme-toggle { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--tint-1); color: var(--text); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { background: var(--tint-2); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.theme-toggle .i-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
.theme-toggle .i-moon { transform: none; opacity: 1; }
:root[data-theme="light"] .theme-toggle .i-sun { transform: none; opacity: 1; }
:root[data-theme="light"] .theme-toggle .i-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
@media (max-width: 760px) { .nav-links { margin-left: 0; } .theme-toggle { margin-left: auto; width: 38px; height: 38px; } }

/* ================= Tool pages ================= */
.tool-hero .hero-cta { margin-top: 26px; }
.tool-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.tool-badges li::before { content: "✓"; color: var(--brand-1); font-weight: 800; margin-right: 6px; }
.tool-article { max-width: 820px; }
.tool-features { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.tool-features li { position: relative; padding-left: 30px; margin: 0 !important; }
.tool-features li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--grad); }
.tool-card .tool-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 20px; font-weight: 800; }
.tool-grid { grid-template-columns: repeat(4, 1fr); }
.related .tool-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature h3 a { color: inherit; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; }
.feature .feature-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand-1); }
@media (max-width: 1080px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .tool-grid, .related .tool-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tool-grid, .related .tool-grid-3, .tool-features { grid-template-columns: 1fr; } }

/* ================= Extra animation ================= */
/* Page-to-page transitions (browsers with cross-document View Transitions; others just navigate) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* Hero headline: an occasional "bad signal" RGB-split glitch */
.hero h1 .grad-text { display: inline-block; animation: grad-drift 8s linear infinite, glitch 7s steps(1) 2.5s infinite; }
@keyframes glitch {
  0%, 88%, 100% { filter: none; transform: none; clip-path: none; }
  89% { filter: drop-shadow(-3px 0 #28c2ff) drop-shadow(3px 0 #ff4d6d); transform: translateX(2px) skewX(-8deg); }
  90% { filter: drop-shadow(3px 0 #28c2ff); transform: translateX(-5px); clip-path: inset(8% 0 52% 0); }
  91% { filter: drop-shadow(-3px 0 #ff4d6d); transform: translateX(5px); clip-path: inset(58% 0 4% 0); }
  92% { filter: drop-shadow(-2px 0 #28c2ff) drop-shadow(2px 0 #ff4d6d); transform: skewX(4deg); clip-path: none; }
  93% { filter: none; transform: none; }
}

/* Hero parallax as you scroll away (--sy set by script) */
.hero .hero-visual { translate: 0 calc(var(--sy, 0) * 90px); }
.hero .glow-1 { translate: 0 calc(var(--sy, 0) * 180px); }
.hero .glow-2 { translate: 0 calc(var(--sy, 0) * -120px); }
.hero .hero-copy { opacity: calc(1 - var(--sy, 0) * .7); }

/* Phone mockup: REC badge with a running timecode, captions that pop in */
.rec-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 9px/1 ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.rec-badge i { width: 6px; height: 6px; border-radius: 50%; background: #ff3040; box-shadow: 0 0 6px #ff3040; animation: rec-blink 1s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: 0; } }
.caption.cap-pop { animation: cap-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cap-pop { from { opacity: 0; transform: translateY(8px) scale(.7); } }

/* Film strip of tools, scrolling like film through a projector */
.filmstrip { position: relative; overflow: hidden; background: #07070b; border-bottom: 1px solid var(--line); }
.filmstrip::before, .filmstrip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 3; pointer-events: none; }
.filmstrip::before { left: 0; background: linear-gradient(90deg, #07070b, transparent); }
.filmstrip::after { right: 0; background: linear-gradient(-90deg, #07070b, transparent); }
.filmstrip-track { display: flex; width: max-content; padding: 24px 0; animation: film-roll 60s linear infinite;
  --holes: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .2) 9px 21px, transparent 21px 30px);
  background: var(--holes) left 0 top 7px / 100% 9px no-repeat, var(--holes) left 0 bottom 7px / 100% 9px no-repeat; }
.filmstrip:hover .filmstrip-track, .filmstrip:focus-within .filmstrip-track { animation-play-state: paused; }
@keyframes film-roll { to { transform: translateX(-50%); } }
.filmstrip a { position: relative; flex: 0 0 210px; height: 100px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; border-inline: 4px solid #07070b; border-radius: 8px; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .3s; }
.filmstrip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.filmstrip a:hover, .filmstrip a:focus-visible { transform: scale(1.06) rotate(-1.5deg); filter: saturate(1.2); z-index: 2; }
.filmstrip a:hover::after { transform: translateX(120%); }
.filmstrip a b { font-size: 24px; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.filmstrip a:nth-child(4n+1) { --c1: #ff8a5b; --c2: #ff4d6d; }
.filmstrip a:nth-child(4n+2) { --c1: #ff4d6d; --c2: #7c5cff; }
.filmstrip a:nth-child(4n+3) { --c1: #7c5cff; --c2: #28c2ff; }
.filmstrip a:nth-child(4n+4) { --c1: #28c2ff; --c2: #1fd1a5; }

/* Section headings wipe in behind a playhead, like a transition in the editor */
.section-head.in h2, .section-head.shown h2 { position: relative; animation: wipe-in .9s .1s cubic-bezier(.65, 0, .35, 1) backwards; }
.section-head.in h2::after, .section-head.shown h2::after { content: ""; position: absolute; top: -8%; bottom: -8%; left: 0; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 14px var(--brand-1); transform: translateX(-100%); opacity: 0; animation: playhead-scan .9s .1s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes wipe-in { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes playhead-scan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Cards tilt toward the cursor in 3D (--rx/--ry set by script) */
.feature:hover, .guide-card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.tool-card:hover .tool-ico { animation: wiggle .6s var(--ease-spring); }

/* Buttons: click ripple + magnetic pull on large buttons */
.btn { position: relative; overflow: hidden; }
.btn-lg { translate: var(--tx, 0) var(--ty, 0); transition: transform .15s, box-shadow .15s, background .15s, translate .35s var(--ease-out); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); pointer-events: none; animation: ripple .65s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Logo: the words hop and the VIDEO box flashes like a record light */
.logo:hover .wordmark > span { animation: word-hop .5s var(--ease-spring); }
.logo:hover .wordmark > span:nth-child(2) { animation: word-hop .5s .06s var(--ease-spring), rec-flash .9s .1s; }
.logo:hover .wordmark > span:nth-child(3) { animation-delay: .12s; }
@keyframes word-hop { 40% { transform: translateY(-4px); } }
@keyframes rec-flash { 30% { box-shadow: 0 0 0 3px rgba(227, 20, 31, .35), 0 0 18px rgba(227, 20, 31, .7); } }

/* Back-to-top button with a reading-progress ring */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--card); color: var(--text); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top.show:hover { transform: translateY(-3px); }
.to-top svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.to-top .ring-bg { stroke: var(--line); stroke-width: 3; }
.to-top .ring { stroke: var(--brand-1); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transform: rotate(-90deg); transform-origin: center; }
.to-top path { stroke: currentColor; stroke-width: 2.4; }

@media (prefers-reduced-motion: reduce) {
  .filmstrip { overflow-x: auto; }
  .hero .hero-copy { opacity: 1; }
}
