/* Apex Shop — storefront styles. Dark brand theme, mobile-first. */

:root {
  --bg: #070b1a;
  --bg-2: #0b1124;
  --surface: #0f1730;
  --surface-2: #141e3d;
  --line: rgba(148, 163, 255, 0.16);
  --text: #eef1ff;
  --muted: #a3acd0;
  --faint: #7a84ab;

  --blue: #38bdf8;
  --violet: #8b5cf6;
  --teal: #2dd4bf;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --orange: #f97316;
  --green: #22c55e;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -8%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(700px 480px at -5% 12%, rgba(56, 189, 248, 0.14), transparent 60%);
  background-repeat: no-repeat;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }

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

/* ───────── Promo bar ───────── */
.promo-bar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #7c2d12, #c2410c 40%, #b45309);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}
.promo-bar[hidden] { display: none; }
.promo-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding-top: 9px; padding-bottom: 9px; padding-right: 44px; position: relative;
}
.promo-bar__text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.promo-bar__badge {
  background: #fff; color: #9a3412; font-weight: 800; font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}
.promo-bar__save { opacity: 0.95; }
.promo-bar__timer { opacity: 0.95; }
.promo-bar__link { font-weight: 700; text-decoration: none; margin-left: auto; white-space: nowrap; }
.promo-bar__link:hover { text-decoration: underline; }
.promo-bar__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; font-size: 1.4rem; line-height: 1; opacity: 0.85;
}
.promo-bar__close:hover { background: rgba(255, 255, 255, 0.16); opacity: 1; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.01em; }

