:root {
  --night: #0f1b3d;
  --night-2: #1b2a5c;
  --dusk: #2f3a7a;
  --cream: #fdf6e3;
  --paper: #fffaf0;
  --moon: #ffd76a;
  --moon-deep: #f5b83d;
  --ink: #1c2340;
  --muted: #b9c1e6;
  --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream);
  background:
    radial-gradient(1.5px 1.5px at 12% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 67% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 5%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 9%, #fff 50%, transparent 51%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--dusk) 100%);
  background-size: 100% 900px, 100% 900px, 100% 900px, 100% 900px, 100% 900px, 100% 900px, 100% 100%;
  background-repeat: no-repeat;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--moon); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); text-align: center; }
p { margin: 0; }
a { color: var(--moon); }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.brand svg { width: 26px; height: 26px; }
.price-tag { font-size: .9rem; color: var(--muted); text-align: right; }

.brand { white-space: nowrap; }
.price-tag { white-space: nowrap; }
@media (max-width: 719px) { .pt-long { display: none; } }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1.05rem;
  color: var(--ink); background: var(--moon);
  padding: 16px 26px; border-radius: 999px;
  box-shadow: 0 6px 0 var(--moon-deep), 0 14px 30px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--moon-deep); }
.btn:focus-visible, input:focus-visible, .x:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero { display: grid; gap: 36px; padding: 28px 0 64px; align-items: center; }
.hero .lede { font-size: 1.15rem; color: #e5e9fb; margin: 18px 0 22px; max-width: 34em; }
.tryit { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 16px; margin-bottom: 24px; max-width: 420px; }
.tryit label { display: block; font-weight: 700; margin-bottom: 8px; }
.tryit input {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 14px;
  border-radius: 12px; border: 2px solid transparent; background: var(--paper); color: var(--ink);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cta-note { font-size: .92rem; color: var(--muted); }

.cover {
  position: relative; width: min(340px, 82vw); aspect-ratio: 4 / 5; margin: 0 auto;
  border-radius: 10px 22px 22px 10px; overflow: hidden;
  background: linear-gradient(180deg, #23307a 0%, #3c3f9a 60%, #6d5fb5 100%);
  box-shadow: -10px 0 0 #0a1230 inset, 0 30px 60px rgba(0,0,0,.5);
  transform: rotate(3deg);
}
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .title {
  position: absolute; left: 26px; right: 18px; top: 26px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.1;
  color: var(--cream); text-shadow: 0 2px 10px rgba(0,0,0,.4); overflow-wrap: anywhere;
}
.cover .title span { color: var(--moon); }
.cover .by { position: absolute; left: 26px; bottom: 18px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #dfe3ff; }

section { padding: 56px 0; }
.sub { text-align: center; color: var(--muted); margin: 10px auto 30px; max-width: 36em; }

.pages { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; }
.page {
  scroll-snap-align: center; background: var(--paper); color: var(--ink);
  border-radius: 16px; overflow: hidden; box-shadow: 0 16px 34px rgba(0,0,0,.35);
}
.page svg, .page img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page p { padding: 16px 18px 20px; font-family: var(--display); font-size: 1.12rem; line-height: 1.4; }
.page b { color: #b3541e; }

.steps, .gets { display: grid; gap: 16px; }
.card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.card p { color: #dfe4fa; }
.num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 50%; background: var(--moon); color: var(--ink); font-weight: 800;
}

.offer {
  background: var(--paper); color: var(--ink); border-radius: 26px; padding: 30px 24px; text-align: center;
  max-width: 560px; margin: 0 auto; box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.offer .big { font-family: var(--display); font-size: 3.2rem; font-weight: 700; line-height: 1; margin: 6px 0; }
.offer ul { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; display: grid; gap: 8px; }
.offer li { padding-left: 30px; position: relative; }
.offer li::before { content: "★"; position: absolute; left: 4px; color: var(--moon-deep); }

details { border-bottom: 1px solid rgba(255,255,255,.18); padding: 16px 0; max-width: 720px; margin: 0 auto; }
summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; }
details p { margin-top: 10px; color: #dfe4fa; }

footer { padding: 34px 0 46px; text-align: center; color: var(--muted); font-size: .9rem; }

dialog {
  border: 0; border-radius: 22px; padding: 0; width: min(480px, calc(100vw - 28px));
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
dialog::backdrop { background: rgba(8, 12, 32, .72); }
.panel { padding: 26px 22px 20px; position: relative; }
.panel h3 { font-size: 1.6rem; margin-bottom: 8px; padding-right: 34px; }
.panel .off { background: var(--moon); border-radius: 8px; padding: 1px 8px; font-weight: 800; white-space: nowrap; }
.panel iframe { width: 100%; height: 220px; border: 0; margin-top: 12px; }
.panel .fine { font-size: .82rem; color: #5a6185; margin-top: 8px; }
.panel .fine a { color: #5a3fb0; }
.x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #ece4cf; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.dev-note { background: #ffe1e1; color: #8a1f1f; border-radius: 10px; padding: 12px; margin-top: 12px; font-weight: 700; }
[hidden] { display: none !important; }

@media (min-width: 720px) {
  .pages { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gets { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
