/* ── VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --bg: #080d1a;
  --surface: #111827;
  --surface-2: #1a2238;
  --surface-3: #1e2940;
  --text: #e8edf7;
  --muted: #8a97b4;
  --accent: #4f8aff;
  --accent-2: #30cfc0;
  --accent-glow: rgba(79, 138, 255, 0.15);
  --border: #212d45;
  --border-2: #2c3c5a;
  --ok: #3ecf8e;
  --bad: #ff6b6b;
  --gold: #f5c842;
  --orange: #ff9f43;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.45);
}

/* ── LIGHT THEME ────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --surface-3: #e4e9f4;
  --text: #111827;
  --muted: #5a6480;
  --accent: #3b72f0;
  --accent-2: #0f9e8e;
  --accent-glow: rgba(59, 114, 240, 0.1);
  --border: #dde3f0;
  --border-2: #c6cedf;
  --ok: #1aaa6b;
  --bad: #e03535;
  --gold: #d4a800;
  --orange: #e07800;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 32px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] body {
  background: var(--bg);
}
[data-theme="light"] .topbar {
  background: rgba(244, 246, 251, 0.92);
  border-bottom-color: var(--border);
}
[data-theme="light"] .trust-strip,
[data-theme="light"] .section-how {
  background: var(--surface-2);
}
[data-theme="light"] .footer {
  background: var(--surface-2);
}
[data-theme="light"] .hero-stats { background: var(--border); }
[data-theme="light"] .stat-item { background: var(--surface); }
[data-theme="light"] .stat-item:hover { background: var(--surface-2); }
[data-theme="light"] .pc-head { background: var(--surface-2); }
[data-theme="light"] .form input[type="email"],
[data-theme="light"] .form input[type="password"],
[data-theme="light"] .form input[type="text"],
[data-theme="light"] .form input:not([type="checkbox"]) {
  background: var(--surface-2);
}
[data-theme="light"] .copy-box input { background: var(--surface-2); }
[data-theme="light"] .prose pre { background: var(--surface-2); }
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}

/* ── THEME TOGGLE BUTTON ────────────────────────────────────────────────── */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); cursor: pointer; font-size: 0.9rem;
  padding: 0.3rem 0.6rem; line-height: 1; display: flex; align-items: center;
  gap: 0.3rem; transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .t-light { display: none; }
.theme-toggle .t-dark  { display: inline; }
[data-theme="light"] .theme-toggle .t-light { display: inline; }
[data-theme="light"] .theme-toggle .t-dark  { display: none; }

/* ── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { max-width: 480px; margin: 0 auto; }
.section { padding: 3rem 0; }
.section-gap { margin-top: 1.25rem; }
.page-head { margin-bottom: 1.5rem; }

/* ── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px) saturate(1.2);
  background: rgba(8, 13, 26, 0.9);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 1rem;
}
.brand {
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.95rem; transition: color .15s; }
.nav a:hover { color: var(--text); text-decoration: none; }
.inline { display: inline; margin: 0; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--accent) 0%, #7aa8ff 100%);
  color: #fff; font-weight: 600; font-size: 0.97rem;
  cursor: pointer; text-decoration: none; transition: filter .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); text-decoration: none; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: inherit; }
.link-btn:hover { color: var(--text); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero { padding: 4rem 0 2.5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  color: var(--accent-2); text-transform: uppercase;
  letter-spacing: 0.09em; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.6rem;
}
h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); line-height: 1.12; margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; line-height: 1.65; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-note { margin-top: 0.75rem; }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem 1rem; background: var(--surface);
  text-align: center; gap: 0.25rem;
  transition: background .15s;
}
.stat-item:hover { background: var(--surface-2); }
.stat-val { font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ── TRUST STRIP ─────────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.trust-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.trust-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.trust-item strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── SECTION HEAD ────────────────────────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font-size: 1.55rem; }
.section-head-link { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.section-head-link:hover { color: var(--accent); }

/* ── PRICING ROW (home preview) ─────────────────────────────────────────── */
.section-pricing-preview { padding-bottom: 2rem; }
.pricing-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-col {
  display: flex; flex-direction: column;
  padding: 1.1rem 1rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  gap: 0.5rem;
  transition: background .15s;
}
.pricing-col:last-child { border-right: none; }
.pricing-col:hover { background: var(--surface-2); }
.pricing-col-pop {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  position: relative;
}
.pricing-col-pop::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.pricing-col-period { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-2); font-weight: 700; }
.pricing-col-price { font-size: 1.45rem; font-weight: 800; }
.pricing-col-sub { font-size: 0.8rem; color: var(--muted); margin-top: -0.35rem; }
.pricing-col .plan-badge { margin: 0; }

