/* Sunlight Sprinkler ad landing pages: shared styles.
   Brand tokens match sunlightsprinkler.com /assets/css/root.css.
   On the live Netlify site, copy this file to /assets/css/landing.css and
   swap the Google Fonts link for the site's local /assets/fonts/ preloads. */

:root {
  --navy: #1a3258;
  --dark: #082032;
  --ink: #14202e;
  --body: #4e4b66;
  --muted: #6b6f80;
  --red: #f24f36;
  --red-dark: #d93d25;
  --gold: #ffba43;
  --g1: #fdda05; --g2: #fbc31a; --g3: #fcac01; --g4: #f37b33; --g5: #f24f36; --g6: #1a3258;
  --sunset: linear-gradient(180deg, var(--g1) 0%, var(--g2) 20%, var(--g3) 40%, var(--g4) 60%, var(--g5) 80%, var(--g6) 100%);
  --sunset-h: linear-gradient(90deg, var(--g1), var(--g3) 35%, var(--g4) 65%, var(--g5));
  --cream: #fbf7f0;
  --sand: #f4eee4;
  --line: #e6e1d8;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(8, 32, 50, .06), 0 12px 32px -12px rgba(8, 32, 50, .22);
  --head: "Inter", Arial, sans-serif;
  --text: "Roboto", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
strong, b { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

section { padding: clamp(56px, 8vw, 104px) 0; }
section[id] { scroll-margin-top: 72px; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-weight: 900; font-size: clamp(2.25rem, 6.2vw, 4.25rem); }
h2 { font-weight: 900; font-size: clamp(1.875rem, 4.2vw, 3rem); margin-bottom: 16px; }
h3 { font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.2; margin-bottom: 8px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40em; }
.center { text-align: center; }
.center .lede, .final .lede { margin-left: auto; margin-right: auto; }

/* One small sentence-case eyebrow style per page. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--sunset-h); }

/* Buttons: pill, like the live site, sentence case. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--head); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 79, 54, .7); }
.btn-primary:hover { background: var(--red-dark); }
.btn-sun { background: linear-gradient(180deg, var(--g1), var(--g3) 45%, var(--g4)); color: var(--dark); box-shadow: 0 10px 24px -12px rgba(243, 123, 51, .9); }
.btn-sun:hover { filter: brightness(1.04); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 2px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--dark); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 22px; } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.topbar .logo { display: inline-flex; align-items: center; min-height: 44px; }
.topbar .logo img { width: 150px; height: auto; }
@media (max-width: 359px) { .topbar .call .num { display: none; } .topbar .call::after { content: "Call"; } }
.topbar .call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; white-space: nowrap; flex: none; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: .95rem; }
.topbar .call svg { width: 18px; height: 18px; }
.topbar .call .lbl { display: none; }
@media (min-width: 640px) { .topbar .logo img { width: 210px; } .topbar .call .lbl { display: inline; font-weight: 600; opacity: .8; } }

/* Hero */
.hero { position: relative; color: #fff; padding: 0; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero h1 .hl { background: var(--sunset-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: rgba(255, 255, 255, .92); margin: 18px 0 28px; }
.hero .lede strong { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(8, 32, 50, .55); border: 1px solid rgba(255, 255, 255, .18); font-size: .92rem; color: #fff; backdrop-filter: blur(6px); }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 979px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--dark); color: rgba(255, 255, 255, .86); }
.bg-dark h2, .bg-dark h3, .bg-dark strong, .xsell strong, .hero strong, .designer strong, .bundle strong, .guarantee strong, .plan strong, .note strong { color: #fff; }
.bg-navy { background: var(--navy); color: rgba(255, 255, 255, .88); }
.bg-navy h2, .bg-navy h3, .bg-navy strong { color: #fff; }
.sunbar { height: 6px; background: var(--sunset-h); }

/* Section heads */
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sunset); color: #fff; font-family: var(--head); font-weight: 900; font-size: 1.15rem; margin-bottom: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* 3D embed */
.embed { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); box-shadow: 0 30px 60px -30px rgba(8, 32, 50, .6); border: 1px solid rgba(255, 255, 255, .08); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.embed .poster { position: absolute; inset: 0; }
.embed .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.embed .poster .msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px; color: #fff; background: radial-gradient(ellipse at center, rgba(8, 32, 50, .35), rgba(8, 32, 50, .85)); }
.embed .poster .msg strong { color: #fff; font-family: var(--head); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 900; }
.embed .poster .msg span { max-width: 34em; font-size: .98rem; opacity: .9; }
.embed .poster .play { width: 72px; height: 72px; border-radius: 50%; background: var(--sunset-h); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(243, 123, 51, .8); }
.embed .poster .play svg { width: 28px; height: 28px; fill: var(--dark); margin-left: 4px; }

/* Price table */
.price-list { list-style: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .what { font-weight: 600; color: var(--ink); }
.price-list .what small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.price-list .amt { font-family: var(--head); font-weight: 900; font-size: 1.35rem; color: var(--navy); white-space: nowrap; }
.price-list .amt.soft { font-size: 1rem; font-weight: 700; color: var(--muted); }

/* Reviews */
.quote { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--navy); font-size: .95rem; }
.quote cite span { font-weight: 400; color: var(--muted); }
.quote::before { content: "\201C"; position: absolute; top: -18px; left: 20px; font-family: Georgia, serif; font-size: 72px; line-height: 1; color: var(--g4); }

/* Team */
.team { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.team figure { border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.team img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.team figcaption { padding: 10px 12px 12px; font-size: .85rem; line-height: 1.35; }
.team figcaption b { display: block; font-family: var(--head); font-size: .98rem; }
@media (max-width: 420px) { .team { gap: 8px; } .team figcaption { padding: 8px; font-size: .78rem; } .team figcaption b { font-size: .86rem; } }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3.4vw, 36px); box-shadow: 0 30px 70px -30px rgba(8, 32, 50, .45); border: 1px solid var(--line); color: var(--body); }
.form-card h3 { font-size: 1.5rem; }
.fields { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 560px) { .fields .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.fields .two { display: grid; gap: 14px; }
.field label, .field .lbl { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field label .opt, .field .lbl .opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d8d3c9; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231a3258' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(26, 50, 88, .12); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #d8d3c9; background: #fff; cursor: pointer; font-weight: 500; color: var(--ink); font-size: .95rem; user-select: none; margin: 0; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.checks label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.form-card .btn { width: 100%; min-height: 58px; font-size: 1.1rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; padding: 14px 16px; border-radius: 12px; background: #fff1ee; border: 1px solid #f7c2b8; color: #8a2414; font-size: .95rem; }
.form-error.on { display: block; }
.thanks { display: none; text-align: center; padding: 24px 8px; }
.thanks.on { display: block; }
.thanks .tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--sunset-h); }
.thanks .tick svg { width: 34px; height: 34px; stroke: var(--dark); }
.thanks h3 { font-size: 1.6rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 20px; font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231a3258' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 20px; }
.faq .a p + p { margin-top: 10px; }

/* Approval-gated blocks: hidden unless the page is opened with ?approval=1 */
.needs-approval { display: none !important; }
html.show-approval .needs-approval { display: block !important; position: relative; outline: 3px dashed var(--gold); outline-offset: -3px; }
html.show-approval .needs-approval::before { content: "Needs Shane's approval (hidden on the live page)"; position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--gold); color: var(--dark); font: 700 .78rem/1 var(--head); padding: 7px 10px; border-radius: 999px; }

.placeholder { background: #fff6dd; color: #7a5300; border: 1px dashed #e7b64a; border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: .9em; white-space: normal; }

/* Footer */
.foot { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 40px 0 120px; font-size: .9rem; }
.foot a { color: #fff; }
.foot .row { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; justify-content: space-between; }
.foot img { width: 180px; filter: brightness(0) invert(1); opacity: .9; }
.foot .sources { margin-top: 24px; font-size: .78rem; line-height: 1.55; color: rgba(255, 255, 255, .55); }
.foot .sources a { color: rgba(255, 255, 255, .75); word-break: break-word; }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }

/* Sticky mobile bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 32, 50, .96); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, .1); transform: translateY(110%); transition: transform .25s ease; }
.mbar.on { transform: none; }
.mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: .95rem; color: #fff; background: rgba(255, 255, 255, .1); }
.mbar a svg { width: 18px; height: 18px; }
.mbar a.go { background: var(--red); }
@media (min-width: 900px) { .mbar { display: none; } }

/* Reveal on scroll (progressive; content is visible without JS) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
