:root {
  --bg: #fffdf8; --card: #ffffff; --alt: #eef7f3; --ink: #2d2a26; --muted: #625c53; --line: #ece5d8;
  --accent: #f5b335; --accent-ink: #2d2a26; --accent-text: #a85c00; --green: #1f7a63; --glow: #fff4d6; --err: #b3361f;
  --shadow: 0 6px 22px rgba(120, 90, 30, .1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1d1a; --card: #2a2723; --alt: #232a27; --ink: #f4efe6; --muted: #bdb5a8; --line: #3e3932;
    --accent: #f5b335; --accent-ink: #2d2a26; --accent-text: #f5c25e; --green: #6fcfb4; --glow: #332b1b; --err: #f08a74;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1d1a; --card: #2a2723; --alt: #232a27; --ink: #f4efe6; --muted: #bdb5a8; --line: #3e3932;
  --accent: #f5b335; --accent-ink: #2d2a26; --accent-text: #f5c25e; --green: #6fcfb4; --glow: #332b1b; --err: #f08a74;
  --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 Heebo, "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.top-cta { color: var(--accent-text); font-weight: 500; text-decoration: none; padding: 8px 0; }

.btn { display: inline-block; font: inherit; font-weight: 500; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; text-align: center; }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: var(--accent-text); }
.btn:hover { filter: brightness(1.05); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.plan-open { padding-top: 28px; }
.plan-toggle { display: block; width: fit-content; max-width: calc(100% - 32px); min-height: 84px; margin: 0 auto; padding: 0 24px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: var(--shadow); }
.plan-toggle:hover { filter: brightness(1.05); }
.plan-panel { margin-top: 28px; border-top: 1px solid var(--line); background: var(--card); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.plan-panel[hidden] { display: none; }
.plan-status { font-weight: 500; color: var(--accent-text); }
.plan-dots { list-style: none; display: flex; gap: 6px; margin: 14px 0 22px; padding: 0; max-width: 320px; }
.plan-dots li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.plan-dots li.on { background: var(--accent); }
.plan-step[hidden] { display: none; }
.plan-step h2:focus { outline: none; }
.plan-step > p, .plan-step > ul, .plan-step > img { margin-top: 12px; }
.plan-step > img { width: 100%; max-width: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.plan-step > .btn { margin-top: 16px; }
.plan-count { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.plan-step > .plan-count { margin-top: 0; }
.plan-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.plan-choices div { border-radius: 14px; padding: 14px; background: var(--glow); }
.plan-choices b, .plan-choices span { display: block; }
.plan-choices b { font-weight: 500; }
.plan-choices span { color: var(--muted); font-size: 15px; margin-top: 2px; }
.plan-questions { padding-inline-start: 22px; }
.plan-questions li { margin-top: 4px; }
.plan-hint { color: var(--muted); font-size: 15.5px; }
.plan-end { font-weight: 500; }
.plan-nav { display: flex; gap: 10px; margin-top: 24px; }
.plan-nav button[hidden] { display: none; }

.hero { padding: 48px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tag { display: inline-block; font-size: 14px; font-weight: 500; color: var(--green); background: var(--alt); border-radius: 999px; padding: 3px 14px; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-img { width: 100%; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }

.sec { padding: 56px 0; }
.alt { background: var(--alt); }
.sub { color: var(--muted); margin-top: 8px; }

.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }

.example-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; margin-top: 28px; padding: 20px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.example-card img { width: 100%; border-radius: 10px; background: #fff; }
.example-card h3 { font-size: 24px; font-weight: 700; }
.example-card p { color: var(--muted); margin: 8px 0 18px; }

.plan { position: relative; padding-top: 24px; padding-bottom: 48px; }
.plan::after { content: ""; position: absolute; inset: 0; background: url(img/wm.svg); pointer-events: none; }
.plan-intro { padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; background: var(--glow); }
.plan-sheet { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.plan-sheet h2 { font-size: 22px; margin-bottom: 12px; }
.plan-sheet > p + p { margin-top: 8px; }
.plan-muted { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.plan-cover { text-align: center; }
.plan-cover h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.plan-cover p { max-width: 860px; margin-inline: auto; }
.cover-fact { font-weight: 700; font-size: 19px; margin-top: 14px; }
.plan-cover img { width: min(100%, 440px); margin: 18px auto 0; background: #fff; border-radius: 8px; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dims span { display: block; color: var(--muted); font-size: 15px; }
.dims b { display: block; font-weight: 500; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.mat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.mat b { font-weight: 700; }
.mat-tag { font-size: 13px; background: var(--glow); border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.parts-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.parts-table th { white-space: nowrap; text-align: start; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.parts-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.parts-table td:nth-child(1), .parts-table td:nth-child(n+3):nth-child(-n+6) { overflow-wrap: normal; white-space: nowrap; }
.parts-table b { font-weight: 700; }
.part-notes { color: var(--muted); font-size: 14.5px; }
td.part-notes { min-width: 220px; }
.part-drawings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.partcard { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.partcard figcaption { font-size: 15px; margin-bottom: 4px; }
.partcard figcaption b { font-weight: 700; }
.partsvg { width: 100%; height: auto; display: block; direction: ltr; color: var(--ink); }
.partsvg .face { fill: #f8dc9c; stroke: #a8741f; stroke-width: 1; }
.partsvg .edge { fill: #a8741f; stroke: #a8741f; stroke-width: .5; }
.partsvg .dimline line { stroke: var(--ink); stroke-width: .7; }
.partsvg .dimline path { fill: var(--ink); }
.partsvg text { fill: var(--ink); font-size: 11px; text-anchor: middle; font-weight: 600; }
.partsvg text.small { font-size: 9px; font-weight: 400; fill: var(--muted); }
.partsvg .grain line { stroke: #a8741f; stroke-width: .8; stroke-dasharray: 3 2; }
.partsvg .grain path { fill: #a8741f; }
.partsvg .grain text { font-size: 8px; font-weight: 400; fill: #7a5414; }
.cost-total { font-size: 20px; font-weight: 700; }
.plan-next { text-align: center; padding: 18px 0 0; }
.plan-next h2 { margin-bottom: 14px; }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price p:last-child { margin-top: 12px; font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 20px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.ticks li { padding: 8px 26px 8px 0; position: relative; }
.ticks li + li { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 17px; width: 12px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

.notify { background: var(--glow); }
.notify-in { max-width: 640px; }
#notifyForm { margin-top: 20px; }
#notifyForm label { display: block; font-weight: 500; margin-bottom: 6px; }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #2d2a26; text-align: left; }
.notify .btn { white-space: nowrap; }
.form-msg { min-height: 1.6em; margin-top: 8px; font-weight: 500; }
.form-msg.err { color: var(--err); }
.privacy { font-size: 14.5px; margin-top: 8px; color: var(--muted); }
.privacy b { color: var(--ink); font-weight: 500; }
.privacy a { color: var(--ink); }

.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin { padding-top: 24px; padding-bottom: 48px; }
#loginForm { max-width: 480px; margin: 24px auto; }
#loginForm label { display: block; font-weight: 500; margin-bottom: 6px; }
#loginForm input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #2d2a26; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 4px; }
.stat-grid .plan-sheet { margin-bottom: 12px; }
.stat-grid span { display: block; color: var(--muted); font-size: 15px; }
.stat-grid b { display: block; font-size: 28px; font-weight: 700; line-height: 1.3; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.admin-table th { white-space: nowrap; text-align: start; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { white-space: nowrap; padding: 8px; border-bottom: 1px solid var(--line); }
.email-list { list-style: none; margin: 0 0 14px; padding: 0; }
.email-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.email-list small { color: var(--muted); }
.link-btn { margin-inline-start: auto; font: inherit; font-size: 15px; color: var(--err); background: none; border: 0; padding: 4px; cursor: pointer; text-decoration: underline; }

.foot { padding: 24px 0; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .hero { padding: 32px 0; }
  .hero-in, .price { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .example-card { grid-template-columns: 1fr; gap: 16px; }
  .example-card img { max-width: 360px; margin: 0 auto; }
  .part-drawings { grid-template-columns: 1fr 1fr; }
  .parts-table thead { display: none; }
  .parts-table, .parts-table tbody { display: block; }
  .parts-table tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .parts-table td { display: block; padding: 0; border: 0; }
  .parts-table td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
  .parts-table tr { position: relative; }
  .parts-table td:nth-child(1) { position: absolute; top: 12px; inset-inline-start: 0; font-size: 17px; font-weight: 700; }
  .parts-table td:nth-child(2) { grid-column: 1 / -1; padding-inline-start: 28px; font-size: 17px; }
  .parts-table td:nth-child(1)::before, .parts-table td:nth-child(2)::before { display: none; }
  .parts-table td:nth-child(7), .parts-table td:nth-child(8) { grid-column: 1 / -1; }
  .sec { padding: 40px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
  .plan-choices { grid-template-columns: 1fr; }
  .part-drawings { grid-template-columns: 1fr; }
  .plan-sheet { padding: 14px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid b { font-size: 24px; }
  .plan-nav .btn { flex: 1; }
}
