/*
  Light Theme Stylesheet
  - Color system, spacing, typography
  - Component styles (buttons, cards, tables)
  - Responsive rules and mobile table adaptation
  - Accessibility helpers
*/

/* CSS Reset (minimal, non-destructive) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; height: auto; }
button, a { cursor: pointer; }

/* Root: color palette and design tokens */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #14171a;
  --muted: #5b7083;
  --primary: #1db954; /* vibrant green */
  --primary-contrast: #ffffff;
  --border: #e6ecf0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);

  --radius: 12px;
  --spacing-1: 8px;
  --spacing-2: 12px;
  --spacing-3: 16px;
  --spacing-4: 24px;
  --spacing-5: 32px;
  --spacing-6: 48px;
}

/* Typography */
html { font-size: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.25; margin: var(--spacing-4) 0 var(--spacing-2); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; color: var(--muted); }
p { margin: var(--spacing-2) 0; }
ul, ol { margin: var(--spacing-2) 0 var(--spacing-3); padding-left: 1.25rem; }

/* Utilities */
.container { width: min(1160px, 92%); margin: 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--spacing-3); padding: var(--spacing-2) 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: var(--spacing-3); }
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: none; gap: var(--spacing-3); list-style: none; padding: 0; margin: 0; align-items: center; }
.nav-link { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav-link:hover { color: var(--text); }
.auth-actions { display: none; align-items: center; gap: var(--spacing-2); margin-left: auto; }
.btn.outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
/* removed header mini-banner */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  transition: transform .06s ease, box-shadow .2s ease;
}
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn:focus { outline: 2px solid #99e2ae; outline-offset: 2px; }
.cta { background: var(--primary); color: var(--primary-contrast); box-shadow: var(--shadow); }
.cta:hover { transform: translateY(-1px); }

/* Hero */
.hero { background: var(--surface); }
.hero { position: relative; }
.hero-media img { width: 100%; object-fit: cover; max-height: 520px; }
.hero-content { padding: var(--spacing-5) 0; text-align: center; }
/* Overlay CTA on hero for readability */
.hero .hero-content { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; z-index: 1; }
.hero .hero-content > div, .hero .hero-content { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero .btn.cta { box-shadow: 0 6px 24px rgba(29,185,84,.4); }
/* Subtle gradient strictly over the image area */
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 65%, rgba(0,0,0,0.55) 100%); pointer-events: none; z-index: 0; }
.hero .cta { margin-top: var(--spacing-2); }

/* Trust strip */
.pay-logos { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: var(--spacing-4); align-items: center; padding: var(--spacing-2) 0; overflow-x: auto; }

/* Sections */
.section { padding: var(--spacing-6) 0; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--spacing-4); box-shadow: var(--shadow);
}
.grid { display: grid; gap: var(--spacing-4); }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin: 10px 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800; }

/* Steps */
.steps { counter-reset: step; padding-left: 0; }
.steps > li { list-style: none; margin: 18px 0; padding-left: 44px; position: relative; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* Tables: base styles */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 800; color: var(--text); }
tbody tr:last-child td { border-bottom: none; }

/* Responsive table adaptation for small screens
   - We stack rows as cards and use data-label for headers
*/
@media (max-width: 767px) {
  .responsive-table thead { display: none; }
  .responsive-table tr { display: grid; grid-template-columns: 1fr; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .responsive-table td { display: grid; grid-template-columns: 40% 60%; border: none; padding: 8px 0; }
  .responsive-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); padding-right: 10px; }
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--spacing-5) 0; }
.footer-links { list-style: none; padding: 0; margin: var(--spacing-2) 0 0; display: flex; gap: var(--spacing-3); flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Orientation overlay (mobile lock prompt) */
.orientation-overlay {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.55); color: #fff; z-index: 2000;
}
.orientation-inner { background: #111; border-radius: var(--radius); padding: var(--spacing-4); width: min(520px, 86%); text-align: center; box-shadow: var(--shadow); }
.orientation-overlay[hidden] { display: none; }

/* Desktop enhancements */
@media (min-width: 768px) {
  .nav-list { display: inline-flex; }
  .auth-actions { display: inline-flex; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .hero-content { text-align: left; }
}

/* Slots grid */
.slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-3); }
.slot-card { display: grid; gap: var(--spacing-2); padding: var(--spacing-2); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.slot-card figure { margin: 0; }
.slot-card img { border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.slot-card:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.slot-card figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; }

@media (min-width: 768px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Icons in headings */
.with-icon { display: inline-flex; gap: 8px; align-items: center; }
.with-icon .icon svg { fill: var(--primary); }

/* Mobile tweaks: smaller banner in header, hide large hero image */
@media (max-width: 767px) {
  .auth-actions { display: inline-flex; }
  /* Mobile hero fits viewport minus header for full-banner experience */
  .hero { min-height: var(--hero-h, 75vh); }
  .hero-media { display: block; height: 100%; }
  .hero-media img { height: 100%; max-height: none; object-position: center; }
  .hero .hero-content { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
  .hero h1 { font-size: clamp(1.25rem, 4.5vw + 0.5rem, 1.7rem); margin: 0 0 8px; text-align: center; }
  .hero p { font-size: 0.95rem; margin: 0 0 12px; text-align: center; }
  .hero .btn.cta { padding: 10px 16px; font-size: 0.95rem; }
  /* Remove white strip (top spacing) after hero on mobile */
  .hero + .section { padding-top: 0; }
  .hero + .section h2 { margin-top: 0; }
  .hero { margin-bottom: 0; }
}


