:root {
  --ink: #101425;
  --muted: #667085;
  --line: #e7e9ef;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --lime: #a3e635;
  --baby: #6d4df2;
  --baby-soft: #f3edff;
  --baby-blue: #2f74f3;
  --car: #ef233c;
  --car-dark: #101217;
  --fence: #2f8b68;
  --fence-dark: #344b39;
  --fence-soft: #eaf5ef;
  --gold: #f7d990;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(16, 20, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(26, 31, 52, 0.11);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, #c7f464, #66d17e);
  color: #162016;
  font-size: 14px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #40465b;
  font-size: 13px;
  font-weight: 800;
}

.nav-links a:hover {
  background: #f1f3f7;
  color: var(--ink);
}

.hero,
.app-switcher,
.product-section,
.seo-band,
.closing-cta,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
  min-height: 82svh;
  padding: 62px 0 92px;
}

.eyebrow {
  color: #586037;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(52px, 7.8vw, 104px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 650px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(16, 20, 37, 0.2);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.baby-button {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--baby), var(--baby-blue));
  color: white;
}

.car-button {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--car), #a70d20);
  color: white;
}

.fence-button {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--fence), var(--fence-dark));
  color: white;
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  min-height: 690px;
}

.hero-phone {
  position: absolute;
  width: min(48%, 310px);
  border: 1px solid rgba(16, 20, 37, 0.08);
  border-radius: 34px;
  box-shadow: 0 32px 90px rgba(16, 20, 37, 0.18);
}

.baby-phone {
  z-index: 2;
  left: 8%;
  top: 14px;
  transform: rotate(-4deg);
}

.car-phone {
  right: 6%;
  top: 118px;
  transform: rotate(5deg);
}

.fence-phone {
  z-index: 1;
  right: 29%;
  top: 238px;
  transform: rotate(1deg);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2,
.product-copy h2,
.seo-band h2,
.closing-cta h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.app-switcher {
  padding: 22px 0 88px;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(16, 20, 37, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(16, 20, 37, 0.08);
}

.app-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.baby-card span {
  background: var(--baby-soft);
  color: var(--baby);
}

.car-card span {
  background: #ffe6e9;
  color: var(--car);
}

.fence-card span {
  background: var(--fence-soft);
  color: var(--fence);
}

.app-card strong {
  display: block;
  max-width: 530px;
  margin-top: 64px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.02;
}

.app-card small {
  display: block;
  max-width: 550px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 48px;
  align-items: center;
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

.product-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 20px);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.keyword-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: white;
  color: #42485c;
  font-size: 13px;
  font-weight: 800;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.product-gallery img {
  border: 1px solid rgba(16, 20, 37, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(16, 20, 37, 0.12);
}

.product-gallery img:nth-child(2) {
  margin-top: 54px;
}

.product-gallery img:nth-child(3) {
  margin-top: 108px;
}

.baby-section {
  background: linear-gradient(180deg, rgba(243, 237, 255, 0.62), rgba(251, 250, 247, 0));
}

.baby-section .eyebrow {
  color: var(--baby);
}

.car-section {
  grid-template-columns: minmax(420px, 1.18fr) minmax(0, 0.82fr);
}

.car-section .product-copy {
  order: 2;
}

.car-section .product-gallery {
  order: 1;
}

.car-section .eyebrow {
  color: var(--car);
}

.fence-section {
  background: linear-gradient(180deg, rgba(234, 245, 239, 0.72), rgba(251, 250, 247, 0));
}

.fence-section .eyebrow {
  color: var(--fence);
}

.fence-seo {
  border-color: #d3eadb;
  background: linear-gradient(135deg, #f2fbf5, #fff8ec);
}

.seo-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  padding: 42px;
  border: 1px solid #eadffc;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbf7ff, #eef6ff);
}

.seo-band p {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 78px;
  padding: 48px;
  border-radius: 8px;
  background: #111827;
  color: white;
}

.closing-cta .eyebrow {
  color: var(--lime);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin-top: 6px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Shared readable styling for older privacy/contact pages. */
.custom-navbar {
  background: white;
  border-bottom: 1px solid var(--line);
}

.custom-navbar .container,
.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.navbar-nav {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
}

.navbar a,
.container a {
  color: var(--ink);
}

#privacy-policy,
body:not(:has(.hero)) .container {
  padding: 96px 0 64px;
}

#privacy-policy h1,
body:not(:has(.hero)) h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

#privacy-policy h2,
body:not(:has(.hero)) h2 {
  margin-top: 34px;
  color: var(--ink);
}

#privacy-policy p,
body:not(:has(.hero)) p {
  max-width: 900px;
  margin-top: 14px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .product-section,
  .seo-band,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-showcase {
    min-height: 620px;
  }

  .car-section .product-copy,
  .car-section .product-gallery {
    order: initial;
  }

  .product-section {
    gap: 34px;
  }
}

@media (max-width: 740px) {
  .site-header {
    position: static;
    width: min(calc(100% - 20px), var(--max));
    align-items: flex-start;
    border-radius: 22px;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px;
  }

  .nav-links a {
    padding: 8px;
    font-size: 12px;
  }

  .nav-links a[href="contact.html"] {
    display: none;
  }

  .hero,
  .app-switcher,
  .product-section,
  .seo-band,
  .closing-cta,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: clamp(46px, 13vw, 72px);
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero-showcase {
    min-height: 520px;
  }

  .hero-phone {
    width: min(58%, 280px);
    border-radius: 26px;
  }

  .baby-phone {
    left: 0;
  }

  .car-phone {
    right: 0;
    top: 86px;
  }

  .fence-phone {
    right: 21%;
    top: 175px;
  }

  .app-cards,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 230px;
    padding: 22px;
  }

  .app-card strong {
    margin-top: 42px;
  }

  .product-section {
    grid-template-columns: 1fr;
    padding: 68px 0;
  }

  .product-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .product-gallery img {
    width: 74%;
    min-width: 245px;
  }

  .product-gallery img:nth-child(2),
  .product-gallery img:nth-child(3) {
    margin-top: 0;
  }

  .seo-band,
  .closing-cta {
    padding: 28px;
  }

  .closing-cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .nav-links a[href="#babynames"],
  .nav-links a[href="#fencecalculator"],
  .nav-links a[href="#carsavvy"] {
    display: none;
  }

  .hero-showcase {
    min-height: 455px;
  }

  .hero-copy > p {
    font-size: 17px;
  }
}