@media (max-width: 900px) {
  .pricing-row { grid-template-columns: 1fr 1fr; }
  .pricing-col { border-bottom: 1px solid var(--border); border-right: none; }
  .pricing-col:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .pricing-row { grid-template-columns: 1fr; }
  .pricing-col:nth-child(odd) { border-right: none; }
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────── */
.section-how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.how-step { display: flex; gap: 0.85rem; }
.how-num {
  width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-glow); border: 1.5px solid var(--accent);
  color: var(--accent); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.how-step strong { display: block; margin-bottom: 0.35rem; font-size: 0.97rem; }
.how-step p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

@media (max-width: 860px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .how-steps { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.section-faq {}
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: 0.97rem;
  list-style: none; user-select: none;
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0 0 1rem; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ── CTA SECTION ─────────────────────────────────────────────────────────── */
.section-cta { padding: 3rem 0; }
.cta-box {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.cta-box h2 { margin: 0 0 0.5rem; }
.cta-box p { max-width: 45ch; margin: 0 auto 1.5rem; }
.cta-box .hero-actions { justify-content: center; }

/* ── PLAN CARDS (pricing table on /plans) ───────────────────────────────── */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pc {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pc:hover { border-color: var(--border-2); box-shadow: var(--shadow); }

.pc-pop {
  border-color: rgba(255, 159, 67, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.15), var(--shadow);
}
.pc-best {
  border-color: rgba(245, 200, 66, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.15), var(--shadow);
}

.pc-head {
  padding: 1.25rem 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.pc-period {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2); font-weight: 700; margin: 0 0 0.25rem;
}
.pc-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.pc-price { font-size: 1.65rem; font-weight: 800; margin: 0; line-height: 1; }
.pc-permth { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0; }

.pc-features {
  list-style: none; padding: 1rem 1.1rem; margin: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
  flex: 1;
}
.pc-features li { font-size: 0.83rem; color: var(--muted); display: flex; gap: 0.4rem; align-items: flex-start; }
.fck { color: var(--ok); font-size: 0.85rem; flex-shrink: 0; margin-top: 0.05rem; }

.pc-desc {
  padding: 0 1.1rem 0.75rem;
  font-size: 0.82rem; color: var(--muted); margin: 0;
  line-height: 1.5;
}
.pc-cta { padding: 1rem 1.1rem 1.1rem; }
.pc-cta .btn, .pc-cta .btn-outline { width: 100%; }
.pc .plan-badge { margin-bottom: 0.5rem; }

@media (max-width: 1050px) { .pricing-table { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .pricing-table { grid-template-columns: 1fr; } }

/* ── PLAN BADGE ──────────────────────────────────────────────────────────── */
.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  width: fit-content;
}
.plan-badge-popular { background: rgba(255,159,67,0.18); color: #ffb060; }
.plan-badge-best    { background: rgba(245,200,66,0.16); color: #f5d060; }

/* ── FREE TRIAL BANNER ───────────────────────────────────────────────────── */
.free-trial-banner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(79,138,255,0.08) 0%, rgba(79,138,255,0.04) 100%);
  border: 1px solid rgba(79,138,255,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.free-trial-icon { font-size: 1.5rem; flex-shrink: 0; }
.free-trial-banner > div { flex: 1; min-width: 0; }
.free-trial-banner strong { font-size: 0.97rem; }

/* ── ALL FEATURES ────────────────────────────────────────────────────────── */
.all-features {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.all-features h3 { margin: 0 0 1rem; font-size: 1rem; }
.features-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.features-grid li { display: flex; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.feat-check { color: var(--ok); flex-shrink: 0; }

@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* ── PAYMENT NOTE ────────────────────────────────────────────────────────── */
.payment-note { border-top: 1px solid var(--border); padding-top: 1rem; }

/* ── CARD (generic) ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.highlight { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }

/* ── CARDS 3 ─────────────────────────────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ── FORMS ───────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.form-card { padding: 1.75rem; }
.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.form input[type="email"],
.form input[type="password"],
.form input[type="text"],
.form input:not([type="checkbox"]) {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: rgba(0,0,0,0.3);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  min-height: 46px;
  transition: border-color .15s;
}
.form input:focus { outline: none; border-color: var(--accent); }
.form input::placeholder { color: #5a6880; }
.form .btn-sm { margin-top: 0.25rem; }

/* ── STATS DL ────────────────────────────────────────────────────────────── */
.stats { display: grid; gap: 0.65rem; margin: 0; }
.stats div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.45rem; }
.stats dt { color: var(--muted); margin: 0; }
.stats dd { margin: 0; font-weight: 600; }

/* ── COPY BOX ────────────────────────────────────────────────────────────── */
.copy-box { display: flex; gap: 0.5rem; margin: 0.75rem 0; }
.copy-box input {
  flex: 1; min-width: 0; padding: 0.7rem 0.8rem; border-radius: 10px;
  border: 1px solid var(--border-2); background: rgba(0,0,0,0.3); color: var(--text);
}

/* ── ALERTS ──────────────────────────────────────────────────────────────── */
.alert { border-radius: 12px; padding: 0.85rem 1rem; margin: 1rem auto; }
.alert-error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: #ffc9c9; }
.alert-ok    { background: rgba(62,207,142,0.1);  border: 1px solid rgba(62,207,142,0.3);  color: #c7f5df; }

/* ── UTILITY ─────────────────────────────────────────────────────────────── */
.muted  { color: var(--muted); }
.small  { font-size: 0.86rem; }
.ok     { color: var(--ok); }
.bad    { color: var(--bad); }
.actions-row, .plan-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Happ official download links */
.happ-dl-warn { margin: 0 0 1rem; }
.happ-dl-grid {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.happ-dl-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,0,0,0.15);
}
.happ-dl-platform {
  min-width: 7.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.happ-dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 520px) {
  .happ-dl-item { flex-direction: column; align-items: flex-start; }
  .happ-dl-platform { min-width: unset; }
}

.inline-form { display: inline-block; margin-left: 0.5rem; vertical-align: middle; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.75rem; font-weight: 700; }

/* ── PROSE ───────────────────────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose.legal h2 { margin-top: 1.75rem; font-size: 1.15rem; }
.prose pre {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  padding: 0.85rem 1rem; border-radius: 10px; overflow: auto;
}
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1rem; color: var(--muted); line-height: 1.45; }
.checkbox input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; min-height: unset; }

/* ── STEPS (legacy) ──────────────────────────────────────────────────────── */
.steps { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.steps li { margin: 0.45rem 0; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem; color: var(--muted);
  background: var(--surface);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-note { max-width: 720px; }

/* ── MISC ────────────────────────────────────────────────────────────────── */
.gmail-notice { border-color: rgba(79,138,255,0.35); }
.payment-banner-section { padding-top: 0; padding-bottom: 1rem; }
.payment-banner { display: flex; justify-content: center; }
.payment-banner img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.trial-note { padding: 0.85rem 1rem; }
.plan-meta { padding-left: 1.1rem; color: var(--muted); }

/* ── PLAN PICKER (pp-*) ──────────────────────────────────────────────────── */
.pp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 1050px) { .pp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .pp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px)  { .pp-grid { grid-template-columns: 1fr; } }

.pp-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  gap: 0;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  cursor: default;
}
.pp-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.pp-popular {
  border-color: rgba(255,159,67,0.5);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px rgba(255,159,67,0.1), var(--shadow);
}
.pp-popular::before {
  content: ''; display: block; height: 3px; margin: -1.1rem -1.1rem 1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.pp-best {
  border-color: rgba(245,200,66,0.5);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px rgba(245,200,66,0.1), var(--shadow);
}
.pp-best::before {
  content: ''; display: block; height: 3px; margin: -1.1rem -1.1rem 1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--gold), #ffe066);
}
.pp-period { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-2); font-weight: 700; margin: 0 0 0.3rem; }
.pp-price  { font-size: 1.65rem; font-weight: 900; margin: 0 0 0.15rem; letter-spacing: -0.02em; }
.pp-permth { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.75rem; min-height: 1.2em; }
.pp-features {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-direction: column; gap: 0.3rem; flex: 1;
}
.pp-features li { font-size: 0.8rem; color: var(--muted); }
.pp-btn { width: 100%; justify-content: center; font-size: 0.88rem; }
.pp-card .plan-badge { margin-bottom: 0.6rem; }

/* RU routing explainer (account) */
.routing-ru-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 640px) { .routing-ru-grid { grid-template-columns: 1fr; } }
.routing-ru-label {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.routing-ru-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}
.routing-ru-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.routing-ru-details summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}
.routing-ru-steps {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

/* ── CALCULATOR (ctr-*) — REDESIGNED ────────────────────────────────────── */
.ctr-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (max-width: 860px) { .ctr-layout { grid-template-columns: 1fr; } }

.ctr-section { margin-bottom: 2rem; }
.ctr-label {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); margin: 0 0 0.85rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.ctr-label-hint {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 0.78rem; color: var(--ok); opacity: 0.8;
}

/* Slider */
.ctr-slider-wrap { margin-bottom: 0.75rem; }
.ctr-slider-row  { display: flex; align-items: center; gap: 0.75rem; }
.ctr-slider-min, .ctr-slider-max { font-size: 0.8rem; color: var(--muted); flex-shrink: 0; width: 1.5rem; }
.ctr-slider-max { text-align: right; }
.ctr-slider {
  flex: 1; height: 6px; appearance: none;
  background: var(--border-2); border-radius: 999px; cursor: pointer; border: none;
  accent-color: var(--accent);
}
.ctr-slider-val {
  text-align: center; font-size: 1.4rem; font-weight: 800; margin-top: 0.5rem;
  color: var(--text);
}

/* Months chips */
.ctr-months-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ctr-mc {
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1.5px solid var(--border-2); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 0.85rem;
  transition: all .15s;
}
.ctr-mc:hover  { border-color: var(--accent); color: var(--text); }
.ctr-mc.active { border-color: var(--accent); background: var(--accent-glow); color: var(--text); font-weight: 600; }

/* Plans table */
.ctr-plans-table { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ctr-plans-head {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  padding: 0.5rem 0.85rem; background: var(--surface-2);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.ctr-plan-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  padding: 0.65rem 0.85rem; font-size: 0.88rem;
  border-bottom: 1px solid var(--border); align-items: center;
  transition: background .15s;
}
.ctr-plan-row:last-child { border-bottom: none; }
.ctr-plan-row.active { background: rgba(79,138,255,0.07); }
.ctr-pr-name  { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.ctr-pr-badge { background: linear-gradient(135deg, var(--orange), var(--gold)); color: #000; font-size: 0.66rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; }
.ctr-pr-price { font-weight: 700; }
.ctr-pr-permth { color: var(--muted); font-size: 0.82rem; }
.ctr-pr-save   { font-size: 0.8rem; }
@media (max-width: 540px) {
  .ctr-plans-head { display: none; }
  .ctr-plan-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .ctr-pr-save { display: none; }
}

/* Summary */
.ctr-right { position: sticky; top: 80px; }
.ctr-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
}
.ctr-sum-title {
  margin: 0 0 1rem; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
}
.ctr-sum-block { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.ctr-sum-lbl   { font-size: 0.82rem; color: var(--muted); }
.ctr-sum-old   { font-size: 0.95rem; color: var(--muted); text-decoration: line-through; }
.sum-plan-breakdown { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.5rem 0; }
.sum-plan-line {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text);
}
.ctr-savings-badge {
  display: inline-block; margin: 0.5rem 0;
  background: rgba(62,207,142,0.1); border: 1px solid rgba(62,207,142,0.3);
  color: var(--ok); border-radius: 999px; padding: 0.25rem 0.7rem;
  font-size: 0.8rem; font-weight: 700;
}
.ctr-sum-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.5rem;
}
.ctr-sum-lbl-lg { font-size: 0.88rem; color: var(--muted); }
.ctr-sum-total  { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.ctr-sum-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.85rem 0;
}
.ctr-metric { background: var(--surface-2); border-radius: 10px; padding: 0.6rem 0.75rem; }
.ctr-metric-val { display: block; font-size: 1.05rem; font-weight: 800; }
.ctr-metric-lbl { font-size: 0.75rem; color: var(--muted); }
.ctr-sum-features { font-size: 0.8rem; color: var(--ok); margin: 0 0 1rem; line-height: 1.8; }
.ctr-pay-btn { width: 100%; justify-content: center; }
.ctr-sum-note { margin-top: 0.75rem; line-height: 1.55; }
.ctr-disclaimer { margin-top: 1rem; }

/* ── CALCULATOR ──────────────────────────────────────────────────────────── */

/* legacy plan cards (still used in home.html inline block) */
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (max-width: 860px) { .ctr-layout { grid-template-columns: 1fr; } }

/* Left column sections */
/* ── CALCULATOR ──────────────────────────────────────────────────────────── */

/* legacy plan cards (still used in home.html inline block) */
.cards-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card-popular { border-color: rgba(255,159,67,0.45); }
.plan-card-best    { border-color: rgba(245,200,66,0.45); }
.plan-period {
  margin: 0; color: var(--accent-2); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.plan-name    { margin: 0.15rem 0 0; font-size: 1.1rem; }
.plan-subtitle { margin: -0.3rem 0 0.6rem; color: var(--muted); font-size: 0.88rem; }
.plan-card .price { font-size: 1.5rem; font-weight: 800; margin: 0.3rem 0 0.4rem; }
.plan-card .btn { margin-top: auto; width: fit-content; }

/* ── STORE HOME (Cat-style) ─────────────────────────────────────────────── */
.hero-store {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent 70%);
}
.hero-store-inner { max-width: 720px; margin: 0 auto; }
.hero-store h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin: 0.5rem 0 1rem; }
.hero-actions-center { justify-content: center; }
.eyebrow-live {
  display: inline-block;
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: var(--ok);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.section-features { padding-top: 0; padding-bottom: 2rem; }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.feature-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.feature-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.section-pwa { padding-top: 0; padding-bottom: 2.5rem; }
.pwa-hint {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.pwa-hint p { margin: 0; font-size: 0.9rem; }
