﻿/* =========================================================================
   Lexir Portal — public site styles (v2)
   لِکسیر — اکسیرِ حقوق
   Converged with the canonical design system
   (Lexirs.Project/System Design/colors_and_type.css): full type scale,
   4px spacing scale, motion tokens. Token names are stable — admin panel
   values (SiteSetting "theme:*") override them live via the second :root
   block injected in _Layout, which wins by source order.
   ========================================================================= */

/* Vazirmatn is self-hosted (wwwroot/fonts) — no dependency on Google Fonts for the
   primary Persian text face, which is often slow or blocked inside Iran. Four real
   weights ship as woff2 (~50KB each). Latin display faces remain on the CDN and
   degrade gracefully offline. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/*  The `hidden` attribute only works because the browser's own sheet says display:none, and
    any author rule with a display beats it. A flex or grid element marked hidden therefore
    stays on screen — which is how a loading spinner ended up turning forever on a delivered
    case, and a find bar sat open on a page nobody had asked to search. Patched twice per
    element elsewhere in this codebase before; stated once here instead.  */
[hidden] { display: none !important; }

:root {
  /* ---- surfaces — palette v2: a step warmer & more saturated, still parchment ---- */
  --bg-canvas: #F7ECDA;
  --bg-surface: #FCF3E1;
  --bg-surface-2: #F0E3CB;
  --bg-elevated: #FFFDF5;
  --bg-ink: #14181E;
  --bg-ink-2: #1E2430;

  /* ---- foreground ---- */
  --fg-primary: #14181E;
  --fg-secondary: #3A4150;
  --fg-tertiary: #6B7180;
  --fg-muted: #9CA0AB;
  --fg-on-ink: #F7ECDA;
  --fg-on-ink-2: #BFC2CB;

  /* ---- brand: Lexir Indigo (the LEX) ---- */
  --indigo-900: #0E1430;
  --indigo-800: #1A2150;
  --indigo-700: #283068;
  --indigo-600: #3A4382;
  --indigo-500: #5C66A4;
  --indigo-100: #DDE0EE;
  --indigo-50: #EEF0F8;

  /* ---- brand: Copper Elixir (the ELIXIR) — v2: hotter, more alchemical ---- */
  --copper-900: #70300B;
  --copper-800: #8F400E;
  --copper-700: #AC4A0F;
  --copper-600: #C96312;
  --copper-500: #E08A24;
  --copper-200: #EEC488;
  --copper-100: #F5DBAC;
  --copper-50: #FAE9C9;

  --saffron-700: #BE7E10;
  --saffron-500: #E2A32C;
  --saffron-300: #EBC27A;

  /* Olive (زیتونی) — the botanical accent: principles, growth, verification.
     Full ramp derived at hue ≈73–78°; usage per WCAG audit (see design system):
     text on light = olive-700 (5.7:1+) · accents on ink = olive-500..300 ·
     cream text on olive-800 band = 8.3:1 AAA. */
  --olive-900: #29360D;
  --olive-800: #3B4A12;
  --olive-700: #4F6318;
  --olive-600: #6B8222;
  --olive-500: #8EA830;
  --olive-400: #A7C247;
  --olive-300: #C0CF81;
  --olive-200: #D6DEAF;
  --olive-100: #E9EDD4;
  --olive-50: #F4F6EA;

  /* ---- semantic ---- */
  --success: var(--olive-700); --success-bg: var(--olive-100);
  /* Warning text darkened from #BE7E10 (2.71:1 on its own background — the «در انتظار» chips the
     customer most needs to read were the faintest text in the panel) to 5.5:1. */
  --warning: #7C520B;  --warning-bg: #F7E4BA;
  --danger:  #9B2C24;  --danger-bg:  #F1DCD8;
  --info:    #283068;  --info-bg:    #DDE0EE;

  /* ---- tiers ---- */
  --tier-1: #5C66A4;
  --tier-2: #1A2150;
  --tier-3: #AC4A0F;

  /* ---- strokes & dividers ---- */
  --rule-strong: #14181E;
  --rule: #C9B893;
  --rule-soft: #E4D6B9;
  --rule-on-ink: #2D3344;
  /* Borders the panels refer to by these names; they were never defined, so the document editor,
     the «برای خودم / دیگری» options and the revision cards rendered with no border at all. */
  --border: var(--rule);
  --border-strong: #8A7650;
  /* Keyboard focus: dark copper on the light surfaces (5.7–7.1:1); saffron only on the dark bands
     below, where it reads at 8:1. Saffron on parchment was 1.9:1 — the ring was barely there. */
  --focus-ring: #8F400E;
  --focus-ring-on-dark: #E2A32C;
  --saffron-100: #F9EBCB;

  /* ---- type families ---- */
  --font-fa: "Vazirmatn", "Iran Sans", "Tahoma", system-ui, sans-serif;
  --font-display-en: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body-en: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- type scale (1.25 ratio, tuned for Persian) ---- */
  /* 2026-10-14: the owner found the public pages gappy — display sizes and section rhythm cut by about a third */
  --fs-hero: clamp(38px, 4.6vw, 64px);
  --fs-display: clamp(28px, 3.2vw, 44px);
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-eyebrow: 13px;
  --fs-lead: 22px;
  --fs-body: 17px;
  --fs-body-sm: 15px;
  --fs-meta: 13px;
  --fs-micro: 11px;

  --lh-tight: 1.15;
  --lh-display: 1.25;
  --lh-body: 1.85;
  --lh-body-en: 1.55;
  --lh-meta: 1.4;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;

  /* ---- spacing (4px base) ---- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ---- radii — restrained, codex aesthetic ---- */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* ---- shadows — soft, warm ---- */
  --shadow-1: 0 1px 0 0 rgba(20,24,30,0.04), 0 1px 2px -1px rgba(20,24,30,0.06);
  --shadow-2: 0 1px 0 0 rgba(20,24,30,0.05), 0 4px 12px -4px rgba(20,24,30,0.08);
  --shadow-3: 0 2px 0 0 rgba(20,24,30,0.04), 0 12px 28px -12px rgba(20,24,30,0.18);
  --shadow-inset: inset 0 1px 0 0 rgba(255,254,250,0.7), inset 0 -1px 0 0 rgba(20,24,30,0.06);
  --shadow-frame: 0 0 0 1px var(--rule), 0 1px 0 0 rgba(20,24,30,0.04);

  /* ---- motion — slow, deliberate ("آهسته و عمیق") ---- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasis: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 480ms;

  /* ---- layout ---- */
  --content-max: 1280px;
  --reading-max: 68ch;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 64px;
}

/* ---------------- base ---------------- */
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-fa);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-primary);
  background: var(--bg-canvas);
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-fa); letter-spacing: var(--tracking-tight); color: var(--fg-primary); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-display); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--copper-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-2) var(--ease-standard); }
a:hover { color: var(--copper-600); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: var(--space-8) 0; }
small, .meta { font-size: var(--fs-meta); color: var(--fg-tertiary); line-height: var(--lh-meta); }
::selection { background: var(--copper-200); color: var(--fg-primary); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.section--dark, .section--olive, .showcase, .sample-box--ink, .hero-chip,
.adm-side, .ai-level-marker, .ai-final-check { --focus-ring: var(--focus-ring-on-dark); }

.latin { font-family: var(--font-body-en); direction: ltr; unicode-bidi: isolate; }
.display-en { font-family: var(--font-display-en); font-weight: 500; letter-spacing: var(--tracking-tight); }
.mono { font-family: var(--font-mono); }

.eyebrow-fa { font-family: var(--font-fa); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.08em; color: var(--copper-700); display: inline-block; }
.eyebrow-en { font-family: var(--font-body-en); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-700); display: inline-block; }
/* olive variant — value/vision narratives (رشد و اصول), per accent-role matrix */
.eyebrow-fa.eyebrow-olive, .eyebrow-en.eyebrow-olive { color: var(--olive-700); }

/* recurring standalone body copy (was ~15 inline copies across views) */
.copy-lg { font-size: 19px; line-height: 1.85; color: var(--fg-secondary); }
/* small tertiary footnotes under sections/cards */
.meta-note { margin-top: var(--space-5); font-size: var(--fs-meta); line-height: 1.8; color: var(--fg-tertiary); }
.card-meta { margin-top: var(--space-3); font-size: var(--fs-meta); color: var(--fg-tertiary); }

/* ---------------- forms (base layer — was missing entirely) ---------------- */
label { display: block; font-weight: 600; font-size: 14px; color: var(--fg-primary); }
label > input { margin-top: 6px; }
input:not([type]), input[type="text"], input[type="email"], input[type="number"], input[type="tel"],
input[type="search"], input[type="password"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--fg-primary);
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--dur-2) var(--ease-standard), box-shadow var(--dur-2) var(--ease-standard);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--copper-600);
  box-shadow: 0 0 0 3px rgba(217, 166, 70, 0.25);
}
/* The glow is for the mouse; keyboard focus keeps the ring from :focus-visible. Taking the outline
   off every field left checkboxes, radios and file pickers with no visible focus at all. */
input:focus:not(:focus-visible), textarea:focus:not(:focus-visible), select:focus:not(:focus-visible) { outline: none; }
input[readonly] { background: var(--bg-surface-2); color: var(--fg-tertiary); }
input::placeholder, textarea::placeholder { color: var(--fg-muted); }
textarea { line-height: 1.9; min-height: 120px; resize: vertical; }
select { cursor: pointer; }
input[type="checkbox"], input[type="radio"] {
  width: auto; accent-color: var(--copper-700);
  transform: translateY(1px);
}
.hint { color: var(--fg-tertiary); font-size: 12px; margin-top: 4px; }
.field { margin-bottom: var(--space-4); }
.field > label { margin-bottom: 6px; }

/* stacked form (contact, calculators, search) */
.form-stack { display: grid; gap: var(--space-3); }
.form-stack .btn { justify-self: start; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-fa);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard),
              color var(--dur-2) var(--ease-standard), box-shadow var(--dur-2) var(--ease-standard),
              transform var(--dur-2) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo-800); color: var(--bg-canvas); border-color: var(--indigo-800); }
.btn-primary:hover { background: var(--indigo-700); border-color: var(--indigo-700); color: var(--bg-canvas); box-shadow: var(--shadow-2); }
.btn-secondary { background: transparent; color: var(--fg-primary); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--rule-strong); color: var(--fg-primary); }
.btn-ghost { background: transparent; color: var(--fg-primary); border-color: var(--rule); }
.btn-ghost:hover { background: var(--bg-surface-2); border-color: var(--rule-strong); color: var(--fg-primary); }
.btn-sm { font-size: 14px; padding: 8px 18px; }

