/* Theming: light/dark using app brand colors (see OlkanoApp/constants/Colors.ts) */
:root {
  /* Light theme defaults */
  --bg: #ffffff;
  --text: #11181C; /* light.text */
  --muted: #687076; /* light.icon */
  --primary: #FB806D; /* brand peach */
  --primary-contrast: #ffffff;
  --primary-muted: #F6C1B9; /* primaryDisabled */
  --accent: #2093FF; /* info */
  --warning: #FF852E; /* warning */
  --error: #D84315; /* error */
  --border: #DDD;

  --card-bg: #fff;
  --card-border: #e5e5e5;
  --link: #0a7ea4; /* tint */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ECEDEE; /* dark.text */
    --muted: #9BA1A6; /* dark.icon */
    --primary: #FB806D;
    --primary-contrast: #ffffff;
    --primary-muted: #7A4F49;
    --accent: #4DA6FF;
    --warning: #FF9B4A;
    --error: #FF5C39;
    --border: #333333;

    --card-bg: #0b0b0b;
    --card-border: #1f1f1f;
    --link: #ffffff;
  }
}

/* Explicit override via [data-theme] (set by theme.js) */
[data-theme="light"] {
  --bg: #ffffff;
  --text: #11181C;
  --muted: #687076;
  --primary: #FB806D;
  --primary-contrast: #ffffff;
  --primary-muted: #F6C1B9;
  --accent: #2093FF;
  --warning: #FF852E;
  --error: #D84315;
  --border: #DDD;
  --card-bg: #fff;
  --card-border: #e5e5e5;
  --link: #0a7ea4;
}

[data-theme="dark"] {
  --bg: #000000;
  --text: #ECEDEE;
  --muted: #9BA1A6;
  --primary: #FB806D;
  --primary-contrast: #ffffff;
  --primary-muted: #7A4F49;
  --accent: #4DA6FF;
  --warning: #FF9B4A;
  --error: #FF5C39;
  --border: #333333;
  --card-bg: #0b0b0b;
  --card-border: #1f1f1f;
  --link: #ffffff;
}

* { 
  box-sizing: border-box; 
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  height: 40px;
}

#themeSelect,
#langSelect {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#themeSelect:hover,
#langSelect:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

#themeSelect:focus,
#langSelect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(251, 128, 109, 0.2);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 16px;
  font-weight: 600;
}

.subhead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* Hero illustration */
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 6px; /* match button radius */
}

/* Theme-conditional hero images (system preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-img-light { display: none; }
  :root:not([data-theme]) .hero-img-dark { display: block; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .hero-img-light { display: block; }
  :root:not([data-theme]) .hero-img-dark { display: none; }
}

/* Explicit theme override */
[data-theme="dark"] .hero-img-light { display: none; }
[data-theme="dark"] .hero-img-dark { display: block; }
[data-theme="light"] .hero-img-light { display: block; }
[data-theme="light"] .hero-img-dark { display: none; }

/* Section blocks */
section {
  padding: 56px 0;
}

section .section-title {
  font-size: 1.75rem;
  margin: 0 0 8px;
}

section .section-sub {
  color: var(--muted);
  margin: 0 0 24px;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.how-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.how-card img {
  height: 40px;
  margin-bottom: 12px;
}

/* Split: download vs invite */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badges img {
  height: 40px;
}

.invite-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.benefits-grid ul {
  margin: 8px 0 0;
}

/* Features list */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.price {
  font-weight: 700;
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
  }

  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Accessibility: screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


