/*
 * Archo & Archy website — Graphite theme (light/dark), matching the 0.2.0 apps.
 * Tokens mirror apps/desktop/src/styles/tokens.css. Layout uses logical
 * properties so the Arabic page (dir="rtl") mirrors without extra rules.
 */

:root {
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --accent: #c4ee8a;
  --accent-ink: #1c1c1c;
  --accent-deep: #2a440d;

  --window: #a6a6a5;
  --frame: #b7b7b6;
  --surface: #afafae;
  --card: #b9b9b8;
  --raised: #caccca;
  --well: rgba(20, 20, 20, 0.05);
  --edge: rgba(255, 255, 255, 0.42);
  --ink: #1b1b1b;
  --ink-2: #3c3c3c;
  --ink-3: #444443;
  --line: rgba(20, 20, 20, 0.11);
  --dash: rgba(20, 20, 20, 0.3);
  --rail: #29292a;
  --rail-ink: #c4c4c0;
  --rail-active: #4b4b4e;
  --nav-active: linear-gradient(90deg, rgba(212, 218, 215, 0.94) 0%, rgba(201, 210, 205, 0.92) 55%, rgba(192, 203, 197, 0.94) 100%);
  --nav-rim: rgba(255, 255, 255, 0.82);
  --badge: rgba(236, 239, 237, 0.75);
  --band: #262627;
  --band-ink: #f4f4f0;
  --band-ink-2: #b4b4b0;
  --band-card: #333335;
  --btn: #262627;
  --btn-ink: #f4f4f0;
  --btn-rim: transparent;
  --panel: #262627;
  --panel-ink: #f4f4f0;
  --panel-ink-2: #a9a9a6;
  --code: #262627;
  --code-ink: #f4f4f0;
  --warn: #dccb98;
  --warn-ink: #4d3e10;
  --danger: #dcb4ad;
  --danger-ink: #6b2219;
  --hl: rgba(196, 238, 138, 0.5);
  --hl-chip: #c4ee8a;
  --seg-done: #262627;
  --seg-todo: rgba(20, 20, 20, 0.13);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.07), 0 22px 48px rgba(0, 0, 0, 0.12);
  --shadow-big: 0 2px 6px rgba(0, 0, 0, 0.07), 0 40px 90px -20px rgba(0, 0, 0, 0.35);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --window: #08080a;
  --frame: #151517;
  --surface: #101012;
  --card: #19191c;
  --raised: #26262a;
  --well: rgba(0, 0, 0, 0.28);
  --edge: rgba(255, 255, 255, 0.07);
  --ink: #ecece8;
  --ink-2: #b4b4b0;
  --ink-3: #8a8a85;
  --line: rgba(255, 255, 255, 0.08);
  --dash: rgba(255, 255, 255, 0.2);
  --rail: #0b0b0c;
  --rail-ink: #8d8d8a;
  --rail-active: #2c2c30;
  --nav-active: linear-gradient(90deg, #2d2e30 0%, #262829 55%, #232526 100%);
  --nav-rim: rgba(255, 255, 255, 0.13);
  --badge: rgba(255, 255, 255, 0.08);
  --band: #0b0b0c;
  --band-ink: #ecece8;
  --band-ink-2: #9a9a97;
  --band-card: #19191c;
  --btn: #26262a;
  --btn-ink: #f2f2ee;
  --btn-rim: rgba(255, 255, 255, 0.1);
  --panel: #19191c;
  --panel-ink: #f2f2ee;
  --panel-ink-2: #9a9a97;
  --code: #0b0b0c;
  --code-ink: #ecece8;
  --warn: #4a3f1f;
  --warn-ink: #ecd9a2;
  --danger: #4a2622;
  --danger-ink: #f1c4bd;
  --hl: #3f4d2c;
  --hl-chip: #7f9a5a;
  --seg-done: #050506;
  --seg-todo: #2c2c30;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 22px 48px rgba(0, 0, 0, 0.4);
  --shadow-big: 0 4px 12px rgba(0, 0, 0, 0.4), 0 40px 90px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--frame);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 240ms ease, color 240ms ease;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .flip { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding-block: 6px; padding-inline: 6px 22px;
  border-radius: 14px; border: 0; cursor: pointer;
  background: var(--btn); color: var(--btn-ink);
  box-shadow: inset 0 0 0 1px var(--btn-rim), 0 10px 24px -10px rgba(0, 0, 0, 0.4);
  text-decoration: none; font-size: 16px;
}
.btn .tile {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
}
.btn.sm { min-height: 44px; padding: 5px; padding-inline-end: 16px; border-radius: 12px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--btn-rim); }
.btn.sm .tile { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); color: inherit; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 14px;
  border: 1px dashed var(--dash); text-decoration: none; font-size: 16px;
}
.btn-accent {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 15px;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); background: var(--well); color: var(--ink);
}
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- header ---------- */
.site-header { padding: 16px 0; position: sticky; top: 0; z-index: 20; }
.navbar {
  display: flex; align-items: center; gap: 16px;
  padding: 8px; padding-inline-start: 12px;
  border-radius: 18px; background: var(--surface);
  border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 500; }
