/* CheatHunterAC landing — graphite / silver palette matching the silk backdrop (site-shader.js) */
:root {
  --bg: #101011;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.14);
  --text: #f3f3f5;
  --muted: #a4a4ac;
  --faint: #88888f;
  --accent: #e4e6ea;
  --accent-2: #ffffff;
  --accent-deep: #9b9da4;
  --accent-soft-ink: #f3f3f5;
  --accent-grad: linear-gradient(90deg, #8e9097, #f3f3f5);
  --danger: #ff5c5c;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); color-scheme: dark; }
body { min-height: 100vh; background: transparent; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--accent); color: #111113; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: -60px; left: 1rem; z-index: 3000; background: var(--accent); color: #111113; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.w-100 { width: 100%; }
.muted { color: var(--muted); }
.accent { color: var(--accent-soft-ink); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 600; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ══════════ NAV ══════════ */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 500; padding: 0 1rem; pointer-events: none; }
.nav-pill { pointer-events: auto; max-width: 1060px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 8px 8px 8px 18px;
  background: rgba(16, 16, 18, 0.88); border: 1px solid var(--line); border-radius: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo-box { width: 30px; height: 30px; border-radius: 50%; background: url('assets/logo-64.png') center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-hi); }
.brand-text { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2px; margin-left: 1.2rem; }
.nav-link { position: relative; padding: 0.5rem 0.9rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.25s, background 0.25s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.lang-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; }
.lang-btn { font-size: 0.75rem; font-weight: 700; color: var(--faint); padding: 0.3rem 0.6rem; border-radius: 9px; min-height: 40px; min-width: 38px; transition: color 0.2s, background 0.2s; }
.lang-btn.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.btn-login { display: inline-flex; align-items: center; gap: 0.5rem; height: 40px; padding: 0 1rem; border-radius: 13px; border: 1px solid var(--line-hi); background: var(--surface-2); font-size: 0.9rem; font-weight: 700; transition: border-color 0.25s, background 0.25s; }
.btn-login svg { color: var(--accent); width: 16px; height: 16px; }
.btn-login:hover { border-color: rgba(232, 234, 238, 0.45); background: #142033; }
.nav-burger { display: none; position: relative; width: 44px; height: 40px; border-radius: 13px; border: 1px solid var(--line-hi); background: var(--surface-2); }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav-burger span:first-child { top: 15px; } .nav-burger span:last-child { top: 23px; }
.nav.open .nav-burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* ══════════ BUTTONS ══════════ */
.btn-primary, .btn-ghost, .btn-solid { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; height: 54px; padding: 0 1.8rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; white-space: nowrap; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.btn-primary, .btn-solid { background: #f4f4f6; color: #111113; }
.btn-primary:hover, .btn-solid:hover { background: #fff; transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-hi); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: var(--surface-2); }
.btn-primary:active, .btn-ghost:active, .btn-solid:active { transform: scale(0.98); }
.btn-solid:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ══════════ HERO ══════════ */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6.5rem 1.5rem 4rem; position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* site-wide backdrop (site-shader.js, WebGL): full strength behind the hero, veiled further down via --dim from main.js.
   The gradient is the no-WebGL fallback. */
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(120, 140, 190, 0.12) 45%, transparent 60%), radial-gradient(70% 60% at 85% 10%, rgba(140, 140, 150, 0.16), transparent 70%), var(--bg); }
.site-bg::after { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); }
/* fine static film grain at full resolution over the smoke (the shader itself renders at half resolution) */
.site-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  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"); }
.site-shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.32) 0%, rgba(12, 12, 14, 0) 22%),
              radial-gradient(50% 30% at 50% 45%, rgba(12, 12, 14, 0.42), rgba(12, 12, 14, 0.22) 55%, transparent 100%); }
