/* The product's own pages (landing and questionnaire). Same stone-and-olive palette as the family pages. */
:root {
  --bg: #ebe7df; --surface: #f6f4ef; --ink: #24221e; --muted: #6a6459; --line: #cfc7b8;
  --accent: #4f5a2c; --accent-soft: #e1e4d0; --on-accent: #fffdf8; --danger: #9b2c1f;
  --font-display: "Frank Ruhl Libre", "David", "Times New Roman", serif;
  --font-body: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1b1a17; --surface: #24221e; --ink: #ece7dd; --muted: #a59e91; --line: #3d3932;
  --accent: #b3bf85; --accent-soft: #33361f; --on-accent: #1b1a17; --danger: #f0a597; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #1b1a17; --surface: #24221e; --ink: #ece7dd; --muted: #a59e91; --line: #3d3932;
  --accent: #b3bf85; --accent-soft: #33361f; --on-accent: #1b1a17; --danger: #f0a597; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--font-body); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .9rem; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
section { padding-block: 56px; border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1.1rem; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* landing */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 12px; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 36px 64px; }
.hero .lede { font-size: 1.3rem; color: var(--muted); margin-block: 18px 28px; max-width: 34ch; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); display: grid; gap: 12px; }
.mock .bubble { padding: 10px 14px; border-radius: 14px; max-width: 90%; font-size: 1rem; }
.mock .me { background: var(--accent-soft); justify-self: start; }
.mock .them { background: var(--bg); border: 1px solid var(--line); justify-self: end; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 26px; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 12px; }
.price b { font-family: var(--font-display); font-size: 2rem; }
.price ul { padding-inline-start: 20px; margin: 12px 0 0; }
.price.best { border: 2px solid var(--accent); }
footer { padding-block: 32px 48px; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

/* questionnaire */
form.q { display: grid; gap: 22px; padding-block: 12px 64px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 18px 20px 22px; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; padding: 0 6px; }
label { display: grid; gap: 4px; font-weight: 600; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: .95rem; }
input[type=text], input[type=email], input[type=number], textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .row, .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 22px; height: 22px; }
.person { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.person:first-of-type { border-top: 0; padding-top: 0; }
.person h3 { font-size: 1.1rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { display: grid; gap: 6px; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo input { font-size: .95rem; padding: 8px 10px; }
.photo button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; padding: 4px; cursor: pointer; }
.err { color: var(--danger); font-weight: 600; }
.progress { display: grid; gap: 12px; text-align: center; padding-block: 48px; }
.progress .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-inline-end: 8px; animation: p 1.2s infinite; }
@keyframes p { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .progress .dot { animation: none; } }
.links { display: grid; gap: 16px; }
.link { display: grid; gap: 8px; }
.link code { direction: ltr; unicode-bidi: isolate; display: block; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; font-size: .95rem; }
.link .acts { display: flex; gap: 10px; flex-wrap: wrap; }
[hidden] { display: none !important; }
