:root {
  --bg: #f3f4f6;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --gold: #9a7428;
  --gold-soft: #f6efe0;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --radius: 16px;
  --max: 1120px;
  --prose: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }

body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.prose { width: min(var(--prose), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand:hover { text-decoration: none; }

.logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: #090a0c;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover,
.nav-links a.active { color: var(--ink); text-decoration: none; }

.hero {
  padding: 56px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  align-items: center;
  gap: 28px 40px;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 16px;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 38rem;
}

.section { padding: 28px 0 72px; }

.section h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 36rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.card h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.contact p { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer .links { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }

.doc { padding: 48px 0 80px; }
.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.doc h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
.doc p, .doc li { color: #4b5563; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.15rem; margin-top: 10px; }
.doc li { margin: 7px 0; }
.doc strong { color: var(--ink); font-weight: 600; }

.sheet-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 40px 16px 56px;
}

.sheet {
  width: min(560px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 32px 32px;
}

.sheet-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.sheet-brand .logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(9, 10, 12, 0.18);
}

.operator {
  color: var(--muted);
  font-size: 0.82rem;
}

.sheet h1 {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  text-align: center;
  margin-bottom: 10px;
}

.sheet > .lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 22px;
}

.steps {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 14px;
  margin-bottom: 22px;
}

.steps h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.steps ol {
  padding-left: 1.15rem;
  color: #4b5563;
  font-size: 0.92rem;
}

.steps li { margin: 7px 0; }
.steps strong { color: var(--ink); }
.steps-note {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 0.92rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  margin-bottom: 14px;
}

input[type="email"]:focus {
  outline: 2px solid #d6c394;
  border-color: #c4a35a;
  background: #fff;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  cursor: pointer;
}

.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #d1d5db; color: #fff; cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-inline {
  width: auto;
  min-width: 160px;
  margin-top: 22px;
  text-decoration: none;
}
.btn-inline:hover { text-decoration: none; }

.msg { margin-top: 12px; font-size: 0.92rem; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }
.note { margin-top: 14px; color: var(--muted); font-size: 0.86rem; text-align: center; }

.help {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.help p { margin: 6px 0; }
.help .links { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }

.center { text-align: center; }
.stage { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hidden { display: none !important; }
.illus { width: 88px; height: 88px; margin-bottom: 12px; }
.email-mask { color: var(--ink); font-weight: 600; margin-top: 8px; }
.actions { width: 100%; margin-top: 20px; }

.ring { fill: none; stroke-width: 6; stroke-linecap: round; }
.pulse .ring {
  stroke: #c4a35a;
  transform-origin: 70px 70px;
  animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.78); opacity: 0.85; }
  100% { transform: scale(1.12); opacity: 0; }
}
.spin {
  stroke: #9a7428;
  stroke-dasharray: 80 140;
  transform-origin: 70px 70px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ok-ring { stroke: var(--ok); stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 0.55s ease forwards; }
.ok-check {
  fill: none; stroke: var(--ok); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.4s 0.3s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.bad-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--danger-soft); color: var(--danger);
  display: grid; place-items: center; margin-bottom: 14px;
}
.bad-wrap svg { width: 28px; height: 28px; }
.ok-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; margin-bottom: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.no-motion .reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-in {
  animation: appear 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes appear {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-art {
  position: relative;
  min-height: 340px;
}
.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.blob {
  transform-origin: center;
  animation: blob 8s ease-in-out infinite;
}
.blob-2 { animation-delay: -3s; animation-duration: 10s; }
.float-card {
  transform-origin: center;
  animation: floaty 4.6s ease-in-out infinite;
}
.float-card-2 { animation-delay: -1.6s; animation-duration: 5.4s; }
.sun {
  transform-box: view-box;
  transform-origin: 318px 72px;
  animation: sunspin 18s linear infinite;
}
.check-draw {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.45s ease forwards;
}
.check-1 { animation-delay: 0.7s; }
.check-2 { animation-delay: 1.35s; }
.check-3 { animation-delay: 2s; }
.row-on { animation: popin 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.row-1 { animation-delay: 0.45s; }
.row-2 { animation-delay: 1.1s; }
.row-3 { animation-delay: 1.75s; }
.ring-progress {
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  animation: draw 1.4s 0.4s ease forwards;
}
.notif { animation: floaty 3.8s 0.4s ease-in-out infinite; }

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -10px) scale(1.04); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes sunspin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes popin {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .blob, .blob-2, .float-card, .float-card-2, .sun, .check-draw, .row-on, .ring-progress, .notif {
    animation: none;
  }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .sheet { padding: 28px 20px; }
  .nav-links { gap: 14px; }
}