/* ---------------- alerts (public definitions — previously only in panel css) ---------------- */
.alert-ok, .alert-err, .alert-warn {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--space-4);
  font-size: 15px;
  line-height: 1.8;
  border: 1px solid;
}
.alert-ok { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-err { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

/* ---------------- layout ---------------- */
.container { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section--surface2 { background: var(--bg-surface-2); }
.section--dark { background: var(--bg-ink); color: var(--fg-on-ink); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--fg-on-ink); }
/* olive band (باندِ زیتونی) — closing CTA / principle moments. Cream on
   olive-800 = 8.3:1 AAA; the inverted button keeps olive-800 as its ink. */
.section--olive { background: var(--olive-800); color: var(--fg-on-ink); }
.section--olive h1, .section--olive h2, .section--olive h3 { color: var(--fg-on-ink); }
.section--olive .lead { color: var(--olive-100); }
.section--olive .btn-primary { background: var(--bg-canvas); border-color: var(--bg-canvas); color: var(--olive-800); }
.section--olive .btn-primary:hover { background: #FFFDF5; border-color: #FFFDF5; color: var(--olive-900); box-shadow: var(--shadow-2); }

/* first section after a page header tucks closer to it */
.page-header + .section { padding-top: var(--space-8); }

.copper-rule { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.copper-rule::before { content: ""; width: 36px; height: 1.5px; background: var(--copper-700); }
.copper-rule::after { content: ""; width: 5px; height: 5px; background: var(--copper-700); border-radius: 50%; }

.reading { max-width: var(--reading-max); margin-inline: auto; }
body[data-page="home"] .reading { margin-inline: 0; }

.prose p { font-size: 19px; line-height: var(--lh-body); color: var(--fg-secondary); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose > h2 { margin: var(--space-8) 0 var(--space-5); }
.prose > h2:first-child { margin-top: 0; }
/* Content kits (2026-10-24): an article's subheadings, lists and links to the site's own pages. */
.prose > h3 { font-size: 20px; margin: var(--space-6) 0 var(--space-3); }
.prose > ul { margin: 0 0 18px; padding-inline-start: 1.4em; }
.prose > ul li { font-size: 18px; line-height: var(--lh-body); color: var(--fg-secondary); margin-bottom: 6px; }
.prose a { color: var(--copper-700); text-decoration: underline; text-underline-offset: 3px; }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-secondary); text-wrap: pretty; }
.muted { color: var(--fg-tertiary); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { margin-bottom: var(--space-6); }
.section-head h2 { margin-top: 8px; font-size: var(--fs-display); line-height: var(--lh-display); }
.section-head .lead { margin-top: 10px; max-width: var(--reading-max); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-5);
  font-family: var(--font-fa); font-size: 15px; color: var(--copper-700);
  text-decoration: underline; text-underline-offset: 4px;
}
.arrow-link:hover { color: var(--copper-600); }

/* centered closing call-to-action band */
.cta-block { text-align: center; }
.cta-block h2 { font-size: var(--fs-display); line-height: var(--lh-display); margin-bottom: var(--space-4); }
.cta-block .lead { margin: 0 auto var(--space-6); max-width: 60ch; }

/* flex chip/channel rows */
.channel-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: var(--space-10); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* horizontal row inside a panel (faq cta strip) */
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.panel-row > span { font-size: var(--fs-body); color: var(--fg-secondary); }

/* ---- composition helpers shared by inner pages ---- */
.measure-wide { max-width: 860px; }               /* wider reading measure for tools/lists */
.intro-note { margin-bottom: var(--space-8); }    /* note panel directly under the page header */
.lead-intro { margin-bottom: var(--space-8); }    /* lead paragraph opening a page's first section */
.section-tail { margin-top: var(--space-10); }    /* closing note after a section's main content */
.copper-rule + h2 { margin-top: 0; }              /* heading tight under its rule */

/* intro section: text column beside an image slot */
.intro-media { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-media--flip .intro-media-figure { order: -1; }   /* image on the other side, alternating */
.intro-media-text h2 { margin: var(--space-3) 0 var(--space-5); font-size: var(--fs-display); line-height: var(--lh-display); }
.intro-media-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--radius-xl); border: 1px solid var(--rule);
  box-shadow: 0 26px 56px -34px rgba(20,24,30,.42);
}
/* branded placeholder when the CMS image is unset */
.img-ph {
  aspect-ratio: 4 / 3; border: 1px solid var(--rule); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--fg-tertiary); font-size: 14px;
  background: var(--bg-surface) url("/img/lexir-sigil.svg") center calc(50% - 14px) / 72px 72px no-repeat;
}
.img-ph span { margin-top: 84px; }

/* ---------------- page header (inner pages) ---------------- */
.page-header { padding: clamp(40px, 5vw, 64px) 0 var(--space-2); }
.page-header h1 { font-size: var(--fs-display); line-height: var(--lh-display); margin: 10px 0 14px; }
.page-header .subtitle { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-secondary); max-width: var(--reading-max); margin-inline: auto; }
/* Center inner-page titles + reading columns so text isn't stranded on the right
   in the wider layout. The home page keeps its asymmetric editorial alignment. */
.page-header .container { text-align: center; }
.page-header .copper-rule { justify-content: center; }

/* numbered list (manifesto / pricing principles) */
.numbered { display: grid; gap: 28px; }
.numbered-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--rule-soft); }
.numbered-item:last-child { border-bottom: 0; padding-bottom: 0; }
.numbered-num { font-family: var(--font-mono); font-size: 22px; color: var(--copper-700); line-height: 1.2; }
.numbered-item h3 { margin-bottom: 8px; }
.numbered-item p { font-size: 16px; line-height: 1.8; color: var(--fg-secondary); }

/* generic bordered card / panel */
.panel { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-surface); padding: var(--space-6) 28px; }
.panel--inset { background: var(--bg-surface-2); }
.panel > h3 { margin-bottom: var(--space-2); }
.panel > p { font-size: 16px; line-height: 1.8; color: var(--fg-secondary); }

/* definition card (roots, pillars, audiences, blog & reference cards) */
.def-card { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-surface); padding: var(--space-6) 26px; }
.def-card h3 { margin-bottom: 8px; }
.def-card h4 { margin-bottom: 10px; }
.def-card .def-meaning { font-family: var(--font-mono); font-size: 14px; color: var(--olive-700); }
.def-card p { font-size: 15px; line-height: 1.8; color: var(--fg-secondary); margin-top: 10px; }

/* anchor-styled cards share one reset + lift */
.card-link, a.tier-card, a.service-card, a.def-card { text-decoration: none; color: inherit; display: block; }
a.tier-card, a.service-card, a.def-card { transition: box-shadow var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard); }
a.tier-card:hover, a.service-card:hover, a.def-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* compass / question callout — philosophical guidance carries the olive accent */
.compass { border-inline-start: 2px solid var(--olive-700); padding-inline-start: 22px; }
.compass .question { font-family: var(--font-fa); font-weight: 600; font-size: 26px; line-height: 1.5; color: var(--fg-primary); text-wrap: balance; }
.compass p { font-size: 18px; line-height: 1.8; color: var(--fg-secondary); }

/* bold balanced statement (vision horizons) — tag qualifier keeps it ahead of `.panel > p` */
p.statement, .statement { font-family: var(--font-fa); font-weight: 600; font-size: var(--fs-h3); line-height: 1.5; color: var(--fg-primary); text-wrap: balance; }

/* ✕ marker heading (not-this page) */
.x-title { display: flex; gap: 10px; align-items: baseline; }
.x-title::before { content: "✕"; color: var(--danger); font-family: var(--font-mono); font-size: 18px; }

/* ---------------- header ---------------- */
.lx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 236, 218, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow var(--dur-3) var(--ease-standard);
}
.lx-header.scrolled { box-shadow: var(--shadow-2); }
.lx-header-inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); }
.lx-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.lx-brand img { height: 32px; width: auto; display: block; }
.lx-brand-name { font-family: var(--font-fa); font-weight: 700; font-size: 22px; color: var(--fg-primary); }
.lx-brand-dot { width: 4px; height: 4px; background: var(--copper-700); border-radius: 50%; }
.lx-nav { display: flex; gap: 22px; }
/* A header label never breaks over two lines (2026-10-21: at 920px they did, three lines each); below the
   width the full row needs, the header turns into the drawer instead (the 1180px block below). */
.lx-nav a:not(.btn), .lx-nav-trigger, .lx-header-cta .btn { white-space: nowrap; }
/* :not(.btn) — drawer action buttons keep their own variant colors */
.lx-nav a:not(.btn) { font-family: var(--font-fa); font-size: 14px; color: var(--fg-secondary); text-decoration: none; font-weight: 400; transition: color var(--dur-2) var(--ease-standard); }
.lx-nav a:not(.btn):hover { color: var(--fg-primary); }
.lx-nav a:not(.btn).active { color: var(--fg-primary); font-weight: 500; }
/* the item the plan stresses (PublicNavigationPlan.Emphasis) — «نمونه‌کارها» — bold, active or not */
.lx-nav a:not(.btn).lx-nav-em { color: var(--fg-primary); font-weight: 700; }
.lx-header-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.lx-nav-toggle { display: none; margin-inline-start: auto; background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); width: 40px; height: 36px; cursor: pointer; align-items: center; justify-content: center; color: var(--fg-primary); }
.lx-nav-toggle svg { width: 20px; height: 20px; }
/* drawer-only actions (auth + cta), hidden on desktop */
.lx-drawer-foot { display: none; }
/* NAV14: header drop-down groups. Opened by hover, by focus inside (keyboard) and by a click on the
   trigger (touch / no hover); the group keeps its own :hover so crossing the gap does not close it. */
.lx-nav-group { position: relative; display: flex; align-items: center; }
.lx-nav-group-title { display: none; }
.lx-nav-trigger { font-family: var(--font-fa); font-size: 14px; color: var(--fg-secondary); background: transparent; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; line-height: inherit; transition: color var(--dur-2) var(--ease-standard); }
.lx-nav-trigger:hover, .lx-nav-trigger.active { color: var(--fg-primary); }
.lx-nav-trigger.active { font-weight: 500; }
.lx-nav-trigger:focus-visible { outline: 2px solid var(--copper-600); outline-offset: 3px; border-radius: 2px; }
.lx-nav-trigger svg { width: 12px; height: 12px; transition: transform var(--dur-2) var(--ease-standard); }
.lx-nav-group.open .lx-nav-trigger svg { transform: rotate(180deg); }
.lx-nav-menu { position: absolute; top: 100%; inset-inline-start: -12px; padding-top: 10px; display: none; z-index: 60; }
.lx-nav-menu-box { min-width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--bg-elevated); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.lx-nav-group.open .lx-nav-menu, .lx-nav-group:hover .lx-nav-menu, .lx-nav-group:focus-within .lx-nav-menu { display: block; }
/* after Escape: focus is back on the trigger (inside the group), so this must outrank :focus-within */
.lx-nav-group.closed .lx-nav-menu { display: none; }
.lx-nav-menu a:not(.btn) { display: block; padding: 8px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.lx-nav-menu a:not(.btn):hover, .lx-nav-menu a:not(.btn):focus-visible { background: var(--bg-surface); color: var(--fg-primary); }
.lx-backdrop {
  position: fixed; inset: var(--header-h) 0 0; z-index: 44;
  background: rgba(20, 24, 30, 0.35);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-standard), visibility 0s linear var(--dur-3);
}
.lx-backdrop.show { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
/* unifying backdrop that ties the copy + visual together */
.hero-bg {
  position: absolute; inset: -12% -6% 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(56% 64% at 80% 24%, rgba(224,138,36,.22), transparent 62%),
    radial-gradient(46% 56% at 6% 90%, rgba(26,33,80,.13), transparent 60%);
}
.hero::after {            /* faint engraved dot grid, masked toward the visual */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(var(--rule) .8px, transparent .9px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(125% 95% at 72% 36%, #000 32%, transparent 72%);
          mask-image: radial-gradient(125% 95% at 72% 36%, #000 32%, transparent 72%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr 1fr; gap: 58px; align-items: center; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; color: var(--olive-700); }
.hero-eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--olive-600); }
/* English wordmark beneath the Persian "اکسیرِ حقوق" lockup. */
.hero-lockup-en { display: block; margin-top: 8px; font-family: var(--font-display-en); font-style: italic; font-weight: 700; font-size: 20px; color: var(--olive-600); letter-spacing: .01em; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.2; margin: 14px 0 16px; letter-spacing: -.005em; }
/* One-line slogan between the headline and the description (block hero.tagline; empty = hidden). */
.hero-tagline { font-family: var(--font-fa); font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.6; color: var(--fg-primary); margin: 0 0 12px; }
.hero-sub { font-family: var(--font-fa); font-size: 20px; line-height: 1.75; color: var(--fg-secondary); max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* quiet entrance on load (no JS needed; disabled for reduced motion). Only the picture rises in: the hero's
   words are the page's largest paint, and faded in from nothing they counted as painted only when the fade
   ended, which held the phone measurement of the home page back by about two seconds (2026-11-07). */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: lx-rise 0.64s var(--ease-emphasis) both; animation-delay: .18s; }
}
@keyframes lx-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* visual side: layered framed image + copper offset accent + floating brand chip */
.hero-visual { position: relative; }
.hero-frame {
  position: relative; z-index: 1; aspect-ratio: 1 / 1.04; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--rule); background: var(--bg-surface);
  box-shadow: 0 30px 64px -34px rgba(20,24,30,.5);
}
.hero-frame--image picture { display: block; width: 100%; height: 100%; }
.hero-frame--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual--image::before {
  content: ""; position: absolute; z-index: 0;
  inset-block-start: 24px; inset-block-end: -22px; inset-inline-start: 24px; inset-inline-end: -22px;
  border: 1.5px solid var(--copper-600); border-radius: 18px; opacity: .5;
}
.hero-chip {
  position: absolute; z-index: 2; inset-block-end: -22px; inset-inline-start: -26px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-ink); color: var(--fg-on-ink);
  border: 1px solid var(--bg-ink-2); border-radius: 12px; padding: 13px 20px;
  box-shadow: 0 20px 46px -22px rgba(20,24,30,.66);
}
.hero-chip-en { font-family: var(--font-display-en); font-style: italic; font-size: 25px; line-height: 1; color: var(--saffron-500); }
.hero-chip-fa { font-family: var(--font-fa); font-size: 12.5px; color: var(--fg-on-ink-2); }

