:root {
  --ink: #171310;
  --muted: #6E655C;
  --paper: #FFFBF6;
  --card: #ffffff;
  --rule: #E9DFD2;
  --brand: #1F6F5C;
  --gold: #F2B21B;
  --radius: 16px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", "DejaVu Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 251, 246, 0.94);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brandmark .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 15px; }
nav.site { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 15px; }
nav.site a { color: var(--ink); text-decoration: none; opacity: .78; }
nav.site a:hover { opacity: 1; }
nav.site a.cta {
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; opacity: 1; font-weight: 600;
}

.hero { padding: 54px 20px 28px; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: #3B342D; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand); background: #E7F1ED; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }

.studio {
  display: grid; grid-template-columns: 380px 1fr; gap: 34px;
  padding: 26px 20px 10px; align-items: start;
}
.panel {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 1px 0 rgba(23,19,16,.03);
}
.panel + .panel { margin-top: 18px; }

label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; margin: 0 0 6px; color: #4A423A; }
input[type=text], input[type=url], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid #DCD2C5; border-radius: 10px;
  background: #FFFDFA; color: var(--ink); font: inherit; font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(31,111,92,.35); outline-offset: 1px; border-color: var(--brand); }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid #DCD2C5; background: #fff; border-radius: 999px; padding: 7px 13px;
  font: inherit; font-size: 13.5px; cursor: pointer; color: #3B342D;
}
.chips button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.swatches button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px #D8CEC1; cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }

.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3B342D; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }

.preview-wrap { position: sticky; top: 88px; }
.preview-cap { display: none; font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 10px; }
.preview-shell {
  background: linear-gradient(180deg, #F6EFE6, #EFE6DA);
  border: 1px solid var(--rule); border-radius: 20px; padding: 22px;
  display: grid; place-items: center;
}
canvas#preview {
  width: 100%; max-width: 430px; height: auto; display: block;
  border-radius: 10px; box-shadow: 0 18px 40px rgba(23,19,16,.16);
  background: #fff;
}
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dl-row button {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  border: 1px solid #D8CEC1; background: #fff; color: var(--ink);
  padding: 10px 14px; border-radius: 10px;
}
.dl-row button:hover { border-color: var(--ink); }
.dl-row button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.dl-row button.primary:hover { background: #185A4A; }

.status { min-height: 22px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.status.ok { color: #1F6F5C; font-weight: 600; }
.status.warn { color: #A5341F; font-weight: 600; }

section.band { border-top: 1px solid var(--rule); margin-top: 46px; padding: 46px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid3 .card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.grid3 .card .n { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 44px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700;
}

.callout {
  border-left: 4px solid var(--gold); background: #FFF7E4; padding: 16px 18px; border-radius: 8px;
  font-size: 15px;
}
.callout strong { display: block; margin-bottom: 4px; }

details.faq { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details.faq p { margin: 10px 0 0; color: #3B342D; font-size: 15.5px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.price .amt { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price ul { margin: 12px 0 0; padding-left: 18px; font-size: 15px; color: #3B342D; }
.price.hot { border-color: var(--ink); box-shadow: 0 12px 30px rgba(23,19,16,.10); }

footer.site { border-top: 1px solid var(--rule); padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer.site a { color: var(--muted); }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  /* the card is the product: show it before the form on a phone */
  .preview-wrap { position: static; order: -1; }
  .preview-cap { display: block; }
  canvas#preview { max-width: 300px; }
  .grid3, .price-grid { grid-template-columns: 1fr; }
  nav.site a:not(.cta) { display: none; }
}
