/* تيكسا — لماذا نحن والأرقام | v1.0.0 */
.txw {
	--txw-dark: #1D1C1A; --txw-accent: #7E5E37; --txw-gold: #C9A879; --txw-cream: #EEE9E3;
	--txw-light: #FAF8F5; --txw-card: #FFFFFF; --txw-text: #1D1C1A; --txw-muted: #5E5850; --txw-border: #DDD4C8;
	--txw-font: 'Tajawal'; --txw-title: 42px; --txw-num: 46px; --txw-max: 1200px; --txw-pad: 80px; --txw-radius: 18px;
	--txw-on-dark: #EEE9E3; --txw-on-dark-muted: #C7BFB4; --txw-dark-line: rgba(238, 233, 227, .14);
	box-sizing: border-box; direction: rtl; text-align: right;
	font-family: var(--txw-font), system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	color: var(--txw-text); background: var(--txw-cream);
	padding: var(--txw-pad) 20px; line-height: 1.6;
}
.txw *, .txw *::before, .txw *::after { box-sizing: border-box; }
.txw h2, .txw h3, .txw p { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: 0; text-transform: none; border: 0; }
.txw a { text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }
.txw svg { display: block; flex: none; }
.txw__inner { --t: var(--txw-title); --n: var(--txw-num); max-width: var(--txw-max); margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }

/* Shared */
.txw-title { font-size: var(--t); line-height: 1.3; font-weight: 800; color: inherit; }
.txw-sub { font-size: 17px; line-height: 1.75; color: var(--txw-muted); max-width: 640px; }
.txw-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--txw-accent); }
.txw-eyebrow i { display: none; width: 32px; height: 1px; background: currentColor; }
.txw-since { font-size: 14px; font-weight: 700; color: var(--txw-accent); }
.txw-label { font-size: 15px; color: var(--txw-muted); }
.txw-num { display: inline-flex; align-items: baseline; font-size: var(--n); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.txw-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--txw-accent); }
.txw-link:hover { opacity: .8; }
.txw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--txw-accent); color: #fff; font-size: 16px; font-weight: 700; }
.txw-btn:hover { background: var(--txw-dark); color: #fff; }
.txw a:focus-visible { outline: 2px solid var(--txw-accent); outline-offset: 3px; border-radius: 4px; }
.txw-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.txw-head .txw-eyebrow i { display: block; }
.txw-head .txw-sub { margin: 0 auto; }

/* ===== A · Classic ===== */
.txw--a { background: var(--txw-cream); }
.txw-a-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.txw-a-card { background: var(--txw-light); border: 1px solid var(--txw-border); border-radius: var(--txw-radius); padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; transition: transform .25s, box-shadow .25s; }
.txw-a-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29, 28, 26, .08); }
.txw-a-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--txw-card); border: 1px solid var(--txw-border); display: flex; align-items: center; justify-content: center; color: var(--txw-accent); }
.txw-a-card h3 { font-size: 20px; font-weight: 700; }
.txw-a-card p { font-size: 15px; line-height: 1.7; color: var(--txw-muted); }
.txw-a-card.is-featured { background: var(--txw-dark); border-color: var(--txw-dark); color: var(--txw-on-dark); }
.txw-a-card.is-featured .txw-a-ico { background: rgba(255, 255, 255, .06); border-color: var(--txw-dark-line); color: var(--txw-gold); }
.txw-a-card.is-featured p { color: var(--txw-on-dark-muted); }
.txw-a-band { background: var(--txw-dark); color: var(--txw-on-dark); border-radius: calc(var(--txw-radius) + 4px); padding: 44px 48px; display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); align-items: center; }
.txw-a-intro { display: flex; flex-direction: column; gap: 10px; padding-left: 24px; }
.txw-a-intro h3 { font-size: 28px; font-weight: 800; }
.txw-a-band .txw-since, .txw-a-band .txw-link { color: var(--txw-gold); }
.txw-a-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border-right: 1px solid var(--txw-dark-line); padding: 6px 12px; }
.txw-a-sico { color: var(--txw-gold); opacity: .9; }
.txw-a-stat .txw-num { color: var(--txw-gold); }
.txw-a-stat .txw-label { color: var(--txw-on-dark-muted); }

