/* Nature Reach marketing site — isolated from the Flutter app.
   Palette mirrors lib/theme.dart SweColors; do not import Dart. */

:root {
  --paper: #fff9f0;
  --sky: #b8e0f0;
  --cream: #f7f3e8;
  --ink: #1f2a24;
  --ink-soft: #5c6b62;
  --leaf: #2f6b38;
  --leaf-hover: #275830;
  --gold: #e8a317;
  --line: rgba(31, 42, 36, 0.12);
  --max: 70rem;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--leaf);
}

a:hover {
  color: var(--leaf-hover);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}

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

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--leaf);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--leaf-hover);
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 22%;
}

.nav-spacer {
  flex: 1;
}

.lang {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang:hover,
.lang:focus-visible {
  border-color: var(--leaf);
  outline: none;
}

.nav-store img {
  height: 2.5rem;
  width: auto;
}

.store-badge:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

/* Hero */

.hero {
  background: var(--paper);
  padding: 2.75rem 0 0;
}

.hero-copy {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.hero-show {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding-bottom: 3.5rem;
}

.hero-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.screens {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  aspect-ratio: 3 / 2;
}

.screens::-webkit-scrollbar {
  display: none;
}

.screens img {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  pointer-events: none;
}

.demo-btn {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.demo-btn--prev {
  left: 0.75rem;
}

.demo-btn--next {
  right: 0.75rem;
}

.demo-btn:hover,
.demo-btn:focus-visible {
  border-color: var(--leaf);
  outline: none;
}

.demo-caption {
  margin: 0;
  font-weight: 600;
}

.demo-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.dots button {
  appearance: none;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

.dots button.is-on {
  background: var(--leaf);
}

.slogan {
  margin: 0 0 0.85rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--leaf);
}

.headline {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge:hover {
  color: inherit;
}

.store-badge img {
  height: 3.25rem;
  width: auto;
}

.store-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 2.25rem;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

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

.features {
  display: grid;
  gap: 4.25rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  align-items: center;
}

.feature--flip .phone {
  order: -1;
}

.feature-copy h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 28rem;
}

.feature + .parents {
  margin-top: 3.5rem;
}

.phone {
  margin: 0;
  width: min(17.5rem, 100%);
  justify-self: center;
  border-radius: 1.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: 0 1.25rem 2.75rem rgba(31, 42, 36, 0.14);
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

.parents h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.parents p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cta {
  text-align: center;
  padding: 4.5rem 0 5rem;
  background: var(--cream);
}

.cta .headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-note {
  margin-bottom: 1.25rem;
}

.cta .store-row {
  justify-content: center;
}

/* Footer */

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--leaf);
  text-decoration: underline;
}

.footer .copy {
  margin-left: auto;
}

@media (max-width: 52rem) {
  .feature,
  .parents {
    grid-template-columns: 1fr;
  }

  .feature {
    gap: 1.35rem;
  }

  .feature--flip .phone {
    order: 0;
  }

  .phone {
    width: min(16rem, 68%);
  }

  .nav-store {
    display: none;
  }

  .footer .copy {
    margin-left: 0;
  }

  .section {
    padding: 3.25rem 0;
  }
}
