:root {
  color-scheme: light dark;
  --ink: #12151a;
  --muted: #525a66;
  --paper: #ffffff;
  --raised: #f4f5f7;
  --accent: #7fa818;
  --accent-dark: #5f800d;
  --line: #dfe3e8;
  --max: 70rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: .5rem;
}

.skip-link:focus {
  left: .5rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

header, main, footer { padding-inline: max(1.25rem, calc((100% - var(--max)) / 2)); }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand { color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .95rem; }

main { min-height: 68vh; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.eyebrow { color: var(--accent-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 13ch; margin: .35rem 0 1.25rem; font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { margin-top: 3rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lede { max-width: 43rem; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: .9rem 1.25rem;
  border-radius: .8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.phone-card, .card, .notice {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--raised);
  padding: 1.5rem;
}

.phone-card { transform: rotate(1.5deg); box-shadow: 0 1.5rem 4rem rgb(18 21 26 / .12); }
.phone-card strong { display: block; font-size: 1.4rem; }
.score { font-size: 3rem; color: var(--accent-dark); font-weight: 850; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
}

.content { max-width: 48rem; padding-block: 3rem 5rem; }
.content h1 { max-width: none; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.notice { border-left: .45rem solid var(--accent); }
.meta { color: var(--muted); font-size: .95rem; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 46rem) {
  header { align-items: flex-start; flex-direction: column; }
  .hero, .grid { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f4f7;
    --muted: #a8b0bd;
    --paper: #0e1116;
    --raised: #171b22;
    --accent: #c8ff4d;
    --accent-dark: #c8ff4d;
    --line: #303641;
  }
  .button { color: #0e1116; }
  .phone-card { box-shadow: 0 1.5rem 4rem rgb(0 0 0 / .35); }
}
