:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #111111;
  --accent-ink: #ffffff;
  --accent-soft: #f3f3f3;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #171717;
    --ink: #f5f5f5;
    --muted: #a3a3a3;
    --line: #2a2a2a;
    --accent: #f5f5f5;
    --accent-ink: #111111;
    --accent-soft: #262626;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], #packs { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

/* Banner shown when checkout isn't configured */
.setup-banner {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav a:not(:first-child) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-primary[disabled] { opacity: 0.55; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; }
.btn-paypal { background: #ffc439; color: #111111; font-weight: 600; }
.btn-paypal:hover { background: #f2b52e; }
.btn-paypal[disabled] { opacity: 0.55; cursor: progress; }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero-copy { max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
/* Sized so "The only Preset Pack you will need" stays on one line, even on phones. */
.hero h1 { font-size: min(43px, calc((100vw - 32px) / 16.6)); letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 18px; margin: 20px 0 28px; max-width: 46ch; }
.hint { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .hero { padding-top: 40px; } }

/* Before / after compare */
.compare { margin: 0; --ratio: 1.5; width: min(100%, calc(66vh * var(--ratio))); justify-self: center; }
.compare-stage { position: relative; aspect-ratio: var(--ratio); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); user-select: none; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.compare-handle span::before { left: 6px; border-right-color: #1d1b18; }
.compare-handle span::after { right: 6px; border-left-color: #1d1b18; }
.compare-range { position: absolute; opacity: 0; pointer-events: none; }
.compare-range:focus-visible + .compare-caption { text-decoration: underline; }
.compare { position: relative; }
.compare .compare-range { inset: 0; width: 100%; height: calc(100% - 32px); pointer-events: auto; cursor: ew-resize; margin: 0; }
.compare-caption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.tag { position: absolute; top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.45); color: #fff; backdrop-filter: blur(4px); pointer-events: none; }
.tag-left { left: 14px; }
.tag-right { right: 14px; }

/* Sections */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* Pack card (under the intro) */
.hero-packs { display: flex; flex-direction: column; gap: 14px; }
.pack-list { display: flex; flex-direction: column; gap: 14px; }
.pack { display: flex; gap: 26px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pack-thumb { flex: 0 0 184px; width: 184px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 10px; background: var(--line); }
.pack-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; justify-content: center; }
.pack-body h3 { font-size: 30px; }
.pack-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price { font-weight: 600; font-size: 26px; font-variant-numeric: tabular-nums; }
.was-price { color: var(--muted); font-size: 19px; font-variant-numeric: tabular-nums; }
.sale-badge { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #d92d20; color: #fff; }
.pack-meta { font-size: 15px; color: var(--muted); }
.pack-desc { color: var(--muted); margin: 2px 0 14px; font-size: 16px; line-height: 1.5; }
.pack .btn { align-self: flex-start; min-height: 52px; padding: 0 34px; font-size: 17px; }
.hero-packs .hint { margin: 0; font-size: 13px; }
.modal-price .price { font-size: inherit; color: var(--ink); }
.modal-price .was-price { font-size: inherit; }
.modal-price .sale-badge { margin-right: 4px; }
@media (max-width: 480px) {
  .pack { flex-direction: column; }
  .pack-thumb { width: 100%; flex-basis: auto; aspect-ratio: 16 / 10; }
  .pack .btn { align-self: stretch; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps h3 { font-size: 20px; margin: 14px 0 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 18px; width: min(420px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.modal::backdrop { background: rgba(20, 18, 15, 0.5); backdrop-filter: blur(2px); }
.modal-close-form { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 1; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.45); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.buy-form { display: flex; flex-direction: column; padding: 0 24px 24px; }
.modal-thumb { width: calc(100% + 48px); max-width: none; margin: 0 -24px 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.buy-form h2 { font-size: 26px; }
.modal-price { color: var(--muted); margin: 4px 0 20px; }
.buy-form label { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.buy-form input { min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--sans); }
.buy-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.buy-form input[aria-invalid="true"] { border-color: #c2412d; }
.field-error { color: #c2412d; font-size: 14px; min-height: 20px; margin: 6px 0 10px; }
.fineprint { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* Success page */
.success { min-height: 70vh; display: grid; place-items: center; padding-block: 64px; text-align: center; }
.success-card { max-width: 520px; }
.success-icon { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; }
.success h1 { font-size: clamp(30px, 4vw, 40px); }
.success p { color: var(--muted); }
.success .btn { margin-top: 12px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pack card: the whole card opens the pack page */
.pack[data-pack] { cursor: pointer; transition: border-color 0.15s ease; }
.pack[data-pack]:hover { border-color: var(--muted); }
.pack h3 a { text-decoration: none; }
.pack h3 a:hover { text-decoration: underline; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pack-actions .btn { align-self: auto; }
@media (max-width: 480px) { .pack-actions { flex-direction: column; } }

/* Pack page */
.back-link { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.pack-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) 1fr; gap: 56px; align-items: center; padding-block: 28px 64px; }
.pack-cover { width: min(100%, calc(72vh * 0.8)); aspect-ratio: 4 / 5; object-fit: cover; justify-self: center; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.pack-info h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.01em; margin-bottom: 14px; }
.pack-info .pack-price { margin-bottom: 18px; }
.pack-details { color: var(--muted); font-size: 18px; margin: 0 0 20px; max-width: 48ch; }
.pack-includes { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.pack-includes li::before { content: "✓"; font-weight: 600; margin-right: 10px; }
.btn-lg { min-height: 52px; padding: 0 34px; font-size: 17px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.preset-card .compare { width: 100%; }
.preset-card h3 { font-size: 20px; margin-top: 12px; }
.bonus-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.preset-placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 14px; color: var(--muted); background: var(--accent-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.compare-caption:empty { display: none; }
.compare:has(.compare-caption:empty) .compare-range { height: 100%; }
@media (max-width: 860px) {
  .pack-hero { grid-template-columns: 1fr; gap: 32px; }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .preset-grid { grid-template-columns: 1fr; } }
.refund-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.license-note { margin-top: 4px; max-width: 52ch; }
.buy-form .fineprint + .fineprint { margin-top: 4px; }

/* "See the before & afters" pointer on the pack page */
.see-arrow { display: inline-block; margin-left: 6px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .see-arrow { animation: none; } }
