/* Base structural rules — layout/spacing only. All VISUAL styling (colors,
   radius, shadows, fonts, borders) comes from the active theme file, which
   is loaded AFTER this one and is free to override component-level rules
   too (not just CSS variables) so each theme is a genuinely different skin,
   not just a recolored version of the same look. */

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body { margin: 0; font-family: var(--font-body, sans-serif); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: inherit; }

.page-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.app-shell { min-height: 100vh; padding-bottom: 70px; }

.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }

.pill-btn { display: inline-block; background: var(--accent); color: var(--accent-text); border: none; padding: 10px 20px; border-radius: var(--radius-btn); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.pill-btn.outline { background: none; border: 1px solid var(--card-border); color: var(--text); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-input); border: 1px solid var(--card-border);
  background: var(--input-bg); color: var(--text); font-size: 14px;
}

.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th, .app-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--card-border); }
.app-table th { color: var(--text-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }

.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--card-border); border-radius: 22px; cursor: pointer; transition: .2s; }
.slider:before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
input:checked + .slider { background: var(--accent); }
input:checked + .slider:before { transform: translateX(18px); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-box { background: var(--stat-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; }
.stat-box .label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 6px; }
.stat-box .value { font-size: 22px; font-weight: 800; }

.reorder-btn { background: none; border: 1px solid var(--card-border); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--text); }

/* ---------- Premium landing page components ---------- */
.hero {
  text-align: center; padding: 56px 20px 44px; position: relative; overflow: hidden;
}
.hero .eyebrow {
  display: inline-block; background: var(--stat-bg); border: 1px solid var(--card-border);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-dim);
  margin-bottom: 18px; letter-spacing: 0.3px;
}
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.hero .sub { font-size: 17px; color: var(--text-dim); max-width: 540px; margin: 0 auto 28px; line-height: 1.5; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta-primary { padding: 15px 30px; font-size: 15px; }
.hero .cta-secondary { padding: 15px 30px; font-size: 15px; }

.trust-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 28px 20px; }
.trust-row .item { text-align: center; min-width: 70px; }
.trust-row .num { font-size: 22px; font-weight: 800; }
.trust-row .lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.feature-card .icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h4 { margin: 0 0 8px; font-size: 15px; }
.feature-card p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; counter-reset: step; }
.step-card { text-align: center; padding: 10px; }
.step-card .step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px; font-size: 15px;
}
.step-card h4 { margin: 0 0 6px; font-size: 14px; }
.step-card p { margin: 0; font-size: 12px; color: var(--text-dim); }

.platform-card { text-align: center; padding: 20px 14px; transition: transform 0.15s ease; }
.platform-card:hover { transform: translateY(-3px); }
.platform-card img { width: 44px !important; height: 44px !important; object-fit: cover; border-radius: 10px; margin: 0 auto 10px; }

.video-lite { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; }
.video-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-lite .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.site-footer { text-align: center; padding: 36px 20px; color: var(--text-dim); font-size: 12px; border-top: 1px solid var(--card-border); margin-top: 30px; }
.site-footer a { color: var(--text-dim); text-decoration: none; margin: 0 8px; }
