:root {
  --bg: #faf7f2; --bg-alt: #f2ede4; --surface: #fff;
  --ink: #15181f; --ink-soft: #4a4f5c; --ink-mute: #7b8090; --line: #e4ddd1;
  --accent: #e4572e; --accent-dark: #c2441f; --accent-soft: #fde7df;
  --gold: #f4b942; --navy: #14213d;
  --green: #1f8a4c; --green-soft: #e3f4ea; --red: #b3261e; --red-soft: #fbe9e7;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(20, 24, 31, .18);
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.pad { padding: 48px 0; }

/* Header */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo b { color: var(--accent); }
.logo small { font-family: var(--body); font-weight: 600; font-size: .75rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; margin-left: 2px; }
.logo__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 15px; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .93rem; color: var(--ink-soft); }
.tabs a:hover { background: var(--bg); color: var(--ink); }
.tabs a.is-active { background: var(--ink); color: #fff; }
.pill { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 7px; margin-left: 4px; }
.link-btn { border: 0; background: none; color: var(--ink-mute); cursor: pointer; font-size: .9rem; padding: 8px; }
.link-btn:hover { color: var(--ink); }
@media (max-width: 760px) {
  .bar__inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { white-space: nowrap; }
  .link-btn { margin-left: auto; }
}

main.wrap { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
.foot { color: var(--ink-mute); font-size: .85rem; padding-bottom: 32px; text-align: center; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--accent); color: #fff; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; }
.btn--small { padding: .55em 1em; font-size: .88rem; }
.btn--block { width: 100%; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field legend { font-weight: 600; font-size: .95rem; }
.field fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.req { color: var(--accent); }
.hint { color: var(--ink-mute); font-size: .85rem; margin: 0; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
}
.field textarea { resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .92rem; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.error { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 14px; font-weight: 500; margin: 0 0 16px; }
.success { background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 12px 14px; font-weight: 500; margin: 0 0 16px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 18px; }
.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

/* Sign-in */
.auth { max-width: 440px; margin: 24px auto 0; }
.auth .card { padding: 32px; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.8rem; }
.turnstile-slot { margin-bottom: 14px; }
.turnstile-slot:empty { display: none; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-weight: 600; }

/* Questionnaire */
.wizard { max-width: 760px; margin: 0 auto; }
.progress { display: flex; gap: 4px; margin: 0 0 8px; }
.progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progress span.done { background: var(--accent); }
.step-meta { color: var(--ink-mute); font-size: .88rem; font-weight: 600; margin-bottom: 20px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.saved { color: var(--ink-mute); font-size: .85rem; align-self: center; }
.files { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .92rem; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload { display: inline-flex; }
.upload input { display: none; }

/* Project status */
.hero-card { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-card .muted { color: #aeb4c2; }
.hero-card h1 { color: #fff; }
.status-now { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.note { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 11px; color: #fff; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); }
.timeline li.current .dot { border-color: var(--accent); background: var(--accent); }
.timeline li.done::before { background: var(--green); }
.timeline strong { display: block; }
.timeline small { color: var(--ink-mute); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--ink-mute); }
.facts dd { margin: 0; }

/* Shop */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.product h3 { margin-bottom: 6px; }
.product p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.price small { font-family: var(--body); font-weight: 500; font-size: .8rem; color: var(--ink-mute); }
.in-cart { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cart { position: sticky; bottom: 16px; margin-top: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cart small { color: #aeb4c2; display: block; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.answers { display: grid; gap: 14px; }
.answers dt { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.answers dd { margin: 2px 0 0; white-space: pre-wrap; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 50; font-weight: 500; }
