/* Fox Server — landing & cabinet */

html.store-site { scroll-behavior: smooth; }
html.store-site.dark,
html.store-site:not(.light) {
  --st-bg: #0a0f1a;
  --st-bg2: #111827;
  --st-text: #f1f5f9;
  --st-muted: rgba(241,245,249,.58);
  --st-muted2: rgba(241,245,249,.38);
  --st-border: rgba(148,163,184,.14);
  --st-accent: #f97316;
  --st-accent2: #fbbf24;
  --st-accent-soft: rgba(249,115,22,.18);
  --st-sky: rgba(56,189,248,.12);
}
html.store-site.light {
  --st-bg: #f8fafc;
  --st-bg2: #fff;
  --st-text: #0f172a;
  --st-muted: rgba(15,23,42,.58);
  --st-muted2: rgba(15,23,42,.4);
  --st-border: rgba(15,23,42,.1);
  --st-accent: #ea580c;
  --st-accent2: #d97706;
  --st-accent-soft: rgba(234,88,12,.1);
  --st-sky: rgba(14,165,233,.08);
}

body.store-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--st-bg);
  color: var(--st-text);
  -webkit-font-smoothing: antialiased;
}
.store-body a { color: inherit; text-decoration: none; }

/* ── Buttons (shared) ── */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.25rem; border-radius: 10px;
  font-weight: 600; font-size: .92rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform .12s, filter .12s, background .12s;
  white-space: nowrap;
}
.fx-btn:hover { text-decoration: none; transform: translateY(-1px); }
.fx-btn-primary {
  background: linear-gradient(135deg, var(--st-accent) 0%, var(--st-accent2) 100%);
  color: #0a0f1a;
  box-shadow: 0 4px 20px var(--st-accent-soft);
}
.fx-btn-primary:hover { filter: brightness(1.06); }
.fx-btn-outline {
  background: transparent;
  border: 1.5px solid var(--st-border);
  color: var(--st-text);
}
.fx-btn-outline:hover { border-color: var(--st-accent); color: var(--st-accent); }
.fx-btn-sm { padding: .45rem .9rem; font-size: .85rem; border-radius: 8px; }
.fx-btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* ── Header ── */
.fx-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--st-border);
  background: rgba(10,15,26,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html.light .fx-header { background: rgba(248,250,252,.9); }
.fx-header-inner {
  max-width: 1080px; margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.fx-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; color: var(--st-text);
}
.fx-logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.fx-header-nav {
  display: flex; align-items: center; gap: .35rem;
}
.fx-header-nav a:not(.fx-btn) {
  padding: .4rem .75rem; border-radius: 8px;
  font-size: .88rem; color: var(--st-muted);
}
.fx-header-nav a:not(.fx-btn):hover { color: var(--st-text); background: var(--st-accent-soft); }
.fx-theme-btn {
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  border: 1px solid var(--st-border); background: transparent;
  color: var(--st-muted); cursor: pointer; font-size: .9rem;
  margin: 0 .15rem;
}
.fx-alert-banner {
  max-width: 1080px; margin: 0 auto; padding: .75rem 1.25rem;
  font-size: .88rem; color: #fecaca;
  background: rgba(239,68,68,.12); border-bottom: 1px solid rgba(239,68,68,.25);
}

/* ── Hero ── */
.fx-hero {
  position: relative; overflow: hidden;
  padding: 3rem 0 2.5rem;
}
.fx-hero-bg { pointer-events: none; position: absolute; inset: 0; }
.fx-glow {
  position: absolute; border-radius: 50%; filter: blur(100px);
}
.fx-glow-a {
  width: 520px; height: 520px; top: -120px; right: -80px;
  background: var(--st-accent-soft);
}
.fx-glow-b {
  width: 380px; height: 380px; bottom: -60px; left: -40px;
  background: var(--st-sky);
}
.fx-hero-inner {
  position: relative;
  max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 860px) {
  .fx-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}
.fx-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 8px;
  background: var(--st-accent-soft);
  border: 1px solid rgba(249,115,22,.25);
  font-size: .78rem; font-weight: 600; color: var(--st-accent);
  margin-bottom: 1.1rem;
}
.fx-badge-icon { font-size: .95rem; line-height: 1; }
.fx-h1 {
  margin: 0 0 .85rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  color: var(--st-text);
}
.fx-h1-accent {
  display: block;
  background: linear-gradient(90deg, var(--st-accent), var(--st-accent2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.fx-lead {
  margin: 0 0 1.5rem; max-width: 34rem;
  font-size: 1.02rem; line-height: 1.65; color: var(--st-muted);
}
.fx-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .85rem; }
.fx-note { margin: 0; font-size: .82rem; color: var(--st-muted2); }

/* ── Dashboard panel (replaces phone mockup) ── */
.fx-panel {
  background: var(--st-bg2);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
html.light .fx-panel { box-shadow: 0 8px 32px rgba(15,23,42,.08); }
.fx-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--st-border);
}
.fx-panel-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); }
.fx-panel-live {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; color: #34d399;
}
.fx-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.6);
}
.fx-panel-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  margin-bottom: .85rem;
}
.fx-metric {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--st-border);
  border-radius: 10px; padding: .65rem .5rem; text-align: center;
}
html.light .fx-metric { background: var(--st-sky); }
.fx-metric-val { display: block; font-size: 1.1rem; font-weight: 800; color: var(--st-text); }
.fx-metric-lbl { font-size: .68rem; color: var(--st-muted); text-transform: uppercase; letter-spacing: .04em; }
.fx-panel-server {
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem; border-radius: 10px;
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.22);
  margin-bottom: .75rem;
}
.fx-server-flag { font-size: 1.25rem; }
.fx-panel-server strong { display: block; font-size: .88rem; color: var(--st-text); }
.fx-server-sub { font-size: .72rem; color: var(--st-muted); }
.fx-server-ok {
  margin-left: auto; font-size: .68rem; font-weight: 700;
  padding: .2rem .45rem; border-radius: 6px;
  background: rgba(52,211,153,.15); color: #34d399;
}
.fx-panel-link {
  padding: .65rem .75rem; border-radius: 8px;
  background: rgba(0,0,0,.25); border: 1px dashed var(--st-border);
}
html.light .fx-panel-link { background: #f1f5f9; }
.fx-link-lbl { display: block; font-size: .68rem; color: var(--st-muted); margin-bottom: .25rem; }
.fx-panel-link code {
  font-size: .72rem; color: var(--st-muted2); word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.fx-panel-hint { margin: .65rem 0 0; font-size: .75rem; color: var(--st-muted); text-align: center; }

/* ── Stats strip ── */
.fx-stats {
  border-top: 1px solid var(--st-border);
  border-bottom: 1px solid var(--st-border);
  background: rgba(255,255,255,.02);
}
html.light .fx-stats { background: #fff; }
.fx-stats-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) { .fx-stats-inner { grid-template-columns: repeat(2, 1fr); } }
.fx-stat {
  padding: 1.25rem 1rem; text-align: center;
  border-right: 1px solid var(--st-border);
}
.fx-stat:last-child { border-right: none; }
@media (max-width: 640px) {
  .fx-stat:nth-child(2) { border-right: none; }
  .fx-stat:nth-child(1), .fx-stat:nth-child(2) { border-bottom: 1px solid var(--st-border); }
}
.fx-stat-val { display: block; font-size: 1.35rem; font-weight: 800; color: var(--st-accent); }
.fx-stat-lbl { font-size: .75rem; color: var(--st-muted); }

/* ── Steps ── */
.fx-steps { padding: 3rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.fx-section-head { margin-bottom: 1.75rem; }
.fx-section-head h2 { margin: 0 0 .35rem; font-size: 1.45rem; font-weight: 800; color: var(--st-text); }
.fx-section-head p { margin: 0; color: var(--st-muted); font-size: .92rem; }
.fx-steps-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
@media (min-width: 768px) { .fx-steps-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.fx-step {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.15rem; border-radius: 14px;
  border: 1px solid var(--st-border);
  background: var(--st-bg2);
}
.fx-step-num {
  flex-shrink: 0; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; font-size: .9rem;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent2));
  color: #0a0f1a;
}
.fx-step h3 { margin: 0 0 .3rem; font-size: .95rem; font-weight: 700; color: var(--st-text); }
.fx-step p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--st-muted); }

