/* ─── OffGridOnline Global Styles ─── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --gray-900: #111;
  --gray-800: #1a1a1a;
  --gray-700: #2a2a2a;
  --gray-600: #444;
  --muted: #888;
  --muted-light: #aaa;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-amber-glow: rgba(245,158,11,.3);
  --accent-cyan-glow: rgba(6,182,212,.3);
  --ease: cubic-bezier(.22,1,.36,1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
nav .logo { font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
nav .logo span { color: var(--accent-amber); }
nav .tagline { font-size: .8125rem; color: var(--muted); font-weight: 400; letter-spacing: .02em; }
nav a { text-decoration: none; color: inherit; }

/* ─── PAGE WRAPPER ─── */
.page { min-height: 100vh; padding-top: 5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ─── CONTAINER ─── */
.container { width: 100%; max-width: 640px; padding: 2rem; margin: 0 auto; }

/* ─── CARDS ─── */
.card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

/* ─── TYPOGRAPHY ─── */
h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .75rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
p { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: .875rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600;
  padding: .85rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.97); }
.btn:disabled {
  opacity: .4; cursor: not-allowed; transform: none !important;
}
.btn:disabled::after { opacity: 0; }

.btn-block { width: 100%; justify-content: center; }

.btn-primary-amber {
  background: var(--accent-amber);
  color: #000;
  box-shadow: 0 4px 24px var(--accent-amber-glow);
}
.btn-primary-amber:hover { box-shadow: 0 8px 40px rgba(245,158,11,.5); }

.btn-primary-cyan {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 4px 24px var(--accent-cyan-glow);
}
.btn-primary-cyan:hover { box-shadow: 0 8px 40px rgba(6,182,212,.5); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.btn-outline:hover { border-color: rgba(255,255,255,.3); }

.btn-group { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-group .btn { flex: 1; min-width: 140px; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 1.5rem; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; color: rgba(255,255,255,.8); }
input[type="email"] {
  width: 100%;
  padding: .85rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--gray-800);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
input[type="email"]:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
input[type="email"].error { border-color: #ef4444; }
input[type="email"]::placeholder { color: var(--muted); }

.error-msg { color: #ef4444; font-size: .8125rem; margin-top: .35rem; display: none; }
.error-msg.show { display: block; }

/* ─── BADGE ─── */
.badge {
  display: inline-block;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.4);
}
.badge-amber { color: var(--accent-amber); border-color: rgba(245,158,11,.3); }
.badge-cyan { color: var(--accent-cyan); border-color: rgba(6,182,212,.3); }

/* ─── STEP INDICATOR ─── */
.steps {
  display: flex; justify-content: center; gap: .5rem;
  margin-bottom: 2.5rem;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-700);
  transition: background .3s;
}
.step-dot.active { background: var(--accent-cyan); }
.step-dot.done { background: var(--accent-amber); }

/* ─── PRICE DISPLAY ─── */
.price {
  font-size: 2.5rem; font-weight: 700;
  letter-spacing: -.03em;
  margin: 1rem 0;
}
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-sub { color: var(--muted); font-size: .875rem; margin-bottom: 1.5rem; }

/* ─── UPSALE ─── */
.upsell {
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.02));
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex; align-items: flex-start; gap: 1rem;
}
.upsell-toggle {
  display: flex; align-items: center; gap: .75rem;
  cursor: pointer; padding: .5rem 0;
}
.upsell-toggle input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--accent-amber);
  cursor: pointer;
}
.upsell-price { font-weight: 700; color: var(--accent-amber); }

/* ─── SUMMARY INFO ─── */
.summary-row {
  display: flex; justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .9375rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
  border-top: 2px solid rgba(255,255,255,.12);
  padding-top: 1rem; margin-top: .5rem;
  font-weight: 700; font-size: 1.125rem;
}
.summary-row .sku { font-family: 'Courier New', monospace; font-size: .8125rem; color: var(--muted-light); }

/* ─── HIDDEN ─── */
.hidden { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .container { padding: 1.25rem; }
  .card { padding: 1.5rem; }
  .btn { padding: .75rem 1.5rem; font-size: .9375rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { min-width: auto; }
  .price { font-size: 2rem; }
}

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