/* ===== B · Editorial ===== */
.txw--b { background: var(--txw-light); }
.txw--b .txw__inner { gap: 72px; }
.txw-b-top { display: flex; gap: 88px; align-items: flex-start; }
.txw-b-intro { flex: 0 0 380px; display: flex; flex-direction: column; gap: 20px; }
.txw--b .txw-title { font-size: calc(var(--t) * 1.22); line-height: 1.25; }
.txw-underline { align-self: flex-start; margin-top: 6px; padding-bottom: 6px; border-bottom: 2px solid var(--txw-accent); font-size: 16px; font-weight: 700; color: var(--txw-text); }
.txw-underline:hover { color: var(--txw-accent); }
.txw-b-list { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; row-gap: 40px; }
.txw-b-item { border-top: 1px solid var(--txw-border); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.txw-b-item.is-featured { border-top: 2px solid var(--txw-accent); padding-top: 23px; }
.txw-b-no { font-size: 15px; font-weight: 700; color: var(--txw-accent); text-align: right; }
.txw-b-item h3 { font-size: 23px; font-weight: 700; }
.txw-b-item p { font-size: 16px; line-height: 1.75; color: var(--txw-muted); }
.txw-b-stats { border-top: 1px solid var(--txw-text); padding-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.txw-b-stats-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.txw-b-stats-head h3 { font-size: 20px; font-weight: 800; }
.txw-b-stats-head .txw-link { margin-right: auto; }
.txw-b-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.txw-b-stat { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 32px; border-right: 1px solid var(--txw-border); }
.txw-b-stat:first-child { padding-right: 0; border-right: 0; }
.txw-b-stat .txw-num { font-size: calc(var(--n) * 1.3); line-height: 1; justify-content: flex-end; }
.txw-b-stat .txw-affix { color: var(--txw-accent); }

/* ===== C · Dark ===== */
.txw--c { background: var(--txw-dark); color: var(--txw-on-dark); }
.txw--c .txw-eyebrow, .txw--c .txw-since, .txw--c .txw-link { color: var(--txw-gold); }
.txw--c .txw-sub, .txw--c .txw-label { color: var(--txw-on-dark-muted); }
.txw--c .txw-link:focus-visible, .txw--c .txw-btn:focus-visible { outline-color: var(--txw-gold); }
.txw-rule { width: 64px; height: 2px; background: var(--txw-gold); }
.txw-c-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.txw-c-col { padding: 8px 32px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--txw-dark-line); }
.txw-c-col:first-child { border-right: 0; }
.txw-c-ico { width: 56px; height: 56px; border: 1px solid var(--txw-gold); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--txw-gold); }
.txw-c-col.is-featured .txw-c-ico { background: var(--txw-gold); color: var(--txw-dark); }
.txw-c-col h3 { font-size: 21px; font-weight: 700; }
.txw-c-col p { font-size: 15px; line-height: 1.75; color: var(--txw-on-dark-muted); }
.txw-c-stats { display: flex; flex-direction: column; gap: 20px; }
.txw-c-stats-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.txw-c-stats-head > div { display: flex; align-items: baseline; gap: 14px; }
.txw-c-stats-head h3 { font-size: 24px; font-weight: 800; }
.txw-c-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.txw-c-card { background: rgba(255, 255, 255, .04); border: 1px solid var(--txw-dark-line); border-radius: var(--txw-radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s; }
.txw-c-card:hover { border-color: var(--txw-gold); }
.txw-c-sico { color: var(--txw-gold); margin-bottom: 6px; }
.txw-c-card .txw-num { color: var(--txw-gold); justify-content: flex-end; }

/* ===== D · Bento ===== */
.txw--d { background: var(--txw-cream); }
.txw--d .txw__inner { gap: 36px; }
.txw-d-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.txw-d-head > div { display: flex; flex-direction: column; gap: 10px; }
.txw-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--txw-text); border-radius: 999px; font-size: 16px; font-weight: 700; color: var(--txw-text); white-space: nowrap; }
.txw-pill:hover { background: var(--txw-dark); border-color: var(--txw-dark); color: var(--txw-on-dark); }