/* ── Features ── */
.fx-features { padding: 0 1.25rem 3rem; max-width: 1080px; margin: 0 auto; }
.fx-features-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) { .fx-features-grid { grid-template-columns: repeat(2, 1fr); } }
.fx-feat-card {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--st-border);
  background: var(--st-bg2);
  transition: border-color .15s;
}
.fx-feat-card:hover { border-color: rgba(249,115,22,.35); }
.fx-feat-icon {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 1.1rem;
  background: var(--st-accent-soft);
  margin-bottom: .75rem;
}
.fx-feat-card h3 { margin: 0 0 .35rem; font-size: .95rem; font-weight: 700; color: var(--st-text); }
.fx-feat-card p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--st-muted); }

/* ── CTA band ── */
.fx-cta-band {
  margin: 0 1.25rem 3rem;
  max-width: calc(1080px - 2.5rem);
  margin-left: auto; margin-right: auto;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249,115,22,.15) 0%, rgba(251,191,36,.08) 100%);
  border: 1px solid rgba(249,115,22,.25);
}
.fx-cta-band-inner {
  padding: 1.75rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.25rem;
}
.fx-cta-band h2 { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 800; color: var(--st-text); }
.fx-cta-band p { margin: 0; font-size: .88rem; color: var(--st-muted); }

