@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --cr: #F7F3EE;
  --pw: #FDFAF7;
  --pa: #EDE8DF;
  --br: #3D2B1F;
  --bm: #6B4C3B;
  --bl: #C4907A;
  --bl2: #EDD9CE;
  --go: #B8976A;
  --mu: #7A6155;
  --fa: #A89080;
  --green: #8A9E8C;
  --red: #E24B4A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 2px 24px rgba(61,43,31,0.07);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cr);
  font-family: var(--sans);
  color: var(--br);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Typography ────────────────────────────────────────────── */
.t-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bl);
  display: block;
  margin-bottom: 12px;
}
.t-hero {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--br);
  margin-bottom: 16px;
}
.t-hero em { font-style: italic; color: var(--bl); }
.t-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--mu);
  line-height: 1.75;
  max-width: 520px;
}
.t-section {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--br);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fa);
}

/* ── Layout ────────────────────────────────────────────────── */
.page-wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px 80px; }
.hero { text-align: center; padding: 56px 32px 40px; max-width: 680px; margin: 0 auto; }
.badges {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--fa); margin-top: 14px;
}
.two-col {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--pw);
  border: 0.5px solid rgba(61,43,31,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-dark-header {
  background: var(--br);
  padding: 20px 26px;
}
.card-dark-header .t-hero-sm {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #F0E8DC;
  margin-bottom: 3px;
}
.card-dark-header .t-sub-sm {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.card-body { padding: 24px 26px; }

/* ── Form Elements ─────────────────────────────────────────── */
.field-group { margin-bottom: 22px; }
.field-label {
  font-size: 11px;
  color: var(--mu);
  margin-bottom: 6px;
  display: block;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-wrap { position: relative; }
.input {
  width: 100%;
  border: 0.5px solid rgba(61,43,31,0.18);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--br);
  background: var(--cr);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.input:focus { border-color: var(--bl); }
.input-unit {
  position: absolute; right: 11px; bottom: 11px;
  font-size: 11px; color: var(--fa); pointer-events: none;
}

/* Option buttons */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-btn {
  background: var(--cr);
  border: 0.5px solid rgba(61,43,31,0.16);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--bm);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  outline: none;
  transition: all .15s;
  -webkit-appearance: none;
}
.opt-btn:hover { border-color: var(--bl); background: #F7EEE8; }
.opt-btn.on { background: var(--br); color: white; border-color: var(--br); }
.opt-btn .icon { font-size: 15px; display: block; margin-bottom: 3px; }

/* Checkboxes */
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; padding: 8px 12px;
  border-radius: 8px;
  border: 0.5px solid rgba(61,43,31,0.1);
  background: var(--cr);
  transition: all .15s;
  user-select: none;
}
.check-item:hover { border-color: var(--bl); }
.check-item.on { background: rgba(196,144,122,0.08); border-color: var(--bl); }
.check-box {
  width: 15px; height: 15px;
  border-radius: 3px;
  border: 1.5px solid rgba(61,43,31,0.2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: white;
  transition: all .15s;
}
.check-item.on .check-box { background: var(--bl); border-color: var(--bl); }
.check-label { font-size: 12.5px; color: var(--bm); }

/* Step label */
.step-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fa); margin-bottom: 10px;
}
.step-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bl);
  color: white; font-size: 9.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 13px;
  background: var(--br); color: white;
  border: none; border-radius: 100px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  cursor: pointer; margin-top: 8px;
  transition: all .2s; outline: none;
  -webkit-appearance: none;
}
.btn-primary:hover { background: var(--bl); }
.btn-primary:disabled { background: var(--fa); cursor: not-allowed; }
.btn-secondary {
  display: inline-block;
  background: white; color: var(--br);
  border: none; padding: 11px 26px;
  border-radius: 100px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--cr); }

/* ── States ────────────────────────────────────────────────── */
.state-empty {
  background: var(--pw);
  border: 0.5px dashed rgba(61,43,31,0.15);
  border-radius: var(--radius);
  padding: 70px 40px; text-align: center;
}
.state-empty .icon { font-size: 44px; opacity: 0.3; margin-bottom: 16px; }
.state-empty .title {
  font-family: var(--serif); font-size: 26px; font-weight: 300;
  color: var(--br); margin-bottom: 10px; line-height: 1.2;
}
.state-empty .desc { font-size: 13.5px; color: var(--fa); line-height: 1.65; max-width: 260px; margin: 0 auto; }

