/* SINORA homepage — rebuilt section by section onto the gateway hero's language.
 *
 * Every value in the foundation block is measured from the hero, not invented:
 * `tools/redesign-test.mjs` reads the hero at runtime and fails if these drift.
 * Presentation only — no copy, no image, no link destination, no behaviour.
 *
 * Sections land here one at a time. Done: 01 sinora-meaning.
 */
@media screen {

/* ============================================================
   Foundation — the hero's own tokens
   ============================================================ */
body.sinora-redesign {
  /* ground */
  --sn-ground: #090a09;
  --sn-ink: #f8f6f2;
  --sn-ink-soft: #dedbd3;
  --sn-ink-muted: #b9b5ab;

  /* one gold, the hero's */
  --sn-gold: #e6ba5a;
  --sn-gold-line: #eee1bc2e;
  --sn-gold-wash: linear-gradient(120deg, #d6a64930, #b4812733);
  --sn-gold-solid: linear-gradient(115deg, #f7d785, #e6b454 66%, #c38d35);
  --sn-gold-edge: #f5d28a;
  --sn-on-gold: #171309;

  /* surfaces: the hero uses one radius and one hairline */
  --sn-radius: 19px;
  --sn-radius-lg: 24px;
  --sn-hairline: 1px solid #eee1bc24;
  --sn-inset: inset 0 1px 0 #ffe8b42b;

  /* motion */
  --sn-press: 100ms ease-out;
  --sn-state: 150ms ease;
}

body.sinora-redesign { background: var(--sn-ground) !important; }
.sinora-redesign #sinoraSiteContent { background: var(--sn-ground); color: var(--sn-ink); }

/* Press responds on pointer-down, state settles in 150ms. Nothing loops. */
.sinora-redesign #sinoraSiteContent :is(a, button, [role="button"], summary) {
  transition: background-color var(--sn-state), border-color var(--sn-state),
              color var(--sn-state), box-shadow var(--sn-state), transform var(--sn-press);
}
.sinora-redesign #sinoraSiteContent :is(a, button, [role="button"], summary):active:not(:disabled) {
  transform: scale(.98);
}
.sinora-redesign #sinoraSiteContent :is(a, button, [role="button"], summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--sn-gold-edge); outline-offset: 3px;
}
.sinora-redesign #sinoraSiteContent :is(a, button, [role="button"], summary) { touch-action: manipulation; }

/* The one primary action per section wears the hero's pill, exactly. */
.sinora-redesign .sn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 20px;
  border-radius: 999px !important;
  border: 1px solid var(--sn-gold-edge) !important;
  background: var(--sn-gold-solid) !important;
  color: var(--sn-on-gold) !important;
  font-weight: 700; font-size: 15.12px; line-height: 1.5;
  box-shadow: inset 0 1px 1px #ffe9af66, 0 5px 20px #daa14213 !important;
}

/* A surface that carries a choice or an action: the hero's gold-washed chip. */
.sinora-redesign .sn-surface--active {
  border-radius: var(--sn-radius); border: 1px solid var(--sn-gold);
  background-image: var(--sn-gold-wash); box-shadow: var(--sn-inset);
}
/* A surface that only holds content stays quiet, like the hero's resting tabs. */
.sinora-redesign .sn-surface--quiet {
  border-radius: var(--sn-radius); border: var(--sn-hairline);
  background: #ffffff05; box-shadow: none;
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body.sinora-redesign { --sn-hairline: 1px solid #c7b88480; --sn-ink-muted: #e2dfd6; }
}
@media (prefers-reduced-motion: reduce) {
  .sinora-redesign #sinoraSiteContent :is(a, button, [role="button"], summary) { transition-property: background-color, border-color, color; }
  .sinora-redesign #sinoraSiteContent :is(a, button, [role="button"], summary):active { transform: none; }
}

/* ============================================================
   01 — sinora-meaning
   ============================================================ */

/* The hero's ground continues; no seam, no second colour. */
.sinora-redesign #sinora-meaning {
  background: var(--sn-ground) !important;
  --sm-bg: var(--sn-ground);
  border: 0 !important;
}
.sinora-redesign #sinora-meaning::before { background: linear-gradient(var(--sn-ground), transparent) !important; }
.sinora-redesign #sinora-meaning .sinora-meaning__bgGlow {
  background: radial-gradient(ellipse 70% 60% at 70% 12%, #a3814518, transparent 70%) !important;
  opacity: 1;
}

