/* ============================================================
   app.css — Solara app page, amber/dark theme
   Colour values sourced from the project's DarkColorScheme
   ============================================================ */

/* ── Amber/Dark Theme Variables ─────────────────────────────── */
:root {
  /* Brand — mirrors DarkColorScheme primary */
  --primary:              #FFB300;   /* Amber 700 */
  --primary-on:           #1A1200;
  --primary-container:    #3D2C00;
  --primary-container-on: #FFDEA0;

  --secondary:            #FF8F00;   /* Amber 800 */
  --tertiary:             #FFF176;   /* Yellow 300 */

  /* Surfaces — dark */
  --bg:                   #121212;
  --surface:              #1E1E1E;
  --surface-variant:      #2C2A25;
  --surface-high:         #252420;

  /* Text */
  --text-primary:         #E6E1D5;   /* Warm white */
  --text-secondary:       #B0A896;   /* Warm grey */
  --text-muted:           #6B6047;

  /* Borders */
  --border:               #3A3526;
  --border-strong:        #6B6047;

  /* Header */
  --header-bg:            rgba(18,18,18,.88);
  --header-border:        #3A3526;
  --logo-color:           #FFB300;
  --nav-color:            #B0A896;
  --nav-hover-bg:         #2C2A25;
  --nav-hover-color:      #FFB300;

  /* Lang switcher */
  --lang-switcher-bg:      #2C2A25;
  --lang-btn-color:        #B0A896;
  --lang-btn-hover-bg:     #3A3526;
  --lang-btn-active-bg:    #FFB300;
  --lang-btn-active-color: #1A1200;

  /* Footer */
  --footer-bg:            #0D0D0D;
  --footer-border:        #2C2A25;
  --footer-color:         #6B6047;
}

/* ── Body ───────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text-primary);
}

/* ── App Hero ───────────────────────────────────────────────── */
.app-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(145deg, #0D0900 0%, #1A1200 40%, #3D2C00 100%);
}

.app-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  top: -300px;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,0,.18) 0%, transparent 65%);
  pointer-events: none;
}

.app-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,143,0,.12) 0%, transparent 65%);
  pointer-events: none;
}

.app-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.app-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,179,0,.12);
  border: 1px solid rgba(255,179,0,.25);
  color: #FFB300;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.app-hero-name {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFD54F 0%, #FFB300 50%, #FF8F00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--primary-container-on);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.app-hero-description {
  font-size: 0.975rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.app-hero-description p {
  margin-bottom: 0.85rem;
}

.app-hero-description p:last-child {
  margin-bottom: 0;
}

/* Google Play Button */
.gplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--primary-on);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(255,179,0,.35);
}

.gplay-btn:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,179,0,.5);
}

.gplay-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Hero app icon / logo */
.app-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(255,179,0,.4);
  flex-shrink: 0;
  display: block;
}

/* ── Ideal For Section ──────────────────────────────────────── */
.section-ideal-for {
  padding: 5rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.ideal-for-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ideal-for-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ideal-for-item {
  background: var(--surface-variant);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 1.1rem 1.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ideal-for-item:hover {
  border-color: rgba(255,179,0,.35);
  background: var(--surface-high);
  color: var(--text-primary);
}

/* ── Features Section ───────────────────────────────────────── */
.section-features {
  padding: 5rem 1.5rem;
  background: var(--surface);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.section-heading span {
  color: var(--primary);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  background: var(--surface-variant);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-high);
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  line-height: 1;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Screenshots Section ────────────────────────────────────── */
.section-screenshots {
  padding: 5rem 1.5rem;
  background: var(--bg);
}

.screenshots-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.screenshots-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  justify-content: flex-start;
  align-items: flex-end;
}

.screenshots-grid::-webkit-scrollbar { height: 4px; }
.screenshots-grid::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.screenshot-item {
  flex-shrink: 0;
  width: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--surface-variant);
  aspect-ratio: 9/19;
  cursor: pointer;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-item.placeholder {
  background: linear-gradient(160deg, var(--surface-variant) 0%, var(--primary-container) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-item.placeholder::after {
  content: '📱';
  font-size: 2.5rem;
  opacity: 0.4;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,.6);
}

.screenshot-item:nth-child(even) {
  margin-bottom: 24px;
}

/* ── Pricing Section ────────────────────────────────────────── */
.section-pricing {
  padding: 5rem 1.5rem;
  background: var(--surface);
}

.pricing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Promo banner */
.pricing-promo-banner {
  background: linear-gradient(135deg, rgba(255,179,0,.15) 0%, rgba(255,143,0,.08) 100%);
  border: 1px solid rgba(255,179,0,.4);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  color: var(--primary-container-on);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Billing toggle ──────────────────────────────────────────── */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.billing-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.billing-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-on);
}

.billing-btn:not(.active):hover {
  border-color: var(--primary);
  color: var(--primary);
}

.billing-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4CAF50;
  background: rgba(76,175,80,.12);
  border: 1px solid rgba(76,175,80,.3);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
}

/* ── Price & saving rows in tbody ────────────────────────────── */
.tr-price td,
.tr-saving td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.tr-price {
  background: var(--surface-high);
}

.tr-saving {
  background: rgba(76,175,80,.05);
}

/* Ľavý stĺpec — label */
.row-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  text-align: left !important;
}

/* Cenová bunka */
.price-cell {
  text-align: center;
  vertical-align: middle;
}

.price-main {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.col-premium .price-main {
  color: var(--primary);
}

.price-period {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}

/* Úspora */
.saving-cell {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4CAF50;
  white-space: nowrap;
}

/* Table wrapper — horizontal scroll on narrow screens */
.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--surface-variant);
  min-width: 480px;
}

.pricing-table thead tr {
  background: var(--surface-high);
  border-bottom: 2px solid var(--border-strong);
}

.pricing-table th {
  padding: 1rem 1.2rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

.pricing-table th.col-feature {
  text-align: left;
  color: var(--text-secondary);
}

.pricing-table th.col-premium {
  color: var(--primary);
}

.pricing-table td {
  padding: 0.85rem 1.2rem;
  text-align: center;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pricing-table td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: var(--surface-high);
}

.pricing-table .val-check {
  color: #4CAF50;
  font-size: 1rem;
  font-weight: 700;
}

.pricing-table .val-cross {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footnote & disclaimer */
.pricing-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.pricing-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

/* Announcement block */
.pricing-announcement {
  background: var(--surface-variant);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 1.75rem 2rem;
}

.pricing-announcement-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.pricing-announcement p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.pricing-announcement p:last-child {
  margin-bottom: 0;
}

.pricing-announcement-warning {
  background: rgba(255, 179, 0, 0.06);
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ── Back link ──────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--primary); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
  }

  .app-hero-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: 20px;
    order: -1;
  }

  .screenshot-item { width: 160px; }
  .app-hero { padding: 5rem 1.5rem 4rem; }

  .ideal-for-list {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .pricing-announcement {
    padding: 1.25rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .app-hero { padding: 4rem 1rem 3rem; }

  .section-ideal-for,
  .section-features,
  .section-screenshots,
  .section-pricing {
    padding: 3rem 1rem;
  }

  .screenshot-item { width: 140px; }
}