.state-loading {
  background: var(--pw);
  border: 0.5px solid rgba(61,43,31,0.1);
  border-radius: var(--radius);
  padding: 70px 40px; text-align: center; display: none;
}
.spinner {
  width: 36px; height: 36px;
  border: 2px solid rgba(196,144,122,0.2);
  border-top-color: var(--bl);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-loading .title {
  font-family: var(--serif); font-size: 24px; font-weight: 300;
  font-style: italic; color: var(--br); margin-bottom: 6px;
}
.state-loading .desc { font-size: 13px; color: var(--fa); }

/* ── Result Card ───────────────────────────────────────────── */
.result-card {
  background: var(--pw);
  border: 0.5px solid rgba(61,43,31,0.1);
  border-radius: var(--radius);
  overflow: hidden; display: none;
  box-shadow: var(--shadow);
}
.result-header {
  background: var(--br); padding: 24px 28px;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
}
.result-header .name {
  font-family: var(--serif); font-size: 28px;
  font-weight: 300; color: #F0E8DC;
  line-height: 1.1; margin-bottom: 4px;
}
.result-header .name em { font-style: italic; color: var(--bl2); }
.result-header .meta { font-size: 11.5px; color: rgba(255,255,255,0.36); }
.result-header .score-wrap { text-align: right; flex-shrink: 0; }
.result-header .score { font-family: var(--serif); font-size: 46px; font-weight: 300; color: var(--bl2); line-height: 1; }
.result-header .score-label { font-size: 9.5px; color: rgba(255,255,255,0.3); letter-spacing: 0.07em; text-transform: uppercase; margin-top: 2px; }
.result-body { padding: 24px 28px; }
.result-section { margin-bottom: 24px; }

/* Item rows */
.item-row {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px;
  background: var(--cr); border-radius: 10px;
  border: 0.5px solid rgba(61,43,31,0.07);
  margin-bottom: 7px;
}
.item-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--br); color: white;
  font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.item-text { font-size: 13px; color: var(--bm); line-height: 1.55; flex: 1; }
.item-price { font-size: 13px; font-weight: 500; color: var(--go); white-space: nowrap; }

/* Alert row */
.alert-row {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 13px; border-radius: 10px;
  margin-bottom: 7px;
  background: rgba(138,158,140,0.1);
  border: 0.5px solid rgba(138,158,140,0.3);
}
.alert-text { font-size: 12.5px; color: var(--bm); line-height: 1.55; }

/* Furniture grid */
.furniture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.furniture-card {
  background: var(--cr); border-radius: 10px;
  border: 0.5px solid rgba(61,43,31,0.07); padding: 13px;
}
.furniture-card .f-name { font-size: 13px; font-weight: 500; color: var(--br); margin-bottom: 2px; }
.furniture-card .f-price { font-size: 12px; color: var(--go); font-weight: 500; margin-bottom: 4px; }
.furniture-card .f-note { font-size: 11.5px; color: var(--mu); line-height: 1.5; }

/* CTA block */
.cta-block {
  background: var(--bl); border-radius: 16px;
  padding: 22px; text-align: center; margin-top: 22px;
}
.cta-block .cta-title {
  font-family: var(--serif); font-size: 21px; font-weight: 400;
  color: white; margin-bottom: 7px; line-height: 1.2;
}
.cta-block .cta-title em { font-style: italic; }
.cta-block .cta-sub { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 15px; line-height: 1.6; }