/* Header button */
.txw .txw-hb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; white-space: nowrap; font-weight: var(--hb-fw, 700); color: var(--hb-c); border: var(--hb-bw, 1px) solid var(--hb-bd); border-radius: var(--hb-r, 999px); background: transparent; line-height: 1.2; }
.txw .txw-hb:hover, .txw .txw-hb:focus-visible { color: var(--hb-hc); background: var(--hb-hbg); border-color: var(--hb-hbd); }
.txw .txw-hb--filled { background: var(--hb-bg); }
.txw .txw-hb--text { border-color: transparent; padding-left: 0 !important; padding-right: 0 !important; min-height: 0 !important; background: none !important; }
.txw .txw-hb--text span { border-bottom: 2px solid var(--hb-bd); padding-bottom: 3px; }
.txw .txw-hb--text:hover { border-color: transparent; }
.txw .txw-hb--text:hover span { border-bottom-color: var(--hb-hbd); }
.txw .txw-hb--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.txw .txw-hb--md { min-height: 48px; padding: 10px 20px; font-size: 16px; }
.txw .txw-hb--lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.txw-d-body { display: flex; flex-direction: column; gap: 20px; }
.txw-d-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); grid-auto-flow: dense; gap: 20px; }
.txw-d-hero { grid-column: span 2; grid-row: span 2; background: var(--txw-dark); color: var(--txw-on-dark); border-radius: calc(var(--txw-radius) + 6px); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.txw-d-hero .txw-since { color: var(--txw-gold); }
.txw-d-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.txw-d-hero-ico { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--txw-gold); display: flex; align-items: center; justify-content: center; color: var(--txw-gold); }
.txw-d-hero-mid { display: flex; flex-direction: column; gap: 14px; }
.txw-d-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.txw-d-bignum { font-size: calc(var(--n) * 2.4); line-height: .9; font-weight: 800; color: var(--txw-gold); }
.txw-d-biglabel { font-size: 30px; font-weight: 700; }
.txw-d-hero p { font-size: 18px; line-height: 1.7; color: var(--txw-on-dark-muted); max-width: 440px; }
.txw-d-hero .txw-btn { align-self: flex-start; }
.txw-d-hero .txw-btn:hover { background: var(--txw-gold); color: var(--txw-dark); }
.txw-d-tile { background: var(--txw-card); border-radius: calc(var(--txw-radius) + 6px); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.txw-d-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--txw-cream); display: flex; align-items: center; justify-content: center; color: var(--txw-accent); }
.txw-d-tile h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.txw-d-tile p { font-size: 15px; line-height: 1.65; color: var(--txw-muted); }
.txw-d-accent { background: var(--txw-accent); color: #fff; border-radius: calc(var(--txw-radius) + 6px); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.txw-d-accent .txw-since, .txw-d-accent .txw-label { color: rgba(255, 255, 255, .88); }
.txw-d-accent > div { display: flex; flex-direction: column; gap: 4px; }
.txw-d-accent .txw-num { font-size: calc(var(--n) * 1.4); line-height: 1; justify-content: flex-end; }
.txw-d-strip { background: var(--txw-card); border-radius: calc(var(--txw-radius) + 6px); padding: 28px 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.txw-d-stat { display: flex; align-items: center; gap: 18px; padding: 0 36px; border-right: 1px solid var(--txw-border); }
.txw-d-stat:first-child { padding-right: 0; border-right: 0; }
.txw-d-stat .txw-num { font-size: calc(var(--n) * 1.05); }
.txw-d-stat .txw-label { line-height: 1.4; }
.txw-d-strip:has(.txw-d-stat:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.txw-d-strip:has(.txw-d-stat:only-child) { grid-template-columns: 1fr; }

/* Reveal animation (only once JS is running) */
.txw-anim.txw-ready .txw-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.txw-anim.txw-ready .txw-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.txw-anim.txw-ready .txw-reveal { opacity: 1; transform: none; transition: none; }
	.txw-a-card:hover { transform: none; }
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
	.txw {  }
	.txw__inner { gap: 44px; --t: min(var(--txw-title), 36px); --n: min(var(--txw-num), 40px); }
	.txw-a-cards, .txw-c-cols, .txw-c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.txw-c-cols { row-gap: 36px; }
	.txw-c-col:nth-child(odd) { border-right: 0; }
	.txw-a-band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; padding: 36px; }
	.txw-a-intro { grid-column: 1 / -1; padding-left: 0; align-items: center; text-align: center; }
	.txw-a-stat:nth-child(even) { border-right: 0; }
	.txw-b-top { flex-direction: column; gap: 44px; }
	.txw-b-intro { flex-basis: auto; }
	.txw-b-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.txw-b-stat:nth-child(odd) { padding-right: 0; border-right: 0; }
	.txw-d-body { display: flex; flex-direction: column; gap: 20px; }
.txw-d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); }
	.txw-d-hero { grid-row: span 1; }
	.txw-d-strip { padding: 28px; }
	.txw-d-stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 20px; }
}

