:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --soft:#f1f5f9;
  --accent:#2563eb;
  --accent2:#0ea5e9;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}
.container{ max-width: 980px; margin: 0 auto; padding: 0 16px; }

.muted{ color: var(--muted); }
.small{ font-size: 12px; }
a{ color: inherit; }

/* TOPBAR */
.topbar{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand__logo{
  width: 38px; height: 38px; border-radius: 12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:white; font-weight: 900;
}
.brand__text{ display:grid; line-height: 1.1; }
.brand__text span{ color: var(--muted); font-size: 12px; }

/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.20);
  background: var(--accent);
  color:white; text-decoration:none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(2,6,23,.10); }
.btn:active{ transform: translateY(0); box-shadow: none; }

.btn--soft{ background: var(--soft); color: var(--text); border-color: var(--line); }
.btn--wa{ background: #25D366; border-color: rgba(37,211,102,.35); color: #052e16; }

/* HERO */
.hero{ padding: 14px 0 8px; }
.hero--single .hero__text{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
h1{ margin:0 0 8px; font-size: 26px; letter-spacing: -0.4px; line-height: 1.15; }
h2,h3,h4{ line-height: 1.15; }
.accent{ color: var(--accent); }
.lead{ margin:0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.badges{ display:flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.badge{
  font-size: 12px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  padding: 6px 10px;
  border-radius: 999px;
}
.note{
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  font-size: 13px;
}

/* SECTION HEAD */
.section{ padding: 14px 0 40px; }
.section__head{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.section__head h2{ margin:0 0 6px; font-size: 20px; }
.section__head p{ margin:0; color: var(--muted); }

/* BLOCKS */
.block{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.block__title{
  display:flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.block__title h3{ margin:0; font-size: 18px; }
.sub{ color: var(--muted); font-size: 13px; }

/* PRODUCT SELECT */
.productSelect{
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display:grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  text-align:left;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.productSelect:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,.10);
  border-color: rgba(37,99,235,.25);
}
.productSelect:active{ transform: translateY(0); box-shadow: none; }

.productSelect__img{
  width:100%;
  height: 150px;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background:#f8fafc;
  overflow:hidden;
  display:grid; place-items:center;
}
.productSelect__img img{ width:100%; height:100%; object-fit: cover; display:block; }

.productSelect:disabled{
  cursor: default;
  opacity: 1;
}
.productSelect:disabled:hover{
  transform:none;
  box-shadow:none;
}

@media (max-width: 720px){
  .productSelect{ grid-template-columns: 1fr; }
  .productSelect__img{ height: 120px; }
}

.pill{
  display:inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #cffafe;
  color: #155e75;
  font-weight: 900;
  font-size: 12px;
}
.productSelect__info h4{ margin: 6px 0 6px; font-size: 18px; }

/* SELECTED LINE */
.selectedLine{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display:flex; gap: 8px;
  font-size: 13px;
}
.selectedLine--tight{ margin-top: 8px; padding-top: 8px; }
.selectedLine .k{ color: var(--muted); }
.selectedLine .v{ font-weight: 900; }

.selectedLine--highlight{
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 12px;
}
.selectedLine--highlight .k{
  color:#1e3a8a;
  font-weight: 900;
}
.v--badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.25);
  background:#ffffff;
  min-height: 28px;
}

/* GRID 2 */
.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 319px){
  .grid2{ grid-template-columns: 1fr; }
}

/* OPTION CARDS */
.optionCard{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 16px;
  padding: 10px;
  display:grid;
  gap: 8px;
}
.optionCard--static{ cursor: default; }
.optionCard{
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.optionCard:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,.10);
  border-color: rgba(37,99,235,.25);
}
.optionCard--static:hover{
  transform:none;
  box-shadow:none;
  border-color: var(--line);
}

.optionImg{
  width:100%;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background:#f8fafc;
  overflow:hidden;
  display:grid; place-items:center;
}
.optionImg img{ width:100%; height:100%; object-fit: cover; display:block; }

.optionImg--color{
  height: 92px;
  aspect-ratio: 16 / 10;
}

.optionImg--help{
  height: 120px;
  aspect-ratio: 16 / 9;
}

@media (max-width: 720px){
  .optionImg--color{ height: 68px; aspect-ratio: 4 / 3; }
  .optionImg--help{ height: 72px; aspect-ratio: 4 / 3; }
}

#colors .optionBody{
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.optionBody--only{
  display:flex;
  justify-content:center;
  padding-top: 2px;
}
.dot{
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #cbd5e1;
  display:inline-block;
}
.dot--white{ background:#fff; }
.dot--anth{ background:#111827; border-color:#111827; }

/* MEASURE TABLE */
.measureWrap{ border: 1px solid var(--line); border-radius: 16px; overflow:hidden; }
.measureHead, .measureRow{
  display:grid;
  grid-template-columns: 1fr 1fr .7fr 40px;
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
}
.measureHead{ background:#f8fafc; border-bottom: 1px solid var(--line); }
.mh{ font-size: 12px; color: var(--muted); font-weight: 900; }

.measureRow{ background:#fff; border-bottom: 1px solid var(--line); }
.measureRow:last-child{ border-bottom:none; }

.measureRow input{
  width:100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px;
  outline:none;
  background:#fff;
  min-width:0;
}
.iconBtn{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:#fff;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.iconBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,.10);
  border-color: rgba(37,99,235,.25);
}
.iconBtn:active{ transform: translateY(0); box-shadow: none; }

.measureActions{
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px;
  background:#fff;
}
.hint{ color: var(--muted); font-size: 13px; }

@media (max-width: 720px){
  .measureHead{ display:none; }

  .measureWrap .measureRow,
  .measureWrap .measureRow--noType{
    grid-template-columns: minmax(0,2.2fr) minmax(0,2.2fr) 58px 34px !important;
    gap: 8px;
    padding: 10px;
    align-items: center;
  }

  .measureWrap .iconBtn{ width:34px; height:34px; justify-self:end; }

  .measureWrap .measureRow input{
    padding: 9px 8px;
    font-size: 13px;
  }

  .measureWrap .measureRow .qInput,
  .measureWrap .measureRow--noType .qInput{
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* CITY + NOTE */
.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){ .twoCol{ grid-template-columns: 1fr; } }

.field{ display:grid; gap: 6px; }
.field span{ font-size: 12px; color: var(--muted); font-weight: 900; }
.field input{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  outline:none;
  background:#fff;
}

/* CONTACT BOX */
.totalBox{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 16px;
  padding: 14px;
}
.fineprint{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.sendRow{
  display:flex; gap: 10px; flex-wrap: wrap;
  margin-top: 12px;
}

#sendStatus{
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}
@media (min-width: 721px){
  #sendStatus{ font-size: 15px; }
}

/* FOOTER */
.footer{ padding: 18px 0 34px; }
.footer__inner{
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  color: var(--muted);
}

/* fallback */
.imgFallback{
  font-size: 12px; color: var(--muted);
  text-align:center; padding: 6px;
}
.imgFallback span{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color:#475569;
}
.helpTitle{ margin-top: 12px; font-size: 13px; }

/* Desktop image sizing */
@media (min-width: 721px){
  .optionCard .optionImg--color{
    width: 40%;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .optionCard .imgFallback{ width: 100%; }
}

@media (min-width: 721px){
  .grid2--help .optionImg--help{
    width: 50%;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .grid2--help .imgFallback{ width: 100%; }
}

/* MEASURE BLOCK HIGHLIGHT */
.block--measure{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 16px 38px rgba(2,6,23,.14);
  position: relative;
}
.block--measure::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(37,99,235,.08),
    rgba(14,165,233,.05)
  );
  pointer-events: none;
}
.block--measure > *{ position: relative; }

.measureRow{ transition: background .15s ease, box-shadow .15s ease, border-color .15s ease; }
@media (hover: hover){
  .measureRow:hover{ background: #f8fafc; }
}
.measureRow:focus-within{
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.35);
}

/* Selected state */
.is-selected{
  border-color: rgba(37,99,235,.45) !important;
  box-shadow: 0 12px 26px rgba(2,6,23,.12) !important;
}
.optionCard.is-selected,
.productSelect.is-selected{
  border-color: rgba(37,99,235,.55) !important;
}

.twoCol--contact{
  margin-top: 10px;
}