/* One display face and one body face, both the hero's. */
.sinora-redesign #sinora-meaning .sinora-meaning__label {
  color: var(--sn-gold); font-size: 13.8px; font-weight: 700; letter-spacing: .01em;
}
.sinora-redesign #sinora-meaning .sinora-meaning__headline {
  font-weight: 900 !important;
  font-size: clamp(30px, 3.4vw, 46px) !important;
  color: var(--sn-ink) !important;
  letter-spacing: 0 !important;
  gap: 0 !important;
}
html[lang="fa"] .sinora-redesign #sinora-meaning .sinora-meaning__headline {
  font-family: "w_Ray Extra Black", IranSans, sans-serif !important;
  line-height: 1.9 !important;   /* measured floor for this face when a line wraps */
}
html:not([lang="fa"]) .sinora-redesign #sinora-meaning .sinora-meaning__headline {
  font-family: Inter, system-ui, sans-serif !important;
  line-height: 1.35 !important;
}
.sinora-redesign #sinora-meaning .sinora-meaning__headline > span {
  font-family: inherit !important; font-size: inherit !important; line-height: inherit !important;
}
.sinora-redesign #sinora-meaning .sinora-meaning__headlineAccent { color: var(--sn-gold) !important; }
.sinora-redesign #sinora-meaning .sinora-meaning__body p {
  font-family: IranSans, sans-serif !important;
  font-size: 17px; line-height: 1.85; color: var(--sn-ink-muted);
}
.sinora-redesign #sinora-meaning .sinora-meaning__body strong { color: var(--sn-ink); font-weight: 700; }

/* The quote keeps its deliberate overlap with the photo; only its colour joins in. */
.sinora-redesign #sinora-meaning .sinora-meaning__quote { background: none !important; }
html[lang="fa"] .sinora-redesign #sinora-meaning .sinora-meaning__quote :is(p, span, strong) {
  font-family: "w_Ray Extra Black", IranSans, sans-serif; line-height: 1.85 !important;
}
html:not([lang="fa"]) .sinora-redesign #sinora-meaning .sinora-meaning__quote :is(p, span, strong) {
  font-family: Inter, system-ui, sans-serif; line-height: 1.5 !important;
}
.sinora-redesign #sinora-meaning .sinora-meaning__quoteIcon { color: var(--sn-gold); }
.sinora-redesign #sinora-meaning .sinora-meaning__quote span { color: var(--sn-gold) !important; }
.sinora-redesign #sinora-meaning .sinora-meaning__founder::after {
  background: linear-gradient(0deg, var(--sn-ground), transparent 32%),
              linear-gradient(90deg, #090a0999, transparent 22%, transparent 78%, #090a0999) !important;
}

/* The five steps: a rail of quiet surfaces, not a flat list of words. */
.sinora-redesign #sinora-meaning .sinora-meaning__steps { padding-block: 4px 14px; align-items: stretch; }
.sinora-redesign #sinora-meaning .sinora-meaning__step {
  border-radius: var(--sn-radius); border: var(--sn-hairline);
  background: #ffffff05; box-shadow: none;
  padding: 18px 16px;
}
.sinora-redesign #sinora-meaning .sinora-meaning__stepIcon { background: transparent; box-shadow: none; color: var(--sn-gold); }
.sinora-redesign #sinora-meaning .sinora-meaning__step h3 { color: var(--sn-gold); font-size: 17px; line-height: 1.6; }
.sinora-redesign #sinora-meaning .sinora-meaning__step p { color: var(--sn-ink-muted); font-size: 14px; line-height: 1.85; }
.sinora-redesign #sinora-meaning .sinora-meaning__arrow { opacity: .4; }

