:root {
  --pink: #c8325a;
  --pink-dark: #a52448;
  --pink-soft: #fbe3ea;
  --cream: #fbf5ec;
  --wood: #e9d6bb;
  --green: #5b9a4b;
  --ink: #2a2422;
  --muted: #6d625c;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(70, 40, 30, .35);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--cream { background: var(--cream); }
.section--pink { background: var(--pink); color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--pink); margin: 0 0 .6em; }
.lead { font-size: 1.25rem; color: var(--muted); }
.big { font-size: 1.3rem; }
.small { font-size: .88rem; color: var(--muted); }
.soft { color: var(--muted); font-weight: 500; }
.hand { font-family: var(--hand); font-size: 1.7rem; color: var(--pink); line-height: 1.2; }
.brush { display: inline-block; margin-top: .2em; background: var(--pink); color: var(--white); padding: .05em .4em; border-radius: 6px 14px 8px 16px; transform: rotate(-1.2deg); font-size: .78em; }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; background: var(--pink); color: var(--white); border: 0; border-radius: 999px; padding: .85em 1.7em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px -10px var(--pink); transition: transform .15s, background .15s; }
.btn:hover { background: var(--pink-dark); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--small { font-size: .95rem; padding: .5em 1.2em; box-shadow: none; }
.btn--big { width: 100%; font-size: 1.25rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #f1e7dc; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--green); text-decoration: none; }
.brand span { color: var(--pink); }
.brand__heart { font-size: 1rem; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
@media (max-width: 680px) { .nav__links a:not(.btn) { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream), var(--white)); padding-block: clamp(40px, 7vw, 90px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__cover img { border-radius: 8px; box-shadow: var(--shadow), 0 2px 0 rgba(0,0,0,.05); transform: rotate(-2.5deg); max-width: 420px; margin-inline: auto; }
.hero__buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 1.4em 0 .6em; }
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__cover img { max-width: 280px; }
  .hero__buy { justify-content: center; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 2.5em; }
.card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; color: var(--muted); }
.card__icon { font-size: 2rem; margin-bottom: .4em; }
.card--quote { background: var(--pink-soft); display: grid; place-items: center; text-align: center; }
.card--quote p { color: var(--pink-dark); }

/* Affirmations */
.affirm { list-style: none; padding: 0; margin: 0 0 1.5em; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.5; }
.affirm li::before { content: "♡ "; opacity: .7; }
.affirm__end { font-size: 1.2rem; opacity: .95; }

/* Author */
.author { display: flex; gap: 36px; align-items: center; max-width: 860px; }
.author__badge { flex: 0 0 130px; height: 130px; border-radius: 50%; background: #e3f0dc; border: 6px solid var(--white); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 4rem; }
.author h2 .hand { font-size: 1.6rem; }
@media (max-width: 640px) { .author { flex-direction: column; text-align: center; } }

/* Buy */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 72px); align-items: center; max-width: 960px; }
.buy__cover { border-radius: 8px; box-shadow: var(--shadow); max-width: 340px; margin-inline: auto; }
.buy__box { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.specs { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .95rem; }
.specs span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.buy__form label { font-weight: 700; font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--wood); border-radius: 999px; overflow: hidden; margin: .4em 0 1em; }
.qty button { width: 44px; height: 44px; border: 0; background: var(--cream); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty input { width: 56px; height: 44px; border: 0; text-align: center; font: 700 1.1rem var(--body); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.total { font-size: 1.15rem; margin: 0 0 1em; }
.secure { margin-top: 1em; text-align: center; }
.error { color: var(--pink-dark); background: var(--pink-soft); padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
@media (max-width: 760px) { .buy { grid-template-columns: 1fr; } .buy__cover { max-width: 220px; } }

/* FAQ */
details { border-bottom: 1px solid #efe4d8; padding: 18px 4px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--pink); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: .7em 0 0; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: #d9cfc8; padding-block: 32px; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: #d9cfc8; }

/* Simple pages (gracias, legal) */
.page { min-height: 70vh; padding-block: clamp(48px, 8vw, 96px); }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.todo { background: #fff6d6; padding: 2px 6px; border-radius: 4px; }