/* Instructions page */
.fx-guide { padding: 2rem 1.25rem 3.5rem; }
.fx-guide-inner { max-width: 720px; margin: 0 auto; }
.fx-guide-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.fx-guide-steps {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.fx-guide-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem !important;
}
.fx-guide-num {
  flex-shrink: 0; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; font-size: .9rem;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent2));
  color: #0a0f1a;
}
.fx-guide-step h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.fx-guide-step p { margin: 0 0 .5rem; line-height: 1.6; }
.fx-guide-step p:last-child { margin-bottom: 0; }
.fx-guide-sublist {
  margin: .5rem 0 0; padding-left: 1.2rem;
  line-height: 1.65;
}
.fx-guide-sublist li { margin: .35rem 0; }
.fx-guide-note, .fx-guide-faq { padding: 1.25rem; margin-bottom: 1rem; }
.fx-guide-note h2, .fx-guide-faq h2 { margin-top: 0; }
.fx-guide-list {
  margin: 0 0 .75rem; padding-left: 1.2rem;
  line-height: 1.65;
}
.fx-guide-list li { margin: .4rem 0; }
.fx-guide code {
  font-size: .85em; padding: .15rem .4rem; border-radius: 6px;
  background: var(--surface-2); color: var(--st-accent);
}
.store-main .fx-guide a:not(.fx-btn) { color: var(--st-accent); }

.store-main { flex: 1; }

