/* KutRight website styles
   One file for the whole site. Brand tokens first (also published as tokens.css
   for the designer), then fonts, base, layout, components and page patterns.
   Uses logical properties (inline/block) so the Arabic pages mirror cleanly. */

/* ---------- tokens ---------- */
:root {
  --graphite: #14181A;
  --cut: #E8590C;
  --burnt: #C2410C;
  --ember: #9A3412;
  --steel: #4B5257;
  --slate: #6A7277;
  --workshop: #EEF0ED;
  --line: #D3D7D2;
  --peach: #FFF1EA;
  --glow: #F0793C;
  --mist: #A3ABAF;
  --white: #FFFFFF;
  --paper: #F6F7F5;
  --ink: var(--graphite);
  --muted: var(--steel);
  --ok: #1F6B45;
  --ok-bg: #EAF4EE;
  --font-head: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-ar-head: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 26, .06), 0 24px 48px -16px rgba(20, 24, 26, .18);
  --shadow-sm: 0 1px 2px rgba(20, 24, 26, .06), 0 8px 20px -12px rgba(20, 24, 26, .16);
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 68px;
}

/* ---------- fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/ibm-plex-sans-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'Readex Pro'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/readex-pro-arabic-500.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/readex-pro-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-500.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-color: rgba(194, 65, 12, .45); text-underline-offset: 3px; }
a:hover { color: var(--burnt); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.03em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
h4 { font-size: 17px; letter-spacing: 0; }
strong { font-weight: 600; }
small { font-size: 14px; }
ul, ol { padding-inline-start: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--peach); color: var(--graphite); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.i { display: inline-block; flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
[dir="rtl"] .i-flip { transform: scaleX(-1); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(780px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.white { background: var(--white); border-block: 1px solid var(--line); }
.section.shade { background: var(--workshop); }
.section.dark { background: var(--graphite); color: #E6E9E8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section + .section.white { border-top: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split.top { align-items: start; }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 12px; } .mt { margin-top: 24px; } .mt-l { margin-top: 40px; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-block; font: 600 13px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.dark .eyebrow { color: var(--glow); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 680px; }
.dark .lead, .dark p { color: #C7CDCB; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head h2 + .lead, .sec-head h2 + p { margin-top: 16px; }
.muted { color: var(--muted); }
.note { font-size: 14px; color: var(--slate); }
.price { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn .i { font-size: 18px; }
.btn-primary { background: var(--burnt); color: #fff; }
.btn-primary:hover { background: var(--ember); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--graphite); color: var(--graphite); }
.btn-secondary:hover { background: var(--graphite); color: #fff; }
.btn-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--graphite); }
.btn-wa { background: #fff; border-color: var(--line); color: var(--graphite); }
.btn-wa:hover { border-color: var(--graphite); color: var(--graphite); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--burnt); text-decoration: none; }
.link-arrow:hover { gap: 9px; color: var(--ember); }
.link-arrow .i { transition: transform .15s; }

/* ---------- announcement strip ---------- */
.strip { background: var(--graphite); color: #E6E9E8; font-size: 14px; }
.strip .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; padding-block: 8px; }
.strip a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--glow); }
.strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 245, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo svg { height: 32px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 18px; }
.nav > a, .nav .menu-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px; border: 0; background: none; font: 500 15px/1 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer; }
.nav > a:hover, .nav .menu-btn:hover, .nav .has-menu.open .menu-btn { background: rgba(20, 24, 26, .06); color: var(--ink); }
.nav > a[aria-current="page"], .nav .menu-btn.current { color: var(--burnt); }
.nav .menu-btn .i { font-size: 14px; transition: transform .15s; }
.has-menu { position: relative; }
.has-menu.open .menu-btn .i { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 8px); inset-inline-start: -12px; min-width: 300px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.menu.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; min-width: 560px; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) { .has-menu:hover .menu { opacity: 1; visibility: visible; transform: none; } .has-menu:hover .menu-btn .i { transform: rotate(180deg); } }
.menu-h { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 10px 10px 6px; }
.menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu a:hover { background: var(--workshop); color: var(--ink); }
.menu a .mi { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--workshop); color: var(--burnt); flex: none; font-size: 18px; }
.menu a:hover .mi { background: #fff; }
.menu a b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.menu a small { display: block; color: var(--slate); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; height: 40px; padding: 0 10px; border-radius: 8px; font: 500 15px/1 var(--font-ar-body); text-decoration: none; color: var(--ink); }
.lang:hover { background: rgba(20, 24, 26, .06); color: var(--ink); }
html[lang="ar"] .lang { font-family: var(--font-body); }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; font-size: 22px; }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(20, 24, 26, .45); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%); background: #fff; overflow-y: auto; padding: 16px 20px 32px; box-shadow: var(--shadow); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.drawer-top .logo svg { height: 28px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 600 17px/1.2 var(--font-body); cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .i { transition: transform .15s; }
.drawer details[open] summary .i { transform: rotate(180deg); }
.drawer details a { display: block; padding: 9px 0 9px 12px; text-decoration: none; color: var(--steel); font-size: 16px; }
.drawer .drawer-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.2 var(--font-body); text-decoration: none; }
.drawer .btns { margin-top: 24px; }
.drawer .btns .btn { width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--slate); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--mist); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--burnt); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.hero h1 + .lead { margin-top: 22px; }
.hero .btns { margin-top: 30px; }
.hero-home h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; letter-spacing: -.035em; max-width: 980px; }
.hero-home h1 span { color: var(--burnt); display: block; }
.hero-home .lead { max-width: 720px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.pill .pi { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--peach); color: var(--burnt); font-size: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks .i { color: var(--ok); font-size: 17px; stroke-width: 2.4; }
.hero-media { position: relative; }
.hero-home .hero-media { margin-top: clamp(36px, 5vw, 56px); }

/* designer screenshots in a browser frame */
.frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #FAFAF9; border-bottom: 1px solid #E3E5E2; }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E1E3E0; }
.frame-bar em { font-style: normal; margin-inline-start: 10px; padding: 3px 12px; border-radius: 6px; background: #F1F2F0; font-size: 12px; color: var(--slate); }
.frame img { width: 100%; height: auto; }
.canvas { position: relative; border-radius: var(--radius); background-color: #F3F4F1; background-image: radial-gradient(rgba(20, 24, 26, .12) 1px, transparent 1px); background-size: 18px 18px; border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); }
.canvas img { margin-inline: auto; }
.canvas .tag { position: absolute; inset-inline-start: 16px; top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; background: var(--graphite); color: #fff; font: 500 12px/1 var(--font-mono); letter-spacing: .02em; }
.tag.light { background: #fff; color: var(--steel); border: 1px solid var(--line); }
.caption { font-size: 14px; color: var(--slate); margin-top: 12px; }

/* ---------- cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ci { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--workshop); color: var(--burnt); font-size: 22px; margin-bottom: 6px; }
.card.link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.link:hover { border-color: var(--graphite); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card.link a.stretch { text-decoration: none; color: inherit; }
.card.link a.stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--burnt); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.card-media { margin: -24px -24px 8px; border-bottom: 1px solid var(--line); background: #F3F4F1; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.dark .card { background: #1C2124; border-color: #2B3236; }
.dark .card p { color: #AEB6B4; }
.dark .card .ci { background: #262C30; color: var(--glow); }
.card.cab .cabi { color: var(--graphite); margin-bottom: 4px; }
.card .meta { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }

/* steps */
.steps { counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { font: 600 34px/1 var(--font-head); color: var(--burnt); letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.step .n .i { font-size: 24px; color: var(--graphite); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.shade .step { background: #fff; }

/* feature list with checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--burnt); font-size: 20px; margin-top: 3px; stroke-width: 2.2; }
.dark .checks .i { color: var(--glow); }
.crosses li .i { color: var(--ember); }

/* comparison boxes */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { border-radius: var(--radius); padding: 28px; }
.compare .old { background: var(--paper); border: 1px dashed var(--mist); }
.compare .new { background: #fff; border: 2px solid var(--graphite); }
.compare h3 { margin-bottom: 16px; }

/* label card */
.label-card { font-family: var(--font-mono); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 14px; line-height: 1.7; color: var(--steel); display: grid; grid-template-columns: 1fr auto; gap: 10px; box-shadow: var(--shadow-sm); max-width: 420px; }
.label-card b { color: var(--graphite); font-size: 16px; display: block; }
.label-card .bars { width: 46px; height: 64px; background: repeating-linear-gradient(90deg, var(--graphite) 0 2px, transparent 2px 4px, var(--graphite) 4px 5px, transparent 5px 8px); border-radius: 2px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { border-top: 2px solid var(--graphite); padding-top: 14px; }
.stat b { display: block; font: 600 clamp(28px, 3vw, 38px)/1.05 var(--font-head); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 15px; }
.dark .stat { border-color: var(--glow); }
.dark .stat span { color: #AEB6B4; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--workshop); font: 600 13px/1.3 var(--font-body); letter-spacing: .03em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: end; font-family: var(--font-mono); white-space: nowrap; }
.table-note { font-size: 14px; color: var(--slate); margin-top: -12px; }

/* ---------- price cards ---------- */
.example { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.example .card-media { margin: 0; border-radius: 0; }
.example .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.example h3 { font-size: 18px; }
.example .where { color: var(--slate); font-size: 14px; }
.example dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 0; font-size: 15px; }
.example dt { color: var(--muted); }
.example dd { margin: 0; text-align: end; font-family: var(--font-mono); }
.example .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.example .total b { font: 600 24px/1 var(--font-head); letter-spacing: -.02em; }
.receipt { background: #fff; border: 2px solid var(--graphite); border-radius: var(--radius); padding: 28px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15.5px; }
.receipt .row span:last-child { font-family: var(--font-mono); }
.receipt .sum { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.receipt .sum b { font: 600 34px/1 var(--font-head); letter-spacing: -.02em; }

/* ---------- swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.swatch { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.swatch i { display: block; aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(20, 24, 26, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.swatch i.grain { background-image: repeating-linear-gradient(100deg, rgba(255, 255, 255, .07) 0 3px, rgba(0, 0, 0, .05) 3px 5px, rgba(255, 255, 255, 0) 5px 11px); }
.swatch b { font-weight: 600; display: block; line-height: 1.3; }
.swatch span { color: var(--slate); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 20px 0; font: 600 18px/1.35 var(--font-body); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { font-size: 20px; color: var(--burnt); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 760px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--graphite); color: #fff; border-radius: 20px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 50px); }
.cta-band p { color: #C7CDCB; max-width: 620px; margin: 16px auto 0; font-size: 18px; }
.cta-band .btns { justify-content: center; margin-top: 28px; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.dark .form-card { color: var(--ink); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: 400 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5257' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-inline-end: 40px; }
[dir="rtl"] select { background-position: left 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--burnt); box-shadow: 0 0 0 3px rgba(232, 89, 12, .18); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B42318; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; background: #fff; transition: border-color .15s, background-color .15s; }
.choice input:checked + span { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--burnt); flex: none; }
.form-msg { display: none; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.form-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-msg.err { display: block; background: #FDECEA; color: #8F1D14; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.calc-panel fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc-panel legend { font-weight: 600; margin-bottom: 10px; font-size: 15px; padding: 0; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--burnt); height: 32px; }
.range-row output { font-family: var(--font-mono); font-weight: 500; min-width: 82px; text-align: end; }
.calc-result { position: sticky; top: calc(var(--header-h) + 20px); background: var(--graphite); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.calc-result .big { font: 600 clamp(34px, 4vw, 46px)/1 var(--font-head); letter-spacing: -.02em; margin: 8px 0 6px; }
.calc-result .range { color: #C7CDCB; font-size: 15px; }
.calc-result .rows { margin: 20px 0; border-top: 1px solid #2B3236; }
.calc-result .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #2B3236; font-size: 15px; color: #D5DAD8; }
.calc-result .rows span:last-child { font-family: var(--font-mono); color: #fff; }
.calc-result .note { color: #AEB6B4; }

/* ---------- guides ---------- */
.guide-card .meta { display: flex; gap: 10px; align-items: center; }
.pillar { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ember); }
.article-head { padding-block: clamp(36px, 5vw, 64px) 0; }
.article-head h1 { font-size: clamp(34px, 4.2vw, 54px); max-width: 900px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; font-size: 14.5px; color: var(--slate); }
.byline .av { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--graphite); align-items: center; justify-content: center; }
.byline .av svg { width: 20px; height: 20px; }
.byline b { color: var(--ink); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: 36px clamp(56px, 7vw, 96px); }
.answer { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--cut); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 32px; }
.answer .eyebrow { margin-bottom: 8px; }
.answer p { margin: 0; font-size: 18px; line-height: 1.6; }
.prose { font-size: 18px; line-height: 1.7; max-width: 760px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 52px 0 16px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--burnt); }
.prose a { color: var(--burnt); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ember); }
.prose table { font-size: 15.5px; line-height: 1.5; }
.prose .table-wrap { margin: 26px 0; }
.tip { background: var(--peach); border-inline-start: 4px solid var(--cut); border-radius: var(--radius-sm); padding: 16px 20px; margin: 26px 0; }
.tip p { margin: 0; font-size: 17px; }
.diagram { margin: 32px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: 14px; color: var(--slate); margin-top: 12px; line-height: 1.5; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 15px; }
.toc h2 { font: 600 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc ol a { display: block; padding: 6px 0 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; text-decoration: none; color: var(--steel); line-height: 1.4; }
.toc ol a:hover, .toc ol a.on { color: var(--burnt); border-inline-start-color: var(--burnt); }
.toc .side-cta { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc .side-cta h3 { font-size: 17px; margin-bottom: 8px; }
.toc .side-cta p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.toc .side-cta .btn { width: 100%; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box .av { width: 48px; height: 48px; border-radius: 50%; background: var(--graphite); display: flex; align-items: center; justify-content: center; flex: none; }
.author-box .av svg { width: 28px; height: 28px; }
.author-box p { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); }
.pillar-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pillar-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; text-decoration: none; }
.pillar-nav a:hover { border-color: var(--graphite); color: var(--ink); }

/* ---------- designer slot ---------- */
.designer-slot { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 56px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; }
.site-footer h2 { font: 600 15px/1.2 var(--font-body); letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover { color: var(--burnt); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate); font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--steel); }

/* ---------- consent banner ---------- */
.consent-bar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 90; max-width: 560px; background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: none; }
.consent-bar.show { display: block; }
.consent-bar p { margin: 0 0 12px; font-size: 15px; color: #D5DAD8; }
.consent-bar a { color: #fff; }

/* ---------- diagrams (inline SVG) ---------- */
.dg { font-family: var(--font-body); }
.dg-box { fill: #fff; stroke: var(--graphite); stroke-width: 1.4; }
.dg-front { fill: #F7F1E9; stroke: var(--graphite); stroke-width: 1.1; }
.dg-plinth { fill: var(--workshop); stroke: var(--graphite); stroke-width: 1.1; }
.dg-top { fill: var(--graphite); }
.dg-handle { stroke: var(--graphite); stroke-width: 2.2; stroke-linecap: round; }
.dg-line { fill: none; stroke: var(--graphite); stroke-width: 1.2; }
.dg-floor { stroke: var(--graphite); stroke-width: 2; }
.dg-ceil { stroke: var(--mist); stroke-width: 1.2; stroke-dasharray: 6 5; }
.dg-wall { fill: none; stroke: var(--graphite); stroke-width: 5; stroke-linecap: square; }
.dg-room { fill: #FAFAF8; stroke: none; }
.dg-ext { stroke: var(--mist); stroke-width: .8; stroke-dasharray: 2 3; }
.dg-dim { stroke: var(--burnt); stroke-width: 1.2; fill: none; }
.dg-num { font: 500 12.5px var(--font-mono); fill: var(--burnt); }
.dg-lbl { font: 500 13px var(--font-body); fill: var(--steel); }
.dg-cap { font: 600 11px var(--font-body); letter-spacing: .08em; fill: var(--slate); }
.dg-small { font: 400 11px var(--font-body); fill: var(--slate); }
.dg-shelf { stroke: var(--graphite); stroke-width: 1.6; }
.dg-rail { stroke: var(--cut); stroke-width: 3; stroke-linecap: round; }
.dg-garment { fill: var(--workshop); stroke: var(--mist); stroke-width: .8; }
.dg-tv { fill: var(--graphite); }
.dg-hob { fill: var(--steel); }
.dg-hood { fill: #DCDFDB; stroke: var(--graphite); stroke-width: 1.3; }
.dg-chimney { fill: #E8EAE7; stroke: var(--graphite); stroke-width: 1.2; }
.dg-appl { fill: var(--workshop); stroke: var(--graphite); stroke-width: 1.3; }
.dg-blind { fill: var(--workshop); stroke: none; }
.dg-filler { fill: var(--cut); opacity: .85; }
.dg-doorline { stroke: var(--cut); stroke-width: 2.4; }
.dg-swing { fill: none; stroke: var(--mist); stroke-width: 1; stroke-dasharray: 4 4; }
.dg-bed { fill: var(--workshop); stroke: var(--graphite); stroke-width: 1.2; }
.dg-pillow { fill: #fff; stroke: var(--mist); stroke-width: 1; }
.dg-gap { stroke: #FAFAF8; stroke-width: 7; }
.dg-window { stroke: #9CC3D8; stroke-width: 7; }

/* ---------- Arabic ---------- */
html[lang="ar"] body { font-family: var(--font-ar-body); line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar-head); letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] .hero-home h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.25; letter-spacing: 0; }
html[lang="ar"] h1 { font-size: clamp(32px, 4vw, 52px); }
html[lang="ar"] .eyebrow, html[lang="ar"] .menu-h, html[lang="ar"] thead th { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .btn, html[lang="ar"] .nav > a, html[lang="ar"] .nav .menu-btn, html[lang="ar"] .faq summary, html[lang="ar"] .drawer summary { font-family: var(--font-ar-body); }
html[lang="ar"] .stat b, html[lang="ar"] .step .n { font-family: var(--font-head); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-end .btn { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: none; }
}
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .calc { grid-template-columns: minmax(0, 1fr); }
  .split.rev > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-result { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 16.5px; }
  .g2, .g3, .g4, .compare, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .logo svg { height: 28px; }
  .btns .btn { width: 100%; }
  .hero .btns .btn { width: 100%; }
  .menu.wide { min-width: 0; }
  .prose { font-size: 17px; }
  th, td { padding: 10px 12px; }
  .strip { font-size: 13px; }
  .lang { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .strip, .site-header, .site-footer, .cta-band, .toc, .btns, .drawer, .consent-bar { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding-block: 16px; }
  a { text-decoration: none; }
}
