/* Rx Counter tour — Cosentino's brand palette (Brand Standards Guide):
   red PMS 187 #A6192E · gold PMS 871 #857145 · brown PMS 476 #4E3629 · cream #F4EFE8.
   Light, warm, print-friendly. No blue. */
:root {
  --cream: #F4EFE8;
  --cream-deep: #EAE2D6;
  --paper: #FFFDFA;
  --ink: #2A1F16;
  --brown: #4E3629;
  --muted: #6F5F51;
  --subtle: #9A8A7A;
  --red: #A6192E;
  --red-deep: #8A1426;
  --red-soft: rgba(166, 25, 46, 0.10);
  --gold: #857145;
  --gold-soft: rgba(133, 113, 69, 0.14);
  --line: #E3D9CB;
  --good: #2E8B57;
  --marginal: #C77B12;
  --bad: #A6192E;
  --shadow: 0 10px 30px rgba(42, 31, 22, 0.10);
  --radius: 16px;
  --max: 1080px;
  --pad: 24px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { background: linear-gradient(180deg, #FFF8F1 0%, var(--cream) 320px); }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--brown); margin: 0 0 .45em; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
strong { color: var(--brown); }
.fine { font-size: .9rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--gold); margin: 0 0 14px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(133,113,69,.35); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 12px var(--pad); background: rgba(244,239,232,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brown); }
.brand:hover { text-decoration: none; }
.wordmark { height: 26px; width: auto; }
.brand-tag { font-weight: 700; font-size: .95rem; color: var(--brown); border-left: 1px solid var(--line); padding-left: 12px; }
.topnav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: .92rem; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--red); text-decoration: none; }
.topbar-cta { font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: var(--red); color: #fff; }
.topbar-cta:hover { background: var(--red-deep); text-decoration: none; }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 52px var(--pad) 36px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.hero-figure { margin: 0; }
.hero-photo { width: 100%; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.count-chip { display: inline-block; font-weight: 800; font-size: 1.05rem; color: var(--brown); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .05s, background .15s; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: #fff; color: var(--brown); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-large { padding: 16px 28px; font-size: 1.08rem; border-radius: 14px; }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: 52px var(--pad); }
.section-alt { max-width: none; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 26px; max-width: 66ch; }
.section-head p { color: var(--muted); margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps.three-up { grid-template-columns: repeat(3, 1fr); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--muted); margin: 0; }

/* carousel */
.carousel { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.carousel-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--cream); color: var(--brown); font: inherit; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tab.is-active { background: var(--brown); color: #fff; border-color: var(--brown); }
.tab .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.good { background: var(--good); } .dot.marginal { background: var(--marginal); } .dot.bad { background: var(--bad); }
.carousel-stage { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; }
.carousel-track { min-width: 0; }
.slide { margin: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.slide[hidden] { display: none; }
.slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--cream-deep); }
.slide figcaption { color: var(--muted); font-size: 1.02rem; }
.slide figcaption strong { display: block; font-size: 1.15rem; margin: 10px 0 6px; }
.verdict { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #fff; }
.verdict.good { background: var(--good); } .verdict.marginal { background: var(--marginal); } .verdict.bad { background: var(--bad); }
.carousel-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brown); font-size: 26px; line-height: 1; cursor: pointer; font-family: inherit; }
.carousel-arrow:hover { border-color: var(--gold); background: var(--cream); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.carousel-dots i.is-active { background: var(--brown); }

.tips { margin-top: 34px; display: grid; grid-template-columns: 1fr; }
.tip-list { padding-left: 22px; margin: 0 0 12px; color: var(--muted); display: grid; gap: 8px; }
.tip-list strong { color: var(--brown); }
.tips h3 { margin-bottom: 10px; }

/* install */
.install-grid { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.qr { width: 100%; max-width: 220px; margin: 0 auto 10px; }
.qr-caption { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.faq { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { font-weight: 700; color: var(--brown); cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* misc */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.contact-card { margin-top: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: inline-block; }
.contact-name { margin: 0 0 4px; font-weight: 800; color: var(--brown); }
.contact-line { margin: 0; line-height: 1.7; }
.quote-card { background: var(--brown); color: #F4EFE8; border-radius: 18px; padding: 26px; font-size: 1.15rem; line-height: 1.5; box-shadow: var(--shadow); }
.quote-card p { margin: 0; }
.quote-by { margin-top: 12px !important; font-size: .95rem; color: rgba(244,239,232,.75); }
.section-cta { text-align: center; padding: 60px var(--pad); }
.section-cta > p { color: var(--muted); margin: 0 auto 24px; }
.footer { background: var(--brown); padding: 26px var(--pad); text-align: center; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.wordmark-footer { height: 22px; margin: 0 auto 8px; filter: brightness(1.6); }
.footer-tag { margin: 0; color: rgba(244,239,232,.75); font-size: .88rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px var(--pad) 20px; gap: 28px; }
  .steps.three-up { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; gap: 14px; }
  .carousel-stage { grid-template-columns: 36px 1fr 36px; gap: 6px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 22px; }
  .install-grid, .two-col, .two-col-list { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
@media (max-width: 460px) {
  .wordmark { height: 22px; } .brand-tag { font-size: .85rem; padding-left: 10px; }
  .topbar-cta { padding: 6px 10px; font-size: .85rem; }
  .carousel { padding: 12px; }
}
