@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');

:root {
  --blue:       #1a56db;
  --blue-light: #e8f0fe;
  --blue-mid:   #3b82f6;
  --dark:       #0f172a;
  --text:       #1e293b;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --green:      #16a34a;
  --green-bg:   #dcfce7;
  --amber:      #d97706;
  --amber-bg:   #fef3c7;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px; margin: 0 auto;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; color: var(--dark);
  letter-spacing: -.3px;
}
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 500; font-size: 14px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #1340b0 !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
  color: #fff; padding: 96px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #93c5fd; padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15; font-weight: 400;
  margin-bottom: 20px; max-width: 700px;
}
.hero h1 em { color: #93c5fd; font-style: normal; }
.hero p { font-size: 18px; color: #cbd5e1; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500;
  cursor: pointer; border: none; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1340b0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,.35); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat .num { font-family: 'DM Serif Display', serif; font-size: 32px; color: #fff; }
.hero-stat .lbl { font-size: 13px; color: #94a3b8; margin-top: 2px; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-items { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.trust-icon { width: 18px; height: 18px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }

/* ── CALCULATOR ── */
.calc-section { background: var(--bg); }
.calc-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-header {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff; padding: 32px 40px;
}
.calc-header h2 { font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400; margin-bottom: 6px; }
.calc-header p  { color: #94a3b8; font-size: 15px; }
.calc-body { padding: 40px; }

/* step tabs */
.step-tabs { display: flex; gap: 0; margin-bottom: 36px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.step-tab {
  flex: 1; padding: 12px 8px; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--white); cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background .2s, color .2s;
}
.step-tab:last-child { border-right: none; }
.step-tab.active { background: var(--blue); color: #fff; }
.step-tab .step-num { display: block; font-size: 10px; opacity: .7; margin-bottom: 2px; }

/* form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: .01em; }
select, input[type=number], input[type=text] {
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select:focus, input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

.hint { font-size: 12px; color: var(--muted); }

/* room picker */
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.room-card {
  border: 2px solid var(--border); border-radius: 12px;
  padding: 16px 12px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--white);
}
.room-card:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.room-card.selected { border-color: var(--blue); background: var(--blue-light); }
.room-card.selected .room-name { color: var(--blue); }
.room-icon { font-size: 28px; margin-bottom: 6px; }
.room-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* quality slider */
.quality-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quality-btn {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 14px 10px; text-align: center; cursor: pointer;
  background: var(--white); transition: all .2s;
}
.quality-btn:hover { border-color: var(--blue-mid); }
.quality-btn.active { border-color: var(--blue); background: var(--blue-light); }
.quality-btn .q-label { font-weight: 600; font-size: 14px; display: block; }
.quality-btn .q-desc  { font-size: 12px; color: var(--muted); margin-top: 3px; }
.quality-btn.active .q-label { color: var(--blue); }

/* calc nav */
.calc-nav { display: flex; justify-content: space-between; margin-top: 32px; align-items: center; }
.calc-progress { display: flex; gap: 6px; }
.progress-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .3s; }
.progress-dot.done { background: var(--blue); }

/* results */
.results-card {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: 16px; padding: 32px; color: #fff; margin-bottom: 24px;
}
.results-label { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.results-range { font-family: 'DM Serif Display', serif; font-size: 42px; line-height: 1.1; margin-bottom: 6px; }
.results-mid { font-size: 15px; color: #93c5fd; }

.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.breakdown-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.breakdown-item .bi-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.breakdown-item .bi-value { font-size: 18px; font-weight: 600; color: var(--text); }
.breakdown-item .bi-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; }
.breakdown-item .bi-fill { height: 100%; background: var(--blue); border-radius: 2px; transition: width .6s ease; }

.results-actions { display: flex; gap: 12px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); text-decoration: none; color: var(--text); }

.disclaimer { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.step-num-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  font-family: 'DM Serif Display', serif; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; text-align: center; }
.step-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; text-align: center; max-width: 260px; }

/* ── COST TABLE ── */
.cost-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 15px; }
.cost-table th { background: var(--dark); color: #fff; padding: 14px 18px; text-align: left; font-size: 13px; font-weight: 500; letter-spacing: .03em; }
.cost-table th:first-child { border-radius: 10px 0 0 0; }
.cost-table th:last-child  { border-radius: 0 10px 0 0; }
.cost-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--bg); }
.cost-table tr:hover td { background: var(--blue-light); }
.cost-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-low    { background: var(--green-bg); color: var(--green); }
.tag-mid    { background: #dbeafe; color: var(--blue); }
.tag-high   { background: var(--amber-bg); color: var(--amber); }

/* ── FAQ ── */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 22px; font-weight: 600; font-size: 15px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--white); transition: background .2s;
}
.faq-q:hover { background: var(--bg); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--blue); font-weight: 400; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 22px 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 16px; }
.section-label {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
h2.section-title {
  font-family: 'DM Serif Display', serif; font-size: clamp(26px, 4vw, 38px);
  font-weight: 400; line-height: 1.2; color: var(--dark); margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--muted); }

/* ── AD SLOTS ── */
.ad-slot {
  background: var(--bg); border: 1px dashed #cbd5e1;
  border-radius: 8px; text-align: center;
  color: var(--muted); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ad-leaderboard { height: 90px; margin: 0 auto 32px; max-width: 728px; }
.ad-rectangle   { height: 250px; width: 300px; margin: 0 auto; }
.ad-label { opacity: .6; }

/* ── FOOTER ── */
footer { background: var(--dark); color: #94a3b8; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #64748b; transition: color .2s; }
.footer-col a:hover { color: #93c5fd; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ── PRINT ── */
@media print {
  nav, footer, .hero, .trust-bar, .calc-header,
  .step-tabs, .calc-step[data-step="1"],
  .calc-step[data-step="2"], .calc-nav,
  .ad-slot, .section:not(.calc-section),
  .faq-list, .steps-grid, .section-header,
  .results-actions, .hero-actions { display: none !important; }
  body, .calc-section { background: #fff !important; }
  .calc-wrapper { border: none !important; box-shadow: none !important; }
  .calc-body { padding: 0 !important; }
  .results-card { background: #1e3a5f !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .calc-step[data-step="3"] { display: block !important; }
  .breakdown-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .form-grid  { grid-template-columns: 1fr; }
  .room-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .calc-body { padding: 24px; }
  .nav-links { display: none; }
  .quality-options { grid-template-columns: 1fr; }
  .cost-table { font-size: 13px; }
  .cost-table td, .cost-table th { padding: 10px 12px; }
  .results-range { font-size: 32px; }
}
