:root {
  --page: #e6e6e6;
  --card: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --on-ink: #ffffff;
  --ink-hover: #000000;
  --text: #3a3a3a;
  --muted: #6f6f6f;
  --faint: #8a8a8a;
  --line: #e6e6e6;
  --hover: #f3f3f3;
  --active: #ececec;
  --accent: #019a55;
  --danger: #b42318;
  --lift: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.06);
  --modal: 0 24px 80px rgba(0, 0, 0, 0.16);
  --hatch: rgba(0, 0, 0, 0.075);
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #0c0c0c;
  --card: #1c1c1c;
  --surface: #1c1c1c;
  --ink: #f4f4f4;
  --on-ink: #111111;
  --ink-hover: #ffffff;
  --text: #d7d7d7;
  --muted: #a3a3a3;
  --faint: #8d8d8d;
  --line: #2e2e2e;
  --hover: #262626;
  --active: #2c2c2c;
  --accent: #1aad62;
  --danger: #ff8d82;
  --lift: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.45);
  --modal: 0 24px 80px rgba(0, 0, 0, 0.55);
  --hatch: rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--page);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, var(--hatch) 16px 17px);
  background-attachment: fixed;
  letter-spacing: -0.006em;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input { outline: none; }
a { color: inherit; }
::selection { background: var(--active); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input:focus-visible { outline: none; }

.mark { height: 36px; width: auto; max-width: min(210px, 52vw); display: block; object-fit: contain; }
.mark-dark { display: none; }
[data-theme="dark"] .mark-light { display: none; }
[data-theme="dark"] .mark-dark { display: block; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
}
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .theme-sun { display: none; }
[data-theme="dark"] .icon-btn .theme-moon { display: none; }
[data-theme="dark"] .icon-btn .theme-sun { display: block; }

.btn-black, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-black { background: var(--ink); color: var(--on-ink); }
.btn-black:hover { background: var(--ink-hover); }
.btn-line { border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.btn-line:hover { background: var(--hover); }
.btn-black.block { width: 100%; }

.topbar, .gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.text-link { text-decoration: none; color: var(--text); font-weight: 500; padding: 0 8px; }
.text-link:hover { color: var(--ink); }

.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 9vh 28px 48px;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 12px 0 16px;
  max-width: 740px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.lede {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.feature {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--lift);
  padding: 20px 20px 22px;
}
.feature svg { color: var(--ink); }
.feature b { display: block; margin: 14px 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); }
.foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 28px 28px;
  color: var(--faint);
  font-size: 12px;
}

.gate-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gate-top.is-in { opacity: 1; pointer-events: auto; }
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 16px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.stage.is-in { opacity: 1; pointer-events: auto; }
.stage-col { width: min(440px, 100%); margin: auto 0; }
.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--modal);
  padding: 28px 28px 22px;
}
.card h1 {
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.card .sub {
  margin: 0 0 16px;
  color: var(--muted);
}
.fine {
  margin: 14px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

.google {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
}
.google:hover { background: var(--hover); }
.g-mark {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--faint);
  font-size: 12px;
}
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--text); }
.field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
}
.field input:focus { border-color: var(--ink); }
.pw { position: relative; display: block; }
.pw input { padding-right: 42px; }
.eye {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
}
.eye:hover { background: var(--hover); color: var(--ink); }
.eye svg { width: 16px; height: 16px; }

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}
.actions .btn-black {
  width: 100%;
  height: 44px;
  margin-left: 0;
  border-radius: 12px;
}
.text {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
}
.text:hover { color: var(--ink); }
.switch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.switch button { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.error { margin: 12px 0 0; color: var(--danger); font-size: 13px; }

.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.choice:hover { background: var(--hover); }
.choice b { display: block; font-size: 14px; }
.choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.choice span { flex: 1; min-width: 0; }
.choice .chev { color: var(--faint); flex: none; }
.back-link { margin-top: 14px; }

.code-hero {
  margin: 4px 0 16px;
  padding: 18px 12px;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.16em;
  font-weight: 600;
  background: var(--hover);
  border-radius: 12px;
}
.share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.share div { min-width: 0; flex: 1; }
.share span { display: block; font-size: 12px; color: var(--muted); }
.share b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share .btn-line { height: 32px; padding: 0 12px; flex: none; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
}
.splash-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: scale(0.94);
}
.splash.is-in .splash-mark {
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity 0.32s ease; }
.splash .mark { height: 64px; max-width: min(440px, 78vw); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--on-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 800px) {
  .trio { grid-template-columns: 1fr; margin-top: 36px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .topbar, .gate-top { padding: 14px 16px; }
  .hero, .foot { padding-left: 16px; padding-right: 16px; }
  .card { padding: 22px 18px 16px; }
  .text-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  .stage, .gate-top { opacity: 1; pointer-events: auto; transition: none; }
}
