/*
  Bible Explained Study — website design system
  Warm ivory/cream + deep teal, calm editorial composition.
*/

:root {
  /* Brand palette */
  --color-ink: #16302f;           /* deep teal-black, primary text */
  --color-teal: #0e343d;          /* deep teal, primary brand */
  --color-teal-dark: #0a2529;
  --color-teal-tint: #e7eef0;     /* pale teal surface */
  --color-sage: #7c9a86;          /* muted sage accent */
  --color-sage-tint: #eef2ec;
  --color-cream: #f8f3ea;         /* warm ivory background */
  --color-cream-deep: #f1e8d8;
  --color-card: #fffdf9;
  --color-border: #e6ddc9;
  --color-border-strong: #d8cdb2;
  --color-muted: #5c544a; /* AA on cream and cream-deep at body sizes */
  --color-accent-coral: #e2977c; /* used sparingly, matches app "Ask Bible" accent */
  --header-bg: rgba(248, 243, 234, 0.92); /* translucent cream over --color-cream */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(22, 48, 47, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 48, 47, 0.08);
  --shadow-lg: 0 20px 48px rgba(22, 48, 47, 0.12);

  --max-width: 1160px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #f2ede1;
    --color-teal: #7fa8ac;
    --color-teal-dark: #0a2529;
    --color-teal-tint: #16302f;
    --color-sage: #a9c2ae;
    --color-sage-tint: #1b2b23;
    --color-cream: #10201f;
    --color-cream-deep: #0c1918;
    --color-card: #16302f;
    --color-border: #274745;
    --color-border-strong: #33564f;
    --color-muted: #b9c4bf;
    --header-bg: rgba(16, 32, 31, 0.92);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Anchored sections (e.g. /#how-it-works) land below the sticky header. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  /* Without this, CSS width + the height="" attribute stretches images:
     the attribute height applies literally once CSS overrides only width. */
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-teal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ===== Focus states ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-teal);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-primary a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-primary a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-primary a:hover svg,
.nav-primary a[aria-current="page"] svg {
  opacity: 1;
}

.nav-primary a:hover {
  background: var(--color-teal-tint);
  color: var(--color-teal);
}

.nav-primary a:active {
  background: var(--color-cream-deep);
}

.nav-primary a[aria-current="page"] {
  color: var(--color-teal);
  background: var(--color-teal-tint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-card);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-teal);
  color: #fdfaf3;
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-teal-tint);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14.5px;
  min-height: 40px;
}

.btn-primary:active {
  background: var(--color-teal-dark);
}

.btn-secondary:active {
  background: var(--color-cream-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Store badges ===== */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--color-ink);
  color: var(--color-cream);
  text-decoration: none;
  min-height: 48px;
  border: 1px solid var(--color-teal-dark);
}

.store-badge__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.store-badge__name {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-serif);
}

/* ===== Hero ===== */
.hero {
  padding: 48px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  background: var(--color-sage-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  color: var(--color-teal);
  text-wrap: balance;
}

.hero__lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 46ch;
}

.hero__trust {
  margin-top: 20px;
  font-size: 15px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-teal);
  text-decoration: none;
  min-height: 44px;
  border-bottom: 2px solid var(--color-sage);
  align-self: flex-start;
}

.hero__secondary:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-teal);
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__frame {
  position: relative;
  display: flex;
  justify-content: center;
  /* Grid items default to min-width:auto, which lets a large intrinsic
     image force this column wider than its track and overflow the
     viewport on narrow screens. min-width:0 lets it shrink normally. */
  min-width: 0;
}

/* Soft, restrained surface behind the device — product focus, no clutter.
   Kept inside the frame's box so it can never widen the layout viewport. */
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 6% 0 2% 0;
  background: radial-gradient(closest-side, var(--color-sage-tint) 0%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
}

.hero__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

/* ===== Trust strip ===== */
.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-cream-deep);
}

.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  padding: 20px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-teal);
}

