:root {
  --stone-50: #f7f8f5;
  --stone-100: #eef0ea;
  --stone-200: #dfe3d8;
  --stone-300: #c5cdc0;
  --forest-900: #1e3d32;
  --forest-800: #2d4a3e;
  --forest-700: #3d5c4e;
  --forest-600: #4a6f5c;
  --sage: #5a8a6e;
  --sage-soft: #d8e5dc;
  --charcoal: #2a2e2b;
  --charcoal-muted: #5a615c;
  --white: #ffffff;
  --danger: #9b3a3a;
  --danger-bg: #f8ecec;
  --success-bg: #e8f2eb;
  --success-text: #1e3d32;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 18px 50px -28px rgba(30, 61, 50, 0.35);
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--stone-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: color-mix(in srgb, var(--stone-50) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--stone-200);
  background: color-mix(in srgb, var(--stone-50) 94%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand img {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin-top: 0.1rem;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal-muted);
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--forest-800); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--forest-800); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--forest-800);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--forest-900); transform: translateY(-1px); }
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--forest-800);
  border: 1px solid var(--stone-200);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-social:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
}
.nav-social svg { width: 1rem; height: 1rem; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--forest-800);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--stone-200);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 500;
  color: var(--charcoal-muted);
}
.mobile-menu .nav-cta {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 920px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .brand-text span { display: none; }
  .brand-text { font-size: 1.15rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--forest-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--forest-900); }
.btn-ghost {
  background: transparent;
  color: var(--forest-800);
  border-color: var(--stone-300);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--sage);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.85rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--forest-900);
  margin: 0;
  max-width: 22ch;
}
.section-lead {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  color: var(--charcoal-muted);
  max-width: 38rem;
}

/* Article pages */
.page-hero {
  padding: 7.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(90, 138, 110, 0.16), transparent 60%),
    linear-gradient(165deg, #e8ebe4 0%, var(--stone-50) 55%, #f3f5f0 100%);
}
.page-hero-inner {
  max-width: 42rem;
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn 0.8s ease forwards 0.1s;
}
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--forest-900);
  margin: 0;
}
.page-hero .section-lead {
  margin-top: 1.15rem;
  font-size: 1.12rem;
}

.article {
  padding: 0 0 4rem;
}
.article-body {
  max-width: 42rem;
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  margin: 2.75rem 0 0.85rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  color: var(--charcoal-muted);
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--charcoal-muted);
}
.article-body li {
  margin: 0.45rem 0;
  font-size: 1.05rem;
}
.article-body a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--forest-900); }
.article-body .note {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--sage);
  background: var(--white);
  color: var(--charcoal-muted);
  font-size: 0.98rem;
}

.page-cta {
  margin: 3rem 0 0;
  padding: 2rem;
  background: var(--forest-900);
  color: #d7e2db;
  border-radius: calc(var(--radius) + 4px);
}
.page-cta h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 0.65rem;
}
.page-cta p {
  margin: 0 0 1.35rem;
  color: #b7c9be;
  font-size: 1.02rem;
}
.page-cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.page-cta .btn-ghost {
  color: #e4eee8;
  border-color: rgba(255,255,255,0.25);
}
.page-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-200);
}
.related h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest-900);
  margin: 0 0 1rem;
}
.related-links {
  display: grid;
  gap: 0.85rem;
}
.related-links a {
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.related-links a:hover { color: var(--forest-900); }
.related-links span {
  display: block;
  font-weight: 400;
  color: var(--charcoal-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  text-decoration: none;
}

/* Guides grid (homepage) */
.guides {
  background: var(--white);
  border-block: 1px solid var(--stone-200);
  padding: 5rem 0;
}
.guide-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 750px) {
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
.guide-link {
  display: block;
  padding: 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--stone-200);
  transition: color 0.2s ease;
}
.guide-link:last-child { border-bottom: 0; }
@media (min-width: 750px) {
  .guide-link {
    padding: 0 0 0.25rem;
    border-bottom: 0;
  }
}
.guide-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-900);
  margin-bottom: 0.4rem;
}
.guide-link p {
  margin: 0;
  color: var(--charcoal-muted);
  font-size: 1rem;
}
.guide-link:hover strong { color: var(--forest-700); }

/* Contact (shared for get-support) */
.contact { background: var(--white); padding: 5rem 0; }
.contact-layout {
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}
.contact-aside p {
  margin: 1rem 0 0;
  color: var(--charcoal-muted);
  font-size: 1.05rem;
}
.contact-meta {
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
}
.meta-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.meta-item svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--sage);
}
.meta-item strong {
  display: block;
  color: var(--forest-900);
  font-weight: 600;
}
.meta-item a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meta-item a:hover { color: var(--forest-900); }
.meta-item span, .meta-item a {
  color: var(--charcoal-muted);
}
.form-panel {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 600px) {
  .form-panel { padding: 2rem; }
}
.form-panel form { display: grid; gap: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-900);
  margin-bottom: 0.4rem;
}
.field .optional {
  font-weight: 500;
  color: var(--charcoal-muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a928c; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90, 138, 110, 0.18);
}
.field textarea {
  resize: vertical;
  min-height: 8rem;
}
.field-error {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--danger);
}
.field-error.is-visible { display: block; }
.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #c56a6a;
  box-shadow: 0 0 0 3px rgba(155, 58, 58, 0.12);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.human-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.human-check:has(input:checked) {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage-soft) 55%, white);
}
.human-check input {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--forest-800);
}
.human-check span {
  font-size: 0.92rem;
  color: var(--charcoal-muted);
}
#form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  border: 1px solid transparent;
}
#form-status.is-visible { display: block; }
#form-status.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: #b7d4c2;
}
#form-status.is-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #e2b6b6;
}
#submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.form-note {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #8a928c;
}
.form-note a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reassure-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.reassure-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--charcoal-muted);
  font-size: 1.02rem;
}
.reassure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--sage);
}

/* Footer */
.site-footer {
  background: #162e26;
  color: #a8b9b0;
  padding: 3rem 0 2rem;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
}
.footer-brand span { font-size: 0.85rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.92rem;
  max-width: 28rem;
  justify-content: flex-start;
}
@media (min-width: 700px) {
  .footer-links { justify-content: flex-end; }
}
.footer-links a {
  color: #c5d5cb;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: #7f9288;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
