/*
 * Roc Home Cleaning — brand layer for the cleaning quote demo.
 * Palette per md/design-systems/projects/roc-quote/DESIGN.md.
 */
:root {
  --brand: #0e8074;
  --brand-dark: #0b2f2a;
  --accent: #e8a13c;
  --bg: #f2f9f6;
  --ink: #173430;
  --muted: #5b7370;
  --line: #d7e6df;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Demo banner */
.demo-banner {
  display: block; text-align: center; padding: 9px 16px;
  background: #fffdf5; border-bottom: 1px solid #ecd39c; color: #6b5210;
  font-size: 13.5px; text-decoration: none;
}
.demo-banner:hover { background: #fdf6e3; }
.demo-banner i { font-style: normal; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 13px 24px; max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); }
.brand-mark { width: 34px; height: 34px; }
.brand span { font: 800 17px/1 'Manrope', sans-serif; letter-spacing: 0.02em; }
.brand small { display: block; font: 700 9.5px/1.3 'Manrope', sans-serif; letter-spacing: 0.28em; color: var(--brand); }
.header-nav { display: flex; gap: 18px; margin-left: auto; }
.header-nav a { color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.header-nav a:hover { color: var(--brand); }
.cta-real {
  background: #2355ee; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.cta-real:hover { background: #132243; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; padding: 64px 24px 58px; align-items: center; }
.eyebrow { font: 700 12.5px 'Manrope', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
h1 { font: 800 clamp(30px, 4.6vw, 46px)/1.12 'Manrope', sans-serif; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--brand-dark); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.button {
  display: inline-block; background: var(--brand); color: #fff; font: 700 16px 'DM Sans', sans-serif;
  padding: 13px 24px; border-radius: 999px; text-decoration: none; transition: background .15s ease;
}
.button:hover { background: var(--brand-dark); }
.button.outline { background: transparent; color: var(--brand-dark); border: 2px solid var(--line); padding: 11px 22px; }
.button.outline:hover { border-color: var(--brand); color: var(--brand); }
.mini { font-size: 13.5px; color: var(--muted); margin: 0; }
.hero-points { display: grid; gap: 12px; }
.point { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.point-num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font: 800 13px 'Manrope', sans-serif;
}
.point div { display: flex; flex-direction: column; }
.point strong { font-family: 'Manrope', sans-serif; font-size: 14.5px; }
.point span { font-size: 13.5px; color: var(--muted); }

/* Sections */
.section { padding: 66px 0; }
.section-pale { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 720px; margin-bottom: 30px; }
.section-intro h2 { font: 800 clamp(24px, 3vw, 32px)/1.2 'Manrope', sans-serif; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--brand-dark); }
.section-intro p { color: var(--muted); margin: 0; }
.noscript-note { background: #fff7e6; border: 1px solid #ecd39c; color: #6b5210; padding: 14px 16px; border-radius: 12px; }

/* Estimate mount */
.estimate-mount { background: transparent; }

/* How grid */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.how-card h3 { margin: 0 0 8px; font: 800 17px 'Manrope', sans-serif; color: var(--brand-dark); }
.how-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Rates table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.rates-table { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.rates-table th, .rates-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.rates-table thead th { font: 700 13px 'Manrope', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.rates-table tbody th { font-weight: 600; color: var(--brand-dark); }
.rates-table td { font-weight: 700; color: var(--brand-dark); }
.rates-table tbody tr:last-child th, .rates-table tbody tr:last-child td { border-bottom: 0; }
.rates-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.rates-notes div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.rates-notes h3 { margin: 0 0 6px; font: 800 15.5px 'Manrope', sans-serif; color: var(--brand-dark); }
.rates-notes p { margin: 0; font-size: 14px; color: var(--muted); }

/* Included */
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.included-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.included-card h3 { margin: 0 0 10px; font: 800 17px 'Manrope', sans-serif; color: var(--brand-dark); }
.included-card h4 { margin: 12px 0 6px; font: 700 12px 'Manrope', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.included-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--muted); display: grid; gap: 4px; }
.assumptions-line { margin: 22px 0 0; font-size: 14px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; }
.faq summary { cursor: pointer; font: 700 15.5px 'Manrope', sans-serif; color: var(--brand-dark); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #cfe5de; padding: 44px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand { font: 800 18px 'Manrope', sans-serif; color: #fff; margin: 0 0 8px; }
.footer-brand small { display: block; font-size: 10px; letter-spacing: 0.28em; color: var(--accent); }
.footer-note { font-size: 13.5px; margin: 0; color: #9fc4ba; }
.footer-note a, .site-footer a { color: #cfe5de; }
.footer-heading { font: 700 12px 'Manrope', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #7fa89d; margin: 0 0 10px; }
.site-footer nav a, .footer-grid div a { display: block; font-size: 14px; text-decoration: none; margin-bottom: 7px; }
.site-footer a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; font-size: 12.5px; color: #7fa89d; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 24px; gap: 28px; }
  .header-nav { display: none; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Very narrow screens: let the header CTA wrap to its own row */
@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .cta-real { margin-left: auto; padding: 9px 14px; font-size: 13px; }
}