.trust-strip__row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section-head {
  max-width: 660px;
  margin: 0 0 40px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.5rem);
  color: var(--color-teal);
}

.section-head p {
  color: var(--color-muted);
  font-size: 17.5px;
}

.alt-bg {
  background: var(--color-cream-deep);
}

/* ===== Feature storytelling (alternating screenshot + copy) ===== */
.feature-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 32px 0;
}

.feature-story--reverse .feature-story__media {
  order: 2;
}

.feature-story__media,
.feature-story__body {
  min-width: 0;
}

.feature-story__media img {
  width: 100%;
  max-width: 340px;
  min-width: 0;
  margin: 0 auto;
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.feature-story__body .eyebrow {
  margin-bottom: 14px;
}

.feature-story__body h2,
.feature-story__body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--color-teal);
  max-width: 24ch;
  margin-top: 0;
}

.feature-story__body p {
  color: var(--color-ink);
  font-size: 17.5px;
  max-width: 52ch;
}

.feature-story__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 48ch;
}

.feature-story__list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  color: var(--color-muted);
}

.feature-story__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-grid--compact {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: no-preference) {
  .feature-card:hover {
    transform: translateY(-2px);
  }
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-teal-tint);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  color: var(--color-ink);
}

.feature-card p {
  color: var(--color-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 28px;
}

.step:not(:first-child) {
  border-left: 1px solid var(--color-border);
}

.step__num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-sage);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ===== Sharing example ===== */
.share-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.share-section .section-head {
  margin: 0;
  max-width: none;
  min-width: 0;
}

.share-preview {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 620px;
  min-width: 0;
}

.share-preview__ref {
  padding: 30px 34px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sage);
}

.share-preview__title {
  padding: 8px 34px 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--color-teal);
  line-height: 1.25;
}

.share-preview__body {
  padding: 22px 34px 0;
  color: var(--color-ink);
  font-size: 16.5px;
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
}

.share-preview__body p {
  margin: 0 0 1.1em;
}

.share-preview__reflection {
  margin: 4px 34px 26px;
  padding: 18px 20px;
  background: var(--color-sage-tint);
  border-radius: var(--radius-md);
  font-size: 15px;
}

.share-preview__reflection span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sage);
  margin-bottom: 6px;
}

.share-preview__reflection p {
  margin: 0;
  color: var(--color-ink);
}

.share-preview__foot {
  padding: 20px 34px;
  border-top: 1px solid var(--color-border);
  background: var(--color-cream-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Audience list ===== */
.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.audience-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.audience-item__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--color-teal);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  margin: 0 24px;
}