.hero > :not(.hero-bg) { position: relative; }
.hero-headline { text-shadow: 0 2px 30px rgba(0, 10, 30, 0.55); }
.hero-desc { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 2px 18px rgba(0, 10, 30, 0.7); }
.hero-desc { color: rgba(238, 238, 242, 0.78); }
@media (max-width: 700px) { .hero-bg::after { background: linear-gradient(180deg, rgba(12, 12, 14, 0.4) 0%, rgba(12, 12, 14, 0.52) 22%, rgba(12, 12, 14, 0.52) 46%, rgba(12, 12, 14, 0.2) 64%, rgba(12, 12, 14, 0.35) 100%); } }
.hero-badge { margin-bottom: 1.4rem; font-size: 0.95rem; font-weight: 500; color: rgba(238, 238, 242, 0.62); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); animation: rise 0.8s var(--ease) both; }
/* brand name as the hero title, slogan right under it */
.hero-brand { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 7.8vw, 6.2rem); line-height: 0.95; letter-spacing: -0.055em; color: #f6f6f8;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35); animation: brandIn 1.1s var(--ease) 0.1s both; }
.hero-brand .accent { color: inherit; }
@keyframes brandIn { from { opacity: 0; transform: translateY(0.15em); } }
.hero-slogan { margin-top: 1.3rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2.3vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; color: #ededf0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); text-wrap: balance; animation: rise 0.9s var(--ease) 0.35s both; }
.hero-headline { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 6.2vw, 5rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 1000px; text-wrap: balance; }
.hero-headline .line { display: block; }
.hero-headline .w { display: inline-block; animation: wordIn 0.9s var(--ease) both; animation-delay: calc(0.1s + var(--i) * 0.08s); }
.hero-headline .accent .w { color: var(--accent-soft-ink); }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.4em); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-desc { max-width: 31em; margin: 1.6rem auto 0; font-size: 1.08rem; line-height: 1.65; text-wrap: pretty; animation: rise 0.9s var(--ease) 0.5s both; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; animation: rise 0.9s var(--ease) 0.65s both; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.2); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.35); }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 3.4rem; animation: rise 0.9s var(--ease) 0.8s both; }
.hero-proof li { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; min-width: 150px; padding: 0.2rem 1.8rem; }
.hero-proof li + li { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.hero-proof b { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; color: #f6f6f8; font-variant-numeric: tabular-nums; }
.hero-proof b small { font-size: 0.7em; color: var(--accent-soft-ink); }
.hero-proof span { font-size: 0.82rem; color: rgba(238, 238, 242, 0.6); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

/* ══════════ SECTIONS ══════════ */
.section { padding: 7rem 0 0; }
.section-head { max-width: 900px; margin: 0 auto 3.5rem; }
.section-head p { max-width: 620px; margin-inline: auto; }
.section-head.center { text-align: center; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.section h2 .accent { color: inherit; }
main { counter-reset: sec; }
.section-head, .faq-head { counter-increment: sec; }
.section-head h2::before, .faq-head h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 1.1rem; font: 600 0.78rem/1 var(--font); letter-spacing: 0.24em; color: var(--accent); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.link { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(232, 234, 238, 0.3); transition: border-color 0.2s; }
.link:hover { border-color: var(--accent); }
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 40%), var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════ WHY US ══════════ */
.why-list { border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.2rem 2rem; align-items: start; padding: 2rem 1rem; border-bottom: 1px solid var(--line); transition: background 0.4s; }
.why-list li:hover { background: rgba(255, 255, 255, 0.015); }
.why-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); border: 1px solid var(--line-hi); transition: border-color 0.3s; }
.why-list li:hover .why-icon { border-color: rgba(232, 234, 238, 0.5); }
.why-list h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; padding-top: 0.55rem; }
.why-list p { color: var(--muted); font-size: 0.97rem; padding-top: 0.55rem; }

