:root {
  --navy: #1e40af;
  --navy-dark: #1e3a8a;
  --navy-deep: #172554;
  --ice: #eff6ff;
  --ice-2: #dbeafe;
  --sky: #bfdbfe;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--navy-dark);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--navy);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--sky);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(191, 219, 254, 0.7), transparent 28%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1px solid var(--ice-2);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
}

/* Official Apple “Download on the App Store” badge (US–UK, black, SVG).
   The file is unmodified artwork from Apple’s marketing guidelines.
   Do not recolor it, add effects, or change its aspect ratio.
   Clear space is at least one quarter of the badge height (10px at 40px). */
.app-store-badge {
  display: inline-flex;
  flex: none;
  line-height: 0;
}

.app-store-badge img {
  width: 119.66407px;
  height: auto;
  max-width: 100%;
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 10px;
}

.site-footer .app-store-badge {
  margin-top: 0.15rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-note {
  color: var(--soft);
  font-size: 0.9rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--navy);
  color: var(--white);
}

.product-card-bar strong {
  display: block;
  font-size: 0.95rem;
}

.product-card-bar span {
  color: #bfdbfe;
  font-size: 0.8rem;
}

.dots {
  display: flex;
  gap: 0.35rem;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.stock-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.stock-row:last-child {
  border-bottom: 0;
}

.stock-row small {
  color: var(--soft);
}

.qty {
  font-weight: 700;
  text-align: right;
}

.qty.low {
  color: #b45309;
}

.section {
  padding: 4.5rem 0;
}

/* Author styles must not override the HTML hidden attribute. */
.section[hidden] {
  display: none;
}

.section-muted {
  background: var(--bg);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-head .eyebrow {
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.feature,
.quote,
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.feature h3,
.plan h3,
.quote p {
  margin-top: 0;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem;
  align-items: start;
}

.field-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.field-points li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.field-points strong {
  display: block;
  margin-bottom: 0.15rem;
}

.field-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
  align-items: start;
}

.shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: auto;
  background: var(--bg);
}

.shot figcaption {
  padding: 0.75rem 1rem 0.95rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.quote {
  min-height: 100%;
}

.quote p {
  font-size: 1.05rem;
}

.quote footer {
  color: var(--soft);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.placeholder-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: 28px;
  padding: 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  color: #bfdbfe;
  margin: 0;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.cta-band .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

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

.legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.85rem;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--ice), var(--white));
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.notice {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #78350f;
}

.operator {
  background: var(--ice);
  border: 1px solid var(--ice-2);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.operator p {
  color: var(--ink);
  margin: 0.25rem 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
  max-width: 1120px;
}

.plan.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.plan .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan .price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.plan .price-alt {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy);
}

.plan ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.plan li + li {
  margin-top: 0.4rem;
}

.plan .btn {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .steps,
  .plans,
  .footer-grid,
  .cta-band,
  .field-layout,
  .shot-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: block;
  }

  .cta-band .hero-actions {
    margin-top: 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
  }

  .nav.open {
    flex-wrap: wrap;
    padding-bottom: 1rem;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}
