/* PDF store. Colours --accent, --accent-dark and --wash come from the catalog (inline on each page). */

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

:root {
  --bg: #FBFAF7;
  --card: #FFFFFF;
  --ink: #1F2421;
  --muted: #5F6762;
  --line: #E4E2DA;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 36, 33, .06), 0 8px 24px rgba(31, 36, 33, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); font-size: .95rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--accent); margin-bottom: .8em; }
.eyebrow--light { color: var(--wash); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 .5em; }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .15s; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--big { width: 100%; font-size: 1.1rem; padding: 1em 1.4em; }
.btn--line { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--line-dark { background: transparent; color: var(--accent-dark); border-color: var(--accent-dark); }
.btn--line-dark:hover { background: var(--wash); color: var(--accent-dark); }
.btn--off { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.btn--off:hover { background: var(--line); border-color: var(--line); transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* ---- header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.top__nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: .95rem; }
.top__nav a { color: var(--ink); text-decoration: none; }
.top__nav a:hover { color: var(--accent); }
.pill { background: var(--wash); color: var(--accent-dark) !important; padding: .45em .9em; border-radius: 999px; white-space: nowrap; }

/* ---- hero */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__art { border-radius: var(--radius); box-shadow: var(--shadow); }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "\2713"; color: var(--accent); font-weight: 900; margin-right: .45em; }

/* ---- sections */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section--wash { background: var(--wash); }

/* ---- filter chips and the grid of guides */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { font: 700 .92rem "Lato", sans-serif; padding: .55em 1.05em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card__img img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 6px; flex: 1; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__body h3 a:hover { color: var(--accent); }
.card__body p:last-child { color: var(--muted); font-size: .97rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 18px; }
.price { font-weight: 900; font-size: 1.15rem; }
.price--big { font-size: 2rem; }
.more { font-weight: 700; text-decoration: none; }

/* ---- page previews */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.page { flex: 0 0 auto; width: 190px; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; text-decoration: none; color: var(--muted); font: 700 .85rem/1.3 "Lato", sans-serif; text-align: left; }
a.page { cursor: pointer; }
.page img { border-radius: 6px; box-shadow: var(--shadow); background: #fff; margin-bottom: 10px; }
.page span { display: block; }

/* ---- bundle band */
.band { background: var(--accent-dark); color: #fff; padding: clamp(44px, 7vw, 84px) 0; }
.band__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.band .lead { color: rgba(255, 255, 255, .82); }
.band img { border-radius: var(--radius); }
.band .btn:not(.btn--line) { background: #fff; border-color: #fff; color: var(--accent-dark); }
.band .btn:not(.btn--line):hover { background: var(--wash); border-color: var(--wash); }

/* ---- how it works */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wash); color: var(--accent-dark); font-weight: 900; margin-bottom: 12px; }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }
.steps--plain { grid-template-columns: 1fr; margin: 28px 0; }

/* ---- questions */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* ---- guide, bundle and free pages */
.product { padding: 28px 0 72px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 .35em; }
.product__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.gallery__main { border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery__main img, .gallery__solo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.thumb { border: 1.5px solid var(--line); border-radius: 8px; padding: 0; background: #fff; cursor: zoom-in; overflow: hidden; }
.thumb:hover { border-color: var(--accent); }
.thumb img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.buybox { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.buybox h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.problem { font-size: 1.25rem; font-weight: 700; font-style: italic; color: var(--accent-dark); background: var(--wash); border-radius: 12px; padding: 14px 18px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0; }
.buybox .trust { margin: 16px 0 0; }
.buybox .note { margin: 16px 0 0; }
.upsell { margin-top: 22px; padding: 16px 18px; border: 1.5px dashed var(--accent); border-radius: 14px; }
.upsell p { margin: 0 0 .3em; }
.upsell a { font-weight: 700; }
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); margin-top: 56px; }
.detail-wide { margin-top: 56px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "\2713"; position: absolute; left: 4px; top: 8px; color: var(--accent); font-weight: 900; }
.set { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.set li { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.set img { border-radius: 10px; }
.set h3 { margin-bottom: .2em; }
.set h3 a { color: var(--ink); text-decoration: none; }
.set p { margin: 0; color: var(--muted); font-size: .95rem; }
.sticky-buy { display: none; }

/* ---- thank-you, policies, 404 */
.thanks { padding: 56px 0 80px; }
.offer { margin-top: 36px; background: var(--wash); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.prose { padding: 48px 0 80px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---- footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
.foot a { color: var(--muted); }
.foot p { margin: 0 0 .5em; }

/* ---- page preview viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(20, 24, 22, .86); }
.lightbox img { max-height: 88vh; max-width: min(92vw, 900px); width: auto; border-radius: 6px; background: #fff; }
.lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); width: 46px; height: 46px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }

/* ---- tablets and phones */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__in, .band__in, .product__grid, .detail { grid-template-columns: 1fr; }
  .buybox { position: static; }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .top__nav a:not(.pill) { display: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .set li { grid-template-columns: 96px 1fr; }
  .set .price { grid-column: 2; }
  .page { width: 150px; }
  .btn { width: 100%; }
  .cta-row .btn { width: 100%; }
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(31, 36, 33, .08);
  }
  .sticky-buy .btn { flex: 1; width: auto; padding: .75em 1em; }
  .product { padding-bottom: 110px; }
}