/* ══════════ STEPS ══════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: none; }
.step { padding: 2rem 1.8rem 2.2rem; transition: border-color 0.4s, transform 0.5s var(--ease); }
.step:hover { border-color: var(--line-hi); }
.step-num { display: block; font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(232, 234, 238, 0.55); margin-bottom: 2.4rem; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.step p { margin-top: 0.6rem; color: var(--muted); font-size: 0.93rem; }

/* ══════════ PRICING ══════════ */
.period-wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.period-selector { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line-hi); border-radius: 16px; background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.period-btn { padding: 0.55rem 1.1rem; border-radius: 12px; font-size: 0.88rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.25s, background 0.25s; }
.period-btn:hover { color: var(--text); }
.period-btn.active { color: #111113; background: #f4f4f6; box-shadow: none; }
.price-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 1.6rem 1.3rem 1.3rem; transition: transform 0.5s var(--ease), border-color 0.4s; }
.price-card:hover { border-color: var(--line-hi); }
.price-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; font-size: 0.95rem; font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
.price-val { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-amount { display: inline-block; }
.price-save { margin-top: 0.55rem; font-size: 0.8rem; color: var(--muted); }
.price-save b { margin-left: 0.3rem; padding: 0.12rem 0.45rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--accent-ink); background: rgba(232, 234, 238, 0.12); white-space: nowrap; }
.price-val[data-i18n="p_free"] { font-size: clamp(1.15rem, 1.6vw, 1.45rem); padding: 0.35em 0 0.6em; }
.price-suffix { display: block; margin-top: 0.35rem; font-family: var(--font); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.price-card ul { flex-grow: 1; display: flex; flex-direction: column; gap: 0.6rem; margin: 1.4rem 0 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.price-card li { position: relative; padding-left: 1.4rem; font-size: 0.87rem; color: var(--muted); line-height: 1.4; }
.price-card li::before { content: ''; position: absolute; left: 0; top: 0.12em; width: 14px; height: 14px; border-radius: 50%; background: rgba(232, 234, 238, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4e6ea' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 9px no-repeat; }
.price-card .btn-ghost, .price-card .btn-primary { height: 46px; padding: 0 1rem; font-size: 0.92rem; }
.price-card.featured { border-color: rgba(232, 234, 238, 0.45); background: var(--surface-2); }
.price-card.featured h3 { color: var(--text); }
.price-card.featured li { color: #d2d2d8; }
.price-badge { font-size: 0.68rem; font-weight: 700; color: var(--accent); border: 1px solid rgba(232, 234, 238, 0.4); padding: 0.15rem 0.5rem; border-radius: 999px; }

/* ══════════ FAQ ══════════ */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem 5rem; align-items: start; }
.faq-head p { margin-top: 1.2rem; color: var(--muted); max-width: 360px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item summary i { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-hi); transition: background 0.3s, border-color 0.3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { background: rgba(232, 234, 238, 0.1); border-color: rgba(232, 234, 238, 0.35); color: var(--accent); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-answer { padding: 0 3rem 1.6rem 0; animation: rise 0.45s var(--ease); }
.faq-answer p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.faq-answer .link { display: inline-block; margin-top: 0.8rem; font-size: 0.92rem; }

/* ══════════ CTA ══════════ */
.cta-section { padding-bottom: 6rem; }
.cta { overflow: hidden; text-align: center; padding: 4.5rem 2rem; }
.cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(60% 90% at 15% 0%, rgba(255, 255, 255, 0.07), transparent 70%), radial-gradient(50% 80% at 90% 100%, rgba(255, 255, 255, 0.035), transparent 70%); }
.cta h2 { position: relative; }
.cta p { position: relative; margin: 1rem auto 0; max-width: 480px; color: #d4d4da; }
.cta .hero-actions { position: relative; margin-top: 2.2rem; animation: none; }
.doc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.doc-links a { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.doc-links a:hover { color: var(--text); border-color: var(--line-hi); }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 300px; color: var(--muted); font-size: 0.92rem; }
.footer-col h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; margin-bottom: 0.65rem; font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--faint); }
.footer-bottom a:hover { color: var(--text); }

/* ══════════ MODALS (auth + checkout, driven by main.js) ══════════ */
.modal-bg { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(3, 4, 4, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-bg.active { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-hi); border-radius: var(--r-lg); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9); transform: translateY(14px) scale(0.97); transition: transform 0.45s var(--ease); }
.modal-bg.active .modal { transform: none; }
.modal-x { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 10; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 1.3rem; color: var(--muted); }
.modal-x:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.modal-image { display: none; }
.modal-form-container { padding: 2.8rem 2.2rem 2.4rem; }
.modal-form-container h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.modal-form-container .muted { font-size: 0.92rem; margin-bottom: 1.8rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.8rem; }
.auth-form input { width: 100%; min-height: 48px; padding: 0.8rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line-hi); background: #121214; color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s; }
.auth-form input::placeholder { color: var(--faint); }
.auth-form input:focus { outline: none; border-color: rgba(232, 234, 238, 0.6); }
.auth-error { min-height: 1.2rem; font-size: 0.84rem; color: var(--danger); }
.auth-form .btn-solid { height: 50px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: #121214; }
.auth-tabs button { min-height: 38px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 0.9rem; transition: background .2s, color .2s; }
.auth-tabs button.active { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.auth-tabs[hidden] { display: none; }
.auth-step { display: none; }
.auth-step.active { display: flex; animation: authIn .35s var(--ease); }
@keyframes authIn { from { opacity: 0; transform: translateY(6px); } }
.auth-step h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-step .muted { font-size: 0.9rem; margin: -0.35rem 0 0.6rem; }
.auth-step .muted b { color: var(--text); word-break: break-all; }
.auth-link { align-self: flex-start; padding: 0 0.1rem; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.auth-link:hover { color: var(--accent-soft-ink); }
.auth-link.center { align-self: center; }
.auth-link:disabled { opacity: .5; cursor: default; }
.auth-row { display: flex; justify-content: space-between; gap: 1rem; }
.auth-fine { font-size: 0.78rem; color: var(--faint); text-align: center; line-height: 1.5; }
.auth-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.auth-form input.code-input { text-align: center; font: 700 1.6rem/1 var(--display); letter-spacing: 0.5em; padding-left: 1.5em; }
/* six-cell code entry over one real input */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin: 0.2rem 0 0.1rem; }
.auth-form .otp input.code-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; font-size: 16px; cursor: text; }
.otp span { display: grid; place-items: center; height: 58px; border: 1px solid var(--line-hi); border-radius: 14px; background: #121214;
  font: 700 1.55rem var(--display); color: var(--text); transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.otp span.filled { border-color: rgba(232, 234, 238, 0.38); background: linear-gradient(180deg, rgba(232, 234, 238, 0.08), rgba(232, 234, 238, 0.02)); }
.otp span.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 234, 238, 0.16); transform: translateY(-1px); }
.otp span.active:empty::after { content: ''; width: 2px; height: 26px; border-radius: 1px; background: var(--accent); animation: otpCaret 1s steps(1) infinite; }
.otp.done span { border-color: rgba(232, 234, 238, 0.6); }
.otp.shake { animation: otpShake .38s; }
.otp.shake span { border-color: rgba(255, 92, 92, 0.6); }
@keyframes otpCaret { 50% { opacity: 0; } }
@keyframes otpShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.mail-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 0.2rem;
  background: rgba(232, 234, 238, 0.1); border: 1px solid rgba(232, 234, 238, 0.25); color: var(--accent-soft-ink); }
.mail-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 400px) { .otp { gap: 0.35rem; } .otp span { height: 50px; font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .otp.shake, .otp span.active:empty::after { animation: none; } }
.reset-more { display: flex; flex-direction: column; gap: 0.8rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.auth-field em { font-style: normal; font-weight: 500; color: var(--faint); }
.auth-hint { margin-top: -0.35rem; font-size: 0.78rem; color: var(--faint); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--faint); }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) { .modal-x { width: 44px; height: 44px; } }
.reset-more[hidden] { display: none; }
.auth-form .btn-solid:disabled { opacity: .65; cursor: progress; }

/* ── checkout (main.js: signed-in accounts only) ── */
.checkout-modal { max-width: 880px; }
.co { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.co-main { padding: 2.4rem 2.4rem 2.2rem; }
.co-side { display: flex; flex-direction: column; padding: 3.4rem 2.2rem 2rem; border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.co-kicker { font-size: 0.85rem; color: var(--muted); }
.co-plan { margin-top: 0.35rem; font: 700 2.1rem/1.05 var(--display); letter-spacing: -0.04em; }
.co-quota { margin-top: 0.55rem; color: var(--text); font-weight: 600; }
.co-features { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; }
.co-features li { position: relative; padding-left: 1.2rem; font-size: 0.88rem; color: var(--muted); }
.co-features li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.co-block { margin-top: 1.8rem; }
.co-label { display: block; margin-bottom: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--faint); }
.co-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.co-period { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line-hi); border-radius: var(--r-sm); text-align: left; transition: border-color 0.2s, background 0.2s; }
.co-period b { font-size: 0.92rem; }
.co-period span { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.co-period:hover { border-color: rgba(255, 255, 255, 0.3); }
.co-period.active { border-color: var(--text); background: rgba(255, 255, 255, 0.06); }
.co-period.active span { color: var(--text); }
.co-account { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.02); }
.co-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; font: 700 0.8rem var(--display); background: linear-gradient(135deg, #2a2a2e, #45454b); }
.co-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 0.92rem; }
.co-lines { display: grid; gap: 0.55rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.co-lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.co-lines dt { color: var(--muted); }
.co-lines dd { font-variant-numeric: tabular-nums; }
.co-lines [hidden] { display: none; }
.co-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.co-total span { color: var(--muted); font-weight: 600; }
.co-total strong { font: 700 2rem/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.co-once { margin-top: 0.4rem; font-size: 0.8rem; color: var(--faint); text-align: right; }
.co-promo { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.co-promo input { flex: 1; min-width: 0; height: 44px; padding: 0 0.9rem; border: 1px solid var(--line-hi); border-radius: var(--r-sm); background: #121214; color: var(--text); font: inherit; font-size: 0.9rem; text-transform: uppercase; }
.co-promo input::placeholder { text-transform: none; color: var(--faint); }
.co-promo input:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); }
.co-promo button { height: 44px; padding: 0 1rem; border: 1px solid var(--line-hi); border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 700; transition: border-color 0.2s, background 0.2s; }
.co-promo button:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.co-promo-msg { min-height: 1.3rem; margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.co-promo-msg.ok { color: #7fe3a0; }
.co-promo-msg.bad { color: #ff8d8d; }
.co-terms { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.6rem; font-size: 0.84rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.co-terms input { width: 17px; height: 17px; margin-top: 0.15rem; flex-shrink: 0; accent-color: #f4f4f6; }
.co-terms a, .co-fine a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.co-pay { width: 100%; height: 52px; margin-top: 1.2rem; gap: 0.4rem; }
.co-pay:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.co-notice { min-height: 1.2rem; margin-top: 0.65rem; text-align: center; font-size: 0.78rem; line-height: 1.45; color: var(--faint); }
.co-notice.bad { color: #ff8d8d; }
.co-fine { margin-top: auto; padding-top: 1.2rem; font-size: 0.76rem; line-height: 1.6; color: var(--faint); }
.auth-reason { margin-bottom: 1.2rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line-hi); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); font-size: 0.86rem; line-height: 1.5; color: var(--text); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .nav-burger { display: block; }
  .nav-pill { position: relative; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; flex-direction: column; gap: 2px; padding: 8px;
    background: rgba(18, 18, 20, 0.97); border: 1px solid var(--line-hi); border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 0.85rem 1rem; font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 2rem; }
  .why-list li { grid-template-columns: 56px 1fr; }
  .why-list p { grid-column: 2; padding-top: 0; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card.featured { grid-column: 1 / -1; order: -1; }
  .co { grid-template-columns: 1fr; }
  .co-side { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
}
@media (max-width: 560px) {
  .nav { top: 10px; padding: 0 0.6rem; }
  .nav-pill { padding: 6px 6px 6px 12px; gap: 0.5rem; }
  .brand-text { display: none; }
  .btn-login { padding: 0 0.8rem; }
  .hero { padding-top: 7rem; }
  .hero-actions > a { flex: 1 1 100%; }
  .hero-proof { gap: 0.45rem; margin-top: 2.4rem; }
  .hero-proof li { min-width: 0; flex: 1 1 30%; padding: 0.6rem 0.7rem; }
  .hero-proof b { font-size: 0.98rem; }
  .hero-proof span { font-size: 0.7rem; }
  .section { padding-top: 5rem; }
  .why-list li { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.6rem 0.25rem; }
  .why-list p { grid-column: auto; }
  .why-list h3, .why-list p { padding-top: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .period-btn { padding: 0.5rem 0.75rem; font-size: 0.82rem; }
  .faq-answer { padding-right: 0.5rem; }
  .cta { padding: 3rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .co-main, .co-side { padding: 1.6rem 1.3rem; }
  .co-periods { gap: 0.35rem; }
  .co-period { padding: 0.7rem 0.6rem; }
  .modal-form-container { padding: 2.4rem 1.4rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
