@font-face { font-family: 'Archivo Black'; src: url('/fonts/ArchivoBlack.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-weight: 800; src: url('/fonts/Fraunces-ExtraBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: italic; src: url('/fonts/Fraunces-SemiBoldItalic.ttf') format('truetype'); font-display: swap; }

:root {
  --paper: #F6F1E7;
  --card: #FFFDF8;
  --ink: #1D2420;
  --muted: #5E665F;
  --line: #E2D9C6;
  --brand: #1F5C45;
  --brand-ink: #FFFDF8;
  --accent: #D64933;
  --radius: 16px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
a { color: var(--brand); }
section { padding: 72px 20px; max-width: 1120px; margin: 0 auto; }

.logo { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--brand); }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; border: 0; border-radius: 999px; padding: 16px 28px; font-size: 1.05rem; cursor: pointer; transition: transform .12s, background .12s; font-family: inherit; }
.btn:hover { background: #174A37; transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: .95rem; white-space: nowrap; }
.scale-note { font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
.btn.wide { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.loading::after { content: ' …'; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 12px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; max-width: 1120px; margin: 0 auto; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 40px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.hero-bins { display: flex; align-items: flex-end; justify-content: center; }
.hero-bins .bin { width: 34%; margin: 0 -2%; }
.hero-bins .bin:nth-child(2) { width: 40%; z-index: 1; }

/* Atelier */
.atelier { background: var(--card); border-radius: 28px; max-width: 1160px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(30, 40, 30, .35); }
.section-lede { color: var(--muted); margin: 0 0 32px; }
.atelier-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.preview { position: sticky; top: 16px; background: radial-gradient(circle at 50% 35%, #fff 0, #EFE8DA 70%); border-radius: var(--radius); padding: 28px 20px 18px; text-align: center; }
.bin.big { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.bin-colors { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.bin-chip input, .swatch input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.bin-chip span { display: block; width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; outline: 1px solid var(--line); cursor: pointer; }
.bin-chip input:checked + span { border-color: var(--ink); }
.bin-chip em, .swatch em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bin-chip, .swatch { position: relative; }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-family: var(--serif); font-weight: 800; font-size: 1.25rem; margin-bottom: 12px; }
.choices { display: grid; gap: 10px; }
.formats { grid-template-columns: 1fr 1fr; }
.styles { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s; }
.choice:hover { border-color: #C9BEA6; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 92, 69, .12); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.styles .choice { align-items: center; padding: 10px 8px; text-align: center; }
.styles .choice svg { width: 100%; height: 72px; }
.styles .choice small { font-weight: 600; color: var(--ink); }
.packs .choice { flex-direction: row; align-items: center; gap: 8px; }
.packs .choice b { margin-left: auto; font-size: 1.05rem; }
.packs .choice span { color: var(--muted); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
.field input { width: 100%; font: inherit; font-size: 1.15rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus { outline: none; border-color: var(--brand); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch span { display: block; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 3px solid var(--card); outline: 2px solid transparent; transition: outline-color .12s; }
.swatch input:checked + span { outline-color: var(--ink); }
.swatch input:focus-visible + span { outline-color: var(--accent); }

.error { color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.fine { color: var(--muted); font-size: .82rem; text-align: center; margin: 12px 0 0; }

/* How + FAQ */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0 0; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 24px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-family: 'Archivo Black', sans-serif; margin-bottom: 14px; }
.steps strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }

.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
details p { color: var(--muted); margin: 10px 0 0; }

.foot { text-align: center; padding: 48px 20px 60px; color: var(--muted); font-size: .9rem; }
.foot .logo { font-size: 1.3rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(20, 25, 22, .55); display: grid; place-items: center; padding: 20px; z-index: 10; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: 20px; padding: 32px; max-width: 420px; text-align: center; }
.modal-card p { color: var(--muted); }

/* Legal / thank-you pages */
.page { max-width: 760px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }

@media (max-width: 860px) {
  section { padding: 48px 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-bins { order: -1; max-width: 420px; margin: 0 auto; }
  .atelier { border-radius: 0; }
  .atelier-grid { grid-template-columns: 1fr; gap: 24px; }
  .preview { position: static; padding: 16px 12px 12px; }
  .bin.big { max-width: 260px; }
  .top .logo { font-size: 1rem; }
  .btn.small { padding: 9px 14px; font-size: .85rem; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* Cookie consent bar (analytics.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 14px 16px; display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.consent p { margin: 0; flex: 1 1 260px; font-size: .95rem; }
.consent div { display: flex; gap: 8px; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn.ghost:hover { background: transparent; }
