:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --line: #e2d9c8;
  --ink: #241b33;
  --ink-2: #3d3449;
  --muted: #5e566b;
  --primary: #542f9c;
  --primary-hover: #45278a;
  --brand-soft: #ece5f8;
  --mint: #daefe1;   --mint-ink: #1e5b3a;
  --sky: #dae8f5;    --sky-ink: #1d4e78;
  --peach: #fbe2d0;  --peach-ink: #7a3310;
  --lemon: #faedc2;  --lemon-ink: #6b4a00;
  --lilac: #e7def8;  --lilac-ink: #45278a;
  --radius: 22px;
  --radius-sm: 12px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.logo small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--primary); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; color: #fff; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--primary-hover); font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h1 em { font-style: italic; color: var(--primary); }
.lede { font-size: 1.2rem; color: var(--ink-2); margin: 24px 0 34px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; position: relative; box-shadow: 0 1px 0 rgba(36,27,51,.06), 0 10px 30px -18px rgba(36,27,51,.35); }
.tile svg { width: 42%; height: 42%; }
.tile span { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 0.82rem; }
.tile.blank { background: transparent; box-shadow: none; border: 2px dashed var(--line); color: var(--muted); }
.tile.blank span { position: static; font-size: 0.85rem; }
.t-mint { background: var(--mint); color: var(--mint-ink); }
.t-sky { background: var(--sky); color: var(--sky-ink); }
.t-peach { background: var(--peach); color: var(--peach-ink); }
.t-lemon { background: var(--lemon); color: var(--lemon-ink); }
.t-lilac { background: var(--lilac); color: var(--lilac-ink); }
.t-ink { background: var(--primary); color: #fff; }
.tile:nth-child(2) { transform: translateY(26px); }
.tile:nth-child(5) { transform: translateY(26px); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--ink-2); font-size: 1.12rem; margin: 16px 0 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; gap: 22px; align-items: flex-start; }
.alt .card { background: var(--bg); }
.card .icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); }
.card .sub { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 800; letter-spacing: 0; margin-bottom: 8px; }
.promise p { margin: 0; color: var(--ink-2); }
.promise .dot { width: 12px; height: 12px; border-radius: 4px; margin-bottom: 14px; }

.contact { background: var(--primary); color: #fff; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; }
.contact p { color: #e9e2f7; margin: 16px 0 0; font-size: 1.1rem; }
.contact .btn { background: #fff; color: var(--primary); }
.contact .btn:hover { background: var(--brand-soft); color: var(--primary-hover); }
.contact-box { justify-self: end; text-align: right; }
.contact-box .addr { display: block; margin-top: 14px; color: #e9e2f7; font-weight: 600; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; margin-left: 22px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--primary); }

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--muted); margin: 0 0 32px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap, .contact { grid-template-columns: 1fr; }
  .tiles { max-width: 460px; }
  .products, .steps, .promises { grid-template-columns: 1fr; }
  .contact { padding: 40px 28px; }
  .contact-box { justify-self: start; text-align: left; }
  .nav a:not(.btn) { display: none; }
  section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .nav .btn { padding: 0 16px; font-size: 0.9rem; }
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .card { flex-direction: column; padding: 24px; }
  .tiles { gap: 12px; }
  .tile span { font-size: 0.72rem; bottom: 8px; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
