:root {
  color-scheme: light;

  /* Core */
  --deep-green: #16342c;
  --body: #414845;
  --text: #1c1b1b;
  --muted: #7c8983;
  --canvas: #f5f6f4;
  --canvas-warm: #fcf9f8;
  --hairline: #d8ded9;
  --white: #ffffff;

  /* Surfaces & accents */
  --mint-surface: #edf6f2;
  --mint: #a7cfc0;
  --paywall-green: #022c22;
  --scan-green: #238064;
  --signature-green: #1a5520;
  --gold: #e9c176;
  --icon-brown: #735947;

  /* Semantic */
  --danger: #b2382f;
  --error: #8b3d2f;
  --disabled: #8c918e;
  --inactive: #8b9690;

  /* Shadows */
  --shadow-soft: 0 4px 12px rgba(22, 52, 44, 0.04);
  --shadow-card: 0 4px 12px rgba(22, 52, 44, 0.05);
  --shadow-button: 0 10px 10px rgba(0, 0, 0, 0.16);
  --shadow-modal: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-phone: 0 24px 48px rgba(22, 52, 44, 0.14);

  /* Layout */
  --nav-height: 64px;
  --page-padding: 24px;
  --hero-max-text: 594px;
  --hero-scale: 1.21;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--deep-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 0.85;
}

h1,
h2,
h3,
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--deep-green);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.125rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
}

.meta,
.caption {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: var(--deep-green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: 9999px;
  background: var(--deep-green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  text-decoration: none;
}

.legal-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
}

.legal-link:hover {
  text-decoration: underline;
}

/* Site navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: var(--nav-height);
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(252, 249, 248, 0.95);
  border-bottom: 1px solid rgba(193, 200, 196, 0.3);
  backdrop-filter: blur(8px);
}

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--deep-green);
}

.site-nav__logo img {
  height: 36px;
  width: auto;
}

.site-nav__logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}

.site-nav__links a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-dropdown__trigger:hover {
  text-decoration: underline;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px 0;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 100;
}

.nav-dropdown__menu a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown__menu a:hover {
  background: var(--mint-surface);
  opacity: 1;
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
  }
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
}

/* Legal pages */
html.legal-page,
body.legal-page {
  height: auto;
  overflow: auto;
}

body.legal-page {
  min-height: 100vh;
}

.legal-content {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(2.5rem, 4vw, 3rem);
}

.legal-content > .meta {
  margin: 0 0 24px;
}

.legal-content > p {
  margin: 0 0 1rem;
}

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--body);
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content p + ul {
  margin-top: -0.25rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(18px, 3.3vw, 44px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: clamp(22px, 3.3vh, 44px) clamp(22px, 4.4vw, 62px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
}

.hero-copy {
  max-width: var(--hero-max-text);
  justify-self: end;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 4.4vw, 3.03rem);
}

.hero-copy__subhead {
  margin: 0 0 40px;
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 528px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.store-badges a {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badges a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.store-badges img {
  height: 48px;
  width: auto;
}

/* Phone showcase */
.hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.phone-showcase__glow {
  position: absolute;
  inset: 0 2%;
  background: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(167, 207, 192, 0.45) 0%,
    rgba(237, 246, 242, 0.22) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.phone-mockup {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Asset has extra padding below the phones; 38% centers the visible handsets */
  object-position: center 38%;
  transform: scale(calc(1.45 * var(--hero-scale)));
  transform-origin: center center;
  filter: drop-shadow(var(--shadow-phone));
  z-index: 1;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem var(--page-padding) 2.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 18px 22px;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 4.4vw, 2.2rem);
    margin-bottom: 13px;
  }

  .hero-copy__subhead {
    font-size: 1.03rem;
    margin-bottom: 22px;
  }

  .store-badges img {
    height: 42px;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    padding: 13px 18px;
  }

  .hero-copy h1 {
    font-size: 1.38rem;
    margin-bottom: 9px;
  }

  .hero-copy__subhead {
    font-size: 0.89rem;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .store-badges {
    gap: 9px;
  }

  .store-badges img {
    height: 35px;
  }
}