.final-cta h2 {
  color: var(--color-cream);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.final-cta p {
  color: rgba(248, 243, 234, 0.92);
  font-size: 17.5px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .store-badges {
  justify-content: center;
  margin-top: 28px;
}

.final-cta .store-badge {
  background: rgba(248, 243, 234, 0.1);
  border-color: rgba(248, 243, 234, 0.25);
}

/* ===== Prose (About / legal-adjacent content) ===== */
.prose {
  max-width: 720px;
  font-size: 17px;
  color: var(--color-ink);
}

.prose h2 {
  color: var(--color-teal);
  font-size: 1.6rem;
  margin-top: 2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--color-ink);
}

.prose ul {
  padding-left: 22px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.principle-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.principle-card h3 {
  font-size: 16px;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.principle-card p {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.contact-card h3 {
  font-size: 17px;
  color: var(--color-teal);
}

.contact-card a.email {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-sage);
}

.notice-box {
  border-left: 3px solid var(--color-accent-coral);
  background: var(--color-sage-tint);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  margin: 18px 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-cream-deep);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 14px;
  font-family: var(--font-sans);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

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

.footer-brand p {
  color: var(--color-muted);
  font-size: 15px;
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

/* ===== Mobile nav ===== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 31, 0.45);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--color-cream);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-card);
  cursor: pointer;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__links a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav__links a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.75;
}

.mobile-nav__links a[aria-current="page"] svg {
  opacity: 1;
}

.mobile-nav__links a:hover {
  background: var(--color-teal-tint);
}

.mobile-nav__actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Article / shared page ===== */
.article-shell {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.article-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.article-card__ref {
  padding: 28px 32px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-sage);
}

.article-card__title {
  padding: 8px 32px 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--color-teal);
  line-height: 1.25;
}

.article-card__body {
  padding: 26px 32px;
  border-top: 1px solid var(--color-border);
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-ink);
}

.article-card__body p {
  margin: 0 0 1.15em;
}

.article-card__body strong {
  font-weight: 700;
  color: var(--color-ink);
}

.article-card__body em {
  font-style: italic;
}

.article-card__body h2,
.article-card__body h3,
.article-card__body h4 {
  font-family: var(--font-serif);
  color: var(--color-teal);
  line-height: 1.3;
  margin: 1.4em 0 0.6em;
}

.article-card__body h2 {
  font-size: 1.3em;
}

.article-card__body h3 {
  font-size: 1.12em;
}

.article-card__body h4 {
  font-size: 1em;
}

.article-card__body h2:first-child,
.article-card__body h3:first-child,
.article-card__body h4:first-child {
  margin-top: 0;
}

.article-card__body ul {
  margin: 0 0 1.15em;
  padding-left: 1.3em;
}

.article-card__body li {
  margin: 0 0 0.5em;
}

.article-card__body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.6em 0;
}

.article-card__reflection {
  margin: 0 32px 26px;
  padding: 18px 20px;
  background: var(--color-sage-tint);
  border-radius: var(--radius-md);
  font-size: 15.5px;
}

.article-card__reflection h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sage);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.article-card__reflection p {
  margin: 0;
}

.article-card__reflection p + p {
  margin-top: 0.6em;
}

.article-cta {
  padding: 24px 32px 30px;
  border-top: 1px solid var(--color-border);
  background: var(--color-cream-deep);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  color: var(--color-ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.share-icon-btn svg {
  width: 20px;
  height: 20px;
}

.share-icon-btn:hover {
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .share-icon-btn:hover {
    transform: translateY(-1px);
  }
}

.share-icon-btn--sms:hover { color: #2fb655; border-color: #2fb655; }
.share-icon-btn--whatsapp:hover { color: #25d366; border-color: #25d366; }
.share-icon-btn--facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-icon-btn--twitter:hover { color: var(--color-ink); border-color: var(--color-ink); }
.share-icon-btn--instagram:hover { color: #e1306c; border-color: #e1306c; }
.share-icon-btn--copy:hover { color: var(--color-teal); border-color: var(--color-teal); }

.article-report-link {
  align-self: flex-start;
  font-size: 13.5px;
  color: var(--color-muted);
  text-decoration: underline;
}

.article-cta__lede {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-teal);
}

.article-footnote {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.7;
}

.article-footnote a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--color-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
  color: var(--color-muted);
}

/* ===== 404 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-primary,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid,
  .steps,
  .contact-grid,
  .principle-grid,
  .audience-list {
    grid-template-columns: 1fr;
  }

  .feature-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-story {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0;
  }

  .feature-story--reverse .feature-story__media {
    order: 0;
  }

  .share-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-story__body h2,
  .feature-story__body h3,
  .feature-story__body p,
  .feature-story__list {
    max-width: none;
  }

  .step {
    border-left: none !important;
    padding: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
  }

  .step:first-child {
    border-top: none;
    padding-top: 0;
  }

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

  .final-cta {
    margin: 0 16px;
    padding: 48px 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-grid--compact {
    grid-template-columns: 1fr;
  }

  .site-header__bar {
    padding: 14px 18px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 32px 0 40px;
  }
}

/* Very narrow phones: keep the wordmark + menu button within 320px. */
@media (max-width: 380px) {
  .brand {
    font-size: 18px;
    gap: 8px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }
}
