/* AutomationFlex marketing site.
   No framework, no build step. Fonts are the only external request.

   Nothing here is locked in. Colours, type and spacing are a first pass meant
   to look considered rather than default, ahead of a proper design later.
   Deep navy with a warm accent on purpose: every automation company on the
   internet ships the same blue gradient, and the audience is roofers. */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #0a1020;
  --ink-2: #47526b;
  --muted: #7a859c;
  --line: #e6e9f0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-2: #f7f8fb;

  --navy: #0a1020;
  --navy-2: #131c33;
  --accent: #ff6a3d;
  --accent-dark: #e8542a;
  --accent-soft: #fff1ec;
  --ok: #0f9d6e;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(10, 16, 32, .04), 0 12px 32px -20px rgba(10, 16, 32, .28);
  --shadow-lg: 0 24px 60px -30px rgba(10, 16, 32, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.68 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.15rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* nav */
.nav {
  border-bottom: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -0.035em; color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand span { color: var(--accent); }
.nav a:not(.brand) {
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500;
  transition: color .15s ease;
}
.nav a:not(.brand):hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px -14px rgba(255, 106, 61, .9);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow); }

/* hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 92px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 60% at 30% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; top: -220px; right: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, .3), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lede {
  font-size: clamp(1.04rem, 2vw, 1.22rem); color: #aab4c9; max-width: 56ch; line-height: 1.62;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #d8dfec; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 7px 15px; margin-bottom: 28px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: #35d99a;
  box-shadow: 0 0 0 3px rgba(53, 217, 154, .22);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin: 0; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 16px;
}
.kicker::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--line), transparent); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card p { color: var(--ink-2); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }

.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--display); font-weight: 700; font-size: .95rem; margin-bottom: 16px;
}

.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.tag-live { background: #e6f7f0; color: #0b7355; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 32px; margin-bottom: 15px; color: var(--ink-2); }
ul.ticks li::before {
  content: ""; position: absolute; left: 5px; top: .5em;
  width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* product mock: what the homeowner sees, and what the roofer gets.
   Deliberately an illustration and not a screenshot. A real screenshot would
   carry Google's satellite imagery, and Google's terms do not allow rehosting
   it (same reason /api/lead/{ref}/image is Cache-Control: private). The
   numbers are the spine test's real measurements. */
.mock-pair { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.mock-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

.widget {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.widget-top {
  background: var(--navy-2); color: #fff; padding: 15px 20px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
}
.widget-body { padding: 20px; }
.field {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  color: var(--ink); font-size: .94rem; background: var(--bg-2); margin-bottom: 18px;
}
.field small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .1em; margin-bottom: 4px; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fact {
  background: #f1f3f8; color: var(--ink-2); border-radius: 8px;
  padding: 7px 12px; font-size: .8rem; font-weight: 600;
}
.price-box {
  border: 1px solid #ffd9cc; background: linear-gradient(180deg, var(--accent-soft), #fff);
  border-radius: 12px; padding: 20px; text-align: center;
}
.price-box .material { font-size: .7rem; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .12em; }
.price-box .amount { font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; margin: 7px 0 3px; }
.price-box .note { font-size: .78rem; color: var(--muted); }
.widget-foot { font-size: .76rem; color: var(--muted); text-align: center; padding: 0 20px 18px; }

.email-card {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.email-head { border-bottom: 1px solid var(--line-2); padding: 16px 20px; background: var(--bg-2); }
.email-head .subject { font-weight: 600; font-size: .93rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.email-head .from { font-size: .79rem; color: var(--muted); }
.mono {
  margin: 0; padding: 20px; font-size: .81rem; line-height: 1.8; color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-x: auto;
}
.mono b { color: var(--ink); font-weight: 600; }

/* closing band */
.band {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff; border-radius: 20px;
  padding: 58px 40px; text-align: center;
}
.band::after {
  content: ""; position: absolute; bottom: -180px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 380px;
  background: radial-gradient(circle, rgba(255, 106, 61, .26), transparent 65%);
}
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: #aab4c9; max-width: 52ch; margin: 0 auto 30px; }

/* prose pages */
.prose { max-width: 70ch; padding: 64px 0 80px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.prose h2 { font-size: 1.24rem; margin-top: 2.3em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .5em; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* footer */
footer {
  border-top: 1px solid var(--line-2); background: var(--bg-2);
  padding: 44px 0; font-size: .92rem; color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .spacer { margin-left: auto; }
footer strong { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 62px 0 70px; }
  section { padding: 60px 0; }
  .band { padding: 40px 24px; border-radius: 16px; }
  .card { padding: 24px 22px; }
  .nav .wrap { gap: 18px; height: 64px; }
}