/* quote-card fallback (when no hero image is set) */
.hero-card {
  position: relative; z-index: 1; aspect-ratio: 1 / 1.08;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-xl);
  background: var(--bg-surface); padding: var(--space-8);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 26px 56px -34px rgba(20,24,30,.42);
}
.hero-card-rule { display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
.hero-card-rule::before { content: ""; width: 36px; height: 1.5px; background: var(--copper-700); }
.hero-card-rule::after { content: ""; width: 5px; height: 5px; background: var(--copper-700); border-radius: 50%; }
.hero-card-quote { font-family: var(--font-fa); font-weight: 500; font-size: 22px; line-height: 1.7; color: var(--fg-primary); text-wrap: balance; }
.hero-card-foot { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-card-source { font-family: var(--font-fa); font-size: 13px; color: var(--fg-tertiary); }
.hero-card-lockup { font-family: var(--font-display-en); font-style: italic; font-size: 28px; color: var(--copper-700); }

/* ---------------- tier cards ---------------- */
.tier-card {
  border: 1px solid var(--rule); border-top: 3px solid var(--tier-1);
  border-radius: var(--radius-md); background: var(--bg-surface);
  padding: 22px 22px 24px;
}
.tier-card .tier-level { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.tier-card .tier-title { font-family: var(--font-fa); font-weight: 700; font-size: 22px; margin-top: 6px; color: var(--fg-primary); }
.tier-card .tier-summary { font-family: var(--font-fa); font-size: 15px; line-height: 1.7; color: var(--fg-secondary); margin-top: 10px; }

/* ---------------- service cards ---------------- */
.service-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-surface); padding: 18px 20px; }
.service-icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; color: var(--copper-700); }
.service-icon svg { width: 20px; height: 20px; }
.service-card .service-title { font-family: var(--font-fa); font-weight: 600; font-size: 17px; color: var(--fg-primary); display: block; }
.service-card .service-desc { font-family: var(--font-fa); font-size: 14px; line-height: 1.7; color: var(--fg-secondary); margin-top: 4px; display: block; }

/* ---------------- dark quote — «اصول» carry the olive accent on ink
   (olive-300 eyebrow = 10.6:1, olive-400 rule; interactive links stay saffron) */
.quote-dark { max-width: 60ch; }
.quote-dark .eyebrow-fa { color: var(--olive-300); }
.quote-dark .quote-intro { color: var(--fg-on-ink-2); font-size: 17px; line-height: 1.8; margin: var(--space-3) 0 var(--space-5); }
.quote-dark blockquote { font-family: var(--font-fa); font-weight: 500; font-size: 30px; line-height: 1.55; color: var(--fg-on-ink); margin: 16px 0 18px; padding-inline-start: 22px; border-inline-start: 2px solid var(--olive-400); text-wrap: balance; }
.quote-dark .attribution { font-family: var(--font-fa); font-size: 14px; color: var(--fg-on-ink-2); }
.quote-dark .arrow-link { color: var(--saffron-300); }
.quote-dark .arrow-link:hover { color: var(--saffron-500); }

/* ---------------- tier detail card ---------------- */
.tier-detail { border: 1px solid var(--rule); border-top: 4px solid var(--tier-1); border-radius: var(--radius-md); background: var(--bg-surface); padding: 28px 28px 30px; height: 100%; display: flex; flex-direction: column; }
.tier-detail .tier-tagline { font-family: var(--font-fa); font-size: 13px; color: var(--copper-700); letter-spacing: 0.04em; }
.tier-detail h3 { margin: 8px 0 2px; font-size: 22px; }
.tier-detail .tier-sub { font-family: var(--font-mono); font-size: 13px; color: var(--fg-tertiary); }
.tier-detail .tier-body { font-size: 15px; line-height: 1.8; color: var(--fg-secondary); margin: 14px 0; }
.tier-detail ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tier-detail li { position: relative; padding-inline-start: 18px; font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }
.tier-detail li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--copper-700); }
.tier-detail .tier-price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule-soft); }
.tier-detail .tier-price .price-label { font-size: 13px; color: var(--fg-tertiary); }
.tier-detail .tier-price .price-range { font-family: var(--font-fa); font-weight: 700; font-size: 20px; color: var(--fg-primary); margin-top: 2px; }
.tier-detail .price-range { font-family: var(--font-fa); font-weight: 700; font-size: 20px; color: var(--fg-primary); margin-top: 2px; }
.tier-detail .designed-for { font-size: 14px; color: var(--fg-tertiary); line-height: 1.7; }
.tier-detail .designed-for strong { color: var(--fg-secondary); }
.tier-detail .tier-body.flush { margin: 0; }
.tier-detail .price-range--lg { font-size: 24px; }
/* NAV14: a guide text is labelled as one, and the amount a visitor can actually order for sits beside it */
.guide-tag { display: inline-block; vertical-align: middle; font-family: var(--font-fa); font-size: 11px; font-weight: 500; line-height: 1.6; padding: 0 8px; border: 1px solid var(--rule); border-radius: 999px; color: var(--fg-tertiary); margin-inline-start: 6px; }
.guide-note { font-size: 13px; color: var(--fg-secondary); margin-top: 8px; }
.tier-detail .price-note { font-size: 12px; color: var(--fg-tertiary); margin-top: 4px; line-height: 1.6; }
.tier-detail .tier-ref { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule-soft); font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tier-detail .tier-ref .ref-label { color: var(--fg-secondary); }
.tier-detail .tier-ref .ref-amount { font-weight: 700; font-size: 18px; color: var(--fg-primary); }
.tier-detail .tier-ref .unit { font-size: 12px; font-weight: 400; color: var(--fg-tertiary); }
.tier-detail .tier-ref .hint { flex-basis: 100%; margin-top: 0; }
.price-row--off { opacity: .8; cursor: default; }
.price-row--off:hover { border-color: var(--rule); background: var(--bg-surface); transform: none; }
.price-row .amount-off { font-size: 13px; color: var(--fg-tertiary); white-space: nowrap; }
.price-row .hint { flex-basis: 100%; margin-top: 2px; }
.discount-line { font-weight: 700; margin-bottom: var(--space-3); }
.level-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: 14px; }

/* package level rows (pricing) — clickable price lines inside a card */
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-2) var(--ease-standard), background var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard);
}
.price-row:hover { border-color: var(--copper-600); background: var(--bg-elevated); transform: translateY(-1px); }
.price-row .amount { font-weight: 700; white-space: nowrap; }

/* result chips (calculators) */
.result-chip {
  margin-top: var(--space-3);
  background: var(--bg-surface-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}

/* blog post figures and highlighted notes (2026-11-04) */
.post-figure { margin: 26px 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--rule-soft); background: var(--bg-elevated); }
.post-figure figcaption { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--fg-tertiary); text-align: center; }
.post-note { margin: 22px 0; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--copper-50); border-inline-start: 4px solid var(--copper-600); color: var(--fg-primary); font-weight: 600; line-height: 2; }

/* blog post cover */
.post-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--rule-soft); margin-bottom: 22px; }

/* grouped section title (reference categories) */
.group-title { margin: 28px 0 12px; font-size: var(--fs-h2); }

/* search bar row (reference lookup) */
.search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.search-row input[type="text"] { flex: 1; min-width: 220px; width: auto; }

/* stacked tool cards (calculators) */
.calc-stack { display: grid; gap: var(--space-4); }

/* services accordion-ish blocks */
.service-block { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-surface); padding: 28px; margin-bottom: 18px; scroll-margin-top: 90px; }
.service-block .svc-head { display: flex; gap: 16px; align-items: flex-start; }
.service-block .svc-long { font-size: 16px; line-height: 1.8; color: var(--fg-secondary); margin-top: 14px; }
.service-block .svc-samples { margin-top: 10px; font-weight: 600; }
.subtype-grid-title { font-size: 18px; margin: 28px 0 0; }
/* the examples fold under their heading (2026-10-14) */
.subtype-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.subtype-details > summary .subtype-grid-title { margin: 0; }
.subtype-details > summary::-webkit-details-marker { display: none; }
.subtype-details > summary::after { content: "+"; font-family: var(--font-mono); color: var(--copper-700); font-size: 18px; line-height: 1; }
.subtype-details[open] > summary::after { content: "−"; }
.subtype-details > summary + .subtype-grid { margin-top: 12px; }
.subtype-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.subtype-grid-title + .subtype-grid { margin-top: 12px; }
.subtype { border: 1px solid var(--rule-soft); border-radius: var(--radius); background: var(--bg-elevated); padding: 16px 18px; }
.subtype h4 { font-size: 16px; margin-bottom: 8px; }
.subtype p { font-size: 14px; line-height: 1.75; color: var(--fg-secondary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-fa); font-size: 13px; color: var(--fg-secondary); background: var(--bg-surface-2); border: 1px solid var(--rule-soft); border-radius: var(--radius-pill); padding: 3px 12px; }
.tier-badges { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.tier-badge { font-family: var(--font-mono); font-size: 12px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--bg-canvas); }
.svc-caption { color: var(--fg-tertiary); font-size: 14px; margin-top: 2px; }

/* faq accordion */
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-fa); font-weight: 600; font-size: 18px; color: var(--fg-primary); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--copper-700); font-size: 22px; transition: transform var(--dur-2) var(--ease-standard); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 0 22px; font-size: 16px; line-height: 1.85; color: var(--fg-secondary); max-width: var(--reading-max); }