/* This traces one bracket across the whole section with preserveAspectRatio="none",
   so on screen it reads as a stray empty rectangle rather than a light path. The
   hero carries no such decoration. */
.sinora-redesign #sinora-meaning .sinora-meaning__lightRoute { display: none; }

/* The lead mark and the light paths stay, but nothing about them loops. */
.sinora-redesign #sinora-meaning .sinora-meaning__highlight { background: none; border: 0; box-shadow: none; }
.sinora-redesign #sinora-meaning .sinora-meaning__mark { color: var(--sn-gold); }
.sinora-redesign #sinora-meaning :is(.sinora-meaning__arrow svg, .sinora-meaning__arrow::before,
  .sinora-meaning__lightRoute *, .sinora-meaning__lightBridge *, .sinora-meaning__bgGlow) {
  animation: none !important;
}
.sinora-redesign #sinora-meaning .sinora-meaning__pathTitle p { color: var(--sn-ink-soft); }
.sinora-redesign #sinora-meaning .sinora-meaning__pathTitle span { background: var(--sn-gold-line); }

/* The closing band floats like the hero's control bar, instead of boxing itself in. */
.sinora-redesign #sinora-meaning .sinora-meaning__cta {
  border-radius: var(--sn-radius-lg) !important;
  border: var(--sn-hairline) !important;
  background: #ffffff06 !important;
  box-shadow: var(--sn-inset), 0 18px 45px #00000038 !important;
  backdrop-filter: blur(20px) saturate(.9); -webkit-backdrop-filter: blur(20px) saturate(.9);
  padding: 22px 24px !important;
}
.sinora-redesign #sinora-meaning .sinora-meaning__cta h3 { color: var(--sn-ink); line-height: 1.6; }
.sinora-redesign #sinora-meaning .sinora-meaning__ctaSupport { color: var(--sn-ink-muted); line-height: 1.85; }
.sinora-redesign #sinora-meaning .sinora-meaning__ctaBtn {
  min-height: 46px; padding: 8px 20px;
  border-radius: 999px !important;
  border: 1px solid var(--sn-gold-edge) !important;
  background: var(--sn-gold-solid) !important;
  color: var(--sn-on-gold) !important;
  font-weight: 700; font-size: 15.12px;
  box-shadow: inset 0 1px 1px #ffe9af66, 0 5px 20px #daa14213 !important;
}

/* Below the two-column layout the quote is pulled up 108px and then pushed down
   124px with `top`, which paints but reserves no space — so it landed on top of
   the block after it at every width from 360 to 1024. It takes its own room now. */
@media (max-width: 1024px) {
  .sinora-redesign #sinora-meaning .sinora-meaning__quote {
    margin-top: 0 !important; top: 0 !important; margin-bottom: 28px !important;
  }
}

@media (max-width: 900px) {
  /* A peeking card should read as "there is more", never as a cut-off one. */
  .sinora-redesign #sinora-meaning .sinora-meaning__steps {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
  .sinora-redesign #sinora-meaning .sinora-meaning__step { padding: 16px 14px; }
  .sinora-redesign #sinora-meaning .sinora-meaning__cta { padding: 18px 16px !important; }
  .sinora-redesign #sinora-meaning .sinora-meaning__ctaBtn { width: 100%; }
}
/* Desktop: give the headline the width its two hand-broken lines need (587px and
   494px, measured), so neither wraps and it can carry the hero's tight 1.40. */
@media (min-width: 1200px) {
  .sinora-redesign #sinora-meaning .sinora-meaning__copy { width: min(620px, 46%) !important; max-width: 620px !important; }
  html[lang="fa"] .sinora-redesign #sinora-meaning .sinora-meaning__headline { line-height: 1.4 !important; }
  html:not([lang="fa"]) .sinora-redesign #sinora-meaning .sinora-meaning__headline { line-height: 1.2 !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .sinora-redesign #sinora-meaning .sinora-meaning__steps { -webkit-mask-image: none; mask-image: none; }
  .sinora-redesign #sinora-meaning .sinora-meaning__cta { background: #1a1710 !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

}
