/* Vision Board landing - torn paper / washi tape look (see BRAND.md) */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("fonts/pacifico.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2B2D42;
  --ink-soft: #4A4D63;
  --coral: #E4572E;
  --coral-deep: #C2401C;   /* 5.2:1 on white: buttons, small links */
  --pink: #F7C6D0;
  --pink-soft: #FCE6EB;
  --teal: #1B998B;
  --teal-deep: #137A6F;
  --indigo: #3D348B;
  --gold: #E9C46A;
  --cream: #FFF8F0;
  --navy: #1D3557;
  --terracotta: #BA5234;
  --magenta: #A81E68;
  --white: #FFFFFF;
  --shadow: 0 6px 18px rgba(43, 45, 66, .16), 0 1px 3px rgba(43, 45, 66, .12);
  --radius: 4px;
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12l22-5 30 8 26-9 34 7 18-6 40 9 28-8 22 5 36-7 30 9 24-6 38 6 20-8 34 9 26-5 30 4 22-9 38 8 24-4 36 6 28-9 20 7 40-6 26 8 32-7 22 5 36-8 30 9 18-6 34 7 26-8 30 6 24-5 32 8 20-6 38 5 26-7 28 9 22-6 30 4v12z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--indigo); outline-offset: 3px;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.05; margin: 0 0 .4em; font-weight: 400; }
h1, h2 { font-family: "Anton", Impact, "Arial Narrow", sans-serif; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 9.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 7vw, 2.8rem); text-align: center; }
h3 { font-family: "Josefin Sans", sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
h2 .script { white-space: nowrap; }
.script { font-family: "Pacifico", cursive; text-transform: none; font-weight: 400; }
.hand { font-family: "Caveat", cursive; font-weight: 700; }

/* ---------- washi tape + paper helpers ---------- */
.tape { position: relative; }
.tape::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(247, 198, 208, .85) 0 8px, rgba(255, 255, 255, .55) 8px 16px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08); z-index: 2; pointer-events: none;
}
.tape--teal::before { background: repeating-linear-gradient(-45deg, rgba(27, 153, 139, .55) 0 7px, rgba(255, 255, 255, .5) 7px 14px); transform: translateX(-50%) rotate(3deg); }
.tape--gold::before { background: rgba(233, 196, 106, .8); transform: translateX(-50%) rotate(-2deg); }
.tape--indigo::before { background: repeating-linear-gradient(90deg, rgba(61, 52, 139, .45) 0 6px, rgba(255, 255, 255, .5) 6px 12px); }

.torn-top { position: relative; }
.torn-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: inherit;
  -webkit-mask: var(--torn) center / 100% 100% no-repeat; mask: var(--torn) center / 100% 100% no-repeat;
}

/* ---------- header ---------- */
.top { padding: 14px 0 0; text-align: center; }
.brand { font-family: "Pacifico", cursive; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: "Josefin Sans", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); margin-top: -2px; }

/* ---------- hero ---------- */
.hero { padding: 18px 0 56px; background:
  radial-gradient(circle at 12% 18%, rgba(247, 198, 208, .55) 0 120px, transparent 121px),
  radial-gradient(circle at 92% 70%, rgba(233, 196, 106, .35) 0 150px, transparent 151px),
  var(--cream); }
