﻿:root {
  --ink: #14171d;
  --navy: #062a54;
  --blue: #1459a8;
  --espresso: #2d1b14;
  --gold: #d8aa5c;
  --cream: #fff7e8;
  --paper: #fffdf8;
  --soft: #efe2cf;
  --shadow: 0 24px 70px rgba(20, 23, 29, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", "Gill Sans", Verdana, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px clamp(18px, 5vw, 58px); background: rgba(255, 253, 248, 0.94); border-bottom: 1px solid rgba(20, 23, 29, 0.1); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: white; background: linear-gradient(135deg, var(--navy), var(--espresso)); font-weight: 950; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: #68717c; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.top-actions { display: flex; align-items: center; gap: 18px; color: #3b4652; font-size: 14px; font-weight: 900; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 24px; border: 2px solid var(--ink); border-radius: 999px; color: white; background: linear-gradient(135deg, var(--navy), var(--espresso)); box-shadow: 0 14px 30px rgba(20, 23, 29, .23); font-weight: 950; }
.button-small { min-height: 42px; padding: 11px 18px; }
.button-ghost { color: var(--ink); background: rgba(255,255,255,.82); box-shadow: none; }

.hero { position: relative; min-height: 780px; overflow: hidden; display: grid; place-items: center; padding: clamp(34px, 7vw, 82px); }
.hero-side { position: absolute; top: 0; bottom: 0; width: 50%; background-size: cover; background-position: center; }
.tempur-side { left: 0; background-image: linear-gradient(rgba(6,42,84,.78), rgba(6,42,84,.78)), url("assets/tempur-hero.jpg"); }
.sf-side { right: 0; background-image: linear-gradient(rgba(45,27,20,.68), rgba(45,27,20,.68)), url("assets/sf-hero.jpg"); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255,247,232,.95), rgba(255,247,232,.78) 24%, rgba(255,247,232,0) 46%); }
.hero-content { position: relative; z-index: 1; max-width: 850px; padding: clamp(28px, 5vw, 54px); text-align: center; border: 1px solid rgba(255,255,255,.28); border-radius: 38px; background: rgba(255,253,248,.88); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(48px, 8vw, 92px); line-height: .9; letter-spacing: -.07em; }
h2 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 62px); line-height: .94; letter-spacing: -.05em; }
h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1; letter-spacing: -.04em; }
.lede { max-width: 720px; margin-inline: auto; color: #3f4b58; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.2; font-weight: 800; }
.brand-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 30px auto; }
.brand-row img { max-width: 220px; max-height: 58px; object-fit: contain; }
.brand-row span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 999px; color: white; background: var(--ink); font-weight: 950; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.quick-answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(20,23,29,.12); }
.answer-card { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 28px; min-height: 390px; padding: clamp(32px, 5vw, 58px); background: var(--cream); }
.answer-card.stearns { background: #f1e2cf; }
.answer-card img { max-height: 290px; margin: auto; object-fit: contain; }
.answer-card p:not(.eyebrow), .section-heading p, .feature p, .try-copy p, .trust-card p { color: #5b6673; font-size: 18px; line-height: 1.45; font-weight: 700; }

.section { padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 58px); }
.section-heading { max-width: 780px; margin: 0 auto 42px; text-align: center; }
.comparison-section { background: linear-gradient(180deg, var(--paper), #f1e6d5); }
.comparison-table { max-width: 1120px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(20,23,29,.14); border-radius: 30px; background: white; box-shadow: var(--shadow); }
.table-row { display: grid; grid-template-columns: .7fr 1fr 1fr; border-bottom: 1px solid rgba(20,23,29,.1); }
.table-row:last-child { border-bottom: 0; }
.table-row span { padding: 22px; font-weight: 800; line-height: 1.3; }
.table-row span:first-child { color: var(--ink); background: rgba(216,170,92,.14); font-weight: 950; }
.table-head span { color: white !important; background: linear-gradient(135deg, var(--navy), var(--espresso)) !important; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; background: var(--paper); }
.feature { overflow: hidden; border: 1px solid rgba(20,23,29,.12); border-radius: 28px; background: white; box-shadow: 0 16px 44px rgba(20,23,29,.1); }
.feature img { width: 100%; height: 210px; object-fit: cover; background: #fff; }
.feature .eyebrow, .feature h3, .feature p { padding-inline: 22px; }
.feature .eyebrow { padding-top: 22px; }
.feature p { padding-bottom: 22px; }

.try-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 70px); align-items: center; background: var(--cream); }
.try-copy { max-width: 620px; }
.try-art { position: relative; min-height: 500px; border-radius: 36px; background: radial-gradient(circle at 28% 18%, #fff, #dae9ff 50%, #ead8bc); box-shadow: var(--shadow); overflow: hidden; }
.try-art img { position: absolute; object-fit: contain; }
.tempur-bed { width: 64%; left: 4%; top: 18%; }
.sf-bed { width: 54%; right: 4%; bottom: 10%; border-radius: 24px; box-shadow: 0 18px 44px rgba(20,23,29,.18); }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 58px); background: var(--paper); }
.trust-card { padding: 30px; border: 1px solid rgba(20,23,29,.12); border-radius: 26px; background: white; box-shadow: 0 16px 40px rgba(20,23,29,.08); }
.trust-card span { display: block; margin-bottom: 10px; color: var(--navy); font-size: 14px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px clamp(18px, 5vw, 58px); color: white; background: var(--ink); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 680ms ease, transform 680ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .top-actions a:not(.button), .hero::after { display: none; }
  .hero { min-height: 760px; }
  .hero-side { width: 100%; height: 50%; }
  .tempur-side { top: 0; bottom: auto; }
  .sf-side { top: 50%; bottom: 0; }
  .quick-answer, .feature-grid, .try-section, .trust { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .answer-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .hero { padding: 20px; }
  .hero-content { padding: 24px; }
  .brand-row { flex-direction: column; }
  .hero-actions, .button { width: 100%; }
  .try-art { min-height: 390px; }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: 8px; }
}

.brand-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 58px);
  background: linear-gradient(135deg, #f8ead4, #e7f0ff);
}

.brand-choice-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  box-shadow: 0 18px 50px rgba(20, 23, 29, 0.12);
}

.tempur-choice {
  background: linear-gradient(135deg, rgba(6, 42, 84, 0.95), rgba(20, 89, 168, 0.88));
  color: white;
}

.sf-choice {
  background: linear-gradient(135deg, rgba(45, 27, 20, 0.96), rgba(121, 72, 44, 0.88));
  color: white;
}

.brand-choice-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.brand-choice-card .button {
  background: #fff7e8;
  color: var(--ink);
}

@media (max-width: 980px) {
  .brand-choice {
    grid-template-columns: 1fr;
  }
}
