/* Fretone marketing site — tokens mirror Packages/DesignSystem's
   real Palette values (void/ink/mist/gold/amber) so this page reads as an
   extension of the app, not a separate brand. */
:root {
  --void: #f6f5fc;
  --ink: #ffffff;
  --ink-elevated: #edebfa;
  --text: #14121f;
  --text-dim: rgba(20, 18, 31, 0.65);
  --hairline: rgba(20, 18, 31, 0.1);
  --gold: #8f332e;
  --amber: #e2521a;
  --on-accent: #ffffff;
  --shadow: 0 20px 60px rgba(20, 18, 31, 0.12);
  --font-display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --void: #121016;
    --ink: #1d1b25;
    --ink-elevated: #242331;
    --text: #f3f1fa;
    --text-dim: rgba(243, 241, 250, 0.65);
    --hairline: rgba(243, 241, 250, 0.12);
    --gold: #b3423f;
    --amber: #ff6a33;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ---- Header ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.rooms { display: flex; gap: 1.4rem; }
nav.rooms a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
nav.rooms a:hover { color: var(--gold); }
@media (max-width: 720px) { nav.rooms { display: none; } }

/* ---- Hero ---- */
.hero {
  padding-block: 4.5rem 3.5rem;
  text-align: center;
}
.hero .icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-inline: auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 1.6rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 0.5rem;
}
.hero .platforms {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 2.2rem;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 0.9rem;
}
.store-row .badge { height: 48px; width: auto; }
.store-row .qr {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  padding: 6px;
  background: var(--ink);
}
.store-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.4rem 0 0.2rem;
}
.notify {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold);
}
.notify:hover { text-decoration: underline; }

/* ---- Section shell ---- */
section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.6rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.section-head p { color: var(--text-dim); margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--amber);
  font-weight: 700;
}

/* ---- Rooms grid ---- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.room-card {
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 1.6rem;
}
.room-card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.room-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.room-card p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* ---- Screenshot theme toggle ---- */
.theme-toggle {
  display: inline-flex;
  gap: 0.3rem;
  margin-top: 1.1rem;
  background: var(--ink-elevated);
  padding: 4px;
  border-radius: 999px;
}
.theme-toggle button {
  border: 0;
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
}
.theme-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--on-accent); }

/* ---- Screenshots ---- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}
.shots-grid figure { margin: 0; }
.shots-grid img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}
/* Pre-JS fallback: follow system preference. Once main.js runs, it sets
   data-shot-theme explicitly and the toggle buttons take over from there. */
.shots-grid:not([data-shot-theme]) .shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .shots-grid:not([data-shot-theme]) .shot-light { display: none; }
  .shots-grid:not([data-shot-theme]) .shot-dark { display: block; }
}
.shots-grid[data-shot-theme="light"] .shot-dark { display: none; }
.shots-grid[data-shot-theme="dark"] .shot-light { display: none; }
.shots-grid figcaption {
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---- Why / trust ---- */
.trust {
  background: var(--ink-elevated);
  border-radius: 28px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  text-align: center;
}
.trust-grid .stat {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.trust-grid p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--hairline);
  padding-block: 2.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
footer.site .foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
footer.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer.site .legal { max-width: 760px; line-height: 1.6; }

/* ---- Cookie banner ---- */
#cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 520px;
  margin-inline: auto;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
#cookie-banner p { margin: 0 0 0.8rem; font-size: 0.85rem; color: var(--text-dim); }
#cookie-banner .actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
#cookie-banner button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
#cookie-banner .accept { background: var(--gold); color: var(--on-accent); }
#cookie-banner .decline { background: transparent; color: var(--text-dim); border: 1px solid var(--hairline); }
