:root {
  --forest: #0d4a35;
  --forest-deep: #062a1c;
  --leaf: #5f8a6a;
  --sage: #d5e4d4;
  --mint: #e8f2ea;
  --paper: #f7faf7;
  --fog: #eef3ef;
  --ink: #14201b;
  --muted: #5c6b64;
  --sky: #b9d7e0;
  --accent: #2a7a62;
  --shadow: 0 18px 40px rgba(6, 42, 28, 0.1);
  --radius: 20px;
  --max-width: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(185, 215, 224, 0.45), transparent),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(213, 228, 212, 0.55), transparent),
    linear-gradient(180deg, var(--paper), var(--fog) 55%, #e6efe8);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

[hidden] {
  display: none !important;
}

/* Header — full-bleed bar, constrained inner */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(247, 250, 247, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 74, 53, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--forest), #1a6b4c);
  font-family: var(--font-display);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--forest-deep);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(13, 74, 53, 0.08);
  text-decoration: none;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  background: var(--forest);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--forest-deep);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(13, 74, 53, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--forest);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:not(.sr-only):nth-child(2) {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .nav-toggle span:not(.sr-only):nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 42, 28, 0.72) 0%, rgba(6, 42, 28, 0.4) 45%, rgba(6, 42, 28, 0.12) 100%),
    linear-gradient(0deg, rgba(247, 250, 247, 0.2), transparent 38%);
}

.hero-content {
  position: relative;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 7.5rem) 1.25rem clamp(3.5rem, 8vh, 5.5rem);
  color: #fff;
}

.hero-content > * {
  animation: rise-in 0.7s ease both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.hero-content > *:nth-child(3) { animation-delay: 0.22s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

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

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c8e6d8;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.6rem, 10vw, 7.5rem);
  line-height: 0.9;
}

h2 {
  color: var(--forest);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  color: var(--forest);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p,
li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.store-links.centered {
  justify-content: center;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest-deep);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(6, 42, 28, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(6, 42, 28, 0.26);
  text-decoration: none;
}

.store-button small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.store-button.dark {
  background: var(--forest);
  color: #fff;
}

.store-button.dark small {
  color: rgba(255, 255, 255, 0.72);
}

.store-button.dark:hover {
  background: var(--forest-deep);
}

.store-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.store-icon svg {
  width: 100%;
  height: 100%;
}

/* Sections */
.section {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 7.5rem) 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.section-copy h2 {
  margin-bottom: 1rem;
}

.section-copy p {
  max-width: 40rem;
}

.device-frame {
  position: relative;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid rgba(13, 74, 53, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.device-frame img {
  width: 100%;
  border-radius: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem 1.45rem 1.65rem;
  border: 1px solid rgba(13, 74, 53, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(24, 35, 31, 0.06);
}

.feature-card h3 {
  margin-bottom: 0.65rem;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--mint), var(--sky));
  color: var(--forest);
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: clamp(4.5rem, 8vw, 6.5rem);
  border: 1px solid rgba(13, 74, 53, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(24, 35, 31, 0.06);
}

.split-band h2 {
  margin-bottom: 0.85rem;
}

.trust-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 1.6rem;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.cta-section {
  text-align: center;
  padding: clamp(3.25rem, 6vw, 4.75rem) 1.5rem;
  margin: 0 auto clamp(4.5rem, 8vw, 6.5rem);
  width: min(var(--max-width), calc(100% - 2.5rem));
  border: 1px solid rgba(13, 74, 53, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(232, 242, 234, 0.9), rgba(185, 215, 224, 0.35)),
    var(--mint);
  box-shadow: 0 14px 36px rgba(24, 35, 31, 0.06);
}

.cta-section p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal / contact */
.legal-page,
.contact-hero {
  width: min(900px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.legal-hero,
.contact-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.25rem;
}

.legal-hero h1,
.contact-hero h1 {
  color: var(--forest);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.legal-card {
  padding: 0 0 4rem;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.legal-card h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.legal-card ul {
  padding-left: 1.3rem;
}

.contact-panel {
  width: min(900px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.contact-card {
  padding: 1.75rem 1.6rem 1.85rem;
  border: 1px solid rgba(13, 74, 53, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(24, 35, 31, 0.06);
}

.contact-card h2 {
  margin-bottom: 0.55rem;
}

.contact-card a,
.inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease;
}

.contact-card a {
  margin-top: 0.5rem;
}

.contact-card a:hover,
.inline-cta:hover {
  text-decoration: none;
  background: var(--forest-deep);
}

.verify-page {
  width: min(640px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0 4rem;
}

.verify-panel {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(13, 74, 53, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
}

.verify-panel h1 {
  color: var(--forest);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  margin-bottom: 0.85rem;
}

.verify-panel p {
  max-width: 38rem;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.verify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.verify-button:hover:not(:disabled) {
  background: var(--forest-deep);
}

.verify-button:disabled {
  cursor: not-allowed;
  background: var(--leaf);
}

/* Account deletion */
.delete-form {
  margin-top: 1.5rem;
}

.delete-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.delete-input {
  width: 100%;
  max-width: 24rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(13, 74, 53, 0.28);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: inherit;
}

.delete-input:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}

.delete-error {
  margin: 0.5rem 0 0;
  color: #8c2f21;
  font-size: 0.95rem;
}

.delete-hint {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* The one irreversible button on the site; it should not look like the others. */
.verify-button.delete-danger {
  background: #8c2f21;
}

.verify-button.delete-danger:hover:not(:disabled) {
  background: #73271b;
}

/* Footer */
.site-footer {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 3.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  border-top: 1px solid rgba(13, 74, 53, 0.12);
}

.site-footer.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: flex-end;
  font-weight: 650;
}

.fine-print {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section,
  .split-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 4.5rem 0.85rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid rgba(13, 74, 53, 0.12);
    border-radius: 18px;
    background: rgba(247, 250, 247, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero {
    min-height: min(92vh, 700px);
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(6, 42, 28, 0.78) 0%, rgba(6, 42, 28, 0.45) 48%, rgba(6, 42, 28, 0.18) 100%);
  }

  .site-footer,
  .site-footer.compact {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .section,
  .legal-page,
  .contact-hero,
  .contact-panel,
  .cta-section,
  .verify-page,
  .site-footer {
    width: calc(100% - 1.75rem);
  }

  .hero-content {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .store-button,
  .verify-button,
  .verify-actions .inline-cta {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content > *,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .store-button:hover {
    transform: none;
  }
}
