/* ============================================================
   Grain — grainios.com · v3 (editorial redesign)
   No JS. CSP-strict. System fonts only.
   ============================================================ */

/* 1. TOKENS --------------------------------------------------- */
:root {
  --cream:        #FAF8F5;
  --cream-deep:   #F2EDE6;
  --cream-grain:  #F5EDD8;
  --white:        #FFFFFF;
  --sage:         #7A8F6E;
  --sage-pressed: #6B7E60;
  --sage-tint:    #EFF3EC;
  --forest:       #5A6E50;
  --wheat:        #C0AC8E;
  --walnut:       #9E8E76;
  --gold:         #D4AF37;
  --border:       #E8E2D8;
  --text:         #1A1814;
  --text-2:       #5C574E;
  --text-muted:   #9B9688;
  --ok-green:     #5BA67B;
  --amber:        #E8A04C;
  --red-flag:     #C24D4D;

  --shadow-sm: 0 1px 3px rgba(122,143,110,0.06);
  --shadow-md: 0 4px 16px rgba(122,143,110,0.08);
  --shadow-lg: 0 16px 40px rgba(122,143,110,0.12);
  --shadow-phone: 0 30px 60px rgba(40, 35, 25, 0.15);
  --shadow-xl: 0 32px 80px -24px rgba(122,143,110,0.28);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
}

/* 2. RESET + BASE --------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

a { color: var(--sage); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--forest); }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* 3. TYPOGRAPHY ----------------------------------------------- */
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--walnut);
}

.h1-staccato {
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}
.h1-staccato .accent {
  color: var(--sage);
  font-style: italic;
  font-weight: 600;
}

.h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}
.h2 .accent { color: var(--sage); font-style: italic; font-weight: 600; }

.h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 52ch;
}

.caption {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 4. LAYOUT PRIMITIVES ---------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section {
  padding: clamp(96px, 14vw, 200px) 0;
  position: relative;
}

.section-bleed {
  padding: clamp(96px, 14vw, 200px) 0;
  background: var(--cream-deep);
}

.grid-50 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
}
@media (min-width: 1080px) {
  .grid-50 { grid-template-columns: 1fr 1fr; }
}

.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }

