/* =========================================================
   Miclody — public site (matches the reference design)
   Colors/fonts come from CSS variables set in header.php
   (Admin → Design). Values below are fallbacks.
   ========================================================= */
:root {
  --bg: #0f0c17; --surface: #16121f; --surface-2: #1e1929; --border: #2a2437;
  --text: #f6f4fb; --muted: #a39bb6; --accent: #d4ff5f; --accent-2: #a35cff; --accent-3: #ff6ad5; --accent-4: #6f9bff;
  --success: #d4ff5f; --on-accent: #12100a; --accent-text: #d4ff5f; --accent-line: #d4ff5f;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 22px; --container: 1180px;
  --grad: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 50%, var(--accent-4) 100%);
  --line: color-mix(in srgb, var(--text) 8%, transparent);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 40px 90px -40px rgb(0 0 0 / .85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.has-grain::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1; margin: 0 0 .45em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.6vw, 5.4rem); letter-spacing: -.058em; line-height: .98; text-wrap: wrap; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); letter-spacing: -.052em; line-height: 1.04; }
h3 { font-size: 1.3rem; letter-spacing: -.035em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad { color: var(--accent-text); }
.mono { font-family: var(--font-mono); }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 700 14px/1 var(--font-body); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding: 0 20px; }
.btn--lg { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary, .btn--light { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 transparent; }
.btn--primary:hover, .btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); background: color-mix(in srgb, var(--text) 4%, transparent); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.eyebrow, .pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font: 700 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
  background: none; border: 0; padding: 0;
}
.eyebrow::before, .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }
.pill .dot { display: none; }
.lead { font-size: 1.05rem; line-height: 1.7; color: color-mix(in srgb, var(--text) 72%, var(--muted)); max-width: 62ch; }
.kicker { font: 600 12px/1 var(--font-mono); letter-spacing: .04em; color: var(--accent-text); text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--text) 3%, transparent); font: 600 11px/1.2 var(--font-body); color: var(--text); }
.fine { font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.6; }
.fine a { color: var(--text); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--accent); color: var(--on-accent); text-align: center; font: 700 13px/1.4 var(--font-body); padding: 9px 16px; }
.announce a { text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.nav-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 23px/1 var(--font-display); letter-spacing: -.06em; justify-self: start; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 800 19px/1 var(--font-display); letter-spacing: -.04em; padding-bottom: 3px; box-shadow: 0 0 22px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.nav { display: flex; gap: 32px; justify-content: center; }
.nav a:not(.btn) { text-decoration: none; font-size: 13.5px; font-weight: 500; color: color-mix(in srgb, var(--text) 85%, var(--muted)); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--accent-text); }
.nav .nav-cta-mobile, .nav .nav-mobile-only { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 9vw, 112px); }
.bg--alt { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.bg--glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 30%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%); pointer-events: none; }
.bg--line { border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 48px; position: relative; max-width: 680px; }
.sec-head .lead { max-width: 620px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head .lead { margin: 0; }
.sec-head--center { text-align: left; } /* reference keeps heads left-aligned */

/* Hero */
.sec--hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 72px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb--a { width: 560px; height: 560px; background: var(--accent-2); opacity: .16; top: -140px; right: -160px; }
.orb--b, .orb--c { display: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { margin-bottom: 30px; max-width: 5.6em; }
.hero-copy .lead { font-size: 1.12rem; max-width: 40ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 22px; }
.hero-tag { font-size: 12px; color: var(--muted); margin: 0; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.disc { position: relative; width: min(100%, 470px); aspect-ratio: 1; display: grid; place-items: center; }
.disc__ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 7%, transparent); }
.disc__ring:nth-child(1) { inset: 0; }
.disc__ring:nth-child(2) { inset: 6%; }
.disc__ring:nth-child(3) { inset: 12%; border-color: color-mix(in srgb, var(--text) 5%, transparent); }
.disc__grooves { position: absolute; inset: 18%; border-radius: 50%; background: repeating-radial-gradient(circle, color-mix(in srgb, var(--text) 9%, transparent) 0 1px, transparent 1px 4px), radial-gradient(circle, #181420 0, #0f0c15 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent), 0 30px 80px -30px rgb(0 0 0 / .9); animation: spin 24s linear infinite; }
.disc__label { position: relative; width: 23%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 60px -10px color-mix(in srgb, var(--accent-2) 70%, transparent); }
.disc__label span { font: 800 clamp(14px, 1.6vw, 20px)/1 var(--font-display); letter-spacing: -.06em; color: #15101e; }
.disc__label::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #15101e; top: 50%; left: 50%; transform: translate(-50%, -80%); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card { position: absolute; z-index: 2; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.float-card__label { display: block; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--text) 75%, var(--muted)); margin-bottom: 10px; }
.float-card--dest { top: 9%; right: 0; }
.float-card--dest .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.float-card--stat { left: 4%; bottom: 17%; }
.float-card--stat .float-card__label { margin-bottom: 6px; }
.float-card__value { display: block; font: 800 30px/1 var(--font-display); letter-spacing: -.05em; color: var(--accent-text); }
.float-card__note { display: block; font-size: 10.5px; color: color-mix(in srgb, var(--text) 75%, var(--muted)); margin-top: 6px; }
.wave { position: absolute; z-index: 2; bottom: 13%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 28px; }
.wave i { width: 2px; border-radius: 2px; background: var(--accent); height: calc(20% + var(--h, 40) * 1%); opacity: .85; animation: wave 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
@keyframes wave { 50% { transform: scaleY(.45); } }

/* Platform strip */
.sec--marquee { padding-block: 0; border-block: 1px solid var(--line); }
.marquee { display: flex; align-items: center; gap: 40px; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 22px max(24px, env(safe-area-inset-right, 0px)) 22px max(24px, env(safe-area-inset-left, 0px)); }
.marquee__label { flex-shrink: 0; font: 500 11px/1.3 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.marquee__track { overflow: hidden; flex: 1; }
.marquee__inner { display: flex; justify-content: space-between; gap: 40px; }
.is-animated .marquee__track { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.is-animated .marquee__inner { width: max-content; justify-content: flex-start; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__inner { animation-play-state: paused; }
.marquee__item { padding-block: 2px; font: 800 15px/1.3 var(--font-display); letter-spacing: -.04em; color: var(--text); white-space: nowrap; display: flex; align-items: baseline; gap: 5px; }
.marquee__item small { font: 500 11px/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.marquee__item img { height: 22px; width: auto; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step-card { position: relative; display: flex; flex-direction: column; min-height: 234px; padding: 28px 26px 22px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, var(--surface)), var(--surface)); border: 1px solid var(--border); overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.step-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.step-card__num { position: absolute; top: 14px; right: 14px; font: 800 84px/1 var(--font-display); letter-spacing: -.06em; color: color-mix(in srgb, var(--text) 4%, transparent); pointer-events: none; }
.step-card .kicker { margin-bottom: 34px; position: relative; }
.step-card h3 { position: relative; margin-bottom: 14px; }
.step-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0 0 24px; max-width: 34ch; position: relative; }
.step-card__icon { margin-top: auto; align-self: flex-end; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: var(--accent-text); background: color-mix(in srgb, var(--text) 5%, transparent); }

/* Generator */
.gen-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.gen-copy { padding: clamp(28px, 4.5vw, 56px) clamp(24px, 4.5vw, 48px); }
.gen-copy .sec-head { margin-bottom: 28px; }
.gen-copy h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); max-width: 9ch; }
.gen-copy .lead { font-size: 14.5px; max-width: 46ch; }
.gen-box { border-radius: 16px; border: 1px solid var(--border); background: var(--bg); padding: 16px; display: grid; gap: 14px; }
.gen-box textarea { width: 100%; resize: vertical; min-height: 58px; padding: 2px; border: 0; background: transparent; color: var(--text); font: 13px/1.6 var(--font-body); outline: none; }
.gen-box textarea::placeholder { color: var(--muted); }
.gen-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--btn { cursor: pointer; padding: 7px 10px; transition: all .2s; }
.chip--btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.chip--btn.is-on { border-color: var(--accent-line); color: var(--accent-text); }
.gen-box .btn { --h: 32px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.gen-stage { position: relative; display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 70%), color-mix(in srgb, var(--surface-2) 75%, var(--surface)); }
.player { width: min(100%, 300px); padding: 10px 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transform: rotate(3deg); transition: transform .5s var(--ease); }
.player:hover { transform: rotate(0); }
.player__cover { position: relative; aspect-ratio: 1.5; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 70%, #2a1a40), color-mix(in srgb, var(--accent-3) 55%, #3a1a45)); background-size: cover; background-position: center; }
.player__cover.has-img .art { display: none; }
.art i { position: absolute; border-radius: 50%; }
.art .r1 { width: 72%; aspect-ratio: 1; left: 14%; top: 18%; border: 1px solid rgb(255 255 255 / .22); }
.art .r2 { width: 92%; aspect-ratio: 1; left: 4%; top: 4%; border: 1px solid rgb(255 255 255 / .08); }
.art .d1 { width: 17%; aspect-ratio: 1; left: 42%; top: 46%; background: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); animation: bob 5s ease-in-out infinite; }
.art .d2 { width: 12%; aspect-ratio: 1; left: 25%; top: 56%; background: color-mix(in srgb, var(--accent) 75%, #9cff7a); animation: bob 6s ease-in-out infinite reverse; }
.art .d3 { width: 9%; aspect-ratio: 1; left: 66%; top: 30%; background: var(--accent-3); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.player__row { display: flex; align-items: center; gap: 10px; padding: 10px 4px 0; }
.player__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player__meta strong { font: 700 14px/1.2 var(--font-display); letter-spacing: -.03em; }
.player__meta span { font-size: 10px; color: var(--muted); }
.player__bar { height: 3px; border-radius: 3px; background: var(--border); margin: 10px 4px 0; overflow: hidden; }
.player__bar span { display: block; height: 100%; width: 34%; background: var(--accent); transition: width .2s linear; }
.player__play { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 12px; cursor: pointer; flex-shrink: 0; transition: transform .2s; padding-left: 2px; }
.player__play:hover { transform: scale(1.08); }
.player.is-loading .player__meta strong { opacity: .5; }
.player.is-new { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: rotate(3deg) scale(.95); opacity: .4; } 100% { transform: rotate(3deg); opacity: 1; } }

/* Earnings */
.earn-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; position: relative; }
.earn-grid .sec-head { margin-bottom: 22px; }
.earn-grid h2 { max-width: 10ch; }
.note-box { font-size: 11.5px; line-height: 1.65; color: var(--muted); max-width: 64ch; margin: 0; }
.split-card { position: relative; overflow: hidden; padding: 34px 30px 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.split-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -70px; top: -70px; background: color-mix(in srgb, var(--text) 3%, transparent); pointer-events: none; }
.split-card__label { position: relative; font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--text) 75%, var(--muted)); margin-bottom: 22px; }
.split-big { position: relative; display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.split-big strong { font: 800 clamp(56px, 7vw, 80px)/.9 var(--font-display); letter-spacing: -.07em; color: var(--accent-text); }
.split-big span { font-size: 15px; color: var(--text); }
.split-card > p { position: relative; font-size: 13.5px; color: color-mix(in srgb, var(--text) 75%, var(--muted)); max-width: 48ch; margin: 0 0 26px; }
.split-bar { height: 9px; border-radius: 9px; background: color-mix(in srgb, var(--accent-2) 30%, var(--surface-2)); overflow: hidden; margin-bottom: 10px; }
.split-bar span { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 9px 0 0 9px; }
.split-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: color-mix(in srgb, var(--text) 70%, var(--muted)); flex-wrap: wrap; }
.split-legend b { color: var(--text); }
.split-example { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); flex-wrap: wrap; }
.split-example b { font: 700 17px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.split-example em { font-style: normal; font-size: 13px; color: var(--accent-text); }

/* Platforms */
.plat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.plat { --c: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 94px; padding: 18px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: center; transition: transform .3s var(--ease), border-color .3s; }
.plat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.plat__icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--accent-text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.plat__icon img { width: 16px; height: 16px; object-fit: contain; }
.plat strong { font: 700 12.5px/1.2 var(--font-display); letter-spacing: -.02em; }
.sec--platforms .fine { margin-top: 20px; }

/* Pricing */
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.price-head .sec-head { margin-bottom: 0; }
.toggle { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }
.toggle button { border: 0; background: none; color: color-mix(in srgb, var(--text) 75%, var(--muted)); font: 600 12px var(--font-body); padding: 10px 16px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .2s; }
.toggle button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.save { font: 700 9.5px/1 var(--font-body); color: var(--accent-text); letter-spacing: .02em; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; align-items: stretch; }
/* 4 plans on tablets: a tidy 2 × 2 grid instead of 3 + 1 */
@media (min-width: 600px) and (max-width: 999px) { .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease); }
.plan:hover { transform: translateY(-3px); }
.plan--popular { border-color: color-mix(in srgb, var(--accent-line) 75%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, var(--surface)), var(--surface)); }
.plan__ribbon { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.plan h3 { margin-bottom: 6px; font-size: 1.05rem; letter-spacing: -.02em; }
.plan__desc { color: var(--muted); font-size: 11.5px; min-height: 3.4em; margin-bottom: 18px; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 8px; }
.plan__price strong { font: 800 38px/1 var(--font-display); letter-spacing: -.05em; }
.plan__price span { color: var(--muted); font-size: 11.5px; }
.plan__note { font-size: 10.5px; color: var(--muted); min-height: 1.4em; margin: 0; }
[data-interval="month"] [data-price-year], [data-interval="year"] [data-price-month] { display: none; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; width: 100%; }
.plan__features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 12px; flex: 1; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.plan__features li { display: flex; gap: 9px; }
.plan__features li::before { content: "✓"; flex-shrink: 0; color: var(--accent-text); font-weight: 700; }
.plan__cta .btn { --h: 38px; font-size: 12px; }
.plan__cta form { margin: 0; }

/* Comparison */
.sec--comparison { padding-block: 0 72px; margin-top: -48px; }
.compare { padding: 26px 22px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.compare__title { font-size: 1rem; letter-spacing: -.02em; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.compare th { text-align: left; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.compare td { padding: 13px 0; border-bottom: 1px solid var(--line); }
.compare td strong { color: var(--accent-text); font: 700 14px/1 var(--font-display); letter-spacing: -.02em; }
.compare td.muted { color: color-mix(in srgb, var(--text) 75%, var(--muted)); font-size: 11.5px; }
.compare tr:last-child td { border-bottom: 0; }
.compare .fine { margin-top: 10px; font-size: 10.5px; }
.compare-after { font-size: 10.5px; color: var(--muted); text-align: center; max-width: 760px; margin: 26px auto 0; line-height: 1.6; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.faq-grid .sec-head { margin-bottom: 0; }
.faq-grid h2 { max-width: 10ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; font: 700 14px/1.4 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq__icon { width: 12px; height: 12px; flex-shrink: 0; position: relative; color: var(--accent-text); margin-top: 6px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; transition: transform .3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 40px 24px 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.faq__a p { margin: 0; }

/* CTA */
.cta-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(36px, 5vw, 58px) clamp(24px, 5vw, 56px); border-radius: 26px; background: var(--img, none) center/cover, color-mix(in srgb, var(--surface-2) 85%, var(--surface)); border: 1px solid var(--border); }
.cta-card__glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; left: 52%; top: -150px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); pointer-events: none; }
.cta-card > *:not(.cta-card__glow) { position: relative; }
.cta-copy h2 { font-size: clamp(2rem, 3.8vw, 2.7rem); margin-bottom: 10px; }
.cta-copy .lead { font-size: 13px; margin: 0; }

/* Media + text */
.mt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mt-grid--rev .mt-media { order: -1; }
.mt-media img, .mt-media video { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.mt-placeholder { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--grad); display: grid; place-items: center; }
.mt-placeholder .vinyl { width: 40%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #15111f 0 2px, #1d1830 2px 4px); }
.mt-copy .btn { margin-top: 10px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quote { margin: 0; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font: 700 17px/1.45 var(--font-display); letter-spacing: -.02em; }
.quote blockquote::before { content: "“"; display: block; font-size: 44px; line-height: .6; margin-bottom: 10px; color: var(--accent-text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img, .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.quote figcaption span { display: flex; flex-direction: column; font-size: 13px; }
.quote small { color: var(--muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-card { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.mc-form { display: grid; gap: 14px; }
.mc-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.mc-field .req { color: var(--accent-text); }
.mc-field input, .mc-field textarea, .mc-field select { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.mc-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.mc-field input:focus, .mc-field textarea:focus, .mc-field select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.mc-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; }
.mc-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.mc-form__msg { margin: 0; font-size: 13.5px; min-height: 1em; }
.mc-form__msg.is-ok { color: var(--accent-text); }
.mc-form__msg.is-err { color: var(--accent-3); }
.mc-form.is-done .mc-field, .mc-form.is-done button { display: none; }
.mc-form.is-done .mc-form__msg { font-size: 16px; padding: 12px 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(6 4 12 / .72); backdrop-filter: blur(6px); animation: fade .3s; }
.modal__card { position: relative; width: min(100%, 440px); max-height: calc(100vh - 40px); overflow: auto; padding: 34px 28px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: rise .45s var(--ease); }
.modal__card h3 { font-size: 1.8rem; letter-spacing: -.05em; font-weight: 800; }
.modal__card .muted { font-size: 13.5px; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* Page + prose */
.sec--page { padding-block: 64px 96px; min-height: 60vh; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.06em; margin-bottom: 28px; }
.prose { color: color-mix(in srgb, var(--text) 75%, var(--muted)); font-size: 16px; line-height: 1.75; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; font-size: 1.6rem; }
.prose a { color: var(--accent-text); }
.prose .form-card { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .4em; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-meta { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2em; }
.result-card { padding: 44px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.result-card .page-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.result-card .big-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 28px; background: var(--accent); color: var(--on-accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; }
.foot-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px 32px; }
.foot-copy { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-self: end; }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); }
.foot-legal a { font: 500 10.5px/1.6 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--accent-text); }
.foot-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.foot-links a, .foot-social a { color: color-mix(in srgb, var(--text) 80%, var(--muted)); text-decoration: none; font-size: 11px; font-weight: 500; }
.foot-links a:hover, .foot-social a:hover { color: var(--accent-text); }

/* Reveal on scroll (content is visible at rest; motion is a light lift only) */
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* Accounts popup */
.auth__card { width: min(100%, 460px); padding: 34px 28px 26px; }
.auth__card h3 { font-size: 1.65rem; letter-spacing: -.045em; margin-bottom: 8px; }
.auth__card .muted { font-size: 14px; margin-bottom: 18px; }
.auth-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 0 40px 18px 0; }
.auth-progress span { display: block; height: 100%; width: 12%; background: var(--accent); border-radius: 4px; transition: width .45s var(--ease); }
.auth-step { display: grid; gap: 12px; animation: stepIn .35s var(--ease); }
.auth-step .mc-field { margin: 0; }
.auth-step[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.auth-nav { display: flex; gap: 10px; }
.auth-nav .btn { flex: 1; }
.auth-nav .btn--ghost { flex: 0 0 auto; }
.auth-alt { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-alt a, .field-msg a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.field-msg { margin: -4px 0 0; font-size: 13px; min-height: 1.2em; color: var(--muted); }
.field-msg.is-err { color: var(--accent-3); }
.field-msg.is-ok { color: var(--accent-text); }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; display: block; }
.field-hint.is-ok { color: var(--accent-text); }
.uname { position: relative; display: flex; align-items: center; }
.uname__at { position: absolute; left: 15px; color: var(--muted); font-weight: 600; pointer-events: none; }
.uname input { padding-left: 32px !important; padding-right: 44px !important; }
.uname__state { position: absolute; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.uname__state.is-ok { background: var(--accent); color: var(--on-accent); }
.uname__state.is-ok::after { content: "✓"; }
.uname__state.is-bad { background: color-mix(in srgb, var(--accent-3) 18%, transparent); color: var(--accent-3); }
.uname__state.is-bad::after { content: "✕"; font-size: 11px; }
.uname__state.is-checking { border: 2px solid var(--border); border-top-color: var(--accent-line); animation: spin .7s linear infinite; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.suggest[hidden] { display: none; }
.auth-step--done { text-align: center; }
.mail-art { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--accent); color: var(--on-accent); animation: pop .5s var(--ease); }
.tips { list-style: none; padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.perk { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent); margin: 6px 0 14px; }
.perk strong { font: 800 24px/1 var(--font-display); letter-spacing: -.04em; color: var(--accent-text); }
.perk span { font-size: 13px; color: var(--text); }
.perk--sm { padding: 9px 13px; }
.perk--sm strong { font-size: 19px; }
.perk--row { display: flex; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px !important; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font: 600 12px var(--font-body); cursor: pointer; padding: 6px 8px; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--accent-3); transition: width .3s, background .3s; }
.pw-meter span[data-s="2"] { background: var(--accent-4); }
.pw-meter span[data-s="3"], .pw-meter span[data-s="4"] { background: var(--accent-line); }
.ts-box { min-height: 65px; }
.nav-login { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--text); padding: 10px 4px; white-space: nowrap; }
.nav-login:hover { color: var(--accent-text); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--text); }
.acct-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--grad); color: #15101e; font: 800 22px/1 var(--font-display); }
.acct-avatar--sm { width: 32px; height: 32px; font-size: 14px; }

/* Account pages */
.sec--account { padding-block: 56px 96px; }
.acct-wrap { max-width: 980px; display: grid; gap: 16px; justify-items: center; }
.acct-card { width: min(100%, 520px); padding: 34px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.acct-card h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.055em; margin-bottom: 10px; }
.acct-card .lead { font-size: 15px; margin-bottom: 20px; }
.acct-card.center { text-align: center; }
.acct-card .big-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: var(--accent); color: var(--on-accent); }
.acct-form { gap: 14px; }
.acct-alert { width: min(100%, 520px); padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.acct-grid .acct-alert, .acct-wrap > .acct-alert { width: min(100%, 980px); }
.acct-alert--ok { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent-line) 45%, transparent); color: var(--text); }
.acct-alert--err { background: color-mix(in srgb, var(--accent-3) 12%, transparent); border-color: color-mix(in srgb, var(--accent-3) 45%, transparent); color: var(--text); }
.acct-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acct-steps li { flex: 1; padding-top: 10px; border-top: 3px solid var(--surface-2); }
.acct-steps li.done { border-color: color-mix(in srgb, var(--accent-line) 55%, transparent); }
.acct-steps li.on { border-color: var(--accent-line); color: var(--text); }
.acct-grid { width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.acct-grid .acct-card { width: 100%; }
.acct-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.acct-id h1 { margin: 0; font-size: 1.8rem; }
.acct-id p { margin: 2px 0 0; font-size: 14px; }
.acct-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 20px; font-size: 14px; }
.acct-dl dt { color: var(--muted); }
.acct-dl dd { margin: 0; }
.h-sm { font-size: 1.25rem; letter-spacing: -.03em; margin-bottom: 14px; }
.inline-f { display: inline; margin: 0; }
.center-row { justify-content: center; }

/* Pricing: early-member discount */
.plan__was { font: 600 15px/1 var(--font-display); color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.plan__early { display: inline-block; margin-top: 6px; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.early-note { display: flex; align-items: center; gap: 10px; margin: -20px 0 28px; padding: 12px 16px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent-line) 55%, var(--border)); font-size: 13.5px; color: var(--muted); }
.early-note b { color: var(--accent-text); }

@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } .nav-account__name { display: none; } }
@media (max-width: 880px) { .nav-actions .nav-login { display: none; } }

/* Theme switch */
.theme-toggle { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.theme-toggle:hover { border-color: var(--accent-line); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, transform .45s var(--ease); }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .theme-toggle .i-moon, :root:not([data-theme]) .theme-toggle .i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
.theme-anim, .theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

/* Light mode touches */
:root[data-theme="light"] .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); }
:root[data-theme="light"] .orb--a { opacity: .12; }
:root[data-theme="light"] .btn--primary { box-shadow: inset 0 0 0 1px rgb(20 16 10 / .08); }
:root[data-theme="light"] .btn--primary:hover { box-shadow: inset 0 0 0 1px rgb(20 16 10 / .08), 0 14px 30px -14px rgb(90 140 0 / .55); }
:root[data-theme="light"] .logo-mark { box-shadow: inset 0 0 0 1px rgb(20 16 10 / .08); }
:root[data-theme="light"] .eyebrow::before, :root[data-theme="light"] .pill::before { background: var(--accent-text); box-shadow: none; }
:root[data-theme="light"] .wave i { background: var(--accent-text); }
:root[data-theme="light"] .split-bar span { background: linear-gradient(90deg, var(--accent-text), var(--accent)); }
:root[data-theme="light"] .art .d1 { box-shadow: none; }
:root[data-theme="light"] .cta-card__glow { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%); }
:root[data-theme="light"] .plan__ribbon { box-shadow: inset 0 0 0 1px rgb(20 16 10 / .08); }
:root[data-theme="light"] body.has-grain::before { opacity: .02; }
:root[data-theme="light"] .modal__backdrop { background: rgb(30 24 50 / .45); }

/* Focus */
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .plat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid, .earn-grid, .faq-grid, .mt-grid, .form-grid, .gen-card { grid-template-columns: 1fr; gap: 40px; }
  .gen-card { gap: 0; }
  .hero-visual { min-height: 0; padding: 10px 0 20px; }
  .mt-grid--rev .mt-media { order: 0; }
  .faq-grid { gap: 32px; }
}
@media (max-width: 880px) {
  .nav-wrap { grid-template-columns: auto 1fr; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 4px; padding: 14px 20px 24px; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 13px 4px; font-size: 16px; color: var(--text); }
  .nav .nav-mobile-only { display: block; }
  .nav .nav-cta-mobile { display: flex; margin-top: 10px; padding: 0 20px; min-height: 48px; font-size: 15px; color: var(--on-accent); }
  .nav-cta { display: none; }
  .nav-actions { gap: 8px; }
  .burger { display: block; }
  .foot-wrap { grid-template-columns: 1fr; justify-items: start; }
  .foot-copy { text-align: left; }
  .foot-links { justify-self: start; }
  .foot-social, .foot-legal { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .marquee { flex-direction: column; align-items: stretch; gap: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .marquee__inner { flex-wrap: wrap; justify-content: flex-start; gap: 14px 26px; }
  .is-animated .marquee__inner { flex-wrap: nowrap; }
  .float-card--dest { top: 0; right: 0; }
  .float-card--stat { left: 0; bottom: 8%; }
  .float-card { padding: 10px 12px; }
  .float-card__value { font-size: 24px; }
  .wave { bottom: 2%; }
  .price-head { align-items: flex-start; }
  .split-card, .compare, .form-card { padding: 24px 18px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .faq__a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ── Promotions from the app (Admin → Sign-ups & Promotions) ───────────── */
.promo-theme-early, .promo-theme-minimal { --pt: var(--accent); --pt-ink: var(--on-accent); --pt-text: var(--accent-text); }
.promo-theme-launch  { --pt: #8b5cf6; --pt-ink: #fff; --pt-text: #a78bfa; }
.promo-theme-sale    { --pt: #ef4444; --pt-ink: #fff; --pt-text: #f87171; }
.promo-theme-event   { --pt: #f5b301; --pt-ink: #1a1300; --pt-text: #f5b301; }
.promo-theme-festive { --pt: #16a34a; --pt-ink: #fff; --pt-text: #4ade80; }
.promo-theme-closed  { --pt: var(--muted); --pt-ink: var(--bg); --pt-text: var(--muted); }
.announce.promo-bar { background: var(--pt); color: var(--pt-ink); }
.announce.promo-bar.promo-theme-festive { background: linear-gradient(90deg, #15803d, #16a34a 55%, #ca8a04); }
.announce.promo-bar.promo-theme-event { background: linear-gradient(90deg, #f5b301, #fbbf24 60%, #f59e0b); }
.promo-cd { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .16); font: 700 12px/1.4 var(--font-mono); letter-spacing: .02em; }
.promo-cd:empty { display: none; }
.promo-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -20px 0 28px; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; color: var(--text);
  background: linear-gradient(100deg, color-mix(in srgb, var(--pt) 16%, transparent), transparent 75%); border: 1px solid color-mix(in srgb, var(--pt) 45%, var(--border)); }
.promo-note > span:nth-child(2) { flex: 1; min-width: 200px; }
.promo-note a { color: var(--pt-text); font-weight: 700; }
.promo-note__ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--pt); color: var(--pt-ink); font-size: 14px; flex: none; }
.promo-note .promo-cd { background: color-mix(in srgb, var(--pt) 20%, transparent); color: var(--pt-text); }
.plan__deal { align-self: flex-start; margin: 0 0 10px; padding: 5px 9px; border-radius: 999px; font: 700 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--pt-text); background: color-mix(in srgb, var(--pt) 16%, transparent); border: 1px solid color-mix(in srgb, var(--pt) 50%, transparent); }
[data-interval="month"] [data-plan-interval="year"], [data-interval="year"] [data-plan-interval="month"] { display: none; }

/* ── Sign-up code (app accounts) + popups that always fit the screen (1.13.0) ── */
.code-box input { width: 100%; text-align: center; font: 700 30px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .42em; text-indent: .42em; padding: 14px 10px; border-radius: 14px; border: 1.5px dashed var(--border); background: var(--bg); color: var(--text); outline: none; font-variant-numeric: tabular-nums; }
.code-box input:focus { border-style: solid; border-color: var(--accent-line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.code-box input.is-bad { border-color: var(--accent-3); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.auth-mini { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent-text); cursor: pointer; }
.linkish:disabled { opacity: .5; cursor: default; }
.modal { padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.modal__card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; overflow-x: hidden; }
.auth__card { width: min(100%, 440px); }
@media (max-width: 480px) {
  .auth__card { padding: 24px 18px 18px; border-radius: 18px; }
  .auth__card h3 { font-size: 1.4rem; }
  .auth-nav .btn { padding-left: 12px; padding-right: 12px; }
}
@media (max-height: 760px) {
  .auth__card { padding-top: 22px; padding-bottom: 18px; }
  .auth__card h3 { font-size: 1.35rem; margin-bottom: 4px; }
  .auth__card .muted { font-size: 13px; margin-bottom: 8px; line-height: 1.45; }
  .auth-step { gap: 9px; }
  .auth-progress { margin-bottom: 12px; }
  .auth__card .eyebrow { margin-bottom: 6px; }
  .mc-field label { margin-bottom: 4px; }
  .mc-field input { padding: 10px 13px; }
  .auth-alt { margin-top: 10px; }
  .mail-art { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; margin-bottom: 6px; }
  .code-box input { font-size: 26px; padding: 11px 10px; }
  .perk--sm { padding: 6px 11px; }
  .ts-box { min-height: 0; }
  .modal__x { top: 10px; right: 10px; width: 32px; height: 32px; }
}
@media (max-height: 620px) {
  .auth__card .muted { display: none; }
  .auth__card [data-step="4"] .muted, .auth__card [data-view="forgot"] .muted { display: block; }
  .mail-art, .perk--sm { display: none; }
  .auth__card h3 { font-size: 1.2rem; }
  .pw-meter { margin-top: 5px; }
}
.auth-step--done b[data-sent-to] { word-break: break-all; }
@media (max-width: 360px) { .code-box input { font-size: 24px; letter-spacing: .3em; text-indent: .3em; } }
@media (max-height: 480px) {
  .modal__card.auth__card { padding: 14px 18px 12px; }
  .auth__card .eyebrow, .auth-progress { display: none; }
  .auth__card h3 { font-size: 1.1rem; margin-bottom: 0; padding-right: 36px; }
  .auth__card .mc-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .auth__card .field-msg:empty { display: none; }
  .auth-step { gap: 7px; }
  .auth__card .mc-form { gap: 8px; }
  .auth-alt { margin-top: 6px; font-size: 12.5px; }
  .auth__card [data-step="4"] .muted { margin: 0; }
  .code-box input { font-size: 22px; padding: 8px; }
  .mc-check { font-size: 12.5px; }
}

/* email / username already used (1.13.1) */
.mc-field input.is-bad { border-color: var(--accent-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 15%, transparent); }
.msg-login { color: var(--muted); }
.msg-login a { white-space: nowrap; }

/* ── Cookie choices banner (1.14.0) ── */
.cc { position: fixed; z-index: 95; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px));
  display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 18px 50px -12px rgb(0 0 0 / .45); max-height: calc(100dvh - 24px); overflow: auto; animation: rise .4s var(--ease); }
.cc[hidden] { display: none; }
.cc--bar { max-width: 1100px; margin: 0 auto; }
.cc--box { left: auto; width: min(420px, calc(100vw - 24px)); flex-direction: column; align-items: stretch; }
.cc__main { flex: 1 1 420px; min-width: 0; display: grid; gap: 10px; }
.cc__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cc__text b { color: var(--text); }
.cc__links a { color: var(--accent-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cc__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cc--box .cc__btns { justify-content: stretch; }
.cc--box .cc__btns .btn { flex: 1 1 auto; }
.cc__btns .btn { padding: 10px 16px; font-size: 14px; }
.cc__btns [hidden] { display: none; }
.cc__panel { display: grid; gap: 8px; }
.cc__panel[hidden] { display: none; }
.cc__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 14px; }
.cc__opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cc__opt b { display: block; color: var(--text); }
.cc__opt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cc__gpc { margin: 0; font-size: 12.5px; color: var(--muted); }
.cc.is-open { align-items: flex-end; }
@media (max-width: 640px) {
  .cc { padding: 14px; gap: 10px; border-radius: 16px; }
  .cc__btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cc__btns [data-cc-custom], .cc__btns [data-cc-save] { grid-column: 1 / -1; order: 2; }
  .cc__text { font-size: 13px; }
}
@media (max-height: 520px) { .cc__opt small { display: none; } }
.legal-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.legal-note a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
@media (max-height: 600px) {
  .cc { padding: 10px 12px; gap: 8px; }
  .cc__main { gap: 6px; }
  .cc__text { font-size: 12.5px; line-height: 1.45; }
  .cc__panel { gap: 5px; }
  .cc__opt { padding: 6px 10px; font-size: 13px; }
  .cc__opt small { font-size: 11px; line-height: 1.3; }
  .cc__btns .btn { padding: 8px 10px; font-size: 13px; }
}

/* pricing: payment note centered under the plans (1.14.1) */
.pricing-legal { max-width: 720px; margin: 26px auto 0; padding: 0 4px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.pricing-legal a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.pricing-legal a:hover { text-decoration: underline; }
@media (max-width: 640px) { .pricing-legal { font-size: 12.5px; margin-top: 18px; text-align: left; text-wrap: pretty; } }

/* comparison table: stacked rows on phones, no sideways scrolling (1.14.1) */
@media (max-width: 640px) {
  .compare { padding: 20px 16px 16px; }
  .compare .table-scroll { overflow: visible; }
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare td { padding: 0; border: 0; }
  .compare td:first-child { font-weight: 600; align-self: center; }
  .compare td:nth-child(2) { text-align: right; }
  .compare td.muted { grid-column: 1 / -1; font-size: 12px; }
  .compare td.muted::before { content: attr(data-label) ": "; color: var(--muted); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
}

/* Design v2 helpers that must stay hidden in v1 (2026.11) */
.hero-chips { display: none; }
.step-card__media { display: none; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; }

/* Comparison: "Miclody vs …" two cards (1.15.1) */
.vs { padding: clamp(24px, 3.4vw, 34px) clamp(18px, 3vw, 30px) clamp(20px, 2.6vw, 26px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.vs__title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 18px; }
.vs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vs__card { padding: 22px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.vs__card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.02em; color: var(--accent-text); }
.vs__card p { margin: 0; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.vs__note { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.vs__note a, .vs__after a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.vs__after { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.design-v2 .vs { border-color: #f1dede; box-shadow: 0 26px 60px -40px rgb(201 31 50 / .35); }
.design-v2 .vs__card { border-color: #f0dcdf; }
.design-v2 .vs__title { font-weight: 800; letter-spacing: -.045em; font-size: clamp(1.9rem, 3.2vw, 2.45rem); }
.design-v2 .vs__card h3 { font-weight: 700; color: var(--accent-text); font-size: 1.15rem; letter-spacing: -.015em; }
.design-v2[data-theme="dark"] .vs, .design-v2[data-theme="dark"] .vs__card { border-color: var(--border); box-shadow: none; }
@media (max-width: 640px) { .vs__grid { grid-template-columns: 1fr; } .vs__card { padding: 18px 16px; } .vs__card p { font-size: 14.5px; } }

/* Footer: brand · Explore · Legal columns (1.15.4) — replaces the long uppercase legal row */
.site-footer .foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr) minmax(0, 1.4fr); gap: 28px 40px; align-items: start; padding-block: 8px 4px; }
.foot-brand { display: grid; gap: 12px; justify-items: start; }
.foot-brand .foot-copy { text-align: left; margin: 0; max-width: 32ch; font-size: 13px; line-height: 1.6; }
.foot-brand .foot-social { grid-column: auto; justify-content: flex-start; }
.foot-h { margin: 2px 0 12px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-list { display: grid; gap: 9px; }
.foot-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.foot-list a { font-size: 13.5px; line-height: 1.35; color: color-mix(in srgb, var(--text) 82%, var(--muted)); text-decoration: none; text-transform: none; letter-spacing: 0; }
.foot-list a:hover { color: var(--accent-text); }
.design-v2 .foot-h { font: 800 11px/1 var(--font-display); letter-spacing: .18em; color: var(--accent-text); }
.design-v2 .foot-list a { font-size: 14px; }
@media (max-width: 880px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col--explore { grid-column: 1 / -1; }
  .foot-col--explore .foot-list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .foot-col--legal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer .foot-grid { gap: 24px; }
  .foot-col--legal { padding-top: 20px; border-top: 1px solid var(--line); }
  .foot-col--explore .foot-h { display: none; }
  .foot-list--2 { column-gap: 16px; row-gap: 11px; }
  .foot-list a { font-size: 13.5px; }
}