/* contact channel */
.contact-channel { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-surface); padding: 16px 22px; text-decoration: none; font-size: 18px; font-weight: 600; color: var(--fg-primary); transition: box-shadow var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard); }
.contact-channel:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); color: var(--fg-primary); }
.contact-channel.soon, .contact-channel.soon:hover { color: var(--fg-tertiary); box-shadow: none; transform: none; cursor: default; }

/* error / status pages */
.error-code { font-family: var(--font-mono); font-size: 72px; font-weight: 800; color: var(--indigo-800); line-height: 1; }
.error-panel { text-align: center; padding: 60px 0; }
.error-panel h1 { font-size: var(--fs-h3); margin: 18px 0 8px; }
.error-panel p { color: var(--fg-secondary); max-width: 520px; margin: 0 auto; line-height: 2; }
.error-panel .btn-row { margin-top: 26px; }

/* ---------------- footer ---------------- */
.lx-footer { border-top: 1.5px solid var(--copper-700); background: var(--bg-surface); padding: var(--space-16) 0 var(--space-8); }
.lx-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 36px; }
.lx-footer-brand .name { font-family: var(--font-fa); font-weight: 700; font-size: 24px; }
.lx-footer-brand .tag { font-family: var(--font-fa); font-size: 14px; color: var(--copper-700); margin-top: 4px; }
.lx-footer-brand p { font-family: var(--font-fa); font-size: 14px; line-height: 1.7; color: var(--fg-secondary); margin-top: 14px; max-width: 32ch; }
.lx-footer-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; }
.lx-footer-social a, .lx-footer-social .soon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; color: var(--fg-secondary); transition: color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard); }
.lx-footer-social a:hover { color: var(--copper-700); border-color: var(--copper-700); }
.lx-footer-social .soon { opacity: .45; cursor: default; }
.lx-footer-enamad { margin-top: 18px; }
.lx-footer-enamad img { max-width: 110px; height: auto; }
.lx-footer-col h4 { font-family: var(--font-fa); font-weight: 600; font-size: 14px; color: var(--fg-primary); margin-bottom: 14px; }
.lx-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lx-footer-col a { font-family: var(--font-fa); font-size: 14px; color: var(--fg-secondary); text-decoration: none; transition: color var(--dur-2) var(--ease-standard); }
.lx-footer-col a:hover { color: var(--copper-700); }
.lx-footer-bottom { max-width: var(--content-max); margin: var(--space-10) auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid var(--rule-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-fa); font-size: 13px; color: var(--fg-tertiary); }

/* ---------------- scroll reveal (classes applied by site.js; no-JS = visible) ---------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-4) var(--ease-emphasis), transform var(--dur-4) var(--ease-emphasis);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal-in { transition: none; }
  .hero-copy > *, .hero-visual { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-frame, .hero-card { aspect-ratio: auto; min-height: 260px; }
  .hero-visual--image::before { display: none; }
  .hero-chip { position: static; margin-top: 16px; display: inline-flex; }
  .section { padding: var(--space-12) 0; }
  .lx-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
/* The header's drawer. The full row — brand, eight links, two buttons — needs about 1160px (measured on
   2026-10-21 with «چراغ راهنما» added); narrower, it is the menu button and the slide-down drawer. */
@media (max-width: 1180px) {
  .lx-nav-toggle { display: inline-flex; }
  .lx-header-cta { display: none; }
  /* full-height slide-down drawer beneath the sticky bar.
     NOTE: absolute (not fixed) — the header's backdrop-filter would otherwise
     become the containing block for fixed children and collapse the drawer. */
  .lx-nav {
    position: absolute; top: 100%; inset-inline: 0; z-index: 45;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column; gap: 0;
    background: var(--bg-canvas); border-top: 1px solid var(--rule-soft);
    padding: 12px var(--gutter) var(--space-8);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--dur-3) var(--ease-standard), transform var(--dur-3) var(--ease-standard), visibility 0s linear var(--dur-3);
  }
  .lx-nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .lx-nav a:not(.btn) { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid var(--rule-soft); }
  .lx-drawer-foot { display: flex; flex-direction: column; gap: 12px; padding-top: var(--space-5); }
  .lx-drawer-foot .btn { text-align: center; }
  /* NAV14: in the drawer a group is a heading over its links — always open, nothing to toggle */
  .lx-nav-group { display: block; position: static; }
  .lx-nav-group-title { display: block; padding: 16px 2px 4px; font-size: 12px; color: var(--fg-tertiary); letter-spacing: 0.04em; }
  .lx-nav-trigger { display: none; }
  .lx-nav .lx-nav-group .lx-nav-menu { display: block; position: static; padding: 0; }
  .lx-nav-menu-box { min-width: 0; gap: 0; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .lx-nav-menu a:not(.btn) { padding: 14px 14px; border-radius: 0; white-space: normal; }
  .lx-nav a:not(.btn) { white-space: normal; }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .intro-media { grid-template-columns: 1fr; gap: 28px; }
  .subtype-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .numbered-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .lx-footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-10) 0; }
  .error-code { font-size: 56px; }
}

/* build stamp — for whoever just deployed, not for the reader: present, findable, and quiet */
.build-stamp {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px; color: var(--fg-tertiary); opacity: .65; letter-spacing: .02em;
  direction: ltr; unicode-bidi: isolate;
}

/* Warning alert — the tokens existed, the rule did not, so any view needing "read this
   before you act" had to fall back to the error style and shout at the reader. */
.alert-warn { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }


/* ---- home: «چراغ راهنمای شما» (2026-10-21) — the hero link and the band under the hero ---- */
.hero-guide-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 16px;
  border-radius: var(--radius-pill); background: var(--bg-elevated); border: 1px solid var(--copper-200);
  color: var(--copper-800); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: var(--shadow-1);
  transition: border-color var(--dur-2) var(--ease-standard), transform var(--dur-1);
}
.hero-guide-link svg { width: 22px; height: 22px; color: var(--copper-700); flex: none; }
.hero-guide-link:hover { border-color: var(--copper-600); color: var(--copper-900); }
.hero-guide-link:active { transform: scale(0.98); }
.guide-band {
  background: radial-gradient(80% 140% at 90% 0%, rgba(226, 163, 44, 0.24) 0%, rgba(226, 163, 44, 0) 60%), var(--indigo-900);
  color: var(--fg-on-ink); padding: var(--space-12) 0; scroll-margin-top: var(--header-h);
}
.guide-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.guide-band-lamp {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: radial-gradient(circle at 50% 45%, #FFF6DD 0%, var(--copper-50) 55%, var(--copper-100) 100%);
  color: var(--copper-700); box-shadow: 0 0 0 6px rgba(245, 219, 172, 0.16), 0 0 44px 10px rgba(226, 163, 44, 0.35);
}
.guide-band-lamp svg { width: 46px; height: 46px; }
.guide-band-eyebrow { display: block; color: var(--saffron-300); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.guide-band h2 { color: #FFFDF5; font-size: clamp(26px, 3vw, 36px); line-height: 1.45; margin: 0 0 12px; }
.guide-band-copy p { color: var(--fg-on-ink-2); font-size: 17px; line-height: 1.95; margin: 0; }
.guide-band-copy .guide-band-notconsult {
  display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(235, 194, 122, 0.45); color: var(--saffron-300); font-size: 14px; font-weight: 700; line-height: 1.7;
}
.guide-band-form { background: rgba(255, 253, 245, 0.06); border: 1px solid rgba(255, 253, 245, 0.14); border-radius: 18px; padding: 18px; }
.guide-band-form textarea {
  width: 100%; box-sizing: border-box; min-height: 118px; resize: vertical; display: block;
  font: inherit; font-size: 16px; line-height: 1.9; color: var(--fg-primary);
  background: var(--bg-elevated); border: 0; border-radius: 12px; padding: 12px 14px;
}
.guide-band-form textarea::placeholder { color: var(--fg-muted); }
.guide-band-form textarea:focus { outline: 3px solid var(--saffron-500); outline-offset: 2px; }
.guide-band-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 12px;
  border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 800;
  background: var(--copper-600); color: #FFFDF5; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  transition: background var(--dur-2) var(--ease-standard), transform var(--dur-1);
}
.guide-band-btn svg { width: 24px; height: 24px; flex: none; }
.guide-band-btn:hover { background: var(--copper-700); }
.guide-band-btn:active { transform: scale(0.985); }
.guide-band-btn:focus-visible { outline: 3px solid var(--saffron-300); outline-offset: 3px; }
.guide-band-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--fg-on-ink-2); }
.guide-band-note svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 860px) {
  .guide-band { padding: var(--space-10) 0; }
  .guide-band-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---- services page: the order strip under each service ---- */
/* The order strip is a row of plan cards (2026-10-14): the level, its price and its button, then
   the level's own bullets; the recommended level (block plans.recommendedLevel) stands out in ink. */
.svc-order { margin: 0 0 22px; scroll-margin-top: 90px; }
.svc-order[hidden] { display: none; }
.svc-order-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.svc-order-head b { font-size: 18px; }
.svc-order-head .hint { font-size: 13px; color: var(--fg-tertiary); }
.svc-order > .svc-samples { margin: 0 0 6px; font-weight: 600; }
.svc-order-varies { display: block; font-size: 13px; color: var(--fg-tertiary); }
.sub-group + .sub-group { margin-top: 28px; }
.sub-group-title { font-size: 20px; font-weight: 800; margin: 0; }
.sub-group-who { margin: 4px 0 12px; color: var(--fg-secondary); font-size: 14px; }
.sub-card .tier-price { margin-top: 10px; }
.sub-card .sub-discount { font-weight: 700; color: var(--copper-700); margin-top: 4px; }
.sub-card .sub-body { flex: 1 1 auto; margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--fg-secondary); }
.sub-card .sub-value { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--rule-soft); font-size: 13.5px; line-height: 1.8; color: var(--fg-primary); }
.credit-explainer { margin: 0 0 var(--space-5, 24px); padding: 16px 18px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--rule-soft); border-inline-start: 4px solid var(--copper-700); }
.credit-explainer h3 { margin: 0 0 6px; font-size: 17px; }
.credit-explainer p, .credit-explainer li { font-size: 14.5px; line-height: 1.9; color: var(--fg-secondary); }
.credit-explainer p { margin: 0 0 6px; }
.credit-explainer .plain-list { margin: 6px 0; }
.svc-order-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 18px; align-items: stretch; }
.svc-order-level {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--rule); border-top: 4px solid var(--lvl-color, var(--rule)); border-radius: var(--radius-lg);
  padding: 22px 22px 20px; background: var(--bg-elevated);
}
.svc-order-level .lvl { font-size: 13px; font-weight: 700; color: var(--lvl-color, var(--fg-tertiary)); }
.svc-order-level .lvl-title { font-size: 19px; font-weight: 700; line-height: 1.5; }
.svc-order-level .lvl-sub { font-size: 13px; color: var(--fg-tertiary); }
.svc-order-level > .hint { font-size: 12px; color: var(--fg-tertiary); margin-top: 6px; }
.svc-order-level .amount { font-size: 30px; font-weight: 800; line-height: 1.3; margin-top: 10px; letter-spacing: -0.01em; }
.svc-order-level .amount span { font-size: 14px; font-weight: 400; color: var(--fg-tertiary); }
.svc-order-level .unpriced { font-size: 14px; color: var(--fg-tertiary); margin-top: 10px; }
.svc-order-level .btn { margin-top: 14px; width: 100%; justify-content: center; text-align: center; }
.plan-points { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule-soft); display: grid; gap: 8px; font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }
.plan-points li { display: flex; gap: 8px; }
.plan-points li::before { content: "✓"; flex: none; font-weight: 800; color: var(--olive-700); }
/* Contract review (2026-11-15): what the service does, beside its single level card. */
.svc-order-about { border: 1px solid var(--rule-soft); border-radius: 12px; padding: 20px 22px; background: var(--bg-elevated, transparent); font-size: 14px; line-height: 1.9; color: var(--fg-secondary); }
.svc-order-about h3 { font-size: 18px; font-weight: 700; color: var(--fg-primary, inherit); margin: 0 0 8px; }
.svc-order-about p { margin: 0 0 12px; }
.svc-order-about b { display: block; margin-top: 4px; color: var(--fg-primary, inherit); }
.svc-order-about ul, .svc-order-about ol { margin: 4px 0 12px; padding-inline-start: 20px; display: grid; gap: 4px; }
.svc-order-about ol { list-style-type: persian; }
.svc-order-about .hint { font-size: 13px; color: var(--fg-tertiary); margin: 0; }
.plan-flag { position: absolute; top: -13px; inset-inline-end: 18px; background: var(--saffron-500); color: var(--fg-primary); font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: var(--radius-pill); }
.svc-order-level.is-featured { background: var(--indigo-800); border-color: var(--indigo-800); color: var(--fg-on-ink); box-shadow: 0 30px 50px -30px rgba(14, 20, 48, .7); }
.svc-order-level.is-featured .lvl, .svc-order-level.is-featured .lvl-sub, .svc-order-level.is-featured > .hint,
.svc-order-level.is-featured .amount span, .svc-order-level.is-featured .unpriced { color: var(--fg-on-ink-2); }
.svc-order-level.is-featured .lvl-title, .svc-order-level.is-featured .amount { color: var(--bg-elevated); }
.svc-order-level.is-featured .plan-points { color: #E4E6EE; border-top-color: rgba(247, 236, 218, .18); }
.svc-order-level.is-featured .plan-points li::before { color: var(--saffron-500); }
.svc-order-level.is-featured .btn-primary { background: var(--bg-canvas); border-color: var(--bg-canvas); color: var(--indigo-800); }
.svc-order-level.is-featured .btn-primary:hover { background: var(--bg-elevated); border-color: var(--bg-elevated); color: var(--indigo-900); }
.svc-order-level.is-featured { --focus-ring: var(--focus-ring-on-dark); }

/* the service picker above the plans: links to each strip without a script, a picker with one */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.svc-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--bg-elevated); color: var(--fg-primary); font-size: 15px; text-decoration: none; }
.svc-tab:hover { border-color: var(--rule-strong); color: var(--fg-primary); }
.svc-tab.is-on { background: var(--bg-ink); border-color: var(--bg-ink); color: var(--fg-on-ink); font-weight: 700; }
@media (max-width: 600px) {
  .svc-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .svc-tab { flex: none; }
}