/* Portal pages (account, login) — reuse portal.css on dark store theme */
html.store-site.dark body.store-body,
html.store-site:not(.light) body.store-body {
  --bg: #0d0d0d;
  --surface: rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.08);
  --surface-3: rgba(255,255,255,.1);
  --text: #fff;
  --muted: rgba(255,255,255,.52);
  --accent: #ff7a2e;
  --accent-2: #ffb347;
  --accent-glow: rgba(255,122,46,.15);
  --border: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.12);
  --ok: #10b981;
  --bad: #ef4444;
}
html.store-site.light body.store-body {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --surface-3: #e4e9f4;
  --text: #111827;
  --muted: #5a6480;
  --accent: #d65a00;
  --accent-2: #b84d00;
  --accent-glow: rgba(214, 90, 0, 0.1);
  --border: #dde3f0;
  --border-2: #c6cedf;
  --ok: #0d9668;
  --bad: #dc2626;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 6px 32px rgba(0, 0, 0, 0.1);
}
.store-main .section { padding: 1.5rem 0 3rem; }
.store-main .brand { display: none; }
.store-main .topbar { display: none; }
.store-main .footer { display: none; }
.store-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  letter-spacing: -.02em;
  color: var(--st-text);
}
.store-page-sub { font-size: .9rem; color: var(--st-muted); margin: 0 0 1.5rem; }
.store-main h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  color: var(--text);
}
.store-main .card {
  border-radius: 14px;
  box-shadow: var(--shadow, 0 4px 24px rgba(0, 0, 0, 0.08));
}
html.store-site.light .store-main .card {
  background: var(--surface);
  border-color: var(--border);
}
.store-main .form label { color: var(--muted); }
.store-main .form input[type="email"],
.store-main .form input[type="password"],
.store-main .form input[type="text"],
.store-main .form input:not([type="checkbox"]),
.store-main .copy-box input {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
html.store-site.dark .store-main .form input:not([type="checkbox"]),
html.store-site:not(.light) .store-main .form input:not([type="checkbox"]),
html.store-site.dark .store-main .copy-box input,
html.store-site:not(.light) .store-main .copy-box input {
  background: rgba(255, 255, 255, 0.06);
}
html.store-site.light .store-main .form input:not([type="checkbox"]),
html.store-site.light .store-main .copy-box input {
  background: #fff;
}
.store-main .form input::placeholder { color: var(--muted); opacity: 0.75; }
.store-main .form input:focus { border-color: var(--st-accent); }
html.store-site.light .store-main .alert-error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.28);
  color: #991b1b;
}
html.store-site.light .store-main .alert-ok {
  background: rgba(13, 150, 104, 0.08);
  border-color: rgba(13, 150, 104, 0.28);
  color: #065f46;
}
html.store-site.dark .store-main .alert-error,
html.store-site:not(.light) .store-main .alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
  color: #fecaca;
}
html.store-site.dark .store-main .alert-ok,
html.store-site:not(.light) .store-main .alert-ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
}
.store-main .btn {
  background: linear-gradient(135deg, var(--st-accent) 0%, #ffb347 100%);
  color: #111;
}
.store-main .btn:hover { filter: brightness(1.05); }
.store-main .btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.store-main .btn-ghost:hover {
  border-color: var(--st-accent);
  color: var(--st-accent);
  background: var(--accent-glow);
}
.store-main .happ-dl-item {
  background: var(--surface-2);
  border-color: var(--border);
}
.store-main .pp-card {
  background: var(--surface);
  border-color: var(--border);
}
.store-main .pp-period { color: var(--st-accent); }
.store-main .stats div { border-bottom-color: var(--border); }
.store-main .gmail-notice { border-color: rgba(214, 90, 0, 0.35); }
.store-main a:not(.fx-logo):not(.fx-btn):not(.store-nav-brand):not(.store-nav-cta):not(.store-nav-link):not(.btn) {
  color: var(--st-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.store-main .muted { color: var(--muted); }
.store-main .ok { color: var(--ok); }
.store-main .bad { color: var(--bad); }
.store-main .checkbox { color: var(--muted); }
html.store-site.light .store-main .plan-badge-popular { background: rgba(255, 122, 46, 0.15); color: #b84d00; }
html.store-site.light .store-main .plan-badge-best { background: rgba(245, 200, 66, 0.2); color: #92680a; }

/* Footer */
.store-footer {
  border-top: 1px solid var(--st-border);
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  font-size: 13px;
  color: var(--st-muted);
}
.store-footer-links { display: flex; gap: 1.25rem; }
.store-footer-links a:hover { color: var(--st-text); }

/* PWA bar */
.store-pwa {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(17,17,17,.92);
  border-top: 1px solid var(--st-border);
  backdrop-filter: blur(16px);
  display: none;
}
html.light .store-pwa { background: rgba(255,255,255,.92); }
.store-pwa.show { display: block; }
.store-pwa-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.store-pwa-text strong { display: block; font-size: 13px; color: var(--st-text); }
.store-pwa-text span { font-size: 12px; color: var(--st-muted); }
.store-pwa-btn {
  border: none;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
}
