/* ==========================================================================
   Embedara — AI for Roofers. Shared design system.
   Brand name "Embedara" is a placeholder taken from the project folder —
   find/replace to rename. Accent + fonts are CSS variables below.
   ========================================================================== */

:root {
  --navy:      #0d1a2b;
  --navy-2:    #14263d;
  --navy-3:    #1d3651;
  --ink:       #0b1220;
  --body:      #33414f;
  --muted:     #6b7a8d;
  --line:      #e4e9f0;
  --bg:        #ffffff;
  --bg-soft:   #f4f7fb;
  --bg-soft-2: #eef3f9;
  --accent:    #ff5a1f;   /* CTA / urgency */
  --accent-d:  #e6480f;
  --accent-soft:#fff1ea;
  --gold:      #f6b73c;
  --good:      #16a34a;
  --good-soft: #e8f7ee;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13,26,43,.06), 0 2px 8px rgba(13,26,43,.05);
  --shadow:    0 10px 30px rgba(13,26,43,.10);
  --shadow-lg: 0 24px 60px rgba(13,26,43,.18);

  --maxw: 1120px;
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #c9d6e5; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-d); margin-bottom: 14px;
}
.section.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 800; font-size: 1.02rem;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255,90,31,.32); }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color:#fff; }
.btn-light { background:#fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--navy); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }
.btn-block { display:flex; width:100%; justify-content:center; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); font-size: 1.22rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--gold)); color: #fff; font-weight: 900;
  box-shadow: 0 4px 12px rgba(255,90,31,.35);
}
.brand .mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy-3); font-weight: 700; font-size: .96rem; }
.nav-links a:hover { color: var(--accent-d); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:24px; height:2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #c9d6e5; }
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(255,90,31,.30), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(31,54,81,.9), transparent 55%);
}
.hero .wrap { position: relative; padding-top: 86px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #b9c7d8; font-size: 1.25rem; max-width: 54ch; margin-top: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.pill {
  display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18); color:#e7eef6; font-weight:700; font-size:.82rem;
  padding:7px 14px; border-radius:999px; margin-bottom: 22px;
}
.pill .dot { width:8px; height:8px; border-radius:50%; background: var(--gold); box-shadow:0 0 0 4px rgba(246,183,60,.25); }
.hero-cta { display:flex; gap:14px; flex-wrap:wrap; margin-top: 30px; }
.hero-note { margin-top:18px; font-size:.92rem; color:#8ea2b8; }

/* hero card */
.leak-card {
  background: linear-gradient(180deg, #fff, #fbfcfe); color: var(--ink);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
}
.leak-card h4 { font-size:.82rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom: 16px; }
.leak-row { display:flex; align-items:center; justify-content:space-between; padding:13px 0; border-bottom:1px dashed var(--line); }
.leak-row:last-child { border-bottom:0; }
.leak-row .k { display:flex; align-items:center; gap:10px; font-weight:600; color:var(--body); font-size:.97rem; }
.leak-row .v { font-weight:800; }
.leak-row .v.bad { color: var(--accent-d); }
.leak-row .v.good { color: var(--good); }
.tick { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; flex:none; }
.tick.x { background: var(--accent-soft); color: var(--accent-d); }
.tick.ok { background: var(--good-soft); color: var(--good); }
.leak-card .total { margin-top:16px; background: var(--navy); color:#fff; border-radius:12px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; }
.leak-card .total .big { font-size:1.6rem; font-weight:900; color: var(--gold); }

/* ---- Stat punches ----------------------------------------------------- */
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.stat {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 2.6rem; font-weight:900; color: var(--ink); letter-spacing:-.03em; line-height:1; }
.stat .num .unit { color: var(--accent-d); }
.stat .lbl { margin-top:10px; font-weight:700; color: var(--ink); }
.stat .sub { font-size:.9rem; color: var(--muted); margin-top:4px; }

/* ---- Generic cards / grids ------------------------------------------- */
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items:center; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); height: 100%;
}
.card h3 { margin-bottom:8px; }
.card .ic {
  width:46px; height:46px; border-radius:12px; display:grid; place-items:center;
  background: var(--accent-soft); color: var(--accent-d); margin-bottom:16px;
}
.card .ic svg { width:24px; height:24px; }

/* leak -> fix story */
.story { display:grid; grid-template-columns: 1fr 1fr; gap:0; border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow); }
.story > div { padding: 38px; }
.story .leak { background: var(--bg-soft); }
.story .fix  { background: #fff; border-left: 1px solid var(--line); }
.story h3 { display:flex; align-items:center; gap:10px; }
.story ul { list-style:none; padding:0; margin: 14px 0 0; }
.story li { padding: 11px 0 11px 30px; position:relative; border-bottom:1px dashed var(--line); }
.story li:last-child { border-bottom:0; }
.story .leak li::before { content:"✕"; position:absolute; left:0; color: var(--accent-d); font-weight:900; }
.story .fix  li::before { content:"✓"; position:absolute; left:0; color: var(--good); font-weight:900; }

/* steps */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; counter-reset: step; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position:relative; box-shadow: var(--shadow-sm); }
.step .n { width:40px; height:40px; border-radius:50%; background: var(--navy); color:#fff; font-weight:900; display:grid; place-items:center; margin-bottom:16px; }
.step h3 { font-size:1.12rem; }
.step .tag { display:inline-block; font-size:.75rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color: var(--accent-d); background: var(--accent-soft); padding:4px 10px; border-radius:999px; margin-top:12px; }

/* proof strip */
.proof { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: 34px 48px; }
.proof .item { display:flex; align-items:center; gap:12px; color:#aebccd; font-weight:700; font-size:.96rem; }
.proof .item svg { width:22px; height:22px; color: var(--gold); flex:none; }

/* case studies */
.case {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow:hidden;
}
.case .top { padding: 30px 32px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.case .who { font-weight:800; color:var(--ink); font-size:1.15rem; }
.case .who span { display:block; font-weight:600; color:var(--muted); font-size:.92rem; }
.case .badge { font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); background: var(--bg-soft-2); padding:6px 12px; border-radius:999px; }
.case .metrics { display:grid; grid-template-columns: repeat(4,1fr); }
.case .metrics > div { padding: 28px 24px; text-align:center; border-right:1px solid var(--line); }
.case .metrics > div:last-child { border-right:0; }
.case .metrics .m-num { font-size:2rem; font-weight:900; color: var(--ink); letter-spacing:-.02em; }
.case .metrics .m-num.accent { color: var(--accent-d); }
.case .metrics .m-num.good { color: var(--good); }
.case .metrics .m-lbl { font-size:.86rem; color: var(--muted); margin-top:6px; font-weight:600; }
.case .quote { padding: 26px 32px; background: var(--bg-soft); font-size:1.06rem; color: var(--ink); font-style:italic; }
.case .quote .by { display:block; font-style:normal; font-weight:700; color:var(--muted); font-size:.92rem; margin-top:10px; }

/* ---- Calculator ------------------------------------------------------- */
.calc { display:grid; grid-template-columns: 1fr 1fr; gap:0; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-lg); border:1px solid var(--line); }
.calc .inputs { background:#fff; padding: 36px; }
.calc .result { background: var(--navy); color:#cdd9e7; padding: 36px; position:relative; }
.field { margin-bottom: 22px; }
.field label { display:block; font-weight:700; color: var(--ink); margin-bottom:6px; }
.field .hint { font-size:.84rem; color:var(--muted); font-weight:500; }
.field input[type="number"] {
  width:100%; font-family:inherit; font-size:1.1rem; font-weight:700; color:var(--ink);
  padding:13px 14px; border:1.5px solid var(--line); border-radius:11px; background:var(--bg-soft);
}
.field input:focus { outline:none; border-color: var(--accent); background:#fff; box-shadow:0 0 0 4px rgba(255,90,31,.12); }
.field .with-prefix { position:relative; }
.field .with-prefix .pfx { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-weight:800; }
.field .with-prefix input { padding-left:30px; }
.range-row { display:flex; align-items:center; gap:14px; }
.range-row input[type="range"] { flex:1; accent-color: var(--accent); }
.range-row .rv { font-weight:800; color: var(--accent-d); min-width:48px; text-align:right; }
.result .r-label { font-size:.82rem; text-transform:uppercase; letter-spacing:.12em; color:#8ea2b8; font-weight:800; }
.result .r-big { font-size: clamp(2.6rem,7vw,3.8rem); font-weight:900; color: var(--gold); letter-spacing:-.03em; line-height:1.05; margin: 8px 0; }
.result .r-sub { color:#aebccd; }
.result .r-line { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px dashed rgba(255,255,255,.14); font-size:.97rem; }
.result .r-line:last-of-type { border-bottom:0; }
.result .r-line b { color:#fff; }
.gate { margin-top:22px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:14px; padding:18px; }
.gate input[type="email"] {
  width:100%; font-family:inherit; font-size:1rem; padding:13px 14px; border-radius:10px;
  border:1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.95); color:var(--ink); margin-bottom:10px;
}
.gate input:focus { outline:none; box-shadow:0 0 0 4px rgba(255,90,31,.25); }
.calc-note { font-size:.82rem; color:#8ea2b8; margin-top:12px; }

/* ---- Book ------------------------------------------------------------- */
.book-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap:36px; align-items:start; }
.expect { list-style:none; padding:0; margin:18px 0 0; }
.expect li { padding:14px 0 14px 38px; position:relative; border-bottom:1px solid var(--line); }
.expect li:last-child{border-bottom:0;}
.expect li::before { content:"✓"; position:absolute; left:0; top:12px; width:24px; height:24px; border-radius:50%; background:var(--good-soft); color:var(--good); display:grid; place-items:center; font-weight:900; font-size:.85rem; }
.cal-embed { border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); background:#fff; min-height: 640px; }
.cal-placeholder { min-height:640px; display:grid; place-items:center; text-align:center; padding:40px; background: var(--bg-soft); color:var(--muted); }
.cal-placeholder .big { font-size:1.2rem; font-weight:800; color:var(--ink); margin-bottom:8px; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color:#fff; border-radius: var(--radius-lg); padding: 54px; text-align:center; position:relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 280px at 80% 0%, rgba(255,90,31,.28), transparent 60%); }
.cta-band > * { position:relative; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c2d0e0; max-width:54ch; margin:0 auto 26px; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color:#9fb0c4; padding: 56px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:32px; padding-bottom: 32px; border-bottom:1px solid rgba(255,255,255,.1); }
.site-footer .brand { color:#fff; }
.site-footer h5 { color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.1em; margin:0 0 14px; }
.site-footer a { color:#9fb0c4; display:block; padding:5px 0; font-size:.96rem; }
.site-footer a:hover { color:#fff; }
.foot-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:.86rem; color:#7589a0; flex-wrap:wrap; gap:10px; }
.foot-bottom .disclaimer { max-width: 60ch; }

/* badge for placeholder content */
.ph {
  display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:800;
  letter-spacing:.04em; text-transform:uppercase; color:#9a6b00; background:#fff6e0;
  border:1px solid #f3d98a; padding:3px 9px; border-radius:999px;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid, .grid-2, .story, .calc, .book-grid { grid-template-columns: 1fr; }
  .story .fix { border-left:0; border-top:1px solid var(--line); }
  .stats, .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .case .metrics { grid-template-columns: 1fr 1fr; }
  .case .metrics > div:nth-child(2) { border-right:0; }
  .case .metrics > div:nth-child(1), .case .metrics > div:nth-child(2) { border-bottom:1px solid var(--line); }
  .nav-links { display:none; }
  .nav-toggle { display:block; }
  .nav-links.open {
    display:flex; flex-direction:column; position:absolute; top:70px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line); padding:18px 22px; gap:14px; box-shadow: var(--shadow);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .stats, .grid-3, .grid-4, .steps, .case .metrics, .footer-grid { grid-template-columns: 1fr; }
  .case .metrics > div { border-right:0; border-bottom:1px solid var(--line); }
  .case .metrics > div:last-child { border-bottom:0; }
  .cta-band { padding: 36px 22px; }
  .hero .wrap { padding-top:54px; padding-bottom:60px; }
}
