/* ===== Tokens & base (from the app) ===== */
html { font-size: clamp(9px, min(1.4545vw, 2vh), 28px); }
:root {
  --bg: #1d1430;
  --fg: #efe6d8;
  --accent: #c9a35c;
  --panel: #2b1f45;
  --muted: rgba(239, 230, 216, 0.55);
  --hairline: rgba(201, 163, 92, 0.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}
h1, h2, h3 { color: var(--accent); line-height: 1.2; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
section { padding: 4rem 1.25rem; max-width: 60rem; margin: 0 auto; }
h2 { font-size: 2rem; text-align: center; margin: 0 0 0.5rem; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 36rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: bold;
  padding: 0.7rem 1.5rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--accent); transition: transform 0.1s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #221634; }
.btn-secondary { background: transparent; color: var(--accent); }

/* ===== Hero ===== */
.hero {
  text-align: center; padding: 4rem 1.25rem 3rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(201,163,92,0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.hero-inner { max-width: 42rem; margin: 0 auto; }
.hero-icon {
  width: 8rem; height: 8rem; margin: 0 auto 1rem;
  border-radius: 18px; box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero h1 { font-size: 3rem; margin: 0; }
.tagline { font-size: 1.4rem; color: var(--fg); margin: 0.5rem 0 1rem; }
.subtagline { color: var(--muted); max-width: 34rem; margin: 0 auto 1.75rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
.hero-cards {
  display: flex; gap: 1rem; justify-content: center;
  margin: 2.5rem auto 0; max-width: 34rem;
}
.hero-cards img {
  width: 9rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.hero-cards img:nth-child(1) { transform: rotate(-6deg); }
.hero-cards img:nth-child(3) { transform: rotate(6deg); }

/* ===== Features ===== */
.feature-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.feature {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 1.5rem;
}
.feature h3 { margin-top: 0; }

/* ===== Screenshots ===== */
.shot-grid {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.shot-btn {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in; border-radius: 10px;
}
.shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shot figcaption {
  margin-top: 0.6rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(0, 0, 0, 0.85); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 92vh; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6); cursor: default;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; color: var(--fg);
  font-size: 2.5rem; line-height: 1; padding: 0.25rem 0.5rem; cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus-visible { color: var(--accent); }

/* ===== Download ===== */
.download-list {
  display: grid; gap: 1.5rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.os-group {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 1.5rem; text-align: center;
}
.os-group.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.os-group h3 { margin: 0 0 1rem; }
.dl-button {
  display: block; text-decoration: none; text-align: center;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 6px;
  padding: 0.6rem 1rem; margin-top: 0.6rem; font-weight: bold;
}
.dl-button:hover { background: var(--accent); color: #221634; }

/* ===== Pricing ===== */
.price-grid {
  display: grid; gap: 1.5rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.plan {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 2rem; text-align: center;
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font-size: 1.6rem; color: var(--accent); margin: 0.5rem 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; color: var(--fg); }
.plan li { padding: 0.35rem 0; border-top: 1px solid var(--hairline); }

/* ===== FAQ ===== */
.faq-list { max-width: 44rem; margin: 2rem auto 0; }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item > button {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--fg); font: inherit; font-size: 1.1rem; font-weight: bold;
  padding: 1rem 1.5rem 1rem 0; cursor: pointer; position: relative;
}
.faq-item > button::after {
  content: "+"; position: absolute; right: 0; color: var(--accent);
}
.faq-item.open > button::after { content: "\2013"; } /* en dash */
.faq-answer { display: none; padding: 0 0 1rem; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

/* ===== Footer ===== */
.site-footer {
  text-align: center; padding: 2rem 1.25rem;
  background: rgba(20,14,30,0.92); border-top: 1px solid var(--hairline);
}
.site-footer p { margin: 0.25rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 40rem) {
  .hero h1 { font-size: 2.2rem; }
  .tagline { font-size: 1.2rem; }
  .hero-cards img { width: 6rem; }
  .hero-actions .btn { width: 100%; }
  section { padding: 3rem 1.25rem; }
}
