:root {
  --ink: #16181d;
  --muted: #5b6170;
  --line: #e4e6eb;
  --bg: #ffffff;
  --soft: #f5f6f8;
  --accent: #1f6f5c;
  --accent-soft: #e6f2ee;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #8cc7b6; outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.topnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--ink); }

.btn { display: inline-block; background: var(--accent); color: #fff !important; border: 1px solid var(--accent); border-radius: 999px; padding: .7em 1.3em; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: .45em 1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--accent) !important; }
.btn.danger { border-color: var(--danger); color: var(--danger) !important; }

.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--accent-soft), #fff); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font-size: 1.45rem; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.band { padding: 56px 0; }
.band-alt { background: var(--soft); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.two-col { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--accent); font-weight: 800; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 18px 0; }
.price { font-size: 1.3rem; font-weight: 700; }
.small { font-size: .9rem; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }

/* forms */
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; margin: 0 0 20px; min-width: 0; }
.form legend { font-weight: 700; padding: 0 6px; }
.form label { display: block; font-weight: 600; margin: 0 0 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { display: block; width: 100%; margin-top: 6px; padding: .65em .8em; border: 1px solid #cfd3da; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.form input[type=file] { display: block; margin-top: 6px; font-weight: 400; max-width: 100%; }
.form textarea { resize: vertical; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
legend .hint { display: inline; margin-left: 6px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input[type=checkbox] { margin-top: .35em; }
.check input[type=color] { vertical-align: middle; margin-left: 6px; width: 44px; height: 28px; padding: 0; border: 1px solid #cfd3da; border-radius: 6px; }
.styles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
.style-opt { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 !important; cursor: pointer; }
.style-opt small { display: block; color: var(--muted); font-weight: 400; }
.style-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.suffix { display: flex; align-items: center; gap: 6px; }
.suffix input { flex: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fff4e5; border: 1px solid #f5c26b; border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.alert.ok { background: var(--accent-soft); border-color: #9fd3c3; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* customer status page */
.status-busy { text-align: center; }
.spinner { width: 36px; height: 36px; margin: 6px auto 10px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.review-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 12px; }
.review-bar h2 { margin: 0; }
.preview { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* admin */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 12px 0 24px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat span { display: block; font-size: 1.4rem; font-weight: 800; }
.stat small { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 8px 0 28px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tr.attn td { background: #fffaf0; }
.meta-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0; }
.meta-grid small { display: block; color: var(--muted); }
.meta-grid strong { word-break: break-word; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 28px; }
.inline { display: inline; }
.linkbtn { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 0 0 8px; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.pill-alt { background: #6b5bd6; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot-on { background: #1f9d55; }
.dot-warn { background: #e0a100; }
.dot-off { background: #b8bcc6; }
.brief dt { font-weight: 700; text-transform: capitalize; margin-top: 10px; }
.brief dd { margin: 2px 0 0; white-space: pre-wrap; color: var(--muted); }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.inline-form input[type=text] { padding: .45em .6em; border: 1px solid #cfd3da; border-radius: 8px; font: inherit; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .band { padding: 40px 0; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}