.hero-grid { display: grid; gap: 22px; }
.strip { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.polaroid {
  background: #fff; padding: 6px 6px 18px; box-shadow: var(--shadow); border-radius: 2px;
  width: 30%; max-width: 128px;
}
.polaroid:nth-child(1) { transform: rotate(-6deg); }
.polaroid:nth-child(2) { transform: rotate(3deg) translateY(6px); }
.polaroid:nth-child(3) { transform: rotate(-2deg); }
.polaroid:nth-child(4) { transform: rotate(5deg); }
.polaroid:nth-child(5) { transform: rotate(-4deg); }
.polaroid:nth-child(6) { transform: rotate(2deg); }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.strip .polaroid:nth-child(n+4) { display: none; }

.hero-copy { text-align: center; }
.kicker { display: inline-block; background: var(--teal-deep); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px 4px; transform: rotate(-2deg); margin-bottom: 10px; }
.hero h1 .script { display: block; color: var(--coral-deep); font-size: .72em; line-height: 1.25; margin-top: .05em; }
.hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 58%, var(--pink) 58% 92%, transparent 92%); padding: 0 .08em; }
.sub { font-size: 1.1rem; margin: 0 auto 6px; max-width: 34em; }
.perks { list-style: none; margin: 4px auto 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; text-align: left; }
.perks li { background: #fff; padding: 10px 10px 8px 12px; box-shadow: var(--shadow); border-left: 5px solid var(--teal); font-weight: 700; font-size: .95rem; line-height: 1.25; }
.perks li:nth-child(2) { border-color: var(--coral); }
.perks li:nth-child(3) { border-color: var(--gold); }
.perks li:nth-child(4) { border-color: var(--indigo); }
.perks b { display: block; font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; color: var(--ink); }

/* ---------- form card ---------- */
.card-form {
  background: #fff; padding: 30px 20px 22px; box-shadow: var(--shadow); max-width: 460px; width: 100%; margin: 8px auto 0;
  transform: rotate(-.6deg); border-radius: var(--radius);
}
.card-form h2 { font-size: 1.7rem; margin-bottom: .2em; }
.card-form h3 { font-size: 1.15rem; text-align: center; margin: 0 0 .3em; }
.card-form h3 .opt { font-weight: 400; font-size: .9rem; }
.card-form hr.or { border: 0; border-top: 2px dashed rgba(43,45,66,.18); margin: 20px 0 16px; }
.card-form .lead { text-align: center; margin: 0 0 14px; color: var(--ink-soft); font-size: .98rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; }
.field label .opt { font-weight: 400; }
.field input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 12px 10px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--cream); color: var(--ink);
}
.field input:focus { border-color: var(--indigo); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .95rem; line-height: 1.35; cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--coral-deep); }
.btn {
  display: inline-block; width: 100%; text-align: center; border: 0; cursor: pointer; text-decoration: none;
  background: var(--coral-deep); color: #fff; font: 700 1.15rem/1.2 "Josefin Sans", sans-serif; letter-spacing: .04em;
  text-transform: uppercase; padding: 16px 18px 13px; border-radius: var(--radius); box-shadow: 0 4px 0 #8E2E14;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8E2E14; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--teal { background: var(--teal-deep); box-shadow: 0 4px 0 #0C4F48; }
.btn--small { width: auto; font-size: .9rem; padding: 11px 14px 9px; box-shadow: 0 3px 0 #8E2E14; }
.fine { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }
.status { min-height: 1.4em; text-align: center; font-weight: 700; color: var(--teal-deep); margin: 8px 0 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- sections ---------- */
.section { padding: 56px 0 60px; }
.section--white { background: #fff; }
.section--pink { background: var(--pink-soft); }
.section--cream { background: var(--cream); }
.section-intro { text-align: center; max-width: 34em; margin: -4px auto 26px; color: var(--ink-soft); }

/* book grid */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; list-style: none; padding: 0; margin: 0; }
.book { background: #fff; padding: 8px 8px 14px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; position: relative; }
.book:nth-child(odd) { transform: rotate(-1deg); }
.book:nth-child(even) { transform: rotate(1deg); }
.book img { width: 100%; aspect-ratio: 600 / 801; object-fit: cover; }
.book h3 { font-size: .98rem; margin: 10px 2px 10px; flex: 1; }
.book .btn { font-size: .85rem; padding: 10px 8px 8px; }
.book.is-yours { outline: 4px solid var(--gold); }
.book.is-yours::after {
  content: "Your book"; position: absolute; top: -12px; right: -6px; background: var(--gold); color: var(--ink);
  font: 700 1.05rem "Caveat", cursive; padding: 2px 10px; transform: rotate(6deg); box-shadow: var(--shadow);
}


/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; background: #fff; box-shadow: var(--shadow); padding: 18px 16px 14px 72px; position: relative; min-height: 76px; }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral-deep); color: #fff; font: 400 1.5rem "Anton", sans-serif;
}
.steps li:nth-child(3n+2)::before { background: var(--teal-deep); }
.steps li:nth-child(3n)::before { background: var(--indigo); }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); }
.note { text-align: center; margin: 22px auto 0; font-size: 1.5rem; color: var(--indigo); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; box-shadow: var(--shadow); margin-bottom: 12px; border-left: 5px solid var(--pink); }
.faq details[open] { border-left-color: var(--coral); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 44px 13px 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 1.7rem/1 "Josefin Sans", sans-serif; color: var(--coral-deep); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--ink-soft); }

/* thank-you */
.thanks { text-align: center; padding: 26px 0 64px; }
.thanks .card-form { text-align: center; }
.envelope { font-size: 1.15rem; max-width: 32em; margin: 0 auto 18px; }

/* privacy / text pages */
.doc { background: #fff; box-shadow: var(--shadow); padding: 30px 20px; margin: 28px auto 56px; max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 8vw, 3rem); }
.doc h2 { text-align: left; font-size: 1.5rem; margin-top: 1.4em; }
.doc li { margin-bottom: .4em; }

/* footer */
.foot { background: var(--ink); color: #F1F1F6; padding: 40px 0 34px; text-align: center; font-size: .95rem; }
.foot a { color: #FFD1C2; }
.foot .brand { color: #fff; }
.foot p { margin: .5em auto; max-width: 40em; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  /* 10 books: rows of 4 (last row of 2 centered) on tablets, 2 rows of 5 on desktop */
  .books { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 18px; }
  .book { flex: 0 0 calc((100% - 3 * 18px) / 4); }
  .steps { grid-template-columns: 1fr 1fr; }
  .card-form { padding: 34px 32px 26px; }
  .strip .polaroid:nth-child(n+4) { display: block; }
  .doc { padding: 40px 48px; }
}
@media (min-width: 960px) {
  .hero { padding: 26px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "copy form" "perks form"; align-items: center; gap: 10px 40px; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-grid > .card-form { grid-area: form; }
  .hero-grid > .perks { grid-area: perks; align-self: start; }
  .hero-copy { text-align: left; }
  .perks { margin-left: 0; }
  .strip { justify-content: flex-start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .books { gap: 34px 20px; }
  .book { flex-basis: calc((100% - 4 * 20px) / 5); }
  .card-form { margin-top: 20px; }
  .top { text-align: left; }
}

/* bonus page: a full-width row of polaroids (4 on phones, 8 from tablets up) with room under it for the title */
.polaroid:nth-child(7) { transform: rotate(-3deg) translateY(4px); }
.polaroid:nth-child(8) { transform: rotate(4deg); }
.strip--wide { justify-content: center; gap: 10px; margin: 8px 0 30px; }
.strip--wide .polaroid { flex: 1 1 0; width: auto; max-width: none; min-width: 0; }
.strip--wide .polaroid:nth-child(n+4) { display: block; }
.strip--wide .polaroid:nth-child(n+5) { display: none; }
@media (min-width: 640px) {
  .strip--wide { gap: 14px; margin-bottom: 42px; }
  .strip--wide .polaroid:nth-child(n+5) { display: block; }
}