.svc-section-title { font-size: var(--fs-h2); margin-bottom: var(--space-5); }

/* the comparison table: one column per level, the recommended one tinted; rows from compare.rows,
   then every service's price from the live offers */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg-elevated); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; text-align: center; }
.cmp th, .cmp td { padding: 12px 14px; border-top: 1px solid var(--rule-soft); vertical-align: middle; }
.cmp thead th { border-top: 0; background: var(--bg-surface-2); }
.cmp .cmp-label { text-align: start; font-weight: 600; width: 32%; }
.cmp-lvl { display: block; font-weight: 800; color: var(--lvl-color, var(--fg-primary)); }
.cmp-tier { display: block; font-size: 12px; font-weight: 400; color: var(--fg-secondary); }
.cmp td.is-featured { background: var(--indigo-50); }
.cmp thead th.is-featured { background: var(--indigo-800); }
.cmp thead th.is-featured .cmp-lvl { color: var(--bg-elevated); }
.cmp thead th.is-featured .cmp-tier { color: var(--fg-on-ink-2); }
.cmp-yes { font-weight: 800; color: var(--olive-700); }
.cmp-no { color: var(--fg-muted); }
.cmp-group th { text-align: start; font-weight: 800; background: var(--bg-surface-2); }
.cmp-price { font-weight: 700; }
.cmp-price a { color: var(--fg-primary); text-decoration: none; border-bottom: 1px dashed var(--rule-strong); }
.cmp-price a:hover { color: var(--copper-700); border-bottom-color: var(--copper-700); }
.cmp .cmp-label a { color: inherit; text-decoration: none; }
.cmp .cmp-label a:hover { color: var(--copper-700); }
.cmp-note { margin-top: 12px; font-size: 13px; color: var(--fg-tertiary); }
@media (max-width: 600px) {
  /* the table scrolls sideways on a phone; the labels stay put so a row never loses its name */
  .cmp { min-width: 600px; font-size: 13px; }
  .cmp th, .cmp td { padding: 10px; }
  .cmp .cmp-label { position: sticky; inset-inline-start: 0; z-index: 1; width: 150px; background: var(--bg-elevated); box-shadow: -1px 0 0 var(--rule-soft); }
  .cmp thead .cmp-label, .cmp-group th { background: var(--bg-surface-2); }
}

/* the services' descriptions, two to a row under the table */
.svc-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 16px; align-items: start; }
.svc-details .service-block { margin-bottom: 0; padding: 22px 24px; }
.svc-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.svc-links .arrow-link { margin-top: 12px; font-weight: 600; }

/* ---- panel top bar: back / home ---- */
.panel-nav { display: inline-flex; align-items: center; gap: 6px; margin-inline: 10px; }
.panel-nav .btn { white-space: nowrap; }
@media (max-width: 640px) { .panel-nav .panel-home { display: none; } }

/* ---------------- samples showcase (2026-10-02) ----------------
   The home page's «نمونه‌کارها» band and the /samples pages: a delivered document shown as the
   sheet it is, on ink, under a warm light. Every sheet carries the «نمونه · اطلاعاتِ فرضی» stamp —
   the privacy line in the band says it in words, the stamp says it at a glance. */
.showcase { position: relative; overflow: hidden; background: var(--bg-ink); color: var(--fg-on-ink); }
.showcase::before {   /* the lamp over the sheet */
  content: ""; position: absolute; inset-inline-end: -180px; top: 340px; width: 1000px; height: 1000px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224, 138, 36, 0.16) 0%, rgba(224, 138, 36, 0) 62%);
}
.showcase::after {    /* a hairline frame, like a mount around an exhibit */
  content: ""; position: absolute; inset: 28px; pointer-events: none;
  border: 1px solid rgba(201, 184, 147, 0.14); border-radius: var(--radius-xl);
}
.showcase .container { position: relative; z-index: 1; }
.showcase-head { max-width: 820px; margin: 0 auto; text-align: center; }
.showcase-head .copper-rule { justify-content: center; }
.showcase-head .copper-rule::before, .showcase-head .copper-rule::after { background: var(--copper-500); }
.showcase-head .eyebrow-fa { color: var(--copper-200); }
.showcase-head h2 { margin-top: 12px; font-size: var(--fs-display); line-height: 1.3; color: var(--fg-on-ink); }
.showcase-head .lead { margin: 16px auto 0; max-width: 60ch; font-size: 19px; line-height: 1.95; color: var(--fg-on-ink-2); }

.showcase-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: var(--space-10); }
.showcase-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--rule-on-ink); border-radius: var(--radius-pill);
  color: var(--fg-on-ink-2); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background var(--dur-2) var(--ease-standard), color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard);
}
.showcase-chip span { font-size: 12px; padding: 1px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); color: var(--fg-muted); }
.showcase-chip:hover { color: var(--fg-on-ink); border-color: var(--rule); }
.showcase-chip[aria-pressed="true"], .showcase-chip[aria-current="page"] { background: var(--fg-on-ink); border-color: var(--fg-on-ink); color: var(--bg-ink); }
.showcase-chip[aria-pressed="true"] span, .showcase-chip[aria-current="page"] span { background: var(--bg-ink); color: var(--fg-on-ink); }

