/* Echo Root — shared styles */

:root {
  --bg: #f8f3e8;
  --surface: #fffdf7;
  --forest: #173f2a;
  --forest-secondary: #526758;
  --orange: #d85a05;
  --orange-dark: #b84800;
  --gold: #c8982d;
  --sage: #bbc9a1;
  --border: #e1d7c6;
  --text: #183326;
  --text-secondary: #6d7067;
  --white: #ffffff;
  --shadow: rgba(23, 63, 42, 0.1);
  --shadow-lift: rgba(23, 63, 42, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --header-h: 64px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(187, 201, 161, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 15%, rgba(200, 152, 45, 0.12), transparent 50%),
    var(--bg);
}

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

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--forest);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--forest);
  text-decoration: none;
  min-height: 44px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px var(--shadow);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--forest-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--forest);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(216, 90, 5, 0.22);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--forest);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--forest);
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 22%, var(--surface));
}

.btn-header {
  padding-inline: 1rem;
}

/* Landing layout — compact one-viewport feel on desktop */
.landing-main {
  padding-block: 1rem 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sage) 35%, var(--surface));
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent);
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--forest);
  max-width: 14ch;
}

.lede {
  margin: 0 0 0.85rem;
  max-width: 38ch;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.trust-line {
  margin: 0 0 1.25rem;
  max-width: 40ch;
  font-size: 0.92rem;
  color: var(--forest-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.motif {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  color: var(--forest);
}

.motif-pin {
  right: 8%;
  top: -0.5rem;
  width: 42px;
  height: 42px;
}

.motif-wave {
  left: -0.5rem;
  bottom: 12%;
  width: 64px;
  height: 28px;
}

/* App preview */
.preview-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.phone-frame {
  position: relative;
  width: min(100%, 280px);
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a4a36, #173f2a 55%, #0f291c);
  box-shadow:
    0 24px 50px var(--shadow-lift),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-logo {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--surface);
  box-shadow: 0 10px 22px var(--shadow-lift);
  z-index: 3;
  background: var(--surface);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 18px;
  border-radius: 999px;
  background: #0c1f15;
  z-index: 2;
}

.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: var(--bg);
  aspect-ratio: 1320 / 2868;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: var(--bg);
}

.preview-badge {
  position: absolute;
  left: 0;
  top: 12%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forest);
  animation: float-soft 5s ease-in-out infinite;
}

.preview-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
}

.locked-card {
  position: absolute;
  right: 0;
  bottom: 10%;
  width: min(190px, 46vw);
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px var(--shadow);
  animation: float-soft 6s ease-in-out 0.6s infinite;
}

.locked-card p {
  margin: 0;
}

.locked-card .card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.locked-card .card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--orange);
}

.locked-card .card-note {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-badge,
  .locked-card {
    animation: none;
  }
}

/* Compact sections under hero */
.compact-band {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, var(--white));
  box-shadow: 0 10px 28px var(--shadow);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
}

.steps {
  display: grid;
  gap: 0.75rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.step-num {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--gold) 28%, var(--surface));
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  color: var(--forest);
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sage) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--sage) 55%, var(--border));
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 650;
}

.features li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--forest);
}

.safety {
  display: grid;
  gap: 0.35rem;
}

.safety h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest);
}

.safety p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 70ch;
}

.safety a {
  font-weight: 650;
}

.download-block {
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.download-block p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store-badges a {
  display: inline-flex;
  min-height: 44px;
  border-radius: 10px;
  transition: transform 160ms ease;
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges img {
  height: 44px;
  width: auto;
}

.lower-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 1.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.footer-links a {
  color: var(--forest-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--forest);
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Legal / support pages */
.legal-main {
  padding: 1.75rem 0 3rem;
}

.legal-card {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 1.5rem 1.35rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 14px 34px var(--shadow);
}

.legal-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--forest);
  letter-spacing: -0.02em;
}

.updated {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-card h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.1rem;
  color: var(--forest);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

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

.legal-intro {
  color: var(--text) !important;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq details p {
  margin: 0.55rem 0 0.25rem;
}

.notice {
  margin: 1.25rem 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--border));
  background: color-mix(in srgb, var(--orange) 10%, var(--surface));
}

.notice strong {
  color: var(--forest);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-box {
  margin: 1rem 0 1.4rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--sage) 22%, var(--surface));
  border: 1px solid var(--border);
}

.contact-box a {
  font-weight: 700;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

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

  .step {
    grid-template-columns: 1fr;
  }

  .lower-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }

  .download-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
}

@media (min-width: 960px) {
  .landing-main {
    padding-block: 0.75rem 1rem;
    min-height: calc(100vh - var(--header-h) - 5.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

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

  .phone-frame {
    width: min(100%, 300px);
  }

  .compact-band {
    margin-top: 1.1rem;
  }

  .lower-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 719px) {
  .preview-badge {
    left: 4%;
  }

  .locked-card {
    right: 2%;
    bottom: 4%;
  }

  .hero-copy h1 {
    max-width: none;
  }
}