/* 5. NAV + FOOTER COMPONENTS --------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--text); }
.nav-brand img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.nav-links > a:hover { color: var(--sage); }

@media (max-width: 720px) {
  .nav-links > a:not(.btn) { display: none; }
}

/* 6. BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
  line-height: 1;
  font-family: inherit;
}
.btn-primary {
  background: var(--sage);
  color: white;
  box-shadow: 0 6px 16px -4px rgba(122,143,110,0.35);
}
.btn-primary:hover {
  background: var(--sage-pressed);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(122,143,110,0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--sage);
  padding: 14px 8px;
}
.btn-ghost:hover { color: var(--forest); }
.btn-inverse {
  background: white;
  color: var(--forest);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.btn-inverse:hover { background: var(--cream-grain); color: var(--forest); }

.btn-icon { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }

/* 7. HERO (Section 1) ---------------------------------------- */
.hero {
  padding: clamp(80px, 10vh, 140px) 0 clamp(112px, 14vh, 180px);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(56px, 8vw, 80px);
  align-items: center;
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-eyebrow {
  display: block;
  margin-bottom: 28px;
}

.hero-h1 {
  margin-bottom: 28px;
}
.hero-h1 br { content: ""; display: block; }

.hero-sub {
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-caption {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Three-phone composition */
.phone-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5/5;
  min-height: 520px;
}
.phone-stage img {
  position: absolute;
  filter: drop-shadow(0 30px 60px rgba(40, 35, 25, 0.15));
}
.phone-back-left {
  top: 8%;
  left: -6%;
  width: 76%;
  transform: rotate(-4deg);
  opacity: 0.95;
  z-index: 1;
}
.phone-center {
  top: 2%;
  left: 14%;
  width: 84%;
  z-index: 3;
}
@media (prefers-reduced-motion: no-preference) {
  .phone-center { animation: phoneFloat 6s ease-in-out infinite; }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.phone-back-right {
  top: 8%;
  right: -6%;
  width: 76%;
  transform: rotate(4deg);
  opacity: 0.95;
  z-index: 1;
}

.hero-stalk {
  position: absolute;
  bottom: -4%;
  left: -12%;
  width: 260px;
  z-index: 0;
  opacity: 0.32;
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-flourish {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .phone-stage { max-width: 460px; margin: 0 auto; min-height: 460px; }
  .hero-stalk { display: none; }
}

/* 8. PROOF ROW (Section 2) ----------------------------------- */
.proof {
  background: var(--cream-grain);
  border-top: 1px solid rgba(192, 172, 142, 0.35);
  border-bottom: 1px solid rgba(192, 172, 142, 0.35);
  padding: 48px 24px;
  text-align: center;
}
.proof-line {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.proof-line .sep { color: var(--wheat); margin: 0 12px; opacity: 0.7; }

/* 9. PROBLEM / INDEPENDENCE (Sections 3, 6) ------------------ */
.prose {
  max-width: 62ch;
  margin: 0 auto;
}
.prose .eyebrow { margin-bottom: 18px; }
.prose .h2 { margin-bottom: 32px; }
.prose p {
  font-size: 19px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}
.prose p + p { margin-bottom: 18px; }
.prose p.last-line {
  font-style: italic;
  color: var(--forest);
  font-weight: 600;
}

/* 10. DIFFERENTIATOR (Section 4) ---------------------------- */
.differentiator {
  background: var(--cream-deep);
}
.differentiator-text .eyebrow { margin-bottom: 20px; }
.differentiator-text .h2 { margin-bottom: 16px; }
.differentiator-text .sub { font-size: 19px; }

/* helpers for prose alignment (CSP-safe alternative to inline style) */
.prose-center { text-align: center; }
.prose-top-lg { margin-top: 32px; }
.sub-lg { font-size: 19px; }
.differentiator-phone {
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(40, 35, 25, 0.12));
}

/* 11. SCENARIOS (Section 5) ---------------------------------- */
.scene {
  padding: clamp(80px, 12vw, 140px) 0;
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 1080px) {
  .scene-grid { grid-template-columns: 1fr 1fr; }
  .scene-reverse .scene-text { order: 2; }
  .scene-reverse .scene-phone { order: 1; }
}
.scene-text .eyebrow { margin-bottom: 18px; }
.scene-text .h3 { margin-bottom: 14px; }
.scene-text .h3 .accent { color: var(--sage); font-style: italic; font-weight: 500; }
.scene-phone {
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(40, 35, 25, 0.12));
}

/* 12. INDEPENDENCE (Section 6) ------------------------------- */
.statement-lines {
  margin-top: 24px;
  color: var(--walnut);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.statement-lines span:not(.sep) { white-space: nowrap; }
.statement-lines .sep { color: var(--wheat); opacity: 0.6; }
.statement-after {
  margin-top: 32px;
  text-align: center;
}
.statement-after a { font-weight: 500; }

/* 13. FINAL CTA (Section 7) ---------------------------------- */
.cta-final {
  background: linear-gradient(180deg, var(--sage) 0%, var(--forest) 100%);
  color: white;
  text-align: center;
  padding: clamp(88px, 14vw, 160px) 24px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg transform='translate(30 30) rotate(25)' fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M 0 -12 C 6 -10, 6 10, 0 12 C -6 10, -6 -10, 0 -12 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.cta-final .h2 { color: white; margin-bottom: 14px; }
.cta-final p { color: rgba(255,255,255,0.82); font-size: 18px; margin-bottom: 32px; }

/* 14. FOOTER ------------------------------------------------- */
.footer {
  background: var(--text);
  color: var(--cream);
  padding: 64px 24px 28px;
  margin-top: 0;
}
.footer .nav-brand, .footer .nav-brand:hover { color: var(--cream); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(250,248,245,0.65);
  font-size: 15px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--cream); }
.footer-tagline {
  color: rgba(250,248,245,0.6);
  font-size: 14px;
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(192, 172, 142, 0.18);
  font-size: 13px;
  color: rgba(250,248,245,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-languages {
  font-size: 12px;
  letter-spacing: 0.12em;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 15. LEGAL / STATIC-PAGE TYPOGRAPHY ------------------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) clamp(24px, 5vw, 64px) 96px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.1;
}
.legal .last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.legal p { margin-bottom: 14px; color: var(--text); line-height: 1.7; }
.legal ul, .legal ol { margin-bottom: 14px; padding-left: 24px; }
.legal li { margin-bottom: 6px; line-height: 1.6; }
.legal strong { color: var(--text); }
.legal a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }

/* 16. PRICING PAGE ------------------------------------------- */
.pricing-page {
  padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 64px);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pricing-page .h1-staccato { font-size: clamp(44px, 7vw, 72px); margin-bottom: 20px; }
.pricing-page .sub { margin: 0 auto 64px; text-align: center; }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}
.price-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
  position: relative;
}
.price-card.featured { border: 2px solid var(--sage); box-shadow: var(--shadow-md); }
.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--sage);
  color: white;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.price-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.price-amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.price-amount small {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}
.price-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 22px;
}
.price-features {
  list-style: none;
  margin-top: 22px;
  padding: 0;
}
.price-features li {
  padding: 7px 0;
  color: var(--text-2);
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.price-features li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='%237A8F6E'%3E%3Cpath d='M12.3 3.3a1 1 0 0 0-1.4 0L5.5 8.7 3.1 6.3a1 1 0 0 0-1.4 1.4l3.1 3.1a1 1 0 0 0 1.4 0l6.1-6.1a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
}
.pricing-after {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 17. METHODOLOGY PAGE --------------------------------------- */
.method {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 64px);
}
.method h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}
.method .intro {
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 56px;
  line-height: 1.6;
}
.method-section { margin-top: 64px; }
.method-section h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.method-section h2 .step {
  display: inline-block;
  margin-right: 12px;
  color: var(--walnut);
  font-weight: 600;
}
.method-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .method-inputs { grid-template-columns: 1fr 1fr; } }
.method-input {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.method-input h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.method-input p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.5; }

