@font-face { font-family: Poppins; src: url(/fonts/Poppins-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1d2340; --soft: #4a5170; --line: #cfd3e0; --sun: #ffd23f; --sun-deep: #f2c200; --tomato: #e0533a;
  --blue: #9fb5ee; --paper: #fffdf6; --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sub { color: var(--soft); font-size: 1.08rem; }

/* lined paper, like a handwriting sheet */
.lined { background: var(--sun) repeating-linear-gradient(180deg, transparent 0 46px, #e9b92a66 46px 49px); }

header.top { padding: 14px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img.mark { width: 44px; height: 44px; }
.logo img.word { height: 40px; width: auto; }
nav a { text-decoration: none; font-weight: 500; margin-left: 18px; font-size: .95rem; }
nav a:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: .85em 1.5em; font: 600 1.02rem Poppins, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #1d234033; }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
.btn.alt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.etsy { background: var(--tomato); }
.btn[disabled] { opacity: .6; cursor: wait; }

.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 34ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero .art { border-radius: 24px; box-shadow: 0 24px 60px #1d234033; overflow: hidden; background: #fff; }
.hero .art img { display: block; width: 100%; height: auto; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: .92rem; font-weight: 500; }
.trust span::before { content: "✓ "; color: var(--ink); }

section { padding: 64px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sun); font-weight: 700; margin-bottom: 12px; }

/* builder */
.builder { background: #fff; border-top: 3px dashed var(--line); border-bottom: 3px dashed var(--line); }
.builder .grid { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
form label { display: block; font-weight: 500; font-size: .95rem; margin: 0 0 14px; }
form label small { color: var(--soft); font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 400 1rem Poppins, sans-serif; color: var(--ink); padding: .7em .85em;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
details { border: 2px dashed var(--line); border-radius: 14px; padding: 10px 14px; margin: 6px 0 16px; }
summary { cursor: pointer; font-weight: 500; }
details[open] summary { margin-bottom: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy { font-size: .85rem; color: var(--soft); margin-top: 12px; }
.placeholder { display: grid; place-items: center; min-height: 360px; border-radius: var(--radius); text-align: center; padding: 30px; color: var(--soft); }
.placeholder img { width: 90px; margin-bottom: 10px; }

#result[hidden] { display: none; }
#pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
figure.pg { margin: 0; }
figure.pg svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 28px #1d234026; background: #fff; }
figure.pg figcaption { font-size: .85rem; color: var(--soft); text-align: center; margin-top: 8px; }
#locked { background: var(--paper); border-radius: 14px; padding: 16px 18px; }
#locked .more { font-weight: 600; margin-bottom: 8px; }
#locked ul { columns: 2; margin: 0; padding-left: 0; list-style: none; font-size: .92rem; }
#locked li { padding: 2px 0; break-inside: avoid; }
#locked li::before { content: "🔒 "; }
.buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.buy .price { font-weight: 700; font-size: 1.3rem; }

.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.level { background: #fff; border-radius: var(--radius); padding: 20px; border: 2px solid var(--line); }
.level .tag { display: inline-block; background: var(--sun); border-radius: 999px; padding: 2px 12px; font-size: .8rem; font-weight: 600; margin-bottom: 10px; }
.level p { font-size: .93rem; color: var(--soft); margin: 0; }
.std { font-size: .9rem; color: var(--soft); margin-top: 18px; }

.faq { max-width: 760px; }
.faq details { background: #fff; border-style: solid; }
.faq details p { margin: 0; color: var(--soft); }

footer { padding: 36px 0 50px; font-size: .9rem; color: var(--soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* maker + login */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.narrow { width: min(420px, 100%); text-align: center; }
.narrow form { text-align: left; margin-top: 18px; }
.narrow .btn { width: 100%; }
.err { color: var(--tomato); font-weight: 600; }
.maker .grid { display: grid; grid-template-columns: 440px 1fr; gap: 30px; align-items: start; padding: 26px 0 60px; }
#check { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#status { font-weight: 500; margin-top: 12px; min-height: 1.5em; }
#dl[hidden] { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .builder .grid, .maker .grid { grid-template-columns: 1fr; }
  .steps, .levels { grid-template-columns: 1fr 1fr; }
  nav a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .steps, .levels { grid-template-columns: 1fr; }
  #pages { grid-template-columns: 1fr 1fr; }
  #pages figure:first-child { grid-column: span 2; max-width: 75%; margin-inline: auto; }
  #locked ul { columns: 1; }
  .logo img.word { height: 30px; }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