.showcase-stage { margin-top: var(--space-12); }
.showcase-slide { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; align-items: center; }
.showcase-slide[hidden] { display: none; }
.showcase-slide.is-entering .paper { animation: sample-sheet-in var(--dur-4) var(--ease-emphasis); }
.showcase-slide.is-entering .showcase-info { animation: sample-info-in var(--dur-4) var(--ease-emphasis); }
@keyframes sample-sheet-in { from { opacity: 0; transform: translateY(14px) rotate(-0.6deg); } to { opacity: 1; transform: none; } }
@keyframes sample-info-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* how every sample was made, where its level used to stand (2026-10-07) */
.sample-ai {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--rule-on-ink); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 600; line-height: 1.7; color: var(--fg-on-ink);
}
.sample-ai, .sample-tag--ai, .sample-card-ai, .paper-stack .paper-note { text-wrap: balance; }   /* a narrow screen splits it at the comma, not one word over */
.sample-ai svg, .sample-tag--ai svg, .sample-card-ai svg { width: 16px; height: 16px; flex: none; }
.sample-ai svg { color: var(--copper-500); }
.showcase-service { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--copper-200); }
.showcase-service svg, .showcase-points svg, .showcase-privacy svg, .sample-notice svg { width: 18px; height: 18px; flex: none; }
.showcase-title { margin-top: 10px; font-size: 32px; line-height: 1.45; font-weight: 700; color: var(--fg-on-ink); }
.showcase-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-muted); }
.showcase-ask { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--rule-on-ink); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.035); }
.showcase-ask p { margin-top: 6px; font-size: 16px; line-height: 1.95; color: var(--fg-on-ink); }
.showcase-points-block { margin-top: 24px; }
.showcase-points { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.showcase-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.8; color: #D5D7DD; }
.showcase-points svg { margin-top: 6px; color: var(--copper-500); }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-light { background: var(--fg-on-ink); color: var(--bg-ink); border-color: var(--fg-on-ink); font-weight: 700; }
.btn-light:hover { background: #FFFDF5; border-color: #FFFDF5; color: var(--bg-ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.btn-outline-light { background: transparent; color: var(--fg-on-ink); border-color: rgba(247, 236, 218, 0.35); }
.btn-outline-light:hover { border-color: var(--fg-on-ink); color: #FFFFFF; }

/* the sheet: two papers behind, one in front, the stamp pressed on it */
.paper-stack { position: relative; padding: 18px 26px 6px; }
.paper-stack::before, .paper-stack::after { content: ""; position: absolute; border-radius: var(--radius); pointer-events: none; }
.paper-stack::before { top: 34px; right: 6px; bottom: -6px; left: 46px; background: #E3D3B4; opacity: 0.5; transform: rotate(-3deg); }
.paper-stack::after { top: 16px; right: 20px; bottom: 4px; left: 20px; background: #EFE2C8; opacity: 0.85; transform: rotate(1.8deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.paper {
  position: relative; z-index: 1; overflow: hidden; height: 620px; padding: 44px 56px 0;
  background: var(--bg-elevated); color: var(--fg-primary); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(201, 184, 147, 0.7), 0 50px 90px -40px rgba(0, 0, 0, 0.75);
  /* A sample's text cannot be selected or copied (owner, 2026-10-13) — a deterrent, not a lock. */
  -webkit-user-select: none; user-select: none;
}
.paper-letterhead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.paper-brand { display: flex; flex-direction: column; line-height: 1.5; }
.paper-brand b { font-size: 17px; }
.paper-brand small { font-size: 11px; color: var(--fg-tertiary); }
.paper-latin { font-family: var(--font-display-en); font-style: italic; font-size: 21px; color: var(--copper-700); direction: ltr; unicode-bidi: isolate; }
.paper-type { margin-top: 22px; text-align: center; font-size: 27px; font-weight: 800; }
.paper-note { margin-top: 4px; text-align: center; font-size: 12.5px; color: var(--fg-tertiary); }
.paper-stack .paper-note { max-width: 190px; margin-inline: auto; line-height: 1.8; }   /* two lines, clear of the stamp */
.paper-body { display: grid; gap: 10px; margin-top: 18px; }
.paper-body p { font-size: 15px; line-height: 2.05; color: var(--fg-secondary); text-align: justify; overflow-wrap: anywhere; }
.paper-fade {
  position: absolute; right: 0; bottom: 0; left: 0; height: 210px; padding-bottom: 28px;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(to bottom, rgba(255, 253, 245, 0), var(--bg-elevated) 72%);
}
.paper-fade a { padding: 9px 18px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--bg-elevated); font-size: 13.5px; font-weight: 600; color: var(--copper-800); text-decoration: none; }
.paper-fade a:hover { border-color: var(--copper-700); color: var(--copper-700); }
.sample-stamp {
  position: absolute; top: 96px; left: 32px; width: 124px; height: 124px; border-radius: 50%;
  border: 2px solid rgba(172, 74, 15, 0.72);
  box-shadow: inset 0 0 0 5px var(--bg-elevated), inset 0 0 0 6.5px rgba(172, 74, 15, 0.55);
  transform: rotate(-14deg); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: rgba(172, 74, 15, 0.86); line-height: 1.4;
}
.sample-stamp span { font-size: 10.5px; font-weight: 700; }
.sample-stamp b { font-size: 25px; font-weight: 800; line-height: 1.2; }

.showcase-pager { display: flex; align-items: center; gap: 14px; max-width: 440px; margin-top: 32px; }
.showcase-pager[hidden] { display: none; }
.showcase-arrow {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--rule-on-ink); border-radius: 50%;
  background: transparent; color: var(--fg-on-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-2) var(--ease-standard);
}
.showcase-arrow:hover { border-color: var(--fg-on-ink); }
.showcase-arrow svg { width: 18px; height: 18px; }
.showcase-count { min-width: 70px; text-align: center; font-family: var(--font-mono); font-size: 14px; color: var(--fg-muted); }
.showcase-progress { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: var(--rule-on-ink); }
.showcase-progress span { display: block; height: 2px; background: var(--copper-500); transition: width var(--dur-3) var(--ease-standard); }

.showcase-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: var(--space-12); }
.showcase-thumbs[hidden] { display: none; }
.showcase-thumb { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.showcase-thumb[hidden] { display: none; }
.mini-paper {
  display: block; height: 132px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-elevated);
  opacity: 0.78; outline: 2px solid transparent; outline-offset: 4px;
  transition: transform var(--dur-2) var(--ease-standard), opacity var(--dur-2) var(--ease-standard), outline-color var(--dur-2) var(--ease-standard);
}
.mini-paper b { display: block; text-align: center; font-size: 13px; font-weight: 800; color: var(--fg-primary); }
.mini-line { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--rule-soft); }
.mini-paper .mini-line:nth-of-type(1) { margin-top: 12px; }
.mini-paper .mini-line:nth-of-type(2) { width: 86%; }
.mini-paper .mini-line:nth-of-type(3) { width: 92%; }
.mini-paper .mini-line:nth-of-type(4) { width: 64%; }
.showcase-thumb:hover .mini-paper { transform: translateY(-4px); opacity: 1; }
.showcase-thumb[aria-current="true"] .mini-paper { opacity: 1; outline-color: var(--copper-500); }
.thumb-kind { display: block; font-size: 12.5px; font-weight: 600; color: var(--copper-200); }
.thumb-title { display: block; margin-top: 4px; font-size: 14px; line-height: 1.7; color: #D5D7DD; }

.showcase-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: var(--space-12); padding-top: 28px; border-top: 1px solid var(--rule-on-ink); }
.showcase-privacy { display: flex; align-items: flex-start; gap: 10px; max-width: 80ch; font-size: 14.5px; line-height: 1.9; color: var(--fg-on-ink-2); }
.showcase-privacy svg { margin-top: 5px; color: var(--copper-200); }
.showcase .arrow-link { margin-top: 0; color: var(--saffron-300); }
.showcase .arrow-link:hover { color: var(--saffron-500); }

/* /samples — the gallery */
.sample-privacy-line { display: flex; align-items: flex-start; gap: 10px; max-width: 860px; margin: 0 auto var(--space-8); padding: 14px 18px; border: 1px solid var(--saffron-300); border-radius: var(--radius-lg); background: var(--warning-bg); font-size: 15px; line-height: 1.9; color: var(--fg-secondary); }
.sample-privacy-line svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--copper-800); }
.sample-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: var(--space-10); }
.sample-filters .showcase-chip { border-color: var(--rule); color: var(--fg-secondary); }
.sample-filters .showcase-chip span { background: var(--bg-surface-2); color: var(--fg-tertiary); }
.sample-filters .showcase-chip:hover { border-color: var(--rule-strong); color: var(--fg-primary); }
.sample-filters .showcase-chip[aria-current="page"] { background: var(--bg-ink); border-color: var(--bg-ink); color: var(--fg-on-ink); }
.sample-filters .showcase-chip[aria-current="page"] span { background: var(--fg-on-ink); color: var(--bg-ink); }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.sample-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; color: inherit; text-decoration: none;
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg-surface);
  transition: box-shadow var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard);
}
.sample-card:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); color: inherit; }
.sample-card .mini-paper { position: relative; height: 150px; opacity: 1; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-soft), 0 16px 30px -22px rgba(20, 24, 30, 0.4); }
.sample-card-stamp { position: absolute; bottom: 12px; left: 14px; padding: 2px 10px; border: 1.5px solid rgba(172, 74, 15, 0.7); border-radius: var(--radius-pill); transform: rotate(-8deg); font-size: 11px; font-weight: 800; color: rgba(172, 74, 15, 0.86); }
.sample-card-kind { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--copper-700); }
.sample-card-ai { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.7; color: var(--indigo-800); }
.sample-card-ai svg { color: var(--copper-700); }
.sample-card-title { font-size: 19px; font-weight: 700; line-height: 1.6; }
.sample-card-summary { font-size: 15px; line-height: 1.85; color: var(--fg-secondary); }
.sample-card-more { margin-top: auto; padding-top: 6px; font-size: 14.5px; color: var(--copper-700); }

/* /samples/{id} — the reader */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--fg-tertiary); }
.crumbs a { color: var(--fg-tertiary); text-decoration: none; }
.crumbs a:hover { color: var(--copper-700); }
.sample-notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--saffron-300); border-radius: var(--radius-lg); background: var(--warning-bg); }
.sample-notice svg { margin-top: 5px; color: var(--copper-800); }
.sample-notice p { font-size: 15px; line-height: 1.95; color: var(--fg-secondary); }
.sample-notice strong { color: var(--fg-primary); }
.sample-reader-head { max-width: 860px; margin-top: var(--space-8); }
.sample-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.sample-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--bg-surface); font-size: 13px; font-weight: 600; color: var(--fg-secondary); }
.sample-tag--ai { background: var(--indigo-100); border-color: var(--indigo-100); color: var(--indigo-800); }
.sample-reader-head h1 { margin-top: 14px; font-size: 40px; line-height: 1.4; }
.sample-reader-head .lead { margin-top: 12px; font-size: 18px; line-height: 1.95; }
.sample-reader-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-top: var(--space-8); }
.paper--full { height: auto; padding: 64px 72px 56px; box-shadow: 0 0 0 1px var(--rule-soft), 0 24px 48px -24px rgba(20, 24, 30, 0.25); }
.paper--full .paper-body p { font-size: 16px; line-height: 2.15; }
.paper-watermark { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-28deg); font-size: 190px; font-weight: 800; color: rgba(172, 74, 15, 0.05); white-space: nowrap; pointer-events: none; user-select: none; }
.paper-end { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px dashed var(--rule); font-size: 13.5px; color: var(--fg-tertiary); }
.paper-end .sample-stamp { position: static; width: 104px; height: 104px; }
.paper-end .sample-stamp b { font-size: 21px; }
.sample-aside { display: flex; flex-direction: column; gap: 20px; }
.sample-box { padding: 22px 24px; border: 1px solid var(--rule-soft); border-radius: var(--radius-lg); background: var(--bg-surface); }
.sample-box h2 { font-size: 17px; font-weight: 700; line-height: 1.6; }
.sample-box p { margin-top: 8px; font-size: 14.5px; line-height: 1.9; color: var(--fg-secondary); }
.sample-box ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sample-box li { font-size: 14.5px; line-height: 1.85; color: var(--fg-secondary); }
.sample-box--ink { background: var(--bg-ink); border-color: var(--bg-ink); color: var(--fg-on-ink); }
.sample-box--ink .showcase-label { color: var(--copper-200); }
.sample-box--ink b { display: block; margin-top: 8px; font-size: 20px; }
.sample-box--ink .sample-price { display: block; margin-top: 4px; font-size: 15px; color: var(--fg-on-ink-2); }
.sample-box--ink .btn { display: block; margin-top: 16px; text-align: center; }
.sample-others a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); color: var(--fg-primary); text-decoration: none; }
.sample-others li:last-child a { border-bottom: 0; }
.sample-others a span { font-size: 13px; color: var(--fg-tertiary); }
.sample-others a:hover { color: var(--copper-700); }

@media (max-width: 980px) {
  .showcase-slide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .showcase-slide .paper-stack { order: -1; }   /* the sheet first on a narrow screen */
  .sample-reader-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .showcase::after { inset: 12px; }
  .showcase-head h2 { font-size: 29px; }
  .showcase-head .lead { font-size: 16px; }
  .showcase-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .showcase-chip { flex: none; }
  .paper-stack { padding: 12px 6px 4px; }
  .paper { height: 470px; padding: 26px 22px 0; }
  .paper-type { font-size: 22px; }
  .paper-body p { font-size: 14px; }
  .sample-stamp { top: 68px; left: 12px; width: 92px; height: 92px; }
  .paper-stack .paper-note { max-width: 170px; }
  .sample-stamp b { font-size: 19px; }
  .sample-stamp span { font-size: 9px; }
  .showcase-title { font-size: 25px; }
  .showcase-actions .btn { flex: 1 1 100%; text-align: center; }
  .showcase-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter); }
  .showcase-privacy { font-size: 13.5px; }
  .paper--full { height: auto; padding: 32px 22px 28px; }   /* the reader is the whole text, never a cut sheet */
  .paper--full .paper-body p { font-size: 15px; }
  .paper-watermark { font-size: 110px; }
  .sample-reader-head h1 { font-size: 28px; }
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- shared components (every area loads this file first) ----------------
   These lived in one area's stylesheet while the markup used them in another: the customer
   panel's status badges and the sign-in consent row rendered as plain, unstyled text. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.badge { display: inline-block; font-size: 12px; line-height: 1.7; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; }
