/* ATHAR site styles. Tokens and components from the ATHAR design system (theme "trace"). */

:root {
  --bg: #f2f0e9;
  --surface: #e9e7df;
  --paper: #faf9f4;
  --fg: #222420;
  --muted: #656860;
  --line: rgba(29,33,29,.16);
  --accent: #a86022;
  --accent2: #e8a455;
  --button: #232622;
  --button-fg: #faf9f4;
  --online: #3fae63;
  --dark: #232622;
  --dark-muted: #c9ccc4;
  --dark-line: rgba(250,249,244,.2);
  --gutter: clamp(20px, 6.9vw, 100px);
  --max: 1480px;
  --ease: cubic-bezier(.22,.75,.2,1);
  --sans: 'Manrope', Arial, sans-serif;
  --serif: 'EB Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --arabic: 'Amiri', 'Noto Naskh Arabic', Georgia, serif;
  --radius-card: 18px;
  --radius-lg: 28px;
  --radius-pill: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
h1, h2, h3, h4, p, ul, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.04; }
h1 { font-size: clamp(44px, 5.9vw, 84px); letter-spacing: -0.065em; line-height: 1; }
h2 { font-size: clamp(36px, 4.45vw, 64px); letter-spacing: -0.055em; line-height: 1; }
h2.h2-sm { font-size: clamp(32px, 3.9vw, 56px); }
h2.h2-xs { font-size: clamp(28px, 2.8vw, 40px); }
h3 { font-size: clamp(21px, 1.6vw, 24px); letter-spacing: -0.035em; font-weight: 550; line-height: 1.2; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; background: var(--button); color: var(--button-fg); padding: 10px 18px; border-radius: var(--radius-pill); z-index: 99; }
.skip:focus { top: 8px; }

