/**
 * Anvaya marketing & legal pages — matches constants/theme.js (Warm Tree & Coral).
 */
:root {
  --bg: #fff8e7;
  --bg-elevated: #fffcf1;
  --surface: #ffffff;
  --surface-muted: #f4efdf;
  --primary: #1f7a6b;
  --primary-dark: #144a40;
  --primary-light: #5ba193;
  --primary-soft: #d6eae5;
  --primary-muted: #a3c9be;
  --accent: #e98a7a;
  --accent-soft: #fcddd4;
  --text: #1f2a2e;
  --text-secondary: #5a6a66;
  --text-muted: #8e9c97;
  --text-on-dark: #ffffff;
  --border: #e6ddc8;
  --border-light: #f0e9d7;
  --nav-chrome: #fbf3de;
  --warm-mustard: #e6b84a;
  --warm-mustard-soft: #faedc4;
  --danger-soft: #faf0f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 12px rgba(20, 74, 64, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 74, 64, 0.1);
  --shadow-lg: 0 20px 48px rgba(20, 74, 64, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max: 1080px;
  --nav-h: 64px;
  --safe-x: max(1.25rem, env(safe-area-inset-left));
  --safe-x-r: max(1.25rem, env(safe-area-inset-right));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--primary-dark);
  color: var(--text-on-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--safe-x);
  padding-right: var(--safe-x-r);
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--safe-x);
  padding-right: var(--safe-x-r);
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
  background: rgba(251, 243, 222, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-nav.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

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

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--text-on-dark) !important;
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost {
  background: var(--surface);
  color: var(--primary-dark) !important;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem var(--safe-x) 1.25rem;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 0;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  :root {
    --nav-h: 72px;
  }
}

/* ── Typography ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.kicker--center {
  justify-content: center;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.section-head .lead {
  margin-bottom: 0;
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--muted {
  background: var(--nav-chrome);
  border-block: 1px solid var(--border-light);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--primary-muted);
}

/* ── Hero ── */
.hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

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

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    text-align: left;
  }

  .pill-row {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-copy {
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 420px);
  filter: drop-shadow(var(--shadow-lg));
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Tabs strip ── */
.tabs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-pill {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.tab-pill strong {
  color: var(--primary-dark);
}

/* ── Steps ── */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-sans);
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Trust / legal teaser ── */
.trust-panel {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .trust-panel {
    grid-template-columns: 1.2fr 1fr;
    padding: 2rem;
    align-items: start;
  }
}

.trust-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-panel li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.trust-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.callout {
  background: var(--warm-mustard-soft);
  border: 1px solid rgba(230, 184, 74, 0.45);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.callout strong {
  color: var(--primary-dark);
}

.callout--danger {
  background: var(--danger-soft);
  border-color: #e8c4c4;
}

/* ── Download ── */
.download-card {
  text-align: center;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.download-card h2 {
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

.download-card p {
  margin: 0 0 1.25rem;
  color: var(--text-on-dark);
  opacity: 0.9;
}

.download-card .store-badge {
  display: inline-block;
  height: 52px;
  width: auto;
  margin: 0 auto;
}

.download-card .version-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

.download-card .app-icon-lg {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

/* ── Social / Connect ── */
.connect-panel {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link,
.social-link--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  padding: 0;
  background: transparent;
}

.social-link__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-link svg {
  width: 26px;
  height: 26px;
  display: block;
}

.social-link--soon {
  cursor: default;
  opacity: 0.55;
}

.social-link--soon:hover {
  transform: none;
  box-shadow: none;
}

.social-soon-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-social {
  margin-top: 0.75rem;
}

.footer-social .social-row {
  gap: 0.65rem;
}

.footer-social .social-link,
.footer-social .social-link--soon {
  width: 40px;
  height: 40px;
}

.footer-social .social-link__circle {
  width: 40px;
  height: 40px;
}

.footer-social .social-link svg {
  width: 20px;
  height: 20px;
}

/* ── Footer ── */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

/* ── Legal / privacy page ── */
.legal-page {
  padding: 1.5rem 0 3rem;
}

.legal-page h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin-bottom: 0.35rem;
}

.legal-meta {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-section {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal-section p {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-back {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.legal-wrap {
  max-width: 720px;
}

/* Screenshots row */
.screens-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .screens-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screen-card {
  text-align: center;
}

.screen-card img {
  margin: 0 auto 0.75rem;
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(var(--shadow-md));
}

.screen-card figcaption h3 {
  margin-bottom: 0.25rem;
}

.screen-card figcaption p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