.brand .amp { color: var(--ink-3); font-weight: 300; }
.nav-links { display: flex; gap: 2px; margin-inline-start: 20px; font-size: 14px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { background: var(--nav-active); box-shadow: inset 0 0 0 1px var(--nav-rim); }
.spacer { flex-grow: 1; }
.lang-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px dashed var(--dash); text-decoration: none; font-size: 15px;
}
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: 48px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px; padding-inline-end: 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--edge); font-size: 13px; color: var(--ink-2);
}
.chip .tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.hero h1 { margin-top: 26px; font-weight: 300; font-size: clamp(44px, 6.6vw, 92px); line-height: 1; letter-spacing: -0.035em; max-width: 1040px; }
[lang="ar"] .hero h1 { line-height: 1.18; letter-spacing: 0; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 28px; }
.lead { max-width: 580px; font-size: 19px; line-height: 1.55; color: var(--ink-2); font-weight: 300; }
[lang="ar"] .lead { line-height: 1.8; }
.lead strong { font-weight: 500; color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- app mockup ---------- */
.mock {
  margin-top: 56px; padding: 14px; border-radius: 26px;
  background: var(--window); box-shadow: var(--shadow-big);
  display: flex; gap: 14px; overflow: hidden;
}
.mock-side {
  flex: 0 0 300px; display: flex; gap: 4px; padding: 3px;
  border-radius: 18px; background: var(--frame); border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.rail-col { flex: 0 0 50px; display: flex; flex-direction: column; gap: 3px; }
.rail { flex: 1 1 auto; border-radius: 15px; background: var(--rail); padding: 5px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--rail-ink); }
.rail .r { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.rail .r.on { background: var(--rail-active); color: #f4f4f0; }
.rail .sep { width: 26px; height: 1px; background: rgba(255, 255, 255, 0.14); margin: 4px 0; }
.rail-legend { height: 120px; display: flex; align-items: center; justify-content: center; }
.rail-legend span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: var(--ink-3); }
[dir="rtl"] .rail-legend span { transform: none; }
.rail-gear { width: 50px; height: 50px; border-radius: 13px; background: var(--rail); color: var(--rail-ink); display: flex; align-items: center; justify-content: center; }
.sidebar { flex: 1 1 auto; min-width: 0; padding: 18px 10px 6px; display: flex; flex-direction: column; gap: 6px; }
.user { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: #262627; color: #f4f4f0; box-shadow: 0 0 0 3px var(--edge); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.user b { display: block; font-size: 14px; font-weight: 500; }
.user small, .side-label { font-size: 12px; color: var(--ink-3); }
.side-label { padding: 0 4px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.side-nav div { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; }
.side-nav .on { background: var(--nav-active); box-shadow: inset 0 0 0 1px var(--nav-rim), 0 6px 14px -4px rgba(0, 0, 0, 0.16); }
.count { margin-inline-start: auto; font-size: 11px; width: 20px; height: 20px; border-radius: 999px; background: var(--badge); display: flex; align-items: center; justify-content: center; }
.count.lime { background: var(--accent); color: var(--accent-ink); }
.side-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.side-projects { display: flex; flex-direction: column; gap: 13px; font-size: 13px; padding: 4px 12px; }
.side-projects div { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.side-projects .mono { margin-inline-start: auto; font-size: 10.5px; color: var(--ink-3); }
.dot { width: 6px; height: 6px; border-radius: 999px; flex: none; background: var(--ink); }
.dot.lime { background: var(--accent); }
.dot.grey { background: var(--ink-3); }
.sync { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--well); font-size: 12.5px; margin-top: auto; }
.sync i { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

.mock-main {
  flex: 1 1 auto; min-width: 0; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--edge); box-shadow: var(--shadow);
  padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 18px;
}
.topbar { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.topbar .crumb { color: var(--ink-3); }
.search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; width: 280px; border-radius: 10px; background: var(--well); border: 1px solid var(--edge); color: var(--ink-3); font-size: 12.5px; }
.search .mono { margin-inline-start: auto; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.bell { position: relative; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; }
.bell span { position: absolute; top: -4px; inset-inline-end: -4px; width: 16px; height: 16px; border-radius: 999px; background: #e0675a; color: #fff; font-size: 9.5px; display: flex; align-items: center; justify-content: center; }
.today { display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-start: 16px; border-radius: 13px; border: 1px solid var(--edge); background: var(--card); flex-wrap: wrap; }
.today > b { font-size: 16px; font-weight: 400; }
.date-chip { font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--dash); }
.agenda { flex: 1 1 auto; display: flex; gap: 8px; padding: 6px; border-radius: 9px; background: var(--well); font-size: 12px; min-width: 0; overflow: hidden; }
.agenda span { padding: 5px 10px; border-radius: 7px; background: var(--raised); white-space: nowrap; }
.agenda span.hot { background: var(--accent); color: var(--accent-ink); }
.agenda .mono { background: none; padding: 0; color: inherit; opacity: 0.7; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 38px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.page-head p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.head-btns { display: flex; gap: 8px; font-size: 13px; }
.head-btns span { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--edge); }
.head-btns .dark { background: var(--btn); color: var(--btn-ink); border: 0; box-shadow: inset 0 0 0 1px var(--btn-rim); padding-inline-start: 5px; font-weight: 500; }
.head-btns .dark i { width: 30px; height: 30px; border-radius: 7px; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; font-style: normal; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-card { border-radius: 13px; background: var(--card); border: 1px solid var(--edge); padding: 16px 18px; font-size: 15px; }
.stat-card div { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.stat-card strong { font-size: 64px; font-weight: 300; line-height: 1; }
.pill { font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.pill.ok { background: var(--accent); color: var(--accent-deep); }
.pill.warn { background: var(--warn); color: var(--warn-ink); }
.pill.danger { background: var(--danger); color: var(--danger-ink); }
.see { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 1px dashed var(--dash); font-size: 13.5px; }
.phases { border-radius: 13px; background: var(--card); border: 1px solid var(--edge); padding: 18px 20px; }
.phases-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phases-head b { font-size: 22px; font-weight: 400; }
.phases-head u { font-size: 12px; }
.filter { display: inline-flex; gap: 7px; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--edge); }
.filter.on { background: var(--nav-active); box-shadow: inset 0 0 0 1px var(--nav-rim); border-color: transparent; }
.phase-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 18px; align-items: end; text-align: center; font-size: 11px; }
.phase-grid > div { display: flex; flex-direction: column; gap: 4px; }
.phase-grid .n { font-size: 28px; font-weight: 300; }
.phase-grid .c { font-family: var(--mono); font-size: 10px; padding: 5px 0; border-radius: 6px; background: var(--code); color: var(--code-ink); }
.phase-grid .hl { background: var(--hl); border-radius: 8px; padding: 8px 6px 4px; }
.phase-grid .hl .c { background: var(--hl-chip); color: #1c1c1c; }
.phase-grid .label { color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; min-height: 36px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 100px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-3); }
[lang="ar"] .eyebrow { font-family: var(--font); font-size: 14px; letter-spacing: 0; }
.h2 { margin-top: 16px; font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 900px; }
[lang="ar"] .h2 { line-height: 1.22; letter-spacing: 0; }
.body { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
[lang="ar"] .body { line-height: 1.8; }

.products { margin-top: 120px; padding: 110px 0; background: var(--band); color: var(--band-ink); border-block: 1px solid var(--edge); }
.products .eyebrow { color: var(--band-ink-2); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 56px; }
.product { position: relative; border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.product.solo { background: var(--band-card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.product.studio { background: var(--accent); color: var(--accent-ink); }
.product-head { display: flex; align-items: center; gap: 14px; }
.product h3 { font-size: 30px; font-weight: 400; }
.product h3 small { font-size: 16px; font-weight: 300; opacity: 0.7; }
.product-head p { font-size: 14px; opacity: 0.75; }
.product > p { font-size: 17px; line-height: 1.6; font-weight: 300; max-width: 460px; opacity: 0.9; }
[lang="ar"] .product > p { line-height: 1.8; }
.ticks { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "✓"; }
.solo .ticks li::before { color: var(--accent); }
.badge-corner { position: absolute; top: 24px; inset-inline-end: 24px; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: #1c1c1c; color: var(--accent); }
.product .go { margin-top: auto; align-self: flex-start; padding: 0 20px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.solo .go { border: 1px dashed rgba(255, 255, 255, 0.3); }
.studio .go { background: #1c1c1c; color: #f4f4f0; }

.features { padding: 120px 0 40px; }
.panel-card { margin-top: 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 26px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; }
.panel-head h3 { font-size: 26px; font-weight: 400; }
.panel-head .body { margin-top: 8px; max-width: 580px; }
.panel-head .big { font-size: 32px; font-weight: 300; }
.panel-head .big small { font-size: 18px; color: var(--ink-3); }
.folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.folder { position: relative; padding-top: 12px; }
.folder::before, .folder::after { content: ""; position: absolute; top: 0; height: 14px; border-radius: 7px 7px 0 0; }
.folder::before { inset-inline-start: 110px; width: 52px; background: var(--raised); }
.folder::after { inset-inline-start: 162px; inset-inline-end: 0; background: var(--card); }
.folder.active::before { background: var(--accent); }
.folder.active::after { background: var(--panel); }
.folder-body { position: relative; border-radius: 13px; border-start-end-radius: 0; background: var(--card); border: 1px solid var(--edge); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.folder.active .folder-body { background: var(--panel); color: var(--panel-ink); }
.folder-top { display: flex; justify-content: space-between; gap: 8px; }
.code { font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 5px; background: var(--well); }
.folder.active .code { background: rgba(255, 255, 255, 0.1); }
.type { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--dash); white-space: nowrap; }
.folder.active .type { background: #f4f4f0; color: #1b1b1b; border: 0; }
.folder-name { font-size: 18px; font-weight: 500; }
.folder-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.folder.active .folder-sub, .folder.active .meta { color: var(--panel-ink-2); }
.phase-line { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; }
.segs { display: flex; gap: 3px; margin-top: 8px; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--seg-todo); }
.segs i.d { background: var(--seg-done); }
.segs i.c { background: var(--accent); }
.folder.active .segs i { background: rgba(255, 255, 255, 0.14); }
.folder.active .segs i.d { background: #a9a9a6; }
.folder.active .segs i.c { background: var(--accent); }
.meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.faces { display: flex; }
.faces span { width: 24px; height: 24px; border-radius: 999px; background: #5b5b5e; color: #f4f4f0; font-size: 9px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--card); }
.faces span + span { margin-inline-start: -6px; background: #262627; }
.folder.active .faces span { box-shadow: 0 0 0 2px var(--panel); }
.status { font-size: 12px; padding: 7px 12px; border-radius: 999px; background: var(--warn); color: var(--warn-ink); }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; }
.feature { border-radius: 18px; background: var(--card); border: 1px solid var(--edge); padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.feature h3 { font-size: 21px; font-weight: 400; }
.feature .body { margin-top: 8px; }
.inset { border-radius: 13px; background: var(--surface); border: 1px solid var(--edge); padding: 16px; }
.approval { border-radius: 13px; background: var(--panel); color: var(--panel-ink); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.approval-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.approval-head span { width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.sheet { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.sheet-thumb { width: 42px; height: 34px; border-radius: 7px; background: #f2f2ee; display: flex; align-items: center; justify-content: center; flex: none; }
.sheet b { display: block; font-size: 13.5px; font-weight: 500; }
.sheet small { display: block; font-size: 11.5px; color: var(--panel-ink-2); }
.rev { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.3); font-family: var(--mono); font-size: 11px; display: flex; align-items: center; justify-content: center; margin-inline-start: auto; flex: none; }
.revs { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 11.5px; flex-wrap: wrap; direction: ltr; }
[dir="rtl"] .revs { justify-content: flex-end; }
.revs span { padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.revs .draft { background: none; border: 1px dashed rgba(255, 255, 255, 0.3); }
.revs .now { background: var(--accent); color: var(--accent-ink); }
.revs .to { background: none; padding: 0; color: var(--panel-ink-2); }
.cal-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.tabs { display: flex; gap: 14px; }
.tabs span { color: var(--ink-3); }
.tabs .on { color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 10.5px; }
.cal > span { min-height: 34px; padding: 3px 5px; border-radius: 6px; }
.cal .dow { min-height: 0; color: var(--ink-3); }
.cal .we { background: var(--well); }
.cal .today-cell { background: var(--hl); box-shadow: inset 0 0 0 1px var(--accent); }
.cal .today-cell b { display: inline-flex; width: 18px; height: 18px; border-radius: 999px; background: var(--ink); color: var(--frame); align-items: center; justify-content: center; font-weight: 400; }
.cal small { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal small.red { color: var(--danger-ink); }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.step i { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; background: var(--accent); color: var(--accent-ink); }
.step.now i { background: var(--btn); color: var(--btn-ink); font-size: 11px; }
.step-line { width: 1px; height: 12px; background: var(--dash); margin-inline-start: 13px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--edge); font-size: 13px; }
.row.dim { background: var(--well); border-color: transparent; }
.row b { font-weight: 500; white-space: nowrap; }
.row .subj { flex: 1; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .filed { font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.row .file-to { font-size: 10.5px; padding: 3px 8px; border-radius: 5px; border: 1px dashed var(--dash); white-space: nowrap; }
.row .end { margin-inline-start: auto; font-size: 11px; color: var(--ink-3); }
.check { width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--ink-2); flex: none; }
.check.done { border: 0; background: var(--accent); color: var(--accent-ink); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.row s { color: var(--ink-3); }
.small-label { font-size: 13px; color: var(--ink-3); }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.theme-tile { border-radius: 12px; padding: 8px; }
.theme-tile.light { background: #a6a6a5; border: 1px solid rgba(255, 255, 255, 0.4); color: #1b1b1b; }
.theme-tile.dark { background: #08080a; border: 1px solid rgba(255, 255, 255, 0.1); color: #ecece8; }
.theme-tile .shot { display: flex; gap: 5px; height: 96px; }
.theme-tile .r { width: 14px; border-radius: 5px; }
.theme-tile .m { flex: 1; border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.theme-tile .t { height: 5px; width: 60%; border-radius: 3px; background: currentColor; opacity: 0.6; }
.theme-tile .cards { flex: 1; display: flex; gap: 5px; }
.theme-tile .cards i { flex: 1; border-radius: 5px; }
.theme-tile .a { height: 8px; width: 40%; border-radius: 3px; background: var(--accent); }
.theme-tile p { font-size: 12px; margin-top: 8px; }

.pricing { padding: 100px 0; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.split-head .body { max-width: 420px; font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 48px; }
.plan { border-radius: 18px; background: var(--card); border: 1px solid var(--edge); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan.dark { background: var(--panel); color: var(--panel-ink); }
.plan-top { display: flex; justify-content: space-between; align-items: center; font-size: 24px; }
.plan-top span { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--dash); }
.plan.dark .plan-top span { background: var(--accent); color: var(--accent-ink); border: 0; }
.price { font-size: 56px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
[lang="ar"] .price { font-size: 52px; letter-spacing: 0; }
.plan hr { width: 100%; border: 0; height: 1px; background: var(--line); margin: 0; }
.plan.dark hr { background: rgba(255, 255, 255, 0.12); }
.plan ul { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.plan ul li::before { content: "✓ "; }
.plan .btn-ghost { margin-top: 8px; min-height: 52px; border-radius: 12px; font-size: 15px; }
.plan .btn-accent { margin-top: 8px; }

.contact { padding: 0 0 100px; }
.contact-outer { border-radius: 26px; background: var(--window); padding: 14px; }
.contact-inner { border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; }
.contact-copy { flex: 1 1 320px; }
.contact-copy .h2 { font-size: clamp(34px, 4vw, 54px); }
.contact-copy .body { margin-top: 18px; font-size: 16px; max-width: 400px; }
.contact-lines { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.contact-lines div { display: flex; gap: 10px; align-items: center; }
.form { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.seg { display: flex; gap: 2px; flex-wrap: wrap; }
.seg label { position: relative; padding: 10px 16px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--nav-active); box-shadow: inset 0 0 0 1px var(--nav-rim); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-size: 15px; color: var(--ink); padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--edge); background: var(--well); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.form .btn { justify-content: flex-start; min-height: 56px; border-radius: 13px; }
.form .btn .tile { width: 44px; height: 44px; }
.soon { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: 13px; background: var(--card); border: 1px solid var(--edge); }
.soon-tag { font-size: 12px; letter-spacing: 0.18em; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
[lang="ar"] .soon-tag { font-family: var(--font); letter-spacing: 0; font-size: 13px; }
.soon-big { font-size: clamp(40px, 5vw, 68px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
[lang="ar"] .soon-big { letter-spacing: 0; line-height: 1.25; }
.soon .body { max-width: 440px; font-size: 16px; }
.soon .btn { direction: ltr; }

.faq { padding: 0 0 100px; }
.faq .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.faq .h2 { flex: 1 1 280px; margin: 0; font-size: clamp(34px, 4vw, 54px); }
.faq-list { flex: 2 1 520px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; cursor: pointer; }
.faq details p { margin-top: 12px; max-width: 640px; }

.site-footer { background: var(--window); padding: 48px 0 32px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.foot-bottom .mono { font-size: 11px; letter-spacing: 0.2em; }

/* ---------- simple pages (thanks, 404) ---------- */
.simple { min-height: 70vh; display: flex; align-items: center; }
.simple .contact-inner { flex-direction: column; gap: 20px; align-items: flex-start; max-width: 720px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mock-side { flex-basis: 260px; }
  .search { display: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .site-header { padding: 12px 0; }
  .navbar { gap: 8px; padding-inline-start: 10px; }
  .nav-links, .navbar .lang-link, .navbar .btn.sm { display: none; }
  .menu-btn { display: inline-flex; background: var(--btn); color: var(--btn-ink); border: 0; }
  .mobile-menu[data-open="true"] {
    display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 10px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow);
  }
  .mobile-menu a { padding: 12px 14px; border-radius: 10px; text-decoration: none; }
  .mobile-menu .btn { margin-top: 6px; }
  .hero { padding-top: 28px; }
  .mock { padding: 8px; border-radius: 20px; margin-top: 36px; }
  .mock-side { display: none; }
  .mock-main { padding: 12px; }
  .phase-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .phase-grid .opt { display: none; }
  .phases-head .filter:not(.on) { display: none; }
  .head-btns span:first-child { display: none; }
  .agenda span:nth-child(n+3) { display: none; }
  .page-head h2 { font-size: 28px; }
  .stat-card strong { font-size: 48px; }
  .products { margin-top: 72px; padding: 64px 0; }
  .product { padding: 24px; }
  .badge-corner { position: static; align-self: flex-start; }
  .features { padding-top: 72px; }
  .panel-card { padding: 18px; margin-top: 36px; }
  .grid3, .two, .plans { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 20px; }
  .pricing { padding: 72px 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact-outer { padding: 8px; }
}
