/* Name Wheel — page chrome (header, sections, footer).
   Loads after wheel.css and reuses its --nw-* variables. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ── Header ─────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--nw-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nw-border);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nw-text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
}

.site-logo img { width: 34px; height: 34px; border-radius: 8px; }

/* App icon follows the theme (header logo and CTA icon alike) */
.logo-d { display: none; }
html[data-theme="dark"] .logo-l { display: none; }
html[data-theme="dark"] .logo-d { display: block; }

.lang-nav { display: flex; gap: 2px; font-size: 0.85rem; }

.lang-nav a {
  color: var(--nw-text2);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}

.lang-nav a:hover { background: var(--nw-bg2); color: var(--nw-text); }
.lang-nav a[aria-current="true"] { color: var(--nw-accent); font-weight: 700; }

/* App Store badges: each spot holds four images (iOS/Mac × black/white);
   exactly one shows, picked by html[data-platform] (user-agent, set in
   <head>) and html[data-theme]. The orange CTA card always uses white. */
.app-badge img { height: 36px; display: none; }

html[data-platform="ios"][data-theme="light"] header .b-ios-blk { display: block; }
html[data-platform="ios"][data-theme="dark"] header .b-ios-wht { display: block; }
html[data-platform="mac"][data-theme="light"] header .b-mac-blk { display: block; }
html[data-platform="mac"][data-theme="dark"] header .b-mac-wht { display: block; }

html[data-platform="ios"] .cta-card .b-ios-wht { display: block; }
html[data-platform="mac"] .cta-card .b-mac-wht { display: block; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 48px 20px 8px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD23F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--nw-text2);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 10px auto 0;
}

/* ── Sections ───────────────────────────────────────────────────── */

.app-section { padding: 36px 0 56px; }

/* The wheel deserves more room than the text column. */
.app-section .container { max-width: 1400px; }

section.alt { background: var(--nw-bg2); }

.section-pad { padding: 56px 0; }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-sub {
  text-align: center;
  color: var(--nw-text2);
  margin-bottom: 36px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--nw-bg);
  border: 1px solid var(--nw-border);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}

.feature .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--nw-text2); font-size: 0.95rem; }

/* Screenshots carousel */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  flex: 0 0 230px;
  scroll-snap-align: start;
  text-align: center;
}

.shots img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--nw-shadow);
  display: block;
}

.shots figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--nw-text2);
}

/* iPad + Mac, side by side below the iPhone carousel */
.device-duo {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Equal heights: both images share one height, widths follow their
   own aspect ratios (portrait iPad, landscape Mac). */
.device-duo img {
  border-radius: 14px;
  box-shadow: var(--nw-shadow);
  height: min(400px, 36vw);
  width: auto;
  max-width: 100%;
}

@media (max-width: 700px) {
  .device-duo { flex-direction: column; }
  .device-duo img { height: auto; width: min(420px, 92%); }
}

/* App CTA */
.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  border-radius: 22px;
  padding: 36px 32px;
  color: #fff;
  text-align: center;
}

.cta-card h2 { font-size: 1.45rem; width: 100%; }
.cta-card p { width: 100%; opacity: 0.92; max-width: 620px; margin: 0 auto; }
.cta-card .app-badge img { height: 48px; }

.cta-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* App-only feature chips on the CTA card */
.cta-chips {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cta-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.cta-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--nw-border);
  padding: 32px 20px 44px;
  text-align: center;
  color: var(--nw-text2);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 14px;
}

.footer-links a { color: var(--nw-text2); text-decoration: none; }
.footer-links a:hover { color: var(--nw-accent); }

.foot-name { color: var(--nw-text2); text-decoration: none; font-weight: 600; }
.foot-name:hover { color: var(--nw-accent); }

/* ── Settings (gear, bottom right) ──────────────────────────────── */

.nw-settings-gear {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--nw-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 90;
}

.nw-settings-gear:hover { background: var(--nw-accent2); }

.nw-settings-panel {
  position: fixed;
  right: 22px;
  bottom: 80px;
  width: 260px;
  background: var(--nw-bg);
  color: var(--nw-text);
  border: 1px solid var(--nw-border);
  border-radius: 16px;
  box-shadow: var(--nw-shadow);
  padding: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nw-settings-panel h3 { font-size: 1.05rem; margin: 0; }

.nw-settings-panel h4 {
  font-size: 0.8rem;
  margin: 6px 0 0;
  color: var(--nw-text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nw-settings-panel.nw-hidden { display: none; }

.nw-settings-row { display: flex; gap: 6px; }

.nw-settings-opt {
  flex: 1;
  font: inherit;
  font-size: 0.85rem;
  padding: 7px 0;
  border: 1px solid var(--nw-border);
  border-radius: 8px;
  background: var(--nw-bg);
  color: var(--nw-text);
  cursor: pointer;
}

.nw-settings-opt.active {
  background: var(--nw-accent);
  border-color: var(--nw-accent);
  color: #fff;
}

.nw-settings-toggle { justify-content: space-between; }

/* Embed page: just the wheel, no chrome */
body.embed { background: transparent; }
body.embed .nw-compact { padding: 8px; }
