/* METEReaders landing, built from "METEReaders Landing v2" option 1a.
   Mobile-first: base styles follow the 390px mockup, min-width:768px follows the 1280px mockup. */

:root {
  --blue: #0e23c3;
  --tint: #cae7fe;
  --navy: #0a1670;
  --btn-ink: #0a1880;
  --ink: #201e1d;
  --bg: #f3f2f2;
  --brown: #3e2d21;
  --sand: #e8dccf;
  --deep: linear-gradient(180deg, #1424c2 0%, #0d1b8c 35%, #07104f 72%, #060f4a 100%);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Archivo, system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.d-only { display: none !important; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--tint); color: var(--btn-ink); text-decoration: none; text-align: center;
  border-radius: 6px; transition: background-color .15s, color .15s;
}
.btn:hover { background: #fff; color: var(--btn-ink); }
.btn-sm { font-weight: 600; font-size: 18px; padding: 18px 24px; }
.btn-lg { font-weight: 700; font-size: 20px; padding: 21px 20px; }
.cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-note { font-size: 15px; font-weight: 500; color: #e8f2ff; text-align: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: rgb(48, 30, 16); color: #fff; padding-bottom: 20px; }
.hero-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 500px; max-width: none;
  object-fit: cover; object-position: 43% center;
}
.hero-scrim {
  position: absolute; top: 0; left: 0; right: 0; height: 500px;
  background: linear-gradient(180deg, rgba(48,30,16,.62) 0px, rgba(48,30,16,.5) 150px, rgba(48,30,16,.15) 220px, rgba(48,30,16,0) 260px, rgba(48,30,16,.45) 340px, rgba(48,30,16,.85) 410px, rgb(48,30,16) 440px);
  -webkit-mask-image: radial-gradient(ellipse 360px 70px at 50% 0px, transparent 0%, transparent 45%, #000 100%);
          mask-image: radial-gradient(ellipse 360px 70px at 50% 0px, transparent 0%, transparent 45%, #000 100%);
}
.hero-glow {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 150px 85px at 24% 74%, #000 0%, #000 34%, rgba(0,0,0,.5) 58%, transparent 92%), radial-gradient(ellipse 110px 95px at 78% 52%, #000 0%, #000 40%, rgba(0,0,0,.6) 64%, transparent 100%);
          mask-image: radial-gradient(ellipse 150px 85px at 24% 74%, #000 0%, #000 34%, rgba(0,0,0,.5) 58%, transparent 92%), radial-gradient(ellipse 110px 95px at 78% 52%, #000 0%, #000 40%, rgba(0,0,0,.6) 64%, transparent 100%);
}
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; padding: 26px 16px 10px;
}
.logo { height: 34px; width: auto; }
.call-icon { width: 48px; height: 48px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  position: absolute; left: 20px; right: 20px; top: 96px;
  font-weight: 600; font-size: 40px; line-height: 1.08; letter-spacing: -.025em; color: var(--tint);
  text-wrap: balance; text-shadow: 0 1px 14px rgba(30,18,8,.55);
}
.hero-body { padding-top: 440px; display: flex; flex-direction: column; gap: 20px; }
.lede { font-size: 17px; line-height: 1.5; }

/* Tagline band */
.tagline { background: #4e3d30; padding: 16px 20px; }
.tagline p { text-align: center; font-size: 15px; line-height: 1.45; color: #fff; }

/* Services */
.services { background: linear-gradient(180deg, #3e2d21 0%, #6b5444 55%, #7a604d 100%); color: #fff; padding: 52px 0 48px; }
.services .wrap { display: flex; flex-direction: column; gap: 28px; }
.services h2 { font-weight: 400; font-size: 38px; line-height: 1.02; letter-spacing: -.03em; color: var(--tint); }
.services-grid { display: grid; gap: 28px; }
.service { display: flex; flex-direction: column; gap: 8px; }
.service h3 { font-size: 19px; line-height: 1.3; font-weight: 800; color: #fff; text-wrap: pretty; }
.service h3 span { color: var(--tint); font-size: 1.15em; line-height: 1.25; }
.service p { font-size: 17px; line-height: 1.5; color: var(--sand); text-wrap: pretty; }

/* Case study */
.case { position: relative; z-index: 2; background: var(--tint); padding: 40px 0 52px; }
.wave { position: absolute; left: 0; width: 100%; height: 22px; max-width: none; pointer-events: none; fill: var(--tint); }
.wave-top { bottom: calc(100% - 4px); }
.wave-bottom { top: calc(100% - 4px); }
.bubbles { position: absolute; right: 16px; top: 12px; width: 84px; height: 102px; pointer-events: none; fill: #fff; fill-opacity: .55; }
.case-grid { position: relative; display: flex; flex-direction: column; gap: 24px; }
.case-copy { display: flex; flex-direction: column; gap: 16px; }
.case-kicker { font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--brown); }
.case-kicker strong { font-weight: 600; }
.case-figure { font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -.02em; color: var(--navy); }
.case-figure strong { color: #ec3013; font-weight: 700; }
.case-body { font-size: 18px; line-height: 1.5; color: #0a1680; text-wrap: pretty; }
.case-chart { width: 100%; height: auto; }

/* Deep blue sections */
.deep { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.caustic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; opacity: .069; }
.split { position: relative; display: flex; flex-direction: column; gap: 16px; }

.pocket { z-index: 1; padding: 64px 0 56px; }
.pocket h2 { font-weight: 400; font-size: 38px; line-height: 1.02; letter-spacing: -.02em; color: var(--tint); text-wrap: balance; }
.pocket-copy { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.pocket-copy h3 { font-size: 19px; line-height: 1.35; font-weight: 800; }
.pocket-copy p { font-size: 18px; line-height: 1.5; text-wrap: pretty; }

/* FAQ */
.faq { padding: 40px 0; }
.faq .wrap { display: flex; flex-direction: column; gap: 28px; }
.faq h2 { font-weight: 400; font-size: 38px; line-height: 1.02; letter-spacing: -.02em; color: var(--navy); }
.faq-grid { display: grid; gap: 28px; }
.faq-item { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.faq-item h3 { font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--blue); }
.faq-item p { font-size: 17px; line-height: 1.5; color: #5a3e2b; text-wrap: pretty; }
.faq-item strong { font-weight: 700; }

/* Closing */
.closing { padding: 44px 0; }
.closing h2 { font-weight: 400; font-size: min(46px, 12.4vw); line-height: .92; letter-spacing: -.03em; white-space: nowrap; }
.closing-copy { display: flex; flex-direction: column; gap: 16px; }
.closing-copy p { font-size: 18px; line-height: 1.45; }
.closing-cta { margin-top: 6px; }
.closing-cta .btn { font-weight: 600; font-size: 19px; }
.talk { margin-top: 10px; font-size: 17px; line-height: 1.4; text-align: center; }
.talk a { color: var(--tint); font-weight: 700; text-decoration: none; white-space: nowrap; }
.talk a:hover { color: #fff; text-decoration: underline; }

/* Footer */
.site-footer { background: #fff; padding: 18px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-logo { height: 28px; width: auto; }
.footer-tag { font-size: 14px; }
.legal { flex-basis: 100%; align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; margin-top: 6px; border-top: 1px solid #dcdbdb; }
.legal p { font-size: 13px; line-height: 1.5; color: #605d5d; }
.legal .fine { font-size: 12px; text-wrap: pretty; }

/* ───────────── Desktop (1280 mockup) ───────────── */
@media (min-width: 768px) {
  :root { --gutter: clamp(32px, 6.25vw, 80px); }
  .m-only { display: none !important; }
  .d-only { display: revert !important; }
  .topbar-actions.d-only { display: flex !important; }

  .btn-lg { font-size: 21px; padding: 22px 24px; }
  .cta { align-items: center; align-self: flex-start; }

  .hero { height: 760px; padding-bottom: 0; }
  .hero-img { height: 100%; object-position: center 40%; }
  .hero-scrim {
    height: 100%; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(90deg, rgba(48,30,16,.86) 0%, rgba(48,30,16,.7) 36%, rgba(48,30,16,.15) 62%, rgba(48,30,16,0) 78%);
  }
  .hero-glow {
    -webkit-mask-image: radial-gradient(ellipse 300px 190px at 33% 85%, #000 0%, #000 38%, rgba(0,0,0,.6) 62%, transparent 100%), radial-gradient(ellipse 210px 170px at 59% 52%, #000 0%, #000 40%, rgba(0,0,0,.6) 64%, transparent 100%);
            mask-image: radial-gradient(ellipse 300px 190px at 33% 85%, #000 0%, #000 38%, rgba(0,0,0,.6) 62%, transparent 100%), radial-gradient(ellipse 210px 170px at 59% 52%, #000 0%, #000 40%, rgba(0,0,0,.6) 64%, transparent 100%);
  }
  .topbar { padding: 40px var(--gutter) 16px; }
  .logo { height: 48px; }
  .topbar-actions { align-items: center; gap: 28px; }
  .topbar-phone { font-weight: 600; font-size: 17px; color: #fff; text-decoration: none; }
  .topbar-phone:hover { text-decoration: underline; }

  .hero-copy { padding-top: 170px; display: flex; flex-direction: column; gap: 22px; }
  .hero h1 {
    position: static; max-width: 960px; font-size: clamp(44px, 5.6vw, 64px); line-height: 1.06; text-shadow: none;
  }
  .nowrap-d { white-space: nowrap; }
  .hero-body { padding-top: 0; gap: 22px; }
  .lede { font-size: 20px; max-width: 520px; text-wrap: pretty; }
  .hero .cta { margin-top: 4px; }

  .tagline { background: #36281c; opacity: .86; padding: 26px var(--gutter); }
  .tagline p { font-size: clamp(16px, 1.72vw, 22px); line-height: 1.4; letter-spacing: -.005em; text-wrap: balance; }

  .services { padding: 100px 0; }
  .services .wrap { gap: 32px; }
  .services h2 { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
  .service { gap: 12px; }
  .service h3 { font-size: 21px; }
  .service p { font-size: 18px; }

  .case { padding: 60px 0; }
  .wave-top { height: 32px; }
  .wave-bottom { height: 34px; }
  .bubbles { right: auto; left: 44%; top: 8px; width: 140px; height: 170px; }
  .case-copy { gap: 24px; }
  .case-kicker { font-size: 30px; line-height: 1.27; max-width: 560px; text-wrap: balance; }
  .case-figure { font-size: clamp(44px, 5vw, 64px); line-height: 1.02; }
  .case-body { font-size: 22px; max-width: 540px; }

  .split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .split > * { grid-column: 1 / 13; }

  .pocket { padding: 96px 0; }
  .pocket h2 { font-size: clamp(44px, 5vw, 64px); }
  .pocket-copy { gap: 12px; margin-top: 0; }
  .pocket-copy h3 { font-size: 24px; }
  .pocket-copy p { font-size: 22px; max-width: 546px; }

  .faq { padding: 96px 0; }
  .faq .wrap { gap: 48px; }
  .faq h2 { font-size: 56px; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: space-between; gap: 40px 48px; }
  .faq-item { max-width: 300px; padding-top: 20px; gap: 16px; }
  .faq-item h3 { font-size: 23px; }

  .closing { padding: 80px 0; }
  .closing h2 { font-size: 64px; line-height: .9; letter-spacing: -.04em; margin-bottom: 8px; }
  .closing-copy { gap: 20px; }
  .closing-copy p { font-size: 26px; line-height: 1.35; max-width: 640px; }
  .closing-cta { margin-top: 0; }
  .closing-cta .btn { font-size: 21px; padding: 24px; }

  .site-footer { padding: 20px 0; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
  .footer-logo { height: 34px; }
  .footer-tag { font-size: 15px; }
  .legal { padding-top: 16px; margin-top: 4px; }
}

@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: repeat(3, auto); }

  .case-grid { display: grid; grid-template-columns: minmax(0, 540fr) minmax(0, 548fr); gap: 32px; align-items: center; }
  .case-figure { white-space: nowrap; }

  .pocket h2 { grid-column: 1 / 6; }
  .pocket-copy { grid-column: 7 / 13; }
  .closing-copy { grid-column: 1 / 7; }
  .closing-cta { grid-column: 7 / 13; justify-self: center; align-self: start; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
