/* Maatje — product website styles
   Brand: cream #FFF8EE · leaf #3E8E5F · lamp amber #FFB25C · blush #F4A69B · ink #33372F
   Headings: Bricolage Grotesque · Body: Atkinson Hyperlegible Next */

:root {
  --cream: #fff8ee;
  --card: #ffffff;
  --leaf: #3e8e5f;
  --leaf-deep: #2f7049;
  --lamp: #ffb25c;
  --blush: #f4a69b;
  --sky: #a8cde8;
  --ink: #33372f;
  --ink-soft: #71766c;

  --bg: var(--cream);
  --surface: var(--card);
  --surface-2: #fdf3e4;
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --line: #ece2d2;
  --shadow: 0 1px 2px rgba(51, 55, 47, 0.04), 0 8px 24px rgba(51, 55, 47, 0.06);

  --maxw: 1080px;
  --radius: 16px;
  --radius-lg: 28px;

  --font-head: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2620;
    --surface: #28322a;
    --surface-2: #232c26;
    --text: #f1efe6;
    --text-soft: #adb3a6;
    --line: #344036;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.28);
    --leaf: #6cbd8b;
    --leaf-deep: #57ad78;
  }
}

/* Explicit theme toggle wins in both directions (for artifact/host theme stamps) */
:root[data-theme="light"] {
  --bg: var(--cream);
  --surface: var(--card);
  --surface-2: #fdf3e4;
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --line: #ece2d2;
  --leaf: #3e8e5f;
  --leaf-deep: #2f7049;
}
:root[data-theme="dark"] {
  --bg: #1f2620;
  --surface: #28322a;
  --surface-2: #232c26;
  --text: #f1efe6;
  --text-soft: #adb3a6;
  --line: #344036;
  --leaf: #6cbd8b;
  --leaf-deep: #57ad78;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--leaf-deep); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 0.75rem;
}

.lede { font-size: 1.15rem; color: var(--text-soft); max-width: 46ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--lamp), var(--blush) 78%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lamp) 22%, transparent);
}
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}
.nav a:hover { color: var(--leaf); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--leaf); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); background: var(--leaf-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--text-soft); }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 440 / 400;
  background: var(--sky);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Gentle lamp glow over the pod on the lily pad (top-right of the art) */
.hero-art .glow {
  position: absolute;
  top: 16%;
  right: 20%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lamp) 70%, transparent), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
  animation: lampglow 5.5s ease-in-out infinite;
}
@keyframes lampglow {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

/* ---------- Ritual steps ---------- */
.section-head { max-width: 40ch; margin-bottom: 44px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--leaf-deep);
  background: color-mix(in srgb, var(--leaf) 16%, transparent);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--text-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Promises ---------- */
.promises { background: var(--surface-2); }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.promise {
  text-align: left;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.promise .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--lamp) 22%, transparent);
  margin-bottom: 14px;
}
.promise .icon svg { width: 24px; height: 24px; }
.promise h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.promise p { color: var(--text-soft); margin: 0; font-size: 0.96rem; }

/* ---------- Colour choice ---------- */
.colours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}
.colour-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.colour-card img { display: block; width: 100%; height: auto; }
.colour-card .label {
  padding: 16px 20px;
  font-weight: 700;
  font-family: var(--font-head);
}
.colour-card .label span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Privacy block ---------- */
.privacy-band { background: var(--surface-2); }
.privacy-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.privacy-points { list-style: none; padding: 0; margin: 20px 0 0; }
.privacy-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-soft);
}
.privacy-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--leaf) 22%, transparent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--leaf) 55%, transparent);
}
.privacy-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.privacy-art img { display: block; width: 100%; height: auto; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.cta-card h2 { margin-bottom: 0.4em; }
.cta-card .lede { margin: 0 auto 26px; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge-soon {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--leaf-deep);
  background: color-mix(in srgb, var(--leaf) 14%, transparent);
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--leaf); }

/* ---------- Content pages (privacy / support) ---------- */
.doc { padding-top: clamp(40px, 6vw, 72px); }
.doc-inner { max-width: 720px; margin: 0 auto; }
.doc h1 { margin-bottom: 0.25em; }
.doc .updated { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 2.5rem; }
.doc h2 { margin-top: 2.4rem; font-size: 1.5rem; }
.doc h3 { margin-top: 1.8rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5rem; }
.doc .callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lamp);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 1.5rem 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

.faq { margin-top: 1.5rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 22px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--leaf);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 18px; margin: 0; color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .privacy-inner { grid-template-columns: 1fr; }
  .privacy-art { order: -1; max-width: 460px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .colours-grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .glow { animation: none; opacity: 0.6; }
  .btn:hover { transform: none; }
}
