/* ============================================
   PRODUCT APP — LionVoss Pro
   Shares root vars from style.css
   ============================================ */

/* Re-use the same palette */
:root {
  --primary:      #2e1503;
  --primary-mid:  #5c2d0a;
  --accent:       #e07b39;
  --accent-glow:  rgba(224,123,57,.18);
  --accent-dark:  #c4601e;
  --accent2:      #c8972b;
  --surface:      #fdf6ec;
  --surface2:     #f5e8d0;
  --card:         #fffdf8;
  --text:         #2e1503;
  --text-light:   #8a6040;
  --white:        #ffffff;
  --radius:       14px;
  --shadow-sm:    0 2px 8px rgba(100,50,10,.07);
  --shadow-md:    0 8px 30px rgba(100,50,10,.10);
  --shadow-lg:    0 16px 48px rgba(100,50,10,.14);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
  --danger:       #dc3545;
  --success:      #198754;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--surface);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ============================================
   APP SHELL — Top bar
   ============================================ */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: rgba(46, 21, 3, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-topbar .logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}
.app-topbar .logo span { color: var(--accent); }
.app-topbar .logo .badge {
  font-size: .6rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--primary);
  padding: .15rem .5rem;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.topbar-link {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: 8px;
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.topbar-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.topbar-link.active { color: var(--accent); }

/* ============================================
   SCREEN SYSTEM
   ============================================ */
.screen {
  display: none;
  min-height: calc(100vh - 56px);
  padding: 3rem clamp(1rem, 4vw, 3rem);
  animation: fadeIn .35s ease;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BUTTONS (shared)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,123,57,.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid #d4c0a8;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.full-width { width: 100%; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.5rem;
  font-family: inherit;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--accent); }

/* ============================================
   ONBOARDING
   ============================================ */
.onboarding-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-top: 4rem;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4c0a8;
  transition: all var(--transition);
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 99px;
}

.onboarding-slides { position: relative; }
.slide {
  display: none;
  animation: fadeIn .4s ease;
}
.slide.active { display: block; }

.slide-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}
.slide-icon svg { width: 100%; height: 100%; }

.slide h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .8rem;
}
.slide h2 span { color: var(--accent); }
.slide p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.onboarding-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

/* ============================================
   PAYWALL
   ============================================ */
.paywall-container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.paywall-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .5rem;
}
.paywall-header h2 span { color: var(--accent); }
.paywall-header p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2.5rem;
}
.billing-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
}
.billing-label .save-badge {
  font-size: .7rem;
  background: var(--accent-glow);
  color: var(--accent-dark);
  padding: .2rem .5rem;
  border-radius: 50px;
  font-weight: 700;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: #d4c0a8;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  padding: 0;
}
.toggle-switch.active { background: var(--accent); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch.active .toggle-knob { transform: translateX(22px); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.plan-card {
  background: var(--card);
  border: 2px solid #e8d5bc;
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  margin-bottom: 1.5rem;
}
.plan-price .currency { font-size: .95rem; font-weight: 600; color: var(--text-light); }
.plan-price .amount   { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.plan-price .period   { font-size: .85rem; color: var(--text-light); }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}
.plan-features li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-btn { width: 100%; }

.paywall-note {
  color: var(--text-light);
  font-size: .82rem;
  margin-top: 2rem;
}

/* ============================================
   TRIAL
   ============================================ */
.trial-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}
.trial-icon { width: 100px; height: 100px; margin: 0 auto 2rem; }
.trial-icon svg { width: 100%; height: 100%; }

.trial-container h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .6rem;
}
.trial-container h2 span { color: var(--accent); }
.trial-subtitle { color: var(--text-light); margin-bottom: 2rem; }

.trial-countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.countdown-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .3rem;
}

.trial-checklist {
  text-align: left;
  background: var(--card);
  border: 1px solid #e8d5bc;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.trial-checklist h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  cursor: pointer;
  font-size: .92rem;
  color: var(--text);
}
.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.trial-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trial-note {
  color: var(--text-light);
  font-size: .82rem;
  margin-top: 1.5rem;
}

/* ============================================
   PAYMENTS
   ============================================ */
.payments-container {
  max-width: 620px;
  margin: 0 auto;
}
.payments-container h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .4rem;
}
.payments-container h2 span { color: var(--accent); }
.payments-subtitle { color: var(--text-light); margin-bottom: 2rem; }

.saved-cards {
  margin-bottom: 2rem;
}
.empty-state {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border: 2px dashed #d4c0a8;
  border-radius: var(--radius);
}
.empty-state p { color: var(--text-light); font-size: .9rem; margin-top: .5rem; }

