/* =======================================================================
   SaadatFace — Design tokens
   ======================================================================= */
:root {
  --green-950: #08241C;
  --green-800: #0F4C3E;
  --green-700: #146356;
  --green-600: #1B7A63;
  --gold-500: #D8A73D;
  --gold-300: #EFCB74;
  --gold-100: #FBF3DC;
  --cream: #F7F5EF;
  --cream-dim: #EFEAD9;
  --ink: #10201A;
  --ink-soft: #3E4B45;
  --slate: #6B7A73;
  --line: #E4DFCF;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-card: 0 1px 2px rgba(8, 36, 28, 0.06), 0 12px 28px -18px rgba(8, 36, 28, 0.35);
  --max-width: 1160px;
}

/* =======================================================================
   Reset
   ======================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.15; color: var(--green-950); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-950);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =======================================================================
   Layout helpers
   ======================================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--white); }
.section--deep {
  background: linear-gradient(160deg, var(--green-950), var(--green-800) 68%);
  color: var(--gold-100);
}
.section--deep h2, .section--deep h3 { color: var(--white); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 12px;
}
.section--deep .eyebrow { color: var(--gold-300); }

h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; }
.section--deep .lede { color: var(--gold-100); opacity: 0.92; }

/* =======================================================================
   Buttons
   ======================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--green-950);
}
.btn-primary:hover { background: var(--gold-300); box-shadow: 0 10px 24px -12px rgba(216, 167, 61, 0.6); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.section:not(.section--deep) .btn-secondary { color: var(--green-950); border-color: var(--green-800); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.section:not(.section--deep) .btn-secondary:hover { background: var(--green-950); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* =======================================================================
   Header / nav
   ======================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--green-950); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-950);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--green-950); border-color: var(--gold-500); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { width: 100%; padding: 10px 0; }
  .nav-cta { display: none; }
  .nav-menu.is-open .nav-cta { display: flex; margin-top: 8px; }
}

/* =======================================================================
   Hero
   ======================================================================= */
.hero {
  padding: 76px 0 40px;
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(216, 167, 61, 0.16), transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-copy .eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-800); display: block; }
.hero-stat .label { font-size: 0.88rem; color: var(--slate); }

.hero-visual {
  position: relative;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(216,167,61,0.35), transparent 70%);
}
.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.hero-card .post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--green-950); }
.hero-card .who { font-weight: 600; font-size: 0.95rem; }
.hero-card .meta { font-size: 0.82rem; color: var(--slate); }
.hero-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.hero-card .reactions { display: flex; gap: 18px; font-size: 0.84rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 12px; }
.hero-badge {
  position: absolute;
  top: 26px; left: 26px;
  background: var(--gold-500);
  color: var(--green-950);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
}

/* =======================================================================
   Grids & cards
   ======================================================================= */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card--feature .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-800);
  color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.card--feature h3 { margin-bottom: 8px; }
.card--feature p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.card--flat {
  background: var(--cream);
  border: none;
}

.list-check li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.list-check li:last-child { border-bottom: none; }
.list-check .mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* =======================================================================
   FAQ (details/summary — no JS required)
   ======================================================================= */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--green-950);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-500);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 4px 20px; color: var(--ink-soft); max-width: 680px; }

/* =======================================================================
   Breadcrumbs
   ======================================================================= */
.breadcrumbs { padding: 18px 0 0; font-size: 0.86rem; color: var(--slate); }
.breadcrumbs a { color: var(--green-700); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; }

/* =======================================================================
   Page header (interior pages)
   ======================================================================= */
.page-header { padding: 28px 0 56px; }
.page-header h1 { margin-bottom: 14px; }
.page-header .lede { margin: 0; }

/* =======================================================================
   Forms
   ======================================================================= */
.form-grid { display: grid; gap: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--green-950); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-700); }
.field .hint { font-size: 0.82rem; color: var(--slate); margin-top: 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-note {
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* =======================================================================
   Download page
   ======================================================================= */
.download-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 780px) { .download-panel { grid-template-columns: 1fr; padding: 28px; } }
.download-options { display: grid; gap: 14px; }
.download-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.download-option .title { font-weight: 700; margin-bottom: 2px; }
.download-option .desc { font-size: 0.85rem; color: var(--slate); }
.screens-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.screens-strip img { width: 180px; border-radius: 18px; border: 1px solid var(--line); flex-shrink: 0; }

/* =======================================================================
   Legal pages
   ======================================================================= */
.legal-body h2 { margin-top: 2.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal-body { max-width: 760px; }
.legal-meta { color: var(--slate); font-size: 0.9rem; margin-bottom: 40px; }
.placeholder-tag {
  background: var(--gold-100);
  color: var(--green-800);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 600;
}

/* =======================================================================
   404
   ======================================================================= */
.error-page { padding: 120px 0; text-align: center; }
.error-page .code { font-family: var(--font-display); font-size: 6rem; color: var(--green-800); margin: 0; }

/* =======================================================================
   Footer
   ======================================================================= */
.site-footer { background: var(--green-950); color: var(--gold-100); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-tagline { color: rgba(251, 243, 220, 0.7); font-size: 0.92rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(251, 243, 220, 0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(251,243,220,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--gold-500); color: var(--gold-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(251, 243, 220, 0.15);
  font-size: 0.85rem;
  color: rgba(251, 243, 220, 0.6);
}
.footer-bottom a { color: rgba(251, 243, 220, 0.6); }
.footer-bottom a:hover { color: var(--gold-300); }