/* Email capture */
.email-block {
  background: var(--pa); border-radius: 14px;
  padding: 20px; text-align: center; margin-top: 12px;
}
.email-block .e-title { font-size: 13.5px; font-weight: 500; color: var(--br); margin-bottom: 4px; }
.email-block .e-sub { font-size: 12px; color: var(--mu); margin-bottom: 11px; }
.email-row { display: flex; gap: 7px; }
.email-input {
  flex: 1; border: 0.5px solid rgba(61,43,31,0.18);
  border-radius: 100px; padding: 9px 14px;
  font-family: var(--sans); font-size: 13px;
  color: var(--br); background: white; outline: none;
}
.email-input:focus { border-color: var(--bl); }
.email-btn {
  background: var(--br); color: white; border: none;
  padding: 9px 16px; border-radius: 100px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.email-btn:hover { background: var(--bl); }
.email-note { font-size: 11px; color: var(--fa); margin-top: 6px; }

/* Error */
.error-msg {
  font-size: 12px; color: var(--red);
  padding: 8px 12px;
  background: rgba(226,75,74,0.06);
  border-radius: 8px; margin-bottom: 8px; display: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .page-wrap { padding: 0 16px 56px; }
  .two-col { grid-template-columns: 1fr !important; }
  .card.sticky { position: static !important; }
  .furniture-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE — COMMANDING PRESENCE
   Appended to existing styles. Desktop unchanged.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Base */
  html, body { font-size: 16px; }

  /* Hero */
  .hero { padding: 40px 20px 32px; }
  .t-eyebrow { font-size: 12px; letter-spacing: 0.14em; }
  .t-hero { font-size: 2.4rem; line-height: 1.1; }
  .t-sub { font-size: 16px; font-weight: 400; }
  .badges { font-size: 14px; gap: 14px; }

  /* Card headers */
  .card-dark-header .t-hero-sm { font-size: 24px; }
  .card-dark-header .t-sub-sm { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6); }

  /* Step label */
  .step-label { font-size: 12px; letter-spacing: 0.08em; margin-bottom: 12px; }
  .step-num { width: 22px; height: 22px; font-size: 11px; }

  /* Field label */
  .field-label { font-size: 13px; margin-bottom: 8px; }

  /* Input */
  .input { font-size: 16px; padding: 13px 36px 13px 14px; }
  .input-unit { font-size: 13px; }

  /* Option buttons */
  .opt-btn { font-size: 14px; padding: 12px 10px; line-height: 1.4; }
  .opt-btn .icon { font-size: 18px; margin-bottom: 5px; }

  /* Checkboxes */
  .check-label { font-size: 15px; }
  .check-box { width: 18px; height: 18px; font-size: 11px; }
  .check-item { padding: 11px 14px; gap: 11px; }

  /* Primary button */
  .btn-primary { font-size: 17px; padding: 16px; border-radius: 14px; margin-top: 12px; }
  .btn-secondary { font-size: 15px; padding: 13px 28px; }

  /* States */
  .state-empty { padding: 50px 24px; }
  .state-empty .title { font-size: 26px; }
  .state-empty .desc { font-size: 15px; }
  .state-loading { padding: 50px 24px; }
  .state-loading .title { font-size: 24px; }
  .state-loading .desc { font-size: 15px; }

  /* Result header */
  .result-header { padding: 22px 20px; flex-direction: column; gap: 12px; }
  .result-header .name { font-size: 28px; }
  .result-header .meta { font-size: 13px; color: rgba(255,255,255,0.55); }
  .result-header .score { font-size: 40px; }
  .result-header .score-wrap { text-align: left; }
  .result-header .score-label { font-size: 11px; }
  .result-body { padding: 20px; }

  /* t-section */
  .t-section { font-size: 20px; margin-bottom: 14px; }

  /* Item rows */
  .item-row { padding: 13px 15px; gap: 10px; }
  .item-text { font-size: 15px; line-height: 1.6; }
  .item-price { font-size: 15px; }
  .item-num { width: 22px; height: 22px; font-size: 11px; }

  /* Alert */
  .alert-text { font-size: 14px; line-height: 1.6; }

  /* Furniture cards */
  .furniture-card { padding: 15px; }
  .furniture-card .f-name { font-size: 15px; }
  .furniture-card .f-price { font-size: 14px; }
  .furniture-card .f-note { font-size: 13px; line-height: 1.6; }

  /* CTA block */
  .cta-block .cta-title { font-size: 24px; }
  .cta-block .cta-sub { font-size: 15px; }

  /* Email */
  .email-block .e-title { font-size: 17px; }
  .email-block .e-sub { font-size: 14px; margin-bottom: 14px; }
  .email-input { font-size: 16px; padding: 11px 14px; }
  .email-btn { font-size: 14px; padding: 11px 18px; }
  .email-note { font-size: 13px; }

  /* Error */
  .error-msg { font-size: 14px; padding: 10px 14px; }

  /* t-label */
  .t-label { font-size: 12px; letter-spacing: 0.08em; }
}