/* ───────── Header ───────── */
.site-header { position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.brand__mark { width: 34px; height: 34px; }
.site-nav { display: none; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #07102b; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.8); }
.btn--promo { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #2a1200; box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.8); }
.btn--block { width: 100%; padding: 15px 22px; font-size: 1.05rem; }
.btn--card { width: 100%; background: var(--accent-grad); color: #07102b; }
.btn--card:hover { filter: brightness(1.08); }

/* ───────── Hero ───────── */
.hero { padding: 36px 0 28px; }
.hero__inner { max-width: 820px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 6.4vw, 3.8rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 850; }
.grad { background: linear-gradient(90deg, var(--blue), var(--violet) 60%, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 18px; font-size: clamp(1.02rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 0.92rem; }
.hero__facts li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }

/* ───────── Sections ───────── */
.section { padding: 44px 0; }
.section__head { margin-bottom: 28px; }
.section__head h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.15; }
.section__head p { margin-top: 8px; color: var(--muted); }

.plan-toggle {
  display: inline-flex; margin-top: 18px; padding: 4px; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.plan-toggle__btn {
  border: 0; background: transparent; color: var(--muted); font-weight: 700;
  padding: 10px 20px; border-radius: 10px; cursor: pointer; min-height: 44px;
}
.plan-toggle__btn:hover { color: var(--text); }
.plan-toggle__btn.is-active { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #07102b; }

/* ───────── Cards ───────── */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card {
  --accent: var(--blue);
  --accent-grad: linear-gradient(135deg, var(--blue), var(--violet));
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-grad); }
.card--apex { --accent: var(--blue); --accent-grad: linear-gradient(135deg, #38bdf8, #8b5cf6); }
.card--popup { --accent: var(--violet); --accent-grad: linear-gradient(135deg, #a78bfa, #22d3ee); }
.card--deeppress { --accent: var(--teal); --accent-grad: linear-gradient(135deg, #2dd4bf, #818cf8); }

.card__preview {
  position: relative; padding: 26px 22px 30px; min-height: 262px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(260px 160px at 80% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    rgba(5, 8, 20, 0.5);
  border-bottom: 1px solid var(--line);
}
.chip--float {
  position: absolute; right: 14px; bottom: -13px;
  background: linear-gradient(135deg, var(--amber), var(--orange)); color: #2a1200;
  font-weight: 800; font-size: 0.82rem; padding: 6px 14px; border-radius: 12px;
  box-shadow: 0 8px 22px -8px rgba(249, 115, 22, 0.9); transform: rotate(-2deg);
}
.card--popup .chip--float { background: linear-gradient(135deg, #34d399, #10b981); color: #032015; box-shadow: 0 8px 22px -8px rgba(16, 185, 129, 0.9); }
.card--deeppress .chip--float { background: var(--accent-grad); color: #06122a; box-shadow: 0 8px 22px -8px rgba(99, 102, 241, 0.9); }

.card__body { padding: 28px 22px 8px; flex: 1; }
.card__kicker { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin-top: 6px; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.15; }
.card__tagline { margin-top: 8px; font-weight: 650; color: var(--text); }
.card__desc { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.ticks { margin-top: 16px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='8' r='8' fill='black' fill-opacity='.0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  border-radius: 0;
}
.card__req { margin-top: 16px; font-size: 0.82rem; color: var(--faint); border-top: 1px dashed var(--line); padding-top: 12px; }

.card__buy { padding: 16px 22px 22px; display: grid; gap: 14px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__amount { font-size: 2.3rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.price__per { color: var(--muted); font-size: 0.9rem; }

/* ───────── Card previews (pure CSS mock-ups) ───────── */
.mock-toggles, .mock-steps {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; backdrop-filter: blur(4px);
}
.mock-toggles__title, .mock-steps__title { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.mock-toggles__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.86rem; }
.switch { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--green); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.mock-popup { position: relative; height: 150px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); overflow: hidden; padding: 16px; }
.mock-popup__lines i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); margin-bottom: 9px; }
.mock-popup__lines i.short { width: 55%; }
.mock-popup__box {
  position: absolute; left: 50%; top: 50%; width: 78%; transform: translate(-50%, -46%) rotate(-2deg);
  background: #fff; color: #10142b; border-radius: 14px; padding: 14px 16px 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.mock-popup__box b { display: block; font-size: 0.98rem; letter-spacing: -0.01em; }
.mock-popup__box small { display: block; color: #5b6285; margin: 3px 0 10px; font-size: 0.78rem; }
.mock-popup__btn { display: inline-block; background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; font-weight: 700; font-size: 0.78rem; padding: 6px 12px; border-radius: 8px; }
.mock-popup__x { position: absolute; right: 10px; top: 4px; color: #8a90ad; font-size: 1.1rem; }

.mock-steps__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); position: relative; }
.mock-steps__row i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-style: normal; font-size: 0.72rem; font-weight: 800; }
.mock-steps__row.is-done { color: var(--text); }
.mock-steps__row.is-done i { background: var(--teal); color: #052e29; }
.mock-steps__row.is-now { color: var(--text); font-weight: 700; flex-wrap: wrap; }
.mock-steps__row.is-now i { background: var(--indigo); color: #fff; }
.mock-steps__row.is-now em { flex-basis: 100%; height: 5px; margin-left: 32px; border-radius: 3px; background: linear-gradient(90deg, var(--indigo) 0 55%, rgba(255, 255, 255, 0.12) 55%); }

/* ───────── Bundle promo ───────── */
.section--bundle { padding-top: 24px; }
.bundle {
  position: relative; overflow: hidden; display: grid; gap: 26px; grid-template-columns: 1fr;
  padding: 28px 22px; border-radius: 24px;
  background: linear-gradient(140deg, #2a1608 0%, #1a1030 55%, #0f1730 100%);
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 30px 80px -30px rgba(249, 115, 22, 0.45);
}
.bundle__glow { position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 65%); pointer-events: none; }
.bundle__main, .bundle__buy { position: relative; }
.bundle__badge { display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #2a1200; background: linear-gradient(135deg, var(--amber), var(--orange)); padding: 6px 14px; border-radius: 999px; }
.bundle h2 { margin-top: 14px; font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.1; }
.bundle__lead { margin-top: 12px; color: #d3d8f2; max-width: 52ch; }
.bundle__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bundle__list li { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.bundle__list li::before { content: "＋ "; color: var(--amber); }
.bundle__list li:first-child::before { content: ""; }
.bundle__timer { margin-top: 20px; color: #d3d8f2; font-size: 0.95rem; }
.countdown--lg { display: inline-block; margin-top: 4px; color: #fff; font-size: 1.15rem; background: rgba(0, 0, 0, 0.35); padding: 3px 12px; border-radius: 10px; }

.bundle__buy { background: rgba(7, 11, 26, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); align-self: start; }
.bundle__old { color: var(--muted); font-size: 0.95rem; }
.bundle__old s { text-decoration-thickness: 2px; text-decoration-color: #f87171; }
.bundle__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.bundle__price span { font-size: 3rem; font-weight: 850; letter-spacing: -0.04em; line-height: 1.05; }
.bundle__price small { color: var(--muted); font-size: 0.92rem; }
.bundle__save { margin: 6px 0 18px; color: #86efac; font-size: 0.95rem; }
.bundle__note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Steps ───────── */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-weight: 850; color: #07102b; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.steps h3 { margin-top: 14px; font-size: 1.15rem; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* ───────── FAQ ───────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 0.96rem; }

/* ───────── Footer ───────── */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 0.85rem; }
.site-footer__inner { display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }

/* ───────── Wider screens ───────── */
@media (min-width: 720px) {
  .container { padding: 0 24px; }
  .site-nav { display: flex; }
  .hero { padding: 56px 0 36px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .bundle { grid-template-columns: 1.25fr 0.85fr; padding: 40px; gap: 36px; align-items: center; }
  .site-footer__inner { grid-template-columns: 1fr auto; gap: 24px; }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .promo-bar { position: static; }
  .promo-bar__save { display: none; }
  .promo-bar__link { margin-left: 0; }
}

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


/* ── Legal pages (terms / privacy / refund) ── */
.legal { padding: 56px 16px 80px; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.15; }
.legal .updated { margin-top: 8px; margin-bottom: 26px; color: var(--muted); font-size: 0.95rem; }
.legal h2 { margin-top: 30px; margin-bottom: 8px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__inner p + p { margin-top: 6px; }
