:root {
  --expense: #B3261E;
  --footer-text: #CBD5E1;
}

/* Reading content remains visible even if hydration or the observer fails. */
.reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
.home-hero { min-height: auto; padding-block: 64px; }
.home-hero-grid { gap: clamp(32px, 5vw, 72px); }
.home-hero-copy h1, .utility-page h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  line-height: 1.5;
  text-wrap: balance;
}
.home-story-copy h2, .support-guide-main h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-wrap: balance;
}
.home-voice-benefits h3, .home-step h3 { font-size: 1.0625rem; }
.desktop-nav a { min-width: 44px; text-align: center; font-size: .9375rem; }
.brand { min-height: 44px; }
a, button { touch-action: manipulation; }
.text-link, .home-support-link { min-height: 44px; padding-block: 8px; }
.footer-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.footer-links > div { gap: 8px; }
.footer-brand p, .footer-links a, .footer-links > div > span,
.footer-bottom { color: var(--footer-text); font-size: .9375rem; }
.site-footer :focus-visible, .home-end-panel :focus-visible {
  outline-color: var(--white); outline-offset: 4px;
}
.home-end-panel p { opacity: 1; }
.home-proof-line span, .home-control-strip span, .download-facts span,
.support-hours span, .support-status { font-size: .875rem; }
.download-action > small, .support-pending small { font-size: .875rem; }
.support-content p, .support-pending span, .mobile-menu-note p { font-size: 1rem; }
.support-content { flex-direction: column; align-items: stretch; gap: 24px; }
.support-content > div, .support-pending { min-width: 0; }
.support-pending .text-link { margin-top: 8px; }
.support-tabs { overflow: visible; }
.support-tabs button:focus-visible { outline-offset: -4px; }
.support-tabs button { font-size: 1rem; }
.support-content h3 { margin-bottom: 12px; }
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; }
[id] { scroll-margin-top: calc(var(--header-height, 0px) + 24px); }
.skip-link {
  position: fixed; z-index: 100; top: 8px; inset-inline-start: 16px;
  padding: 12px 20px; color: var(--white, #fff); background: var(--primary-dark, #006F60);
  border-radius: 8px; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.journey-controls { display: flex; justify-content: center; margin-top: 16px; }
.journey-toggle {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--white); color: var(--primary-dark);
  font: inherit; cursor: pointer;
}
.journey-toggle:hover { background: var(--surface-quiet); }
.journey-paused *, .journey-paused *::before, .journey-paused *::after {
  animation-play-state: paused !important;
}
.privacy-page { --ink: #101522; --primary-dark: #006F60; --white: #fff; }
.privacy-page main { max-width: 760px; padding: 28px 24px 64px; }
.privacy-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.privacy-nav a, .privacy-page a[href^="mailto:"] {
  display: inline-flex; align-items: center; min-height: 44px;
}
.privacy-page a { text-decoration: underline; text-underline-offset: 4px; }
.privacy-page a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.privacy-page h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); text-wrap: balance; }

