/* Motion Plays marketing site. Plain CSS, no build step. */

@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('assets/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('assets/fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('assets/fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('assets/fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #120c2e;
  --bg-2: #1a1140;
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1ff;
  --muted: #b9b0dd;
  --violet: #7c4dff;
  --magenta: #c13cff;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --orange: #ffa51f;
  --ink: #3a2a6b;
  --radius: 22px;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 800; }
.skip:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(18, 12, 46, 0.72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 28px; font-weight: 700; font-size: 16px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink);
  background: linear-gradient(180deg, #ffe066, var(--orange));
  box-shadow: 0 6px 0 #c77a00, 0 14px 28px rgba(255, 165, 31, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #c77a00; }
.btn-small { padding: 10px 20px; font-size: 16px; box-shadow: 0 4px 0 #c77a00; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px;
  border-radius: 16px; text-decoration: none; background: #fff; color: var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.store:hover { transform: translateY(-3px); }
.store i { font-style: normal; font-size: 30px; line-height: 1; }
.store span { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; display: block; }
.store small { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; color: #6d5fa3; }
.cta-note { margin: 14px 0 0; font-size: 14px; color: #bdb3e8; }

/* The platform row sits BELOW the hero grid, not inside the copy column.
   The copy column is only ~570px, which cannot hold four full-size badges on
   one line; the full-width wrap is 1160px, which holds them comfortably at
   their normal size. Putting them here is what lets the row be one line AND
   keep the weight a primary download CTA deserves.

   nowrap down to 900px; below that it wraps, because four badges cannot share
   a phone's width without illegible type or a sideways scroll, and a
   horizontal page scroll is the worse outcome. */
.platform-strip { grid-column: 1 / -1; margin-top: 44px; }
.cta-row.platforms { flex-wrap: nowrap; gap: 14px; }
.store.is-soon { opacity: 0.72; }
.store.is-soon:hover { transform: none; }
@media (max-width: 900px) {
  .cta-row.platforms { flex-wrap: wrap; justify-content: center; }
  .platform-strip { margin-top: 32px; }
}
.cta-row.center + .cta-note { text-align: center; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: radial-gradient(120% 90% at 80% 0%, #3b1d8f 0%, transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.blob-a { width: 420px; height: 420px; background: var(--magenta); top: -120px; left: -100px; animation: drift 16s ease-in-out infinite alternate; }
.blob-b { width: 360px; height: 360px; background: var(--pink); bottom: -140px; right: 8%; animation: drift 20s ease-in-out infinite alternate-reverse; }
.blob-c { width: 260px; height: 260px; background: #3b82f6; top: 30%; right: -80px; opacity: 0.35; animation: drift 18s ease-in-out infinite alternate; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 15px; color: #e4dcff; }
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); margin: 20px 0 18px; letter-spacing: -0.5px; }
.grad { background: linear-gradient(90deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 34em; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: #d9d0ff; font-weight: 700; font-size: 15px; }

/* phone mockup */
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.phone {
  position: relative; width: min(520px, 100%); aspect-ratio: 19.5 / 9; padding: 12px; border-radius: 44px;
  background: linear-gradient(145deg, #2b2060, #0c0722); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transform: rotate(-4deg); animation: bob 6s ease-in-out infinite;
}
.phone::before { content: ''; position: absolute; left: 14px; top: 50%; width: 8px; height: 56px; border-radius: 8px; background: #000; transform: translateY(-50%); opacity: 0.7; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #9bdcff; }
/* pan-y, not none: a horizontal drag steers the demo while a vertical swipe
   still scrolls the page, so the hero is not a scroll trap on a phone. */
.screen canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: ew-resize; }
.screen canvas:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.hud { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.pill { background: rgba(255, 255, 255, 0.94); color: var(--ink); padding: 4px 14px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: clamp(12px, 2.2vw, 18px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1); }
.prompt { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); border: 3px solid var(--pink); padding: 2px 16px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: clamp(12px, 2.4vw, 20px); }

.chip { position: absolute; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); animation: bob 5s ease-in-out infinite; white-space: nowrap; }
.chip-a { left: -2%; top: 6%; animation-delay: 0.3s; }
.chip-b { right: -2%; top: 24%; animation-delay: 1.1s; }
.chip-c { left: 6%; bottom: 2%; animation-delay: 1.9s; }

/* ----------------------------------------------------------------- strip */
.strip { background: linear-gradient(90deg, var(--violet), var(--magenta), var(--pink)); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; }
.strip-inner div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; color: #fff; }
.strip-inner span { grid-row: span 2; font-size: 34px; }
.strip-inner b { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.strip-inner small { font-size: 14px; opacity: 0.9; font-weight: 700; }

/* -------------------------------------------------------------- sections */
.section { padding: 104px 0; }
.section-tint { background: linear-gradient(180deg, var(--bg-2), #170f3a); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2, .privacy h2, .final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.15rem; }
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; color: var(--yellow); margin-bottom: 12px; }
.kicker.light { color: #fff; opacity: 0.85; }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 36px 28px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.num { position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; box-shadow: 0 4px 0 #c77a00; }
.step-icon { font-size: 46px; margin-bottom: 10px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ----------------------------------------------------------------- games */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tabs button { font: 700 17px var(--display); color: var(--text); padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.tabs button:hover { transform: translateY(-2px); }
.tabs button[aria-selected='true'] { background: linear-gradient(135deg, var(--violet), var(--pink)); border-color: transparent; box-shadow: 0 8px 22px rgba(193, 60, 255, 0.4); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards[hidden] { display: none; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s; animation: pop 0.45s both; }
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent); }
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card-art { width: 76px; height: 76px; display: grid; place-items: center; font-size: 42px; border-radius: 22px; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 32%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.card h3 { font-size: 23px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 16px; }
.more { text-align: center; margin-top: 40px; color: var(--muted); }

/* -------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.f-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 30px; border-radius: 18px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(124, 77, 255, 0.5), rgba(255, 79, 163, 0.5)); }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; }

/* --------------------------------------------------------------- privacy */
.privacy { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 52px; border-radius: 34px; background: linear-gradient(135deg, var(--violet), var(--magenta) 55%, var(--pink)); box-shadow: 0 30px 70px rgba(124, 77, 255, 0.35); }
.privacy-icon { width: 140px; height: 140px; display: grid; place-items: center; font-size: 70px; border-radius: 40px; background: rgba(255, 255, 255, 0.18); }
.privacy p { margin-top: 14px; font-size: 1.1rem; max-width: 40em; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; }
.checks li { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-weight: 800; font-size: 15px; }
.checks li::before { content: '✓ '; }
.privacy .privacy-link { margin-top: 22px; font-family: var(--display); font-weight: 700; }
.privacy-link a { color: #fff; text-underline-offset: 4px; }

/* ----------------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.plans-4 { grid-template-columns: repeat(4, 1fr); max-width: 1160px; gap: 18px; }
.plans-4 .plan { display: flex; flex-direction: column; padding: 28px 24px; }
.plans-4 .plan ul { flex: 1; margin-bottom: 22px; }
.plans-4 .plan .btn { align-self: stretch; text-align: center; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; margin: -6px 0 18px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan-best { border-color: var(--yellow); box-shadow: 0 20px 60px rgba(255, 210, 63, 0.25); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: #fff; }
.plan { position: relative; padding: 36px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { font-size: 30px; margin-bottom: 18px; }
.plan li { padding: 8px 0 8px 32px; position: relative; color: #e4dcff; font-weight: 700; }
.plan li::before { content: '✓'; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 13px; }
.plan-premium { background: linear-gradient(160deg, rgba(255, 210, 63, 0.22), rgba(255, 79, 163, 0.18)); border-color: rgba(255, 210, 63, 0.6); box-shadow: 0 20px 50px rgba(255, 165, 31, 0.18); }
.badge { display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #ffe066, var(--orange)); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 0 24px; transition: background 0.2s; }
.faq details[open] { background: rgba(255, 255, 255, 0.1); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; line-height: 1; color: var(--yellow); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); }

/* ----------------------------------------------------------------- final */
.final { position: relative; overflow: hidden; padding: 96px 0; text-align: center; background: radial-gradient(80% 120% at 50% 0%, #4a1fb0, transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.final-inner img { margin: 0 auto 22px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); animation: bob 5s ease-in-out infinite; }
.final-inner p { margin-top: 12px; color: var(--muted); font-size: 1.15rem; }

/* ---------------------------------------------------------------- footer */
.footer { background: #0c0722; border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer img { height: 36px; width: auto; }
.footer nav { display: flex; gap: 24px; font-weight: 700; font-size: 15px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: #fff; }
.footer p { color: #8479b8; font-size: 14px; }

/* ------------------------------------------------------------- animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: 0.2s; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .plans-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  /* Stacked, the DOM order would read copy -> phone -> download row, which puts
     the primary CTA below the fold on a phone. Order it back above the phone. */
  .hero-copy { order: 1; }
  .platform-strip { order: 2; margin-top: 28px; }
  .hero-art { order: 3; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-art { margin-top: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: 1fr; text-align: center; padding: 38px 26px; }
  .privacy-icon { margin: 0 auto; }
  .checks { justify-content: center; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .chip { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* The header keeps only the logo on a phone: the nav links are already
     hidden here, and the hero's platform row is the download CTA, so a second
     "Get the app" in the bar is a duplicate of something a thumb-scroll away. */
  .nav-inner .btn-small { display: none; }
  .nav-inner { justify-content: center; }

  /* Phone-sized platform buttons. At full size only one fits per row, which
     turns four of them into a four-row block that pushes the page content
     down; compact, two sit side by side. */
  .cta-row.platforms { gap: 10px 12px; }
  .store { padding: 8px 14px; gap: 8px; border-radius: 14px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.28); }
  .store i { font-size: 20px; }
  .store span { font-size: 16px; }
  .store small { font-size: 10.5px; }

  /* Footer links as a two-column list rather than one long centred run. */
  .footer nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px 32px;
    justify-content: center;
    justify-items: start;
    text-align: left;
  }
}

/* ----------------------------------------------------------------- legal */
.nav-links a[aria-current='page'] { color: #fff; }
.legal-page { padding: 64px 0 96px; background: linear-gradient(180deg, var(--bg-2), var(--bg) 420px); }
.legal { width: min(820px, 100% - 48px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 8px; }
.effective { color: var(--muted); font-weight: 700; margin-bottom: 28px; }
.legal-intro p, .legal section p, .legal section li { color: #dcd5f7; }
.legal-intro p + p, .legal section p + p { margin-top: 14px; }
.legal-intro { padding: 22px 26px; margin-bottom: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc { margin-bottom: 40px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-size: 20px; margin-bottom: 12px; color: var(--yellow); }
.toc ol { list-style: decimal; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 16px; }
.toc li { padding: 2px 0; break-inside: avoid; }
.toc a { color: #dcd5f7; text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }
.legal section { margin-top: 40px; scroll-margin-top: 90px; }
.legal section h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 14px; color: #fff; }
.legal section ul { list-style: disc; padding-left: 24px; margin-top: 14px; display: grid; gap: 10px; }
.legal section li::marker { color: var(--pink); }
.legal mark { background: rgba(255, 210, 63, 0.22); color: var(--yellow); padding: 1px 6px; border-radius: 6px; font-weight: 800; }
.legal-switch { margin-top: 56px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.legal-switch a { color: var(--yellow); text-decoration: none; }
.legal-switch a:hover { text-decoration: underline; }
@media (max-width: 720px) { .toc ol { columns: 1; } }

/* --------------------------------------------------------------- account */
.account-page { padding: 56px 0 96px; background: linear-gradient(180deg, var(--bg-2), var(--bg) 420px); min-height: 70vh; }
.account { width: min(900px, 100% - 48px); display: grid; gap: 20px; }
.account h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.account h2 { font-size: 24px; margin-bottom: 8px; }
.account .muted { color: var(--muted); }
.panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.panel.danger { border-color: rgba(255, 93, 108, 0.5); }
.auth { max-width: 520px; margin-inline: auto; width: 100%; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.form { display: grid; gap: 14px; }
.form label, .auth label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: #dcd5f7; }
.account input { background: rgba(0, 0, 0, 0.3); color: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; }
.account input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.form-error { color: #ff8a95; font-weight: 700; margin: 0; }
.fine { font-size: 13.5px; color: var(--muted); }
.big { font-family: var(--display); font-size: 26px; font-weight: 700; }
.banner { padding: 14px 18px; border-radius: 14px; font-weight: 700; margin: 0; }
.banner.ok { background: rgba(61, 220, 151, 0.16); border: 1px solid rgba(61, 220, 151, 0.5); }
.banner.warn { background: rgba(255, 210, 63, 0.14); border: 1px solid rgba(255, 210, 63, 0.5); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.list { display: grid; gap: 8px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); display: grid; gap: 8px; align-content: start; }
.plan-card.best { border-color: var(--yellow); background: rgba(255, 210, 63, 0.08); }
.plan-card h3 { font-size: 22px; }
.plan-card .price { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.plan-card .price small { font-size: 15px; color: var(--muted); }
.plan-card .btn { margin-top: 8px; width: 100%; font-size: 16px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-danger { background: #ff5d6c; color: #fff; box-shadow: 0 5px 0 #b3303d; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 999px; font: 700 16px var(--display); }
.btn, .btn-ghost { cursor: pointer; font-family: var(--display); }
button.btn { border: 0; }
.tabs button { cursor: pointer; }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
