:root {
  --background: #f7f4ee;
  --surface: #eeeadf;
  --surface-strong: #e4dfd5;
  --ink: #252522;
  --muted: #706e68;
  --border: #d6d0c5;
  --inverse: #fcfaf6;
  --green: #194533;
  --green-deep: #102f24;
  --gold: #d8a937;
  --alert: #c83e3a;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--inverse);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  font-size: 22px;
}

.site-header .brand,
.site-header .nav-link,
.site-header .nav-cta {
  color: var(--inverse);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 750;
}

.nav-link {
  text-decoration: none;
  opacity: 0.82;
}

.nav-link:hover {
  opacity: 1;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-cta {
  border: 1px solid rgba(252, 250, 246, 0.32);
}

.button {
  border: 1px solid var(--ink);
}

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

.button-primary {
  background: var(--ink);
  color: var(--inverse);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-light {
  background: var(--inverse);
  color: var(--green-deep);
  border-color: var(--inverse);
}

.button-outline-light {
  background: transparent;
  color: var(--inverse);
  border-color: rgba(252, 250, 246, 0.45);
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--inverse);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 47, 36, 0.98) 0%, rgba(16, 47, 36, 0.86) 44%, rgba(16, 47, 36, 0.44) 100%),
    url("assets/littlesafe-logo.png") right 5vw center / min(50vw, 620px) no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(252, 250, 246, 0.18);
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 110px 0 70px;
}

.hero-copy {
  max-width: 710px;
  animation: rise-in 600ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 32px;
  color: rgba(252, 250, 246, 0.82);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.32;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  max-width: 640px;
  margin-top: 26px;
  color: rgba(252, 250, 246, 0.66);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
}

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

.section-heading {
  max-width: 740px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.section-heading p,
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.step {
  min-height: 270px;
  background: var(--background);
  padding: 30px;
}

.step-num {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.step h3,
.feature h3,
.faq h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.08;
}

.step p,
.feature p,
.faq p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: start;
}

.phone-shell {
  position: sticky;
  top: 28px;
  width: min(100%, 380px);
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 16px;
  background: var(--ink);
  box-shadow: 0 26px 70px rgba(37, 37, 34, 0.18);
}

.phone-screen {
  min-height: 650px;
  border-radius: 24px;
  background: var(--background);
  padding: 24px;
  color: var(--ink);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  font-weight: 900;
}

.mini-brand img {
  width: 34px;
  height: 34px;
}

.status-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-title {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 0.98;
  font-weight: 950;
}

.status-text {
  color: var(--muted);
}

.screen-rule {
  height: 1px;
  margin: 32px 0;
  background: var(--border);
}

.screen-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.screen-row strong {
  font-size: 15px;
}

.features {
  display: grid;
  gap: 28px;
}

.feature {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.safety-band {
  background: var(--ink);
  color: var(--inverse);
}

.safety-band .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.safety-band h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.safety-band p {
  margin-bottom: 0;
  color: rgba(252, 250, 246, 0.74);
  font-size: 19px;
}

.trust-list,
.legal-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.trust-list li,
.legal-list li {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.trust-list strong,
.legal-list strong {
  display: block;
  margin-bottom: 4px;
}

.pricing {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.price {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  font-weight: 950;
}

.price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 42px;
}

.faq {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.final-cta {
  background: var(--green);
  color: var(--inverse);
  text-align: center;
}

.final-cta .wrap {
  max-width: 840px;
}

.final-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.96;
}

.final-cta p {
  color: rgba(252, 250, 246, 0.74);
  font-size: 18px;
}

.cta-actions {
  justify-content: center;
  margin-top: 30px;
}

.site-footer {
  background: var(--green-deep);
  color: rgba(252, 250, 246, 0.72);
  padding: 34px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
}

.legal-page {
  min-height: 58svh;
  padding: 132px 0 74px;
  background: var(--background);
}

.legal-header {
  max-width: 780px;
}

.legal-header h1 {
  color: var(--ink);
  font-size: clamp(44px, 7vw, 86px);
}

.legal-header p {
  color: var(--muted);
  font-size: 18px;
}

.legal-nav {
  position: static;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.legal-nav .brand,
.legal-nav .nav-link,
.legal-nav .nav-cta {
  color: var(--ink);
}

.legal-nav .nav-cta {
  border-color: var(--border);
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin: 46px 0 12px;
  font-size: 28px;
  line-height: 1.1;
}

.legal-copy h3 {
  margin: 26px 0 8px;
}

.legal-copy ul {
  padding-left: 20px;
}

.callout {
  margin: 34px 0;
  border-left: 4px solid var(--green);
  padding: 18px 0 18px 20px;
  color: var(--muted);
}

.request-panel {
  margin: 34px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .nav-link.optional {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 88svh;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(16, 47, 36, 0.97) 0%, rgba(16, 47, 36, 0.9) 68%, rgba(16, 47, 36, 0.7) 100%),
      url("assets/littlesafe-logo.png") center bottom 6vh / min(72vw, 390px) no-repeat;
  }

  .hero-inner {
    align-items: start;
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .steps,
  .feature-grid,
  .safety-band .wrap,
  .pricing,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    position: relative;
    top: auto;
    margin: 0;
  }

  .phone-screen {
    min-height: 520px;
  }

  .section {
    padding: 66px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .brand span {
    font-size: 19px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-link {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 12px;
  }

  .wrap,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .step {
    min-height: 0;
    padding: 24px 0;
  }

  .steps {
    background: transparent;
  }

  .phone-shell {
    border-radius: 24px;
    padding: 10px;
  }

  .phone-screen {
    border-radius: 18px;
    padding: 20px;
  }
}