.wrap { width: calc(100% - var(--gutter) * 2); max-width: var(--max); margin-inline: auto; }
.section { padding-block: clamp(64px, 7vw, 100px); }
.section.tight-top { padding-top: 20px; }
.section.no-top { padding-top: 0; }
.bg-surface { background: var(--surface); }
.bg-dark { background: var(--dark); color: var(--button-fg); }
.bg-dark a { color: var(--button-fg); }
.bg-dark a:hover { color: var(--accent2); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.bg-dark .muted, .dark-muted { color: var(--dark-muted); }
.small { font-size: 14px; line-height: 1.7; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 44px; }
.head-row p { max-width: 420px; }
.split { display: grid; grid-template-columns: 0.8fr 1.3fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 5.5vw, 80px); align-items: start; }
.hero { padding-block: 36px clamp(64px, 6vw, 90px); }
.hero-home { padding-block: clamp(40px, 5vw, 72px) 64px; background: radial-gradient(38% 46% at 70% 30%, rgba(232,164,85,.22), transparent 70%); }
[dir="rtl"] .hero-home { background: radial-gradient(38% 46% at 30% 30%, rgba(232,164,85,.2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: end; }
.hero-home .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; }
.hero .stack { gap: 26px; }
.hero-narrow { max-width: 1100px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gap-lg { gap: 28px; }
.border-top { border-top: 1px solid var(--line); }

/* Breadcrumb */
.crumbs { padding-top: 40px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--fg); }

/* Header */
.site-header { padding-top: 22px; position: relative; z-index: 20; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 13px 13px 13px 26px; background: var(--surface); box-shadow: 0 10px 40px rgba(25,29,25,.06); }
[dir="rtl"] .nav-wrap { padding: 13px 26px 13px 13px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-mark { width: 30px; height: 33px; flex: none; }
.brand-name { font-family: var(--sans); font-size: 20px; letter-spacing: 0.19em; font-weight: 750; line-height: 1; }
.brand .arabic { font-family: var(--arabic); font-size: 27px; margin-inline-start: 6px; color: var(--accent); line-height: 1; }
.desktop-nav { display: flex; gap: clamp(20px, 2.6vw, 38px); margin-inline: auto; }
.desktop-nav a { font-size: 14px; position: relative; padding: 10px 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 1px; height: 1px; background: var(--accent); transition: right .3s; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current]::after { right: 0; }
.lang-ar { font-family: var(--arabic) !important; font-size: 17px !important; }
.lang-en { font-family: var(--sans) !important; font-size: 14px !important; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); padding: 14px 26px; min-height: 48px; font-size: 12px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; background: var(--button); color: var(--button-fg); white-space: nowrap; }
.nav-cta:hover { color: var(--button-fg); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

/* Buttons and links */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 30px; min-height: 54px; border-radius: var(--radius-pill); background: var(--button); color: var(--button-fg); font-size: 14px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background .3s, transform .3s var(--ease), box-shadow .3s, color .3s, border-color .3s; }
.pill-btn:hover { color: var(--button-fg); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.pill-btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.pill-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.pill-btn.light { background: #f4f1e8; color: #21241f; }
.pill-btn.light:hover { color: #21241f; }
.pill-btn.ghost-light { background: transparent; color: var(--button-fg); border-color: rgba(250,249,244,.4); }
.pill-btn.ghost-light:hover { color: var(--accent2); border-color: var(--accent2); }
.pill-btn.warm { background: var(--accent2); color: #21241f; }
.pill-btn svg, .text-link svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .pill-btn svg, [dir="rtl"] .text-link svg { transform: scaleX(-1); }
.text-link { display: inline-flex; gap: 28px; align-items: center; align-self: flex-start; border-bottom: 1px solid; padding-bottom: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; transition: gap .25s; }
.text-link:hover { gap: 38px; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; box-shadow: 0 3px 24px rgba(0,0,0,.1); border: 1px solid var(--line); z-index: 30; }
[dir="rtl"] .whatsapp-float { right: auto; left: 22px; }
.whatsapp-float:hover { color: var(--bg); }
.whatsapp-float svg { width: 22px; height: 22px; }

.micro { font: 500 12px/1.5 var(--sans); letter-spacing: 0.17em; text-transform: uppercase; }
.accent { color: var(--accent); }
.accent-word { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.ph { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); display: grid; place-items: center; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.ph-4-3 { aspect-ratio: 4 / 3; }
.ph-16-10 { aspect-ratio: 16 / 10; }
.ph-16-7 { aspect-ratio: 16 / 7; border-radius: 22px; }

/* Chips, tags, badges */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.topic-btn { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 11px 20px; font-size: 14px; color: var(--fg); white-space: nowrap; }
.service-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.service-tags li { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 15px; color: var(--muted); font-size: 13px; }
.trust-badge { border: 1px solid var(--accent); border-radius: var(--radius-pill); padding: 8px 17px; color: var(--accent); font-size: 13px; white-space: nowrap; }
.trust-badge b { font-weight: 500; margin-inline-end: 7px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; border-block: 1px solid var(--line); padding: 30px 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.2; }
.stat-label { font-size: 14px; color: var(--muted); }

/* SERP and AI answer cards (home hero) */
.proof { display: flex; flex-direction: column; gap: 18px; }
.serp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 40px rgba(25,29,25,.06); }
.serp-title { font-size: 20px; color: #1a0dab; letter-spacing: -0.01em; line-height: 1.3; }
.serp-copy { font-size: 14px; line-height: 1.6; color: #4d5156; }
.ai-card { background: var(--dark); color: var(--button-fg); border-radius: var(--radius-card); padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; margin-inline-start: 48px; }
.ai-card b { color: var(--accent2); font-weight: 600; }
.ai-card .small, .serp .small { font-size: 12px; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.card-on-surface { background: var(--bg); }
.card-line { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; display: flex; flex-direction: column; gap: 8px; color: var(--fg); transition: border-color .3s; }
.card-line:hover { border-color: var(--accent); color: var(--fg); }
.card-line .t { font-size: 21px; letter-spacing: -0.03em; line-height: 1.25; }
.card-line .d { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card-dark { color: var(--button-fg); border: 1px solid rgba(250,249,244,.18); border-radius: var(--radius-card); padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color .3s; }
.card-dark:hover { border-color: var(--accent2); color: var(--button-fg); }
.card-dark .t { font-size: 21px; letter-spacing: -0.03em; display: block; }
.card-dark .d { font-size: 13px; color: var(--dark-muted); display: block; margin-top: 4px; }
.arrow { color: var(--accent); font-size: 20px; flex: none; }
.bg-dark .arrow { color: var(--accent2); }
.card-link { background: var(--surface); border-radius: var(--radius-card); padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 20px; letter-spacing: -0.03em; }
.icon { width: 24px; height: 24px; color: var(--accent); }

/* Service card */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 70px); }
.service-card { border-top: 1px solid var(--line); padding-top: 29px; display: flex; flex-direction: column; }
.service-card h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; font-weight: 500; }
.service-copy { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-card .text-link { margin-top: 28px; }

/* Tick list */
.ticks { list-style: none; padding: 0; display: grid; gap: 16px 40px; font-size: 16px; line-height: 1.6; }
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "\2197"; color: var(--accent); flex: none; }
[dir="rtl"] .ticks li::before { content: "\2196"; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); }
.process > div { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 10px; border-inline-start: 1px solid var(--dark-line); }
.process > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.process .when { font-family: var(--mono); font-size: 13px; color: var(--accent2); }
.process .what { font-size: 24px; letter-spacing: -0.03em; }
.process p { font-size: 14px; line-height: 1.7; color: var(--dark-muted); }

/* Facts panel */
.facts { background: var(--surface); border-radius: var(--radius-card); padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact .k { font-size: 13px; color: var(--muted); }
.fact .v { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.fact .v.big { font-size: 36px; letter-spacing: -0.05em; }
.fact .cur { font-size: 14px; color: var(--accent); letter-spacing: 0; margin-inline-end: 6px; }

/* Price card */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.price-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-card); position: relative; display: flex; flex-direction: column; min-width: 0; }
.bg-surface .price-card { background: var(--bg); }
.price-card.popular { border-color: var(--accent); }
.price-name { font-size: 21px; letter-spacing: -0.04em; margin-bottom: 23px; font-weight: 550; }
.price-amount { font-size: clamp(34px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.055em; line-height: 1.1; white-space: nowrap; }
.price-amount .currency { font-size: 14px; color: var(--accent); letter-spacing: 0; margin-inline-end: 6px; }
.price-amount .per { font-size: 14px; color: var(--muted); letter-spacing: 0; margin-inline-start: 6px; }
.price-note { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
.price-features { padding: 21px 0 20px; margin: 20px 0 25px; border-top: 1px solid var(--line); list-style: none; flex: 1; display: flex; flex-direction: column; gap: 11px; }
.price-features li { font-size: 14px; line-height: 1.6; display: flex; gap: 11px; }
.price-features li::before { content: "\2197"; color: var(--accent); }
[dir="rtl"] .price-features li::before { content: "\2196"; }
.price-card .pill-btn { width: 100%; min-height: 50px; padding: 12px 20px; justify-content: space-between; }
.popular-label { position: absolute; right: 25px; top: 33px; font-size: 12px; letter-spacing: 0.09em; color: var(--accent); text-transform: uppercase; display: flex; gap: 7px; align-items: center; }
[dir="rtl"] .popular-label { right: auto; left: 25px; letter-spacing: 0; }
.popular-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Package strip (industry pages) */
.package { border: 1px solid var(--accent); border-radius: var(--radius-card); padding: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; }
.package .amount { font-size: clamp(38px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.055em; white-space: nowrap; }
.package .amount .currency { font-size: 15px; color: var(--accent); letter-spacing: 0; margin-inline-end: 8px; }

/* Browser mock */
.browser { border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--paper); overflow: hidden; box-shadow: 0 10px 40px rgba(25,29,25,.06); }
.browser-bar { height: 40px; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(29,33,29,.2); }
.browser-bar span { margin-inline-start: 16px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.browser-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.browser-body .t { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; }
.mock-pill { display: inline-block; background: var(--dark); color: var(--button-fg); border-radius: var(--radius-pill); padding: 12px 22px; font-size: 13px; }
.mock-pill.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.thumbs i { aspect-ratio: 1; border-radius: 12px; background: var(--surface); }

/* Findings */
.finding { background: var(--bg); border-radius: var(--radius-card); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.finding .n { font-family: var(--mono); font-size: 30px; color: var(--accent); }
.finding .t { font-size: 20px; letter-spacing: -0.03em; }
.finding p { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* Results row (case study) */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.results > div { padding: 36px 32px; display: flex; flex-direction: column; gap: 6px; border-inline-start: 1px solid var(--line); }
.results > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.results .v { font-size: clamp(40px, 3.9vw, 56px); font-weight: 500; letter-spacing: -0.055em; line-height: 1.1; }
.results .v.accent { color: var(--accent); }
.results .k { font-size: 15px; color: var(--muted); }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; font-size: 14px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin-top: 4px; font-size: 17px; }
.quote-block { background: var(--surface); border-radius: 22px; padding: clamp(32px, 4vw, 56px) clamp(28px, 4.4vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.quote-block blockquote { font-size: clamp(22px, 2vw, 28px); line-height: 1.5; letter-spacing: -0.02em; }
.quote-block figcaption { font-size: 14px; color: var(--muted); }

/* Work cards */
.work-card { display: flex; flex-direction: column; gap: 14px; color: var(--fg); }
.work-card:hover { color: var(--fg); }
.work-card:hover .work-title { color: var(--accent); }
.work-title { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.18; letter-spacing: -0.04em; transition: color .3s; }
.work-result { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Founder */
.founder { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.founder-portrait { position: relative; line-height: 0; display: inline-block; padding: 2px; background: var(--fg); border-radius: 50%; }
.founder-portrait img, .founder-portrait .ph-round { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; display: block; background: var(--surface); }
.founder-portrait .online { position: absolute; right: 5px; bottom: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--online); border: 2px solid var(--surface); }
.founder-details { display: grid; grid-template-columns: auto auto; gap: 4px 16px; align-items: baseline; }
.founder-name { font-size: 25px; font-weight: 550; letter-spacing: -0.035em; line-height: 1.3; white-space: nowrap; }
.founder-status { font-size: 12px; letter-spacing: 0.09em; color: #2b7a45; align-self: center; white-space: nowrap; }
.founder-location { font-size: 15px; color: var(--muted); grid-column: 1 / -1; }
.founder-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.testimonial blockquote { font-size: clamp(20px, 1.75vw, 24px); line-height: 1.55; letter-spacing: -0.02em; }
.testimonial figcaption { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 25px; list-style: none; cursor: pointer; font-size: 18px; letter-spacing: -0.02em; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 300; transition: transform .3s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 28px 26px 0; font-size: 15px; line-height: 1.85; color: var(--muted); }
[dir="rtl"] .faq-answer { padding: 0 0 26px 28px; }

/* Closing call to action */
.cta-box { background: var(--dark); color: var(--button-fg); border-radius: var(--radius-lg); padding: clamp(36px, 4.4vw, 64px) clamp(28px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-box h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.05em; }
.cta-box p { color: var(--dark-muted); margin-top: 12px; }
.cta-box a:not(.pill-btn) { color: var(--button-fg); }
.aside-cta { background: var(--dark); color: var(--button-fg); border-radius: var(--radius-card); padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.aside-cta .t { font-size: 24px; letter-spacing: -0.03em; display: block; }
.aside-cta .d { font-size: 15px; color: var(--dark-muted); display: block; margin-top: 6px; }

/* Contact block and brief form */
.contact-box { background: var(--dark); color: var(--button-fg); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 5vw, 72px); }
.contact-box h2 { font-size: clamp(36px, 4.2vw, 60px); }
.contact-lines { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.contact-lines a { color: var(--button-fg); }
.brief-form { --line: rgba(250,249,244,.25); --muted: #c9ccc4; color: var(--button-fg); }
.brief-form.on-light { --line: rgba(29,33,29,.16); --muted: #656860; color: var(--fg); }
.brief-form label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
[dir="rtl"] .brief-form label { letter-spacing: 0; font-size: 15px; }
.brief-form input, .brief-form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: inherit; width: 100%; padding: 10px 0 16px; font-size: 16px; font-family: inherit; border-radius: 0; }
.brief-form textarea { min-height: 126px; resize: vertical; line-height: 1.8; }
.brief-form ::placeholder { color: var(--muted); opacity: .78; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.form-field-full { margin-top: 28px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.form-note { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 240px; }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 7vw, 100px); align-items: start; }
.prose { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.prose h1 { font-size: clamp(40px, 4.7vw, 68px); letter-spacing: -0.06em; line-height: 1.02; }
.prose h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.05em; margin-top: 16px; scroll-margin-top: 24px; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; }
.prose ul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .answer { font-size: clamp(19px, 1.55vw, 22px); line-height: 1.6; letter-spacing: -0.01em; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.byline b { color: var(--fg); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--fg); flex: none; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-card); overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap th { background: var(--surface); text-align: start; padding: 16px 20px; font-weight: 600; }
.table-wrap td { padding: 16px 20px; border-top: 1px solid var(--line); }
.table-wrap td.num { font-family: var(--mono); font-size: 14px; }
.source { font-size: 13px; color: var(--muted); margin-top: -16px !important; }
.toc { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.toc a { font-size: 14px; }
.toc .micro { color: var(--muted); }
.toc .related { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.guide-card { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--fg); }
.guide-card .t { font-size: 22px; line-height: 1.25; letter-spacing: -0.03em; }
.guide-card .d { font-size: 13px; color: var(--muted); }
.legal h2 { font-size: clamp(24px, 2.2vw, 32px); margin-top: 24px; }
.legal p, .legal li { font-size: 16px; }

/* Footer */
.site-footer { background: var(--surface); padding-block: 64px 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .micro { color: var(--muted); margin-bottom: 6px; }
.footer-about { display: flex; flex-direction: column; gap: 16px; }
.footer-about p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 280px; }
.footer-about .contact { color: var(--fg); line-height: 1.8; }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* Arabic */
[lang="ar"] body, body[lang="ar"], html[lang="ar"] body { font-family: var(--arabic); font-size: 19px; line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; font-weight: 700; line-height: 1.3; }
html[lang="ar"] h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.25; }
html[lang="ar"] h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.25; }
html[lang="ar"] .lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.8; max-width: 720px; }
html[lang="ar"] .pill-btn { font-size: 18px; }
html[lang="ar"] .nav-cta { font-size: 16px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .desktop-nav a { font-size: 18px; }
html[lang="ar"] .service-copy, html[lang="ar"] .card p, html[lang="ar"] .finding p, html[lang="ar"] .process p, html[lang="ar"] .price-note, html[lang="ar"] .price-features li, html[lang="ar"] .faq-answer, html[lang="ar"] .card-line .d { font-size: 18px; line-height: 1.8; }
html[lang="ar"] .faq-item summary { font-size: 21px; letter-spacing: 0; }
html[lang="ar"] .stat-label, html[lang="ar"] .fact .k { font-size: 17px; }
html[lang="ar"] .micro { letter-spacing: 0; text-transform: none; font-family: var(--arabic); font-size: 15px; }
html[lang="ar"] .text-link { font-size: 17px; letter-spacing: 0; }
html[lang="ar"] .card-line .t, html[lang="ar"] .card-dark .t, html[lang="ar"] .process .what, html[lang="ar"] .finding .t { letter-spacing: 0; font-weight: 700; }
html[lang="ar"] .ticks { font-size: 19px; }
html[lang="ar"] .footer-col, html[lang="ar"] .footer-about p { font-size: 17px; }
.num, .latin { font-family: var(--sans); }
html[lang="ar"] .stat-value.latin, html[lang="ar"] .price-amount { font-family: var(--sans); }

/* Responsive */
@media (max-width: 1180px) {
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 13px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .desktop-nav, .nav-wrap > .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: none; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 18px 24px; flex-direction: column; box-shadow: 0 10px 40px rgba(25,29,25,.06); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero-grid, .hero-home .hero-grid, .split, .split-even, .article-grid, .contact-box { grid-template-columns: minmax(0, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .process > div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .package { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .nav-wrap { padding: 10px 10px 10px 20px; }
  [dir="rtl"] .nav-wrap { padding: 10px 20px 10px 10px; }
  .brand-name { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .price-grid, .service-grid, .ticks.two, .form-fields, .results, .facts, .meta-list { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process > div { padding-inline-start: 0 !important; border-inline-start: 0 !important; border-top: 1px solid var(--dark-line); padding-top: 22px; }
  .process > div:first-child { border-top: 0; }
  .results > div { padding-inline: 0 !important; border-inline-start: 0 !important; border-top: 1px solid var(--line); }
  .results > div:first-child { border-top: 0; }
  .ai-card { margin-inline-start: 0; }
  .stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .head-row { margin-bottom: 32px; }
  .cta-box .row, .hero .row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Section with a hairline inside the content width */
.border-top-wrap { padding-top: 0; }
.border-top-wrap > .wrap { border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 90px); }

/* Header dropdown submenus */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-sub { position: absolute; top: 100%; inset-inline-start: -18px; min-width: 230px; display: none; flex-direction: column; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(25,29,25,.1); z-index: 60; }
.nav-sub a { padding: 9px 10px !important; white-space: nowrap; border-radius: 8px; }
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: var(--bg); }
.nav-dd:hover .nav-sub, .nav-dd:focus-within .nav-sub { display: flex; }

/* Centered page headings */
.hero .hero-narrow { margin-inline: auto; text-align: center; align-items: center; }
.hero .hero-narrow h1 { margin-inline: auto; max-width: 20ch; text-wrap: balance; }
.hero .hero-narrow .lede { margin-inline: auto; }
.hero .hero-narrow .row { justify-content: center; }
.hero:not(.hero-home) .hero-grid { grid-template-columns: minmax(0,1fr) !important; justify-items: center; text-align: center; }
.hero:not(.hero-home) .hero-grid > .stack { align-items: center; max-width: 900px; }
.hero:not(.hero-home) .hero-grid h1 { margin-inline: auto; text-wrap: balance; }
.hero:not(.hero-home) .hero-grid .lede { margin-inline: auto; }
.hero:not(.hero-home) .hero-grid .row { justify-content: center; }
.hero:not(.hero-home) .hero-grid > :not(.stack) { width: 100%; max-width: 720px; text-align: start; }
