/* ==========================================================================
   Learn Farsi — Persian Editorial design system
   Warm parchment + deep ink. Fraunces display, Instrument Sans body,
   Vazirmatn for Persian script. Hexagonal star motif from Persian tile work.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Instrument+Sans:wght@400;500;600;700&family=Vazirmatn:wght@400;500;700&display=swap');

:root {
  /* Palette — warm parchment against deep ink with saffron + pomegranate accents */
  --parchment: #FBF6EC;
  --parchment-2: #F4EBD6;
  --rule: #D9CFB7;
  --rule-soft: #E8DEC7;
  --ink: #0E1A2B;
  --ink-2: #1F2A3D;
  --ink-soft: #51607A;
  --saffron: #D4821C;
  --saffron-deep: #A85F0B;
  --pomegranate: #A62A23;
  --teal: #1F4E5F;
  --mint: #D9E7D9;

  /* Type scale (fluid) */
  --fs-micro: clamp(0.70rem, 0.65rem + 0.2vw, 0.78rem);
  --fs-sm: clamp(0.86rem, 0.82rem + 0.2vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  --fs-lg: clamp(1.12rem, 1.05rem + 0.4vw, 1.28rem);
  --fs-xl: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem);
  --fs-h3: clamp(1.6rem, 1.35rem + 1.2vw, 2.2rem);
  --fs-h2: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --fs-h1: clamp(3rem, 2rem + 5.2vw, 6.2rem);
  --fs-display: clamp(3.5rem, 2rem + 7vw, 8rem);

  /* Space scale */
  --s-1: 0.375rem;
  --s-2: 0.75rem;
  --s-3: 1.125rem;
  --s-4: 1.75rem;
  --s-5: 2.75rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 9rem;

  --ff-display: "Fraunces", "Hoefler Text", Georgia, serif;
  --ff-body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --ff-persian: "Vazirmatn", "Iran Sans", "Tahoma", sans-serif;

  --max-w: 1240px;
  --max-w-reading: 720px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--parchment);
  font-feature-settings: "ss01", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Paper grain — subtle SVG noise overlay, pinned to viewport */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, footer, section { position: relative; z-index: 2; }

/* Typography */
.display,
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.018em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; line-height: 1.1; }

p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }

a { text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--pomegranate); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--s-5) 0;
}

.rule--double {
  height: 6px;
  background: transparent;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* Eyebrow / kicker — tiny uppercase caption with rule */
.kicker {
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}

.kicker::before {
  content: "";
  width: 2.25em;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* Section markers — Roman + Persian numeral */
.marker {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-3);
}
.marker__roman {
  font-size: var(--fs-lg);
  letter-spacing: 0.08em;
  color: var(--pomegranate);
  font-style: normal;
}
.marker__fa {
  font-family: var(--ff-persian);
  font-size: var(--fs-base);
  color: var(--teal);
}

/* Persian script pairing for headlines */
.fa {
  font-family: var(--ff-persian);
  direction: rtl;
  unicode-bidi: isolate;
}

/* ==========================================================================
   Nav bar
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--parchment) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) 0;
  gap: var(--s-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}

.wordmark__mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--parchment);
  font-family: var(--ff-persian);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--parchment), 0 0 0 4px var(--ink);
}

.wordmark__fa {
  font-family: var(--ff-persian);
  color: var(--saffron-deep);
  font-size: 0.95rem;
  margin-inline-start: 0.3rem;
  direction: rtl;
}

.nav__links {
  display: flex;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.nav__links a {
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--pomegranate);
  transition: right 220ms ease;
}

.nav__links a:hover::after { right: 0; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 200ms ease, background 200ms ease;
}
.nav__cta:hover {
  background: var(--pomegranate);
  color: var(--parchment);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ==========================================================================
   Hexagonal star tile pattern — used behind hero
   ========================================================================== */

.tile-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='140' viewBox='0 0 160 140'><g fill='none' stroke='%230E1A2B' stroke-width='1.2'><polygon points='80,8 104,22 104,50 80,64 56,50 56,22'/><polygon points='80,20 96,29 96,47 80,56 64,47 64,29' /><path d='M80 8 L80 -8 M104 22 L120 14 M104 50 L120 58 M80 64 L80 80 M56 50 L40 58 M56 22 L40 14'/><polygon points='0,78 24,92 24,120 0,134 -24,120 -24,92'/><polygon points='160,78 184,92 184,120 160,134 136,120 136,92'/></g></svg>");
  background-repeat: repeat;
  background-size: 160px 140px;
  mask-image: radial-gradient(ellipse at center top, black 0%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, black 40%, transparent 80%);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(var(--s-5), 8vw, var(--s-8)) 0 var(--s-6);
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(var(--s-4), 5vw, var(--s-6));
  align-items: end;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.hero__eyebrow .fa {
  font-size: var(--fs-sm);
  color: var(--teal);
  font-weight: 500;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--pomegranate);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}

