/* Dark is the default; the header toggle switches to light (saved in localStorage, see theme.js). */
:root {
  color-scheme: dark;
  --accent: #b49cf0;
  --accent-strong: #7b5cc4;
  --accent-soft: #2a2340;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --bg: #111114;
  --card: #1b1a22;
  --border: #2e2b3a;
  --warn-bg: #2b2414;
  --warn-border: #8a6a24;
}

:root[data-theme="light"] {
  color-scheme: light;
  --accent: #7b5cc4;
  --accent-strong: #7b5cc4;
  --accent-soft: #efe9fb;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --bg: #ffffff;
  --card: #f7f6fb;
  --border: #e3e0ec;
  --warn-bg: #fff6e5;
  --warn-border: #f0c36d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover { color: var(--accent); }

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.theme-toggle {
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero {
  text-align: center;
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 { font-size: 2.4rem; margin: 20px 0 4px; }

.tagline { font-size: 1.25rem; color: var(--accent); font-weight: 600; margin: 0 0 16px; }

.hero p.lead { max-width: 680px; margin: 0 auto 24px; color: var(--muted); font-size: 1.1rem; }

.badge-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

section { padding: 48px 0; }

section h2 { font-size: 1.7rem; margin-top: 0; }

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

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

.card h3 { margin: 0 0 6px; font-size: 1.05rem; }

.card p { margin: 0; color: var(--muted); }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 14px;
  padding: 18px 20px;
}

table.info {
  width: 100%;
  border-collapse: collapse;
}

table.info th, table.info td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.info th { width: 34%; color: var(--muted); font-weight: 600; }

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--card);
}

summary { cursor: pointer; font-weight: 600; }

.section-lead { color: var(--muted); margin-top: -6px; }

.gallery-title { margin: 28px 0 10px; font-size: 1.15rem; }

/* Horizontally scrolling, snap-aligned screenshot strips. */
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
}

.gallery figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.gallery img {
  display: block;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.gallery-phone img { width: 220px; border-radius: 26px; }
.gallery-tablet img { width: 330px; }
.gallery-watch img { width: 190px; border-radius: 40px; background: #000; }

.gallery figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-tablet figcaption { max-width: 330px; }
.gallery-watch figcaption { max-width: 190px; }

.gallery a:focus-visible img { outline: 3px solid var(--accent); outline-offset: 3px; }

.policy h2 { margin-top: 36px; font-size: 1.35rem; }

.policy { padding-top: 32px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a { margin: 0 8px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  nav a { margin-left: 12px; }
  .theme-toggle { margin-left: 12px; }
}