/* ===== Phone ===== */
@media (max-width: 640px) {
	.txw { padding-left: 16px; padding-right: 16px; padding-top: min(var(--txw-pad), 56px); padding-bottom: min(var(--txw-pad), 56px); }
	.txw__inner { gap: 36px; --t: min(var(--txw-title), 28px); --n: min(var(--txw-num), 36px); }
	.txw-sub { font-size: 16px; }
	.txw-a-cards { grid-template-columns: 1fr; gap: 14px; }
	.txw-a-card { flex-direction: row; align-items: flex-start; text-align: right; padding: 22px; gap: 16px; flex-wrap: wrap; }
	.txw-a-card .txw-a-ico { width: 52px; height: 52px; }
	.txw-a-card h3 { flex: 1 1 0; align-self: center; }
	.txw-a-card p { flex: 1 1 100%; }
	.txw-a-band { padding: 28px 18px; }
	.txw-a-stat { padding: 4px; }
	.txw-b-list { grid-template-columns: 1fr; row-gap: 28px; }
	.txw-b-stat { padding: 0 16px; }
	.txw-b-stat .txw-num { font-size: calc(var(--n) * 1.2); }
	.txw-c-cols { grid-template-columns: 1fr; row-gap: 28px; }
	.txw-c-col { border-right: 0; padding: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
	.txw-c-col h3 { flex: 1 1 0; }
	.txw-c-col p { flex: 1 1 100%; }
	.txw-c-grid { gap: 12px; }
	.txw-c-card { padding: 20px; }
	.txw-d-head { flex-direction: column; align-items: flex-start; }
	.txw .txw-hb--mfull { align-self: stretch; }
	.txw-d-body { display: flex; flex-direction: column; gap: 20px; }
.txw-d-grid { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: auto; }
	.txw-d-hero { grid-column: 1 / -1; padding: 28px; }
	.txw-d-bignum { font-size: 84px; }
	.txw-d-biglabel { font-size: 22px; }
	.txw-d-hero p { font-size: 16px; }
	.txw-d-tile { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; padding: 20px; }
	.txw-d-accent { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 22px; }
	.txw-d-accent > div { align-items: flex-end; }
	.txw-d-strip { grid-template-columns: 1fr !important; row-gap: 18px; padding: 22px; }
	.txw-d-stat { flex-direction: row; align-items: center; padding: 0; border-right: 0; }
	.txw-d-stat + .txw-d-stat { padding-top: 18px; border-top: 1px solid var(--txw-border); }
}