.hero__title .fa-inline {
  font-family: var(--ff-persian);
  font-weight: 500;
  color: var(--saffron-deep);
  font-size: 0.75em;
  direction: rtl;
  display: inline-block;
  margin-inline-start: 0.25em;
  vertical-align: 0.12em;
}

.hero__lede {
  max-width: 48ch;
  font-size: var(--fs-lg);
  color: var(--ink-2);
  margin: var(--s-4) 0 var(--s-5);
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--parchment);
  box-shadow: 0 1px 0 var(--ink), 0 10px 24px -12px rgba(14, 26, 43, 0.5);
}
.btn--primary:hover {
  background: var(--pomegranate);
  color: var(--parchment);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--parchment);
}

.btn__arrow {
  display: inline-block;
  transition: transform 220ms ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Hero visual — stacked screenshot + lion */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 420px;
}

.hero__phone {
  position: absolute;
  top: 0;
  right: 5%;
  width: 78%;
  max-width: 340px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(14,26,43,0.08),
    0 40px 60px -30px rgba(14,26,43,0.45),
    0 8px 20px -12px rgba(14,26,43,0.25);
  border: 1px solid var(--rule);
  background: var(--parchment-2);
  transform: rotate(2.5deg);
  animation: float 6s ease-in-out infinite;
}

.hero__phone--back {
  right: 35%;
  top: 22%;
  width: 66%;
  max-width: 290px;
  transform: rotate(-4deg);
  opacity: 0.92;
  animation-delay: -2s;
}

.hero__lion {
  position: absolute;
  bottom: -3%;
  left: -2%;
  width: 42%;
  max-width: 220px;
  filter: drop-shadow(0 20px 30px rgba(14,26,43,0.25));
  transform: rotate(-4deg);
  animation: sway 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-10px); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-6px); }
}

/* Hero masthead ticker — small row of credentials */
.masthead {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 760px) {
  .masthead { grid-template-columns: repeat(2, 1fr); }
}
.masthead__item {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.4;
}
.masthead__item strong {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Generic sections
   ========================================================================== */

.section {
  padding: var(--s-7) 0;
  position: relative;
}

.section--tight { padding: var(--s-6) 0; }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-5);
}
@media (max-width: 800px) {
  .section__head { grid-template-columns: 1fr; gap: var(--s-3); }
}

.section__title {
  max-width: 16ch;
}
.section__title em {
  font-style: italic;
  color: var(--pomegranate);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-weight: 300;
}

.section__intro {
  color: var(--ink-soft);
  font-size: var(--fs-lg);
  max-width: 52ch;
  line-height: 1.55;
}