@media (max-width: 1080px) and (min-width: 861px) {
  .home-hero-stage { transform: scale(.85); }
  .home-hero-visual { min-width: 0; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .download-hero-grid, .support-hero-grid { gap: 40px; }
}
@media (max-width: 860px) {
  .home-hero { padding-top: 40px; padding-bottom: 24px; }
  .home-hero-copy h1, .utility-page h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .home-sms-grid > .home-story-copy, .home-report-grid > .home-story-copy { order: -1; }
  .home-sms-visual { min-height: 0; }
  .home-report-visual, .home-voice-visual { min-height: 0; }
  .home-sms-section, .home-voice-section, .home-report-section { padding-block: 56px; }
  .support-hero, .download-hero { padding-block: 48px; }
  .home-hero-stage { max-width: 100vw; }
}
@media (max-width: 560px) {
  .home-hero-copy h1, .utility-page h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .home-story-copy h2, .support-guide-main h2 { font-size: 1.75rem; }
  .home-report-stage, .home-voice-stage { height: 490px; }
  .footer-main { gap: 32px; }
  .footer-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .footer-bottom { font-size: .875rem; line-height: 1.85; }
  .support-content { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .home-hero-frame { opacity: 1; transform: none; }
  .home-draft-float, .home-voice-float { opacity: 1; }
  .journey-controls { display: none; }
}
.home-proof-line span::before, .home-report-list li::before { content: "✓" / ""; }
.download-facts { align-items: center; }
@media (max-width: 860px) {
  .download-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .download-hero-grid > * { min-width: 0; }
  .download-phone { max-width: 100%; }
}
.home-hero-frame { animation-duration: 300ms; animation-delay: 0ms; }
.home-draft-float, .home-voice-float { animation-duration: 300ms; animation-delay: 100ms; }
.desktop-nav a[aria-current="page"] { color: var(--ink); }
.desktop-nav a[aria-current="page"]::after { width: 100%; }
.mobile-menu-nav a[aria-current="page"] { color: var(--primary-dark); }
.mobile-menu-nav a[aria-current="page"] b { color: var(--primary); }

/* Keep each desktop column entirely on its own background. */
@media (min-width: 861px) {
  .home-hero-grid, .download-hero-grid, .support-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
  }
  .home-hero::before, .download-hero::before, .support-hero::before { width: 50%; }
}
@media (max-width: 860px) {
  .home-hero::before, .download-hero::before, .support-hero::before { display: none; }
}
/* The support guide stands alone after removing the optional note. */
.support-guide-grid { grid-template-columns: minmax(0, 1fr); max-width: 780px; }

/* Four connected, numbered stages; the same reading order on every screen. */
.home-step-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-inline-start: 54px;
  margin-top: 32px;
  isolation: isolate;
}
.home-step-list::before {
  content: "";
  position: absolute;
  inset-inline-start: 19px;
  inset-block: 22px 32px;
  width: 2px;
  background: var(--primary);
  opacity: .25;
  z-index: -1;
}
.home-step {
  display: block;
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--white);
  min-width: 0;
}
.home-step:last-child { border-bottom: 1px solid var(--primary); background: var(--surface-quiet); }
.home-step::before {
  content: "۰۱" / "";
  position: absolute;
  inset-inline-start: -54px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 0 0 5px var(--white);
  font-size: .9375rem;
  font-weight: 500;
}
.home-step:nth-child(2)::before { content: "۰۲" / ""; }
.home-step:nth-child(3)::before { content: "۰۳" / ""; }
.home-step:nth-child(4)::before { content: "۰۴" / ""; color: var(--white); background: var(--primary); }
.home-step > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.home-step > span svg { flex: none; }
.home-step h3 { font-size: 1.0625rem; line-height: 1.75; margin: 0 0 6px; font-weight: 600; }
.home-step p { font-size: 1rem; line-height: 1.85; }
.home-step p:empty { display: none; }
.home-step:last-child h3 { margin-bottom: 0; }
@media (max-width: 560px) {
  .home-step-list { padding-inline-start: 44px; gap: 12px; }
  .home-step-list::before { inset-inline-start: 15px; }
  .home-step { padding: 16px; border-radius: 12px; }
  .home-step::before { inset-inline-start: -44px; top: 16px; width: 32px; height: 32px; font-size: .8125rem; }
  .home-step h3 { font-size: 1rem; }
}

/* Keep Persian content aligned consistently across responsive layouts. */
main h1, main h2, main h3,
.home-hero-copy, .home-story-copy, .home-end-panel,
.download-copy, .support-hero-copy, .section-heading.centered,
.hero-copy, .subpage-copy, .final-cta, .privacy-detail, .subpage-cta {
  text-align: start;
}
.home-hero-copy .eyebrow, .home-hero-actions, .home-proof-line,
.home-story-copy .eyebrow, .download-copy .eyebrow,
.support-hero-copy .eyebrow, .download-facts, .support-hours,
.section-heading.centered .eyebrow {
  justify-content: flex-start;
}