.method-formula {
  padding: 28px;
  background: var(--cream-deep);
  border-radius: var(--r-md);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  border: 1px solid var(--border);
}

.method-worked {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.method-worked h3 { font-size: 16px; margin-bottom: 4px; color: var(--text); }
.method-worked .sub-title { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.method-step-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
  color: var(--text-2);
}
.method-step-row:last-child { border-bottom: none; }
.method-step-row .change {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-weight: 600;
  color: var(--red-flag);
}
.method-step-row .change.positive { color: var(--ok-green); }
.method-step-row .change.neutral  { color: var(--walnut); }
.method-step-row .label { color: var(--text); font-weight: 500; }
.method-step-row small { color: var(--text-muted); font-size: 12px; }
.method-step-total {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  border-top: 2px solid var(--text);
  margin-top: 8px;
}
.method-step-total .change { color: var(--sage); font-size: 20px; }

.method-banner {
  margin-top: 64px;
  padding: 20px 24px;
  background: var(--cream-grain);
  border-radius: var(--r-md);
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* 18. ABOUT PAGE --------------------------------------------- */
.about-page {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 64px);
}
.about-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--text);
}
.about-page h1 .accent { color: var(--sage); font-style: italic; font-weight: 500; }
.about-page h2 {
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.about-page p {
  font-size: 18px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 18px;
}
.about-page .contact {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

/* 19. SUPPORT PAGE ------------------------------------------- */
.support-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 64px);
}
.support-page h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.1;
}
.support-page .lead { color: var(--text-2); font-size: 17px; margin-bottom: 48px; }

.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.faq-tab {
  display: inline-block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.faq-tab:hover { color: var(--forest); }
.faq-tab:target,
.faq-tab.active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--sage);
}

.faq-group {
  display: none;
}
.faq-group:target, .faq-group.default { display: block; }
/* When a tab is :target, show the matching group; the ids and hrefs must match */

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  padding-right: 32px;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--sage);
  font-weight: 400;
  font-size: 22px;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
}
details ol, details ul { color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 10px 0; padding-left: 22px; }

.support-contact {
  margin-top: 56px;
  padding: 28px;
  background: var(--cream-grain);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 16px;
  color: var(--text);
}

/* 20. 404 ----------------------------------------------------- */
.nf {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(120px, 18vw, 220px) 32px;
  text-align: center;
}
.nf h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--text);
}
.nf .sub { font-size: 17px; color: var(--text-muted); margin: 0 auto 32px; }
.nf-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.nf-links a {
  display: block;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.nf-links a:hover { border-color: var(--sage); transform: translateY(-1px); }

/* 21. RESPONSIVE + POLISH ------------------------------------ */
hr.wheat-rule {
  border: none;
  height: 1px;
  background: rgba(192, 172, 142, 0.35);
  margin: 0;
}