/* Feature cards — three columns, asymmetric spacing */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.feature {
  border-top: 1px solid var(--ink);
  padding: var(--s-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.feature__num {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.feature__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 48, "SOFT" 30;
  max-width: 18ch;
}

.feature__body {
  color: var(--ink-soft);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.feature:nth-child(2) { margin-top: var(--s-5); }
.feature:nth-child(3) { margin-top: var(--s-3); }
@media (max-width: 900px) {
  .feature:nth-child(2), .feature:nth-child(3) { margin-top: 0; }
}

/* Pull quote */
.quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: var(--s-6) 0;
}

.quote__mark {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 7rem;
  line-height: 0.7;
  color: var(--pomegranate);
  font-weight: 300;
  padding-top: 0.5rem;
}

.quote__text {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

.quote__text em { font-style: italic; color: var(--pomegranate); }

.quote__fa {
  font-family: var(--ff-persian);
  direction: rtl;
  color: var(--teal);
  font-size: var(--fs-lg);
  margin-top: var(--s-2);
  display: block;
}

/* ==========================================================================
   Screenshot gallery — editorial staggered layout
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4) var(--s-4);
  margin-top: var(--s-5);
  align-items: end;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.shot__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--parchment-2);
  border: 1px solid var(--rule);
  box-shadow:
    0 2px 0 rgba(14,26,43,0.06),
    0 36px 56px -32px rgba(14,26,43,0.5),
    0 12px 18px -12px rgba(14,26,43,0.18);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease;
}

.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot:hover .shot__frame {
  transform: translateY(-8px) rotate(0) !important;
  box-shadow:
    0 2px 0 rgba(14,26,43,0.08),
    0 50px 80px -40px rgba(14,26,43,0.55),
    0 14px 20px -12px rgba(14,26,43,0.22);
}

.shot__caption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.3;
}
.shot__num {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--pomegranate);
  font-weight: 500;
}

.shot--a { grid-column: 1 / span 5; }
.shot--b { grid-column: 6 / span 4; margin-bottom: var(--s-5); }
.shot--c { grid-column: 10 / span 3; }
.shot--d { grid-column: 1 / span 3; margin-top: var(--s-4); }
.shot--e { grid-column: 4 / span 5; }
.shot--f { grid-column: 9 / span 4; }
.shot--g { grid-column: 1 / span 4; }
.shot--h { grid-column: 5 / span 4; margin-top: var(--s-3); }

.shot--a .shot__frame { transform: rotate(-1.2deg); }
.shot--b .shot__frame { transform: rotate(1.5deg); }
.shot--c .shot__frame { transform: rotate(-0.5deg); }
.shot--d .shot__frame { transform: rotate(1deg); }
.shot--e .shot__frame { transform: rotate(-1deg); }
.shot--f .shot__frame { transform: rotate(1.4deg); }
.shot--g .shot__frame { transform: rotate(-1.8deg); }
.shot--h .shot__frame { transform: rotate(0.5deg); }

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .shot--a { grid-column: 1 / span 3; }
  .shot--b { grid-column: 4 / span 3; margin-bottom: 0; }
  .shot--c { grid-column: 1 / span 3; }
  .shot--d { grid-column: 4 / span 3; }
  .shot--e { grid-column: 1 / span 3; }
  .shot--f { grid-column: 4 / span 3; }
  .shot--g { grid-column: 1 / span 3; }
  .shot--h { grid-column: 4 / span 3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot { grid-column: span 1 !important; margin: 0 !important; }
}

/* ==========================================================================
   Approach — step-by-step method
   ========================================================================== */

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 900px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .method { grid-template-columns: 1fr; } }

.step {
  padding: var(--s-4) var(--s-3);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-height: 180px;
  position: relative;
}
.step:last-child { border-right: 0; }
@media (max-width: 900px) {
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: 0; }
}

.step__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--pomegranate);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.step__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--ink);
  line-height: 1.1;
  font-variation-settings: "opsz" 48;
}

