:root {
  --navy: #2c3e50;
  --navy-dark: #1b2d3d;
  --mint: #5dedd0;
  --blue: #3b82f6;
  --beige: #faf8f4;
  --paper: #ffffff;
  --muted: #607080;
  --line: #dfe6e8;
  --danger: #9e2f36;
  --success: #176b52;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--beige); color: var(--navy); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: #1768ce; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
.section { padding: 78px 0; }
.site-header { height: 72px; display: flex; align-items: center; border-bottom: 1px solid rgba(44,62,80,.12); background: rgba(250,248,244,.94); }
.brand { width: min(1120px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: .025em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--navy); color: var(--mint); border-radius: 11px; font-size: 12px; }
.hero { padding-top: 56px; overflow: hidden; background: radial-gradient(circle at 76% 22%, rgba(93,237,208,.24), transparent 32%), var(--beige); }
.hero-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(44px, 7vw, 92px); align-items: center; }
.cover-wrap { padding: 18px 0 24px; perspective: 1200px; }
.cover { width: min(100%, 390px); height: auto; aspect-ratio: 520 / 736; display: block; margin: 0 auto; object-fit: cover; border-radius: 8px 16px 16px 8px; box-shadow: -12px 18px 0 rgba(44,62,80,.1), 0 30px 65px rgba(31,49,66,.28); transform: rotateY(5deg) rotateZ(-1deg); background: var(--navy); }
.eyebrow { margin: 0 0 12px; color: #117966; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { color: var(--navy-dark); line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0 0 24px; max-width: 760px; font-size: clamp(2.45rem, 5.6vw, 4.9rem); }
h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.25rem); }
.subtitle, .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #405467; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.old-price { color: #7d8993; font-size: 1.4rem; text-decoration: line-through 3px; }
.price { color: var(--navy-dark); font-size: 2.35rem; line-height: 1; }
.badge { border: 1px solid #1d927c; border-radius: 999px; padding: 7px 12px; background: rgba(93,237,208,.2); color: #116653; font-size: .78rem; font-weight: 800; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 0; border-radius: 9px; padding: 13px 22px; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 9px 24px rgba(59,130,246,.25); }
.button-secondary { background: var(--navy); color: #fff; }
.button-full { width: 100%; }
.button[disabled] { opacity: .72; cursor: wait; }
.checkout-status { margin: 12px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.checkout-status--error { color: #9f2d2d; }
.microcopy, .form-note { color: var(--muted); font-size: .86rem; }
.learning { background: var(--navy); color: #eef5f7; }
.learning h2 { color: #fff; }
.learning .eyebrow { color: var(--mint); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 34px 0 0; list-style: none; }
.feature-grid li { position: relative; padding: 22px 22px 22px 55px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.055); }
.feature-grid li::before { content: "✓"; position: absolute; left: 21px; top: 21px; color: var(--mint); font-weight: 900; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 84px); align-items: center; }
.author-card { padding: 38px; border-radius: 16px; background: var(--paper); box-shadow: 0 18px 55px rgba(44,62,80,.10); }
.author-card h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.purchase-section { background: #edf6f4; }
.purchase-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(34px, 6vw, 82px); align-items: start; }
.secure-note { margin-top: 30px; padding: 20px; border-left: 4px solid var(--mint); background: rgba(255,255,255,.64); }
.form-card { padding: clamp(24px, 4vw, 42px); border-radius: 16px; background: #fff; box-shadow: 0 22px 60px rgba(44,62,80,.12); }
form { display: grid; gap: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; color: var(--navy-dark); font-weight: 720; }
label span { color: var(--muted); font-size: .85rem; font-weight: 500; }
input, select { width: 100%; min-height: 48px; border: 1px solid #b9c5ca; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--navy-dark); font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(59,130,246,.2); border-color: var(--blue); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.alert { margin-bottom: 20px; border-radius: 9px; padding: 13px 15px; font-size: .94rem; }
.alert-error { background: #fbeaec; color: var(--danger); border: 1px solid #ecc5ca; }
.alert-success { background: #e7f7f1; color: var(--success); border: 1px solid #bde5d8; }
.alert-info { background: #eaf2fd; color: #245b9d; border: 1px solid #c4d8f5; }
.excerpt-section { background: var(--beige); }
.excerpt-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(30px, 6vw, 70px); border: 1px solid rgba(44,62,80,.12); border-radius: 20px; background: #fff; }
.faq details { border-top: 1px solid var(--line); padding: 20px 2px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--navy-dark); font-size: 1.06rem; font-weight: 800; }
.faq details p { margin-bottom: 0; color: #4b6070; }
footer { padding: 32px 20px; background: var(--navy-dark); color: #dce5e9; text-align: center; font-size: .9rem; }
footer a { color: var(--mint); }
.result-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0, rgba(93,237,208,.22), transparent 35%), var(--beige); }
.result-card { width: min(650px, 100%); padding: clamp(28px, 6vw, 58px); border-radius: 18px; background: #fff; box-shadow: 0 25px 70px rgba(44,62,80,.16); text-align: center; }
.result-card h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.result-icon { width: 52px; height: 52px; margin: 0 auto 26px; border-radius: 50%; }
.result-icon.ok { background: var(--mint); box-shadow: inset 0 0 0 16px #dafaf4; }
.result-icon.ko { background: #d65d67; box-shadow: inset 0 0 0 16px #fbeaec; }
.result-icon.wait { background: var(--blue); box-shadow: inset 0 0 0 16px #e8f1ff; }

@media (max-width: 800px) {
  .section { padding: 56px 0; }
  .hero-grid, .two-columns, .purchase-grid, .excerpt-card { grid-template-columns: 1fr; }
  .cover { width: min(78vw, 340px); }
  .hero-copy { text-align: center; }
  .price-row { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .purchase-grid { gap: 30px; }
}

@media (max-width: 520px) {
  .wrap, .brand { width: min(100% - 28px, 1120px); }
  .narrow { width: min(100% - 28px, 780px); }
  .site-header { height: 64px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card, .author-card { padding: 22px; }
  .excerpt-card { width: min(100% - 20px, 1120px); padding: 24px 18px; }
}
