:root {
  color-scheme: dark;
  --bg: #1a242e;
  --bg-deep: #121820;
  --surface: #2e3c4b;
  --line: #3d4f61;
  --text: #f4f7fa;
  --muted: #9aa8b5;
  --accent: #7eb8ff;
  --danger: #f07178;
  --font-display: "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 20% -10%, #3a5166 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-body);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { width: min(960px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; font-size: 0.9rem; }

.hero {
  min-height: calc(100vh - 8rem);
  display: grid;
  align-content: center;
  gap: 1.15rem;
  padding: 2.5rem 0 3rem;
}
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: hero-rise 0.7s ease both;
}
.hero-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: hero-rise 0.7s ease 0.06s both;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  animation: hero-rise 0.75s ease 0.1s both;
}
.hero .lede {
  margin: 0;
  max-width: 34rem;
  color: #d5dee7;
  font-size: 1.15rem;
  line-height: 1.6;
  animation: hero-rise 0.75s ease 0.16s both;
}
.hero-platforms {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  animation: hero-rise 0.75s ease 0.22s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  animation: hero-rise 0.75s ease 0.28s both;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.65rem 1.1rem; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600;
}
.btn-accent { background: #4d7fb5; border-color: #4d7fb5; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }
.coming-soon { color: var(--muted); font-size: 0.95rem; }

.home-strip {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  animation: hero-rise 0.8s ease 0.35s both;
}
.home-strip-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
.home-strip-list li {
  margin: 0;
  color: #d7dee5;
  font-size: 1.02rem;
  line-height: 1.45;
  padding-left: 0.85rem;
  border-left: 2px solid var(--line);
}
.home-strip-list strong {
  color: var(--text);
  font-weight: 650;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon, .hero-kicker, .hero h1, .hero .lede, .hero-platforms, .cta-row, .home-strip {
    animation: none;
  }
}

.screens { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 2rem; }
.screens img { border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }

.legal-body { padding: 1.5rem 0 3rem; max-width: 720px; }
.legal-body h1, .legal-body h2, .legal-body h3 { line-height: 1.25; }
.legal-body p, .legal-body li { color: #d7dee5; line-height: 1.6; }
.legal-body blockquote { border-left: 3px solid var(--line); margin: 1rem 0; padding-left: 1rem; color: var(--muted); }

.delete-panel {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 32, 0.72);
  display: grid;
  gap: 1.15rem;
  max-width: 28rem;
}
.delete-panel > :first-child { margin-top: 0; }
.delete-panel > :last-child { margin-bottom: 0; }
.delete-panel h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.delete-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.danger { color: var(--danger); }

.auth-stack {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
  margin: 0;
}
.auth-stack[hidden],
.session-card[hidden],
.confirm-box[hidden],
[hidden] {
  display: none !important;
}
.auth-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}
.auth-slot-google > div,
.auth-slot-google iframe {
  margin: 0 auto !important;
}
.auth-muted {
  margin: 0;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
}
.auth-provider-btn {
  width: 100%;
  justify-content: center;
}

.session-card {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(46, 60, 75, 0.35);
  display: grid;
  gap: 0.4rem;
  justify-items: stretch;
}
.session-card .session-title {
  margin: 0;
  color: #8bd49a;
  font-weight: 600;
  font-size: 0.95rem;
}
.session-card .session-meta {
  margin: 0;
  color: var(--text-body, #d7dee5);
  font-size: 0.92rem;
  line-height: 1.45;
}
.session-card .session-meta span { color: var(--muted); }
.session-card .btn {
  margin-top: 0.55rem;
  width: 100%;
  justify-content: center;
}

.delete-status {
  margin: 0;
  min-height: 1.25em;
  line-height: 1.45;
  font-size: 0.92rem;
}
.confirm-box {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}
.confirm-box input {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.confirm-box .btn {
  width: 100%;
  justify-content: center;
}
.btn-danger-outline {
  border-color: rgba(240, 113, 120, 0.55);
  color: #f5b0b4;
}
.btn-danger-outline:hover {
  border-color: var(--danger);
  color: #fff;
}

/* legacy alias used by older markup */
.auth-row {
  display: grid;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.footer-links, .social-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 0.75rem 0; }
.footer-meta { margin-top: 1rem; }
.error { color: var(--danger); }
.ok { color: #8bd49a; }