.badge-on { background: var(--success-bg); color: var(--success); border-color: var(--olive-300); }
.badge-warn { background: var(--warning-bg); color: var(--warning); border-color: var(--saffron-300); }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.badge-off { background: var(--bg-surface-2); color: var(--fg-tertiary); border-color: var(--rule-soft); }
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input[type="checkbox"], .field-check input[type="radio"] { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.field-check > label { margin: 0 !important; font-weight: 400; line-height: 1.9; }
.consent-line { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.consent-line input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--olive-600); }
.consent-line span { font-size: 13px; line-height: 1.9; color: var(--fg-secondary); }

/* ---------------- home page as a shop window (2026-10-14) ----------------
   What is sold and from how much, how it works, the three levels with prices, samples, the common
   questions — then the story. The level cards share the services page's plan look (.plan-points,
   .plan-flag); the recommended level is the one block services:plans.recommendedLevel names. */
.section--surface { background: var(--bg-surface); border-block: 1px solid var(--rule-soft); }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.section-head--row > .arrow-link { margin-top: 0; }
.section-head--row > div { flex: 1 1 560px; min-width: 0; }
.section-head--row .lead { max-width: 64ch; }
.section-head--row h2 { margin-top: 6px; }

.hero-visual { width: 100%; max-width: 480px; justify-self: center; }
.hero-price { align-self: center; font-size: 15px; color: var(--fg-secondary); }
.hero-price b { color: var(--fg-primary); }
.trust-strip { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--rule-soft); border-radius: var(--radius-lg); background: var(--bg-surface); font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }
.trust-item b { color: var(--fg-primary); }
.trust-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--copper-50); color: var(--copper-800); }
.trust-icon svg { width: 20px; height: 20px; }
.trust-title { grid-column: 1 / -1; margin: 0 0 4px; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--olive-700); }
.trust-title::before { content: ""; flex: none; width: 34px; height: 1.5px; background: var(--olive-600); }
/* One brand colour per card (partner, 2026-10-15): olive from the logo, indigo, copper. */
.trust-item--olive { background: var(--olive-50); border-color: var(--olive-200); border-inline-start: 4px solid var(--olive-600); }
.trust-item--olive .trust-icon { background: var(--olive-100); color: var(--olive-700); }
.trust-item--olive b { color: var(--olive-800); }
.trust-item--indigo { background: var(--indigo-50); border-color: var(--indigo-100); border-inline-start: 4px solid var(--indigo-700); }
.trust-item--indigo .trust-icon { background: var(--indigo-100); color: var(--indigo-700); }
.trust-item--indigo b { color: var(--indigo-800); }
.trust-item--copper { background: var(--copper-50); border-color: var(--copper-100); border-inline-start: 4px solid var(--copper-600); }
.trust-item--copper .trust-icon { background: var(--copper-100); color: var(--copper-800); }
.trust-item--copper b { color: var(--copper-900); }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.service-card { flex-direction: column; align-items: stretch; gap: 10px; background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 20px 22px; }
.service-card-head { display: flex; align-items: center; gap: 12px; }
.service-card .service-title { font-size: 18px; font-weight: 700; }
.service-card .service-desc { flex: 1 1 auto; margin-top: 0; }
.service-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.service-price { color: var(--fg-tertiary); }
.service-price b { font-size: 18px; color: var(--fg-primary); }
.service-go { font-weight: 700; color: var(--indigo-800); }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px 28px; }
.how-step { display: flex; gap: 16px; align-items: flex-start; }
.how-num { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--indigo-800); color: var(--bg-canvas); font-size: 20px; font-weight: 800; }
.how-title { display: block; font-size: 18px; }
.how-body { display: block; margin-top: 4px; font-size: 15px; line-height: 1.8; color: var(--fg-secondary); }
/* The partner's waiver note: strong orange so it is seen (2026-10-15). Cream on copper-700 is 5.9:1. */
.waiver-notice { margin-top: clamp(28px, 4vw, 40px); padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--copper-700); color: var(--bg-elevated); box-shadow: 0 6px 18px rgba(143, 64, 14, 0.22); }
.waiver-notice-title { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.waiver-notice p { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.95; }

.tier-card { position: relative; display: flex; flex-direction: column; border-top: 4px solid var(--lvl-color, var(--tier-1)); border-radius: var(--radius-lg); background: var(--bg-elevated); padding: 24px; }
.tier-card .tier-level { font-family: var(--font-fa); font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--lvl-color, var(--fg-tertiary)); }
.tier-card .tier-title { font-size: 20px; }
.tier-card .tier-sub { font-size: 13px; color: var(--fg-tertiary); }
.tier-card .tier-price { margin-top: 14px; font-size: 14px; color: var(--fg-tertiary); }
.tier-card .tier-price b { font-size: 28px; font-weight: 800; color: var(--fg-primary); }
.tier-card .plan-points { flex: 1 1 auto; }
.tier-card .btn { margin-top: 20px; width: 100%; justify-content: center; text-align: center; }
.tier-card.is-featured { background: var(--indigo-800); border-color: var(--indigo-800); color: var(--fg-on-ink); box-shadow: 0 30px 50px -30px rgba(14, 20, 48, .7); --focus-ring: var(--focus-ring-on-dark); }
.tier-card.is-featured .tier-level, .tier-card.is-featured .tier-sub, .tier-card.is-featured .tier-price { color: var(--fg-on-ink-2); }
.tier-card.is-featured .tier-title, .tier-card.is-featured .tier-price b { color: var(--bg-elevated); }
.tier-card.is-featured .plan-points { color: #E4E6EE; border-top-color: rgba(247, 236, 218, .18); }
.tier-card.is-featured .plan-points li::before { color: var(--saffron-500); }
.tier-card.is-featured .btn-primary { background: var(--bg-canvas); border-color: var(--bg-canvas); color: var(--indigo-800); }

.home-faq { max-width: 900px; }

.intro-media--compact { grid-template-columns: 1.3fr 1fr; gap: 40px; }
.intro-media--compact .intro-media-text h2 { font-size: var(--fs-h2); }
.intro-media--compact .copy-lg { font-size: 17px; }
.intro-media--compact .intro-media-figure img { aspect-ratio: 16 / 10; }

.principle-band { background: var(--bg-ink-2); color: var(--fg-on-ink); --focus-ring: var(--focus-ring-on-dark); }
.principle-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px; }
.principle-row blockquote { flex: 1 1 520px; margin: 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--olive-500); font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; line-height: 1.8; }
.principle-row .arrow-link { margin-top: 0; color: var(--saffron-300); }
.principle-row .arrow-link:hover { color: var(--saffron-500); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-row > div { flex: 1 1 480px; }
.cta-row h2 { font-size: var(--fs-h2); }
.cta-row .lead { margin-top: 8px; font-size: 17px; }

@media (max-width: 860px) {
  .hero-visual { max-width: 340px; }
  .intro-media--compact { grid-template-columns: 1fr; gap: 24px; }
}


/* ---------------- «خدماتِ شرکتیِ سازمانی» (/enterprise, 2026-10-18) ----------------
   The company plans with a dedicated lawyer: a darker, quieter register than the consumer pages —
   ink and indigo, a copper hairline, generous space. */
.ent-hero { position: relative; overflow: hidden; background: var(--bg-ink); color: var(--fg-on-ink); padding: clamp(56px, 8vw, 104px) 0; --focus-ring: var(--focus-ring-on-dark); }
.ent-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 85% -10%, rgba(58, 67, 130, .55), transparent 70%), radial-gradient(600px 320px at 0% 110%, rgba(172, 74, 15, .22), transparent 70%); pointer-events: none; }
.ent-hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ent-eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--saffron-300); padding-bottom: 10px; border-bottom: 1px solid rgba(235, 194, 122, .35); }
.ent-hero h1 { margin: 18px 0 16px; color: var(--bg-elevated); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; font-weight: 800; }
.ent-hero-sub { max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); line-height: 2; color: var(--fg-on-ink-2); }
.ent-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ent-trust { border: 1px solid rgba(247, 236, 218, .16); border-top: 3px solid var(--copper-600); border-radius: var(--radius-lg); background: rgba(30, 36, 48, .72); padding: 26px 26px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.ent-trust-kicker { font-size: 13px; font-weight: 700; color: var(--saffron-300); letter-spacing: .03em; }
.ent-trust-name { margin-top: 10px; font-size: 22px; font-weight: 800; color: var(--bg-elevated); }
.ent-trust-facts { list-style: none; margin: 12px 0 0; padding: 0; }
.ent-trust-facts li { position: relative; padding: 6px 18px 6px 0; font-size: 14.5px; line-height: 1.8; color: var(--fg-on-ink-2); border-top: 1px solid rgba(247, 236, 218, .08); }
.ent-trust-facts li::before { content: ""; position: absolute; right: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--copper-500); }
.ent-trust-body { margin-top: 14px; font-size: 14.5px; line-height: 1.95; color: #E4E6EE; }
.ent-trust-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--saffron-300); text-decoration: none; }
.ent-trust-link:hover { color: var(--saffron-500); }

.ent-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ent-pillar { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg-elevated); padding: 24px 22px; box-shadow: var(--shadow-1); }
.ent-pillar-n { font-size: 28px; font-weight: 800; color: var(--copper-700); line-height: 1; }
.ent-pillar h3 { margin: 14px 0 8px; font-size: 19px; }
.ent-pillar p { margin: 0; font-size: 15px; line-height: 1.95; color: var(--fg-secondary); }
.ent-plus { margin-top: 22px; padding: 14px 18px; border-inline-start: 3px solid var(--indigo-700); background: var(--indigo-50); border-radius: var(--radius); font-size: 15.5px; line-height: 1.9; }
.ent-plus a { white-space: nowrap; }

.ent-steps { counter-reset: ent; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ent-steps li { counter-increment: ent; position: relative; padding: 56px 20px 22px; border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid var(--rule-soft); font-size: 15.5px; line-height: 1.95; }
.ent-steps li::before { content: counter(ent, persian); position: absolute; top: 16px; right: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-800); color: var(--bg-canvas); font-size: 14px; font-weight: 700; }

.ent-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ent-plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-top: 4px solid var(--indigo-700); border-radius: var(--radius-lg); background: var(--bg-elevated); padding: 28px 24px 24px; }
.ent-plan-badge { position: absolute; top: -13px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--copper-700); color: var(--bg-elevated); font-size: 12.5px; font-weight: 700; }
.ent-plan-title { font-size: 19px; font-weight: 800; }
.ent-plan-price { margin-top: 14px; font-size: 14px; color: var(--fg-tertiary); }
.ent-plan-price b { font-size: 30px; font-weight: 800; color: var(--fg-primary); }
.ent-plan-term { margin-top: 6px; font-size: 14px; color: var(--fg-tertiary); }
.ent-plan-features { flex: 1 1 auto; list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule-soft); }
.ent-plan-features li { position: relative; padding: 5px 24px 5px 0; font-size: 15px; line-height: 1.8; }
.ent-plan-features li::before { content: "\2713"; position: absolute; right: 0; top: 5px; color: var(--olive-700); font-weight: 800; }
.ent-plan-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.85; color: var(--fg-secondary); }
.ent-plan .btn { margin-top: 22px; width: 100%; text-align: center; }
.ent-plan--featured { background: var(--indigo-900); border-color: var(--indigo-900); border-top-color: var(--copper-600); color: var(--fg-on-ink); box-shadow: 0 30px 50px -30px rgba(14, 20, 48, .7); --focus-ring: var(--focus-ring-on-dark); }
.ent-plan--featured .ent-plan-title, .ent-plan--featured .ent-plan-price b { color: var(--bg-elevated); }
.ent-plan--featured .ent-plan-price, .ent-plan--featured .ent-plan-term, .ent-plan--featured .ent-plan-desc { color: var(--fg-on-ink-2); }
.ent-plan--featured .ent-plan-features { border-top-color: rgba(247, 236, 218, .16); }
.ent-plan--featured .ent-plan-features li::before { color: var(--saffron-500); }

