/* Home Hub Solutions — shared styles */
:root {
  --ink: #16201b;
  --muted: #55625b;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #e4e2da;
  --accent: #2f6f4f;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1ea;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Page themes */
body.theme-roof {
  --ink: #102016;
  --accent: #3fae2a;
  --accent-deep: #1f5d17;
  --accent-soft: #eaf7e4;
  --paper: #f8fbf5;
}
body.theme-coach {
  --ink: #141a2e;
  --muted: #545b70;
  --accent: #e0662f;
  --accent-deep: #1d2747;
  --accent-soft: #fdeee5;
  --paper: #faf8f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep, var(--accent));
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-body); font-size: .8rem; font-weight: 800;
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 88px 0; }
.hero { padding: 96px 0 80px; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--accent-deep, var(--ink)); color: #fff; }
.section-dark .lead, .section-dark p { color: rgba(255,255,255,.82); }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 700px; margin-bottom: 48px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--accent-deep, var(--accent));
}
.card .icon svg { width: 24px; height: 24px; }

.stat { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.section-dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 8px;
}

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }
.contact-line { margin-top: 22px; font-size: .98rem; }
.contact-line a { font-weight: 600; }

/* Footer */
.site-footer { padding: 40px 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* Home hero split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.door {
  position: relative; overflow: hidden; border-radius: 20px; padding: 40px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff;
  transition: transform .2s ease;
}
.door:hover { transform: translateY(-3px); }
.door h2 { margin-bottom: .3em; }
.door p { color: rgba(255,255,255,.85); max-width: 420px; }
.door .go { font-weight: 700; margin-top: 8px; }
.door-roof { background: linear-gradient(150deg, #3fae2a 0%, #1f5d17 100%); }
.door-coach { background: linear-gradient(150deg, #2a3766 0%, #141a2e 100%); }
.door-coach .go { color: #ffb48a; }
.door .tag { position: absolute; top: 28px; left: 40px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .85; }

/* Roof hero art */
.roof-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .roof-hero { grid-template-columns: 1fr; } }
.hero-art { border-radius: 22px; background: var(--accent-soft); padding: 24px; }

/* Coach hero */
.coach-hero { background: var(--accent-deep); color: #fff; }
.coach-hero .lead { color: rgba(255,255,255,.8); }
.coach-hero .eyebrow { color: var(--accent); }
.coach-hero .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.6); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: rgba(255,255,255,.85); }

.quote {
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35;
  border-left: 4px solid var(--accent); padding-left: 24px; margin: 0; max-width: 820px;
}

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: .95rem; }