.saved-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid #e8d5bc;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
}
.saved-card-info {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.saved-card-brand {
  width: 40px;
  height: 26px;
  background: #1A1F71;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
}
.saved-card-digits { font-weight: 600; color: var(--primary); font-size: .92rem; }
.saved-card-expiry { font-size: .8rem; color: var(--text-light); }
.saved-card-default {
  font-size: .7rem;
  background: var(--accent-glow);
  color: var(--accent-dark);
  padding: .2rem .6rem;
  border-radius: 50px;
  font-weight: 700;
}

/* Card form */
.card-form {
  background: var(--card);
  border: 1px solid #e8d5bc;
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 2rem;
}
.card-form h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.form-row.two-col > .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { flex: 1; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input {
  padding: .75rem 1rem;
  border: 2px solid #e8d5bc;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,123,57,.15);
}

.card-input-wrapper {
  position: relative;
}
.card-input-wrapper input { width: 100%; padding-right: 3.5rem; }
.card-brands {
  position: absolute;
  right: .8rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Billing summary */
.billing-summary {
  background: var(--card);
  border: 1px solid #e8d5bc;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.billing-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid #f0e4d0;
  font-size: .9rem;
  color: var(--text);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  padding-top: .8rem;
  margin-top: .4rem;
  border-top: 2px solid #e8d5bc;
  border-bottom: none;
}

/* ============================================
   SETTINGS
   ============================================ */
.settings-container {
  max-width: 900px;
  margin: 0 auto;
}
.settings-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .3rem;
}
.settings-header h2 span { color: var(--accent); }
.settings-header p { color: var(--text-light); margin-bottom: 2rem; }

.settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Settings sidebar nav */
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  background: var(--card);
  border: 1px solid #e8d5bc;
  border-radius: var(--radius);
  padding: .6rem;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-align: left;
}
.settings-nav-item:hover { background: var(--surface); color: var(--primary); }
.settings-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-dark);
  font-weight: 600;
}

/* Settings panels */
.settings-panel {
  display: none;
  background: var(--card);
  border: 1px solid #e8d5bc;
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeIn .3s ease;
}
.settings-panel.active { display: block; }
.settings-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.settings-form { display: flex; flex-direction: column; gap: 1rem; }
.settings-form .btn { align-self: flex-start; margin-top: .5rem; }

/* Subscription card */
.sub-card {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}
.sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.sub-plan-name { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.sub-status { font-size: .82rem; color: var(--accent-dark); font-weight: 600; }
.sub-price { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.sub-price span { font-size: .8rem; font-weight: 500; color: var(--text-light); }
.sub-features {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
}
.sub-features span {
  background: var(--accent-glow);
  color: var(--accent-dark);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}
.sub-actions { display: flex; gap: .8rem; }

/* Toggle rows for notifications */
.toggle-list { display: flex; flex-direction: column; gap: .3rem; }
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0e4d0;
  cursor: pointer;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-title { font-weight: 600; color: var(--primary); font-size: .95rem; }
.toggle-desc { font-size: .82rem; color: var(--text-light); margin-top: .15rem; }
.toggle-input {
  width: 44px;
  height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Security extra */
.security-extra {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0e4d0;
}
.security-extra h4 { font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.security-extra p { font-size: .9rem; color: var(--text-light); margin-bottom: 1rem; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--white);
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all .35s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   PRODUCT IMAGES
   ============================================ */

/* Onboarding slide images */
.slide-image {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 7/5;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Paywall hero banner */
.product-hero-img {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 9/3.2;
  box-shadow: var(--shadow-md);
}
.product-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,21,3,.75) 0%, rgba(92,45,10,.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-hero-overlay h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
}
.product-hero-overlay h1 span { color: var(--accent); }

/* Paywall feature image */
.paywall-feature-img {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e8d5bc;
}
.paywall-feature-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.paywall-feature-caption {
  padding: 1rem 1.5rem;
  background: var(--card);
  font-size: .88rem;
  color: var(--text-light);
  text-align: left;
}
.paywall-feature-caption strong { color: var(--accent-dark); }

/* Trial hero image */
.trial-hero-img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 7/5;
}
.trial-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Payments hero image */
.payments-hero-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 7/3;
}
.payments-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Settings hero image */
.settings-hero-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/5;
}
.settings-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: .2rem;
    padding: .4rem;
  }
  .settings-nav-item {
    white-space: nowrap;
    font-size: .82rem;
    padding: .5rem .8rem;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .form-row.two-col {
    flex-direction: column;
  }
  .trial-countdown { gap: 1rem; }
  .countdown-num { font-size: 2rem; }
}