.ent-kinds { max-width: 760px; }
.ent-kinds .cmp { min-width: 0; }
.ent-kinds .cmp .cmp-label { text-align: start; }
.ent-kinds .cmp td { white-space: nowrap; font-weight: 700; }
.ent-kind-desc { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--fg-tertiary); }

.ent-cta { background: var(--bg-ink-2); color: var(--fg-on-ink); padding: clamp(40px, 6vw, 64px) 0; --focus-ring: var(--focus-ring-on-dark); }
.ent-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.ent-cta h2 { color: var(--bg-elevated); font-size: var(--fs-h2); }
.ent-cta p { margin-top: 8px; color: var(--fg-on-ink-2); font-size: 16.5px; }
.ent-cta .ent-hero-cta { margin-top: 0; }

.ent-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 28px 0 8px; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--indigo-900); color: var(--fg-on-ink); border-top: 3px solid var(--copper-600); --focus-ring: var(--focus-ring-on-dark); }
.ent-teaser > div { flex: 1 1 420px; }
.ent-teaser-kicker { font-size: 13px; font-weight: 700; color: var(--saffron-300); }
.ent-teaser h3 { margin: 6px 0; color: var(--bg-elevated); font-size: 21px; }
.ent-teaser p { margin: 0; color: var(--fg-on-ink-2); font-size: 15.5px; line-height: 1.9; }
.ent-teaser .btn-primary { background: var(--bg-canvas); border-color: var(--bg-canvas); color: var(--indigo-800); }

@media (max-width: 980px) {
  .ent-hero-grid { grid-template-columns: 1fr; }
  .ent-pillars, .ent-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .ent-pillars, .ent-steps { grid-template-columns: 1fr; }
  .ent-trust { padding: 22px 20px 18px; }
}

/* Upload progress (case 50, 2026-10-26): lexir-ui.js, form[data-upload-progress]. */
.upload-progress { margin-top: 8px; flex-basis: 100%; }
.upload-progress progress { display: block; width: 100%; max-width: 420px; height: 10px; accent-color: var(--olive-600); }
.upload-fail { color: #b3261e; margin-top: 8px; flex-basis: 100%; }

/* «وکالتِ رسمی» (owner, 2026-10-31): the bold band on the home and team pages, and the /lawyer page. */
.lawyer-band { background: var(--indigo-900); color: var(--fg-on-ink); border-top: 4px solid var(--copper-600); padding: clamp(40px, 6vw, 68px) 0; --focus-ring: var(--focus-ring-on-dark); }
.lawyer-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.lawyer-band-copy { flex: 1 1 520px; }
.lawyer-band-kicker { display: inline-block; font-size: 14px; font-weight: 800; color: var(--saffron-300); }
.lawyer-band h2 { margin: 10px 0 12px; color: var(--bg-elevated); font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.5; }
.lawyer-band p { margin: 0; max-width: 680px; color: var(--fg-on-ink-2); font-size: 17px; line-height: 2; }
.lawyer-band-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lawyer-band-points li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(238, 196, 136, 0.45); color: var(--copper-100); font-size: 14.5px; font-weight: 700; }
.lawyer-band .lawyer-band-cta { flex: none; padding: 14px 30px; font-size: 17px; font-weight: 800; background: var(--copper-600); border-color: var(--copper-600); color: var(--bg-elevated); }
.lawyer-band .lawyer-band-cta:hover { background: var(--copper-500); border-color: var(--copper-500); color: var(--indigo-900); }

.lawyer-scope { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lawyer-scope .def-card h3 { font-size: 18px; }
.lawyer-scope .def-card p { margin: 8px 0 0; color: var(--fg-secondary); line-height: 1.9; }
.lawyer-request-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lawyer-choice { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.lawyer-choice legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.lawyer-choice-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-elevated); cursor: pointer; font-weight: 600; line-height: 1.6; }
.lawyer-choice-item input { width: auto; margin: 0; flex: none; accent-color: var(--copper-700); }
.lawyer-choice-item:has(input:checked) { border-color: var(--copper-600); background: var(--copper-50); box-shadow: 0 0 0 1px var(--copper-600); }
.lawyer-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lawyer-trust { padding: 24px 26px; border-radius: var(--radius-lg); background: var(--indigo-900); color: var(--fg-on-ink-2); border-top: 3px solid var(--copper-600); --focus-ring: var(--focus-ring-on-dark); }
.lawyer-trust h3 { color: var(--bg-elevated); }
.lawyer-trust-name { margin: 10px 0 4px; color: var(--bg-elevated); font-size: 18px; font-weight: 800; }
.lawyer-trust ul { margin: 6px 0 12px; padding-inline-start: 20px; line-height: 2; }
.lawyer-trust p { line-height: 1.95; }
.lawyer-trust .arrow-link { color: var(--copper-200); }

@media (max-width: 980px) {
  .lawyer-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lawyer-request-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lawyer-scope, .lawyer-form-row { grid-template-columns: 1fr; }
  .lawyer-band .lawyer-band-cta { width: 100%; text-align: center; }
}

/* The contact form (owner, 2026-11-24): a card beside a dark note, a reply question, the mobile only on a yes. */
.contact-request-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form-panel, .lawyer-form-panel { border-top: 3px solid var(--copper-600); box-shadow: var(--shadow-2); }
.contact-form-panel { padding: clamp(22px, 3.4vw, 36px); }
.contact-kicker { display: inline-block; font-size: 14px; font-weight: 800; color: var(--copper-700); }
.contact-form-panel h2 { margin: 6px 0 8px; font-size: clamp(22px, 2.8vw, 28px); }
.contact-lead { margin: 0 0 var(--space-4); color: var(--fg-secondary); line-height: 1.9; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-optional { color: var(--fg-tertiary); font-weight: 400; font-size: 13px; }
.contact-reply { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-reply legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.contact-phone { display: none; }
.contact-form:has(input[name="reply"][value="yes"]:checked) .contact-phone { display: block; }
@supports not selector(:has(*)) { .contact-phone { display: block; } }
.contact-submit { justify-self: start; padding-inline: 34px; }
.contact-aside ul { padding-inline-start: 20px; }
@media (max-width: 980px) { .contact-request-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .contact-form-row, .contact-reply { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; justify-self: stretch; }
}

/* The blog (owner, 2026-10-31): subjects, search, a featured post, cards with subject art, the post page. */
.blog-art { display: flex; align-items: center; justify-content: center; color: var(--bg-elevated); background: var(--indigo-800); }
.blog-art svg { width: 56px; height: 56px; opacity: .95; }
.blog-art--family { background: linear-gradient(135deg, #8F400E, #C96312); }
.blog-art--criminal { background: linear-gradient(135deg, #0E1430, #3A4382); }
.blog-art--property { background: linear-gradient(135deg, #3B4A12, #6B8222); }
.blog-art--labor { background: linear-gradient(135deg, #283068, #5C66A4); }
.blog-art--cheque { background: linear-gradient(135deg, #BE7E10, #E2A32C); }
.blog-art--contract { background: linear-gradient(135deg, #1E2430, #3A4150); }
.blog-art--litigation { background: linear-gradient(135deg, #70300B, #AC4A0F); }
.blog-art--guide { background: linear-gradient(135deg, #29360D, #4F6318); }

.blog-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.blog-search { display: flex; gap: 10px; max-width: 640px; }
.blog-search input { flex: 1 1 auto; min-width: 0; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-elevated); color: var(--fg-primary); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.blog-filter span { color: var(--fg-tertiary); font-weight: 500; font-size: 13px; }
.blog-filter:hover { border-color: var(--copper-600); color: var(--copper-800); }
.blog-filter.is-on { background: var(--indigo-800); border-color: var(--indigo-800); color: var(--bg-canvas); }
.blog-filter.is-on span { color: var(--indigo-100); }
.blog-result { margin: 0 0 18px; color: var(--fg-secondary); }

.blog-chip { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--copper-50); color: var(--copper-800); font-size: 12.5px; font-weight: 700; }
.blog-card-meta { color: var(--fg-tertiary); font-size: 13.5px; }

.blog-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-bottom: 26px; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elevated); color: inherit; text-decoration: none; box-shadow: var(--shadow-2); transition: box-shadow var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard); }
.blog-featured:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -12px rgba(20,24,30,.28); color: inherit; }
.blog-featured .blog-art { min-height: 240px; }
.blog-featured .blog-art svg { width: 96px; height: 96px; }
.blog-featured-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 34px); }
.blog-featured-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.55; color: var(--fg-primary); }
.blog-featured-summary { color: var(--fg-secondary); font-size: 16.5px; line-height: 2; }
.blog-read { margin-top: auto; color: var(--copper-700); font-weight: 700; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elevated); color: inherit; text-decoration: none; transition: box-shadow var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard); }
.blog-card:hover { transform: translateY(-2px); border-color: var(--copper-200); box-shadow: 0 10px 24px -12px rgba(20,24,30,.25); color: inherit; }
.blog-card .blog-art { height: 120px; }
.blog-card-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.blog-card-title { font-size: 17.5px; font-weight: 800; line-height: 1.7; color: var(--fg-primary); }
.blog-card-summary { color: var(--fg-secondary); font-size: 14.5px; line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-card-meta { margin-top: auto; }

.blog-post-head h1 { max-width: 860px; }
.blog-crumb { margin-bottom: 10px; font-size: 14px; color: var(--fg-tertiary); }
.blog-crumb a { color: var(--copper-700); text-decoration: none; }
.blog-post-meta { margin: 10px 0 0; color: var(--fg-tertiary); }
.blog-post-layout.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.blog-post-layout.has-toc .reading { margin-inline: 0; }
.blog-toc { position: sticky; top: 96px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg-elevated); font-size: 14.5px; }
.blog-toc ol { margin: 10px 0 0; padding-inline-start: 22px; line-height: 2; list-style-type: persian; }
.blog-toc a { color: var(--fg-secondary); text-decoration: none; }
.blog-toc a:hover { color: var(--copper-700); }
.post-anchor { display: block; position: relative; top: -96px; visibility: hidden; }
.blog-lead { font-size: 18px; color: var(--fg-secondary); }
.blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 30px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--indigo-900); color: var(--fg-on-ink-2); border-top: 3px solid var(--copper-600); --focus-ring: var(--focus-ring-on-dark); }
.blog-cta > div { flex: 1 1 360px; }
.blog-cta b { display: block; margin-bottom: 4px; color: var(--bg-elevated); font-size: 18px; }
.blog-cta p { margin: 0; line-height: 1.9; }
.blog-cta .btn-primary { background: var(--copper-600); border-color: var(--copper-600); color: var(--bg-elevated); }
.blog-cta--lawyer { margin-top: 14px; background: var(--bg-surface); color: var(--fg-secondary); border: 1px solid var(--rule); border-top: 3px solid var(--indigo-800); }
.blog-cta--lawyer b { color: var(--fg-primary); }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .blog-art { min-height: 160px; }
  .blog-post-layout.has-toc { grid-template-columns: 1fr; gap: 20px; }
  .blog-toc { position: static; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-search { flex-direction: column; }
  .blog-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .blog-filter { flex: none; }
}

