[data-theme="a"] {
  --paper: #10110f;
  --paper-deep: #1a1b16;
  --card: #171814;
  --ink: #f4f1e8;
  --soft: #c9c4b8;
  --muted: #8e8a80;
  --line: #34362f;
  --accent: #e4ff47;
  --accent-deep: #c6e000;
  --on-accent: #10110f;
  --gold: #e4ff47;
  --display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --radius: 0px;
  --depth: 0px;
}
[data-theme="b"] {
  --paper: #ffffff;
  --paper-deep: #f7f7f7;
  --card: #ffffff;
  --ink: #3c3c3c;
  --soft: #4b4b4b;
  --muted: #afafaf;
  --line: #e5e5e5;
  --accent: #58cc02;
  --accent-deep: #58a700;
  --on-accent: #ffffff;
  --gold: #ffc800;
  --display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --sans: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --radius: 16px;
  --depth: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
[data-theme="a"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("/grain.png");
  background-size: 96px 96px;
  z-index: 8;
}
[data-theme="a"] .only-b,
[data-theme="b"] .only-a { display: none; }
a { color: inherit; }
img, svg { max-width: 100%; }

.nav, .hero, .features, .price, footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 8px;
  position: relative;
  z-index: 1;
}
.brand {
  font-family: var(--display);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav-link {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0 36px;
}
.sticker {
  display: inline-block;
  margin: 0 0 16px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 4px 10px;
  transform: rotate(-3deg);
  font-weight: 700;
  letter-spacing: 0.08em;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
[data-theme="b"] h1,
[data-theme="b"] h2,
[data-theme="b"] h3 { font-weight: 800; }
h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.05;
}
[data-theme="a"] h1 { font-size: clamp(52px, 8vw, 92px); }
.lede { font-size: 18px; color: var(--soft); max-width: 22em; }
.mascot { width: min(240px, 70%); height: auto; display: block; margin-bottom: 8px; }

.signup { margin-top: 28px; }
.signup label { display: block; font-weight: 700; margin-bottom: 8px; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px;
  min-height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
}
[data-theme="b"] .signup input { border-width: 2px; border-bottom-width: 4px; }
.signup button {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border-bottom: var(--depth) solid var(--accent-deep);
}
.signup button:disabled { opacity: 0.5; cursor: wait; }
.status { min-height: 1.5em; margin: 10px 0 0; }
.status[data-kind="error"] { color: #ff4b4b; }
.status[data-kind="ok"] { color: var(--accent-deep); }
.fine { color: var(--muted); font-size: 13px; }

.phone {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
}
[data-theme="b"] .phone { border-width: 2px; border-bottom-width: 6px; border-radius: 28px; }
.phone-top, .person-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.streak { margin: 18px 0; font-family: var(--display); font-size: 22px; }
.streak strong { font-size: 64px; line-height: 1; margin-right: 8px; }
.person { padding: 14px 0; border-top: 1px solid var(--line); }
.person-head { color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.dots { display: flex; gap: 8px; }
.dots i {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1.5px solid var(--line);
  display: block;
}
[data-theme="b"] .dots i { border-radius: 6px; }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.phone-note { color: var(--soft); margin: 8px 0 0; }

.features { padding: 28px 0 10px; position: relative; z-index: 1; }
.features h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.features ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.features li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  min-height: 220px;
}
[data-theme="b"] .features li { border-width: 2px; border-bottom-width: 5px; }
.features li span { color: var(--accent); font-family: var(--display); }
[data-theme="a"] .features li span { color: var(--accent); }
.features h3 { font-size: 24px; line-height: 1.35; margin: 10px 0; }
.features p { margin: 0; color: var(--soft); }

.price {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: 36px;
  width: min(1120px, calc(100% - 40px));
  position: relative;
  z-index: 1;
}
[data-theme="b"] .price { background: #d7ffb8; border-radius: 28px; }
.price h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: 13px; letter-spacing: 0.08em; font-weight: 700; }
[data-theme="b"] .kicker { color: var(--accent-deep); }
.price-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
[data-theme="b"] .price-card {
  background: var(--gold);
  border: 0;
  border-bottom: 6px solid #e5a800;
  border-radius: 20px;
  color: #3c3c3c;
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.amount {
  font-family: var(--display);
  font-size: 52px;
  margin: 12px 0 0;
  line-height: 1;
}
.amount span { font-size: 16px; margin-left: 8px; font-family: var(--sans); }
.weekly { font-size: 18px; margin-bottom: 0; }

footer {
  padding: 42px 0 56px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
footer p { margin: 0 0 8px; }
footer p:first-child { color: var(--ink); font-family: var(--display); font-size: 20px; }
.theme-switch a { color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.doc {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
  padding: 40px 0 24px;
  position: relative;
  z-index: 1;
}
.doc h1, [data-theme="a"] .doc h1 { font-size: 36px; line-height: 1.3; margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 1.2em; }
.doc .fine { margin-top: 40px; }

@media (max-width: 800px) {
  .hero, .features ol, .price { grid-template-columns: 1fr; }
  .phone { display: none; }
  .hero { padding-top: 8px; }
  .price { padding: 24px; }
  h1, [data-theme="a"] h1 { font-size: 48px; }
}