.step__body {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ / prose blocks (used on support + privacy)
   ========================================================================== */

.prose {
  max-width: var(--max-w-reading);
  margin: 0 auto;
  font-size: var(--fs-base);
  color: var(--ink-2);
  line-height: 1.7;
}

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}

.prose h3 {
  font-size: var(--fs-xl);
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}

.prose p { margin-bottom: var(--s-3); }

.prose a {
  color: var(--pomegranate);
  border-bottom: 1px solid currentColor;
}

.prose ul { padding-left: 1.25rem; margin-bottom: var(--s-3); }
.prose li { margin-bottom: 0.5rem; }

/* Doc hero (privacy/support) */
.doc-hero {
  padding: var(--s-7) 0 var(--s-5);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.doc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: end;
}
@media (max-width: 800px) { .doc-hero__inner { grid-template-columns: 1fr; } }

.doc-hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.doc-hero h1 em { font-style: italic; color: var(--pomegranate); font-weight: 300; }

.doc-hero__meta {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.doc-hero__meta strong { color: var(--ink); font-weight: 600; }

/* FAQ expanders */
.faq {
  max-width: var(--max-w-reading);
  margin: 0 auto;
}

.faq__item {
  border-top: 1px solid var(--rule);
  padding: var(--s-4) 0;
  transition: background 240ms ease;
}
.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__item[open] { background: color-mix(in srgb, var(--parchment-2) 60%, transparent); }

.faq__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  align-items: baseline;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-variation-settings: "opsz" 48;
}
.faq__summary::-webkit-details-marker { display: none; }

.faq__toggle {
  font-family: var(--ff-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--pomegranate);
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  line-height: 1;
  transition: transform 280ms ease;
}
.faq__item[open] .faq__toggle { transform: rotate(45deg); }

.faq__body {
  padding-top: var(--s-2);
  color: var(--ink-soft);
  font-size: var(--fs-base);
  line-height: 1.6;
  max-width: 62ch;
}

/* Contact card (support page + footer) */
.contact-card {
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--ink);
  color: var(--parchment);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
}
@media (max-width: 700px) { .contact-card { grid-template-columns: 1fr; } }

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'><g fill='none' stroke='%23FBF6EC' stroke-width='1' opacity='0.18'><polygon points='60,6 82,19 82,45 60,58 38,45 38,19'/></g></svg>");
  background-repeat: repeat;
  pointer-events: none;
  opacity: 0.65;
}

.contact-card__text { position: relative; }
.contact-card__eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
}
.contact-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  line-height: 1.1;
  margin-top: 0.5rem;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--parchment);
}
.contact-card__title em { font-style: italic; color: var(--saffron); }

.contact-card a.btn--saffron {
  background: var(--saffron);
  color: var(--ink);
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.contact-card a.btn--saffron:hover { background: var(--parchment); }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  padding: var(--s-6) 0 var(--s-5);
  border-top: 1px solid var(--ink);
  margin-top: var(--s-6);
  background:
    linear-gradient(to bottom, transparent, rgba(212, 130, 28, 0.04));
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 820px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
}

.foot__brand {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
  max-width: 18ch;
}
.foot__brand em { font-style: italic; color: var(--pomegranate); }
.foot__brand .fa-inline {
  font-family: var(--ff-persian);
  color: var(--saffron-deep);
  font-size: 0.75em;
  margin-inline-start: 0.2em;
}

.foot__col h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin: 0 0 var(--s-3);
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.foot__col a { color: var(--ink-2); font-size: var(--fs-sm); }
.foot__col a:hover { color: var(--pomegranate); }

.foot__rule {
  margin: var(--s-5) 0 var(--s-3);
  border: 0;
  border-top: 1px solid var(--rule);
}

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--fs-micro);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.foot__row .fa {
  font-family: var(--ff-persian);
  color: var(--teal);
  font-size: var(--fs-sm);
  letter-spacing: 0;
}

/* Entrance animation — stagger */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__phone, .hero__lion { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Small helpers */
.text-muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
