/* Herb Mate: Natural Remedies — landing site styles
   Palette derived from app icon: brand green #3ECC6E, lime leaf #A5DD3B, white mortar. */

:root {
  --brand: #3ecc6e;        /* icon background green — decorative use */
  --brand-deep: #156f3c;   /* AA-safe green for text/links on light bg */
  --brand-dark: #0e5a30;   /* hover state */
  --leaf: #a5dd3b;         /* lime leaf accent — decorative only */
  --ink: #16251c;
  --ink-soft: #43584b;
  --paper: #fbfdf9;
  --paper-2: #eef7ee;
  --card: #ffffff;
  --line: #d7e6d9;
  --badge-bg: #101b14;
  --badge-fg: #ffffff;
  --focus: #0e5a30;
  --max: 66rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-deep: #6fdd97;
    --brand-dark: #93e8b2;
    --ink: #e6f1e8;
    --ink-soft: #a8bfae;
    --paper: #0e1712;
    --paper-2: #14231a;
    --card: #172a1e;
    --line: #2b4433;
    --badge-bg: #e6f1e8;
    --badge-fg: #0e1712;
    --focus: #93e8b2;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--brand-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-deep);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 46rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* Buttons / App Store badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--badge-bg);
  color: var(--badge-fg);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  line-height: 1.15;
  border: 1px solid transparent;
}
.store-badge:hover { background: var(--brand-dark); color: #fff; }
@media (prefers-color-scheme: dark) {
  .store-badge:hover { background: var(--brand-dark); color: #0e1712; }
}
.store-badge .apple-mark { width: 22px; height: 22px; flex: none; }
.store-badge small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.85; }
.store-badge strong { font-size: 1.05rem; font-weight: 600; }

.btn-ghost {
  display: inline-block;
  border: 1.5px solid var(--brand-deep);
  color: var(--brand-deep);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--paper-2); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--paper-2), var(--paper) 65%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.75rem;
}
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; align-items: center; }
.hero-meta { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

.hero-panel {
  background: var(--brand);
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  color: #08301a;
  box-shadow: 0 12px 32px rgba(20, 90, 50, 0.18);
}
.hero-panel img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 20px rgba(8, 48, 26, 0.35);
}
.hero-panel ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  font-weight: 600;
}
.hero-panel li {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  color: #123c24;
  font-size: 0.95rem;
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; padding: 2.5rem 0 2.25rem; }
  .hero-panel { max-width: 24rem; margin: 0 auto; }
}

/* Sections */
section { padding: 3.25rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { max-width: 42em; color: var(--ink-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .glyph {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--brand-deep);
  margin-bottom: 0.8rem;
}
.card .glyph svg { width: 24px; height: 24px; }

/* Problem / solution */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.split .pane {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}
.split .pane.solution { border-color: var(--brand); border-width: 1.5px; }
.split ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.split li { margin-bottom: 0.5rem; }
@media (max-width: 46rem) { .split { grid-template-columns: 1fr; } }

/* Language strip */
.lang-strip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin-top: 1.75rem;
}
.lang-strip p { margin: 0; color: var(--ink-soft); }
.lang-strip strong { color: var(--ink); }

/* FAQ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-top: 0.85rem;
  overflow: hidden;
}
.faq-item h3 { margin: 0; font-family: inherit; font-size: 1.02rem; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1rem 1.15rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q .chev { transition: transform 0.2s ease; flex: none; color: var(--brand-deep); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.15rem 1.1rem; color: var(--ink-soft); }
.faq-a[hidden] { display: none; }

/* Guide teasers */
.guide-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.guide-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
}
.guide-list a:hover { border-color: var(--brand-deep); }
.guide-list strong { display: block; color: var(--brand-deep); margin-bottom: 0.2rem; }
.guide-list span { color: var(--ink-soft); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: var(--brand);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  color: #08301a;
}
.cta-band h2 { color: #08301a; }
.cta-band p { color: #123c24; max-width: 36em; margin: 0 auto 1.25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2 { font-size: 1.05rem; font-family: inherit; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
@media (max-width: 46rem) { .footer-grid { grid-template-columns: 1fr; } }

/* Guide article pages */
.breadcrumb { padding: 1.1rem 0 0; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--ink-soft); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

.article { max-width: 46rem; margin: 0 auto; padding: 1.5rem 0 2rem; }
.article header { margin-bottom: 1.75rem; }
.article .meta { color: var(--ink-soft); font-size: 0.9rem; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { padding-left: 1.35rem; color: var(--ink); }
.article li { margin-bottom: 0.45rem; }

.helps-box {
  background: var(--paper-2);
  border: 1.5px solid var(--brand);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin: 2.25rem 0;
}
.helps-box h2 { margin-top: 0; }

.note-box {
  background: var(--card);
  border-left: 4px solid var(--leaf);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sibling-links { margin: 2rem 0; }
.sibling-links h2 { font-size: 1.15rem; }
