/* Kroobia Renewed — B2B site styles. Built on the Kroobia Design System tokens. */
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');
@import url('tokens/base.css');

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('fonts/PlusJakartaSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('fonts/PlusJakartaSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('fonts/PlusJakartaSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2'); }

/* Arabic: Cairo first, Jakarta for Latin fallback */
html[lang="ar"] {
  --font-display: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --display1-spacing: 0; --display2-spacing: 0; --display3-spacing: 0;
  --title1-spacing: 0; --title2-spacing: 0; --title3-spacing: 0; --title4-spacing: 0;
  --label2-spacing: 0;
}
html[lang="ar"] .kr-display1, html[lang="ar"] .kr-display2 { line-height: 1.25; }

/* The site is designed light-only. Telling the browser this stops Android/Samsung
   "force dark" from inverting the brand colours and the product photos. */
:root {
  color-scheme: light dark;
  --surface-translucent: rgba(255, 255, 255, 0.9);
  --surface-media: #ffffff;
}
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
@media (max-width: 600px) { :root { --container-pad: 16px; } }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.01em; }
.muted { color: var(--fg-muted); }

/* ---------- Icons ---------- */
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .ic.flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-control);
  font-family: var(--font-body); font-size: var(--label1-size); font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 14px; }
.btn-primary { background: var(--bg-primary); color: var(--fg-inverse); }
.btn-primary:hover { background: var(--bg-primary-hover); }
.btn-tertiary { background: var(--surface-card); color: var(--fg); border-color: var(--bg-line-heavy); }
.btn-tertiary:hover { background: var(--bg-secondary); }
.btn-ghost { background: transparent; color: var(--fg-primary); }
.btn-ghost:hover { background: var(--bg-primary-wash); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-translucent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--bg-line);
}
.site-header .bar { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: var(--space-4); }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-pill); color: var(--fg); font-weight: 600; font-size: 0.9375rem;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.nav a:hover { background: var(--bg-secondary); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg-primary-wash); color: var(--fg-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px 0 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--bg-line); background: var(--bg-alternate); color: var(--neutral-700);
  font-size: 0.875rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
html[dir="rtl"] .lang-toggle { padding: 0 11px 0 14px; }
.lang-toggle .ic { width: 17px; height: 17px; color: var(--green-600); }
.lang-toggle:hover { background: var(--bg-primary-wash); border-color: var(--green-200); color: var(--fg-primary); }
.lang-toggle:focus-visible { outline: none; box-shadow: var(--ring-focus); }
html[lang="en"] .lang-toggle span { font-family: 'Cairo', sans-serif; font-weight: 700; }
html[lang="ar"] .lang-toggle span { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Mobile nav: tabs row under the bar */
@media (max-width: 900px) {
  .site-header .bar { height: 62px; gap: var(--space-3); }
  .brand img { height: 34px; }
  .nav {
    order: 3; margin: 0; width: 100%; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 10px; gap: 6px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex-shrink: 0; font-size: 0.875rem; padding: 7px 12px; background: var(--bg-alternate); }
  .site-header .bar { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .header-actions .btn-cta-label { display: none; }
}

/* ---------- Reveal-on-load motion ---------- */
.rise { opacity: 0; transform: translateY(14px); animation: rise var(--duration-slow) var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Opening screen (home hero) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--bg-line);
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column;
}
.hero::before { /* soft lime glow */
  content: ''; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  inset-inline-end: -260px; top: -320px;
  background: radial-gradient(closest-side, rgba(185, 194, 89, 0.28), rgba(112, 179, 108, 0.10) 55%, transparent 72%);
  pointer-events: none;
}
.hero-mark { /* oversized leaf watermark */
  position: absolute; width: 520px; opacity: 0.07; inset-inline-start: -140px; bottom: -120px; pointer-events: none;
}
html[dir="rtl"] .hero-mark { transform: scaleX(-1); }
.hero-grid {
  position: relative; flex: 1;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); align-items: center;
  padding-block: var(--space-12) var(--space-8);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--radius-pill);
  background: var(--surface-card); border: 1px solid var(--bg-line); box-shadow: var(--shadow-xs);
  font-size: 0.8125rem; font-weight: 700; color: var(--green-700);
}
html[dir="rtl"] .hero-eyebrow { padding: 6px 8px 6px 14px; }
.hero-eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient-leaf); display: grid; place-items: center; color: #fff; }
.hero-eyebrow .dot .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em;
  margin: var(--space-5) 0 0; color: var(--fg);
}
html[lang="ar"] .hero h1 { line-height: 1.25; letter-spacing: 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.hero h1 .line { display: block; }
.hero-lead { margin: var(--space-6) 0 0; max-width: 34rem; font-size: 1.1875rem; line-height: 1.6; color: var(--neutral-600); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-ctas .btn-tertiary .ic { color: var(--green-600); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--space-8);
  margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(21, 32, 26, 0.10);
}
.hero-stats .num { font-family: var(--font-mono); font-weight: 500; font-size: 1.75rem; color: var(--green-700); letter-spacing: -0.02em; line-height: 1.1; }
.hero-stats .lbl { font-size: 0.8125rem; font-weight: 600; color: var(--fg-muted); margin-top: 4px; }

/* Laptop showcase */
.showcase { position: relative; aspect-ratio: 1 / 0.92; max-width: 560px; margin-inline: auto; width: 100%; }
.showcase .tile {
  position: absolute; background: var(--surface-card); border-radius: var(--radius-2xl); border: 1px solid var(--bg-line);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.showcase .tile img { width: 100%; height: 100%; object-fit: contain; }
.showcase .t-main { width: 74%; aspect-ratio: 1; inset-inline-start: 13%; top: 10%; z-index: 3; padding: 4%; }
.showcase .t-back1 { width: 44%; aspect-ratio: 1; inset-inline-start: 0; top: 0; z-index: 1; transform: rotate(-7deg); padding: 3%; opacity: 0.96; }
.showcase .t-back2 { width: 44%; aspect-ratio: 1; inset-inline-end: 0; bottom: 2%; z-index: 2; transform: rotate(6deg); padding: 3%; }
.showcase .t-main::after { /* subtle leaf rim */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(112, 179, 108, 0.25);
}
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--bg-line);
  padding: 10px 14px 10px 10px; font-size: 0.8125rem; line-height: 1.3;
}
html[dir="rtl"] .chip { padding: 10px 10px 10px 14px; }
.chip b { display: block; font-size: 0.875rem; color: var(--fg); }
.chip span { color: var(--fg-muted); }
.chip .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-positive-wash); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.chip .ico .ic { width: 19px; height: 19px; }
.chip-1 { inset-inline-start: -4%; bottom: 16%; }
.chip-2 { inset-inline-end: -2%; top: 6%; }

/* Trust strip at the bottom of the opening screen */
.trust-strip { position: relative; border-top: 1px solid rgba(21, 32, 26, 0.08); background: var(--surface-translucent); }
.trust-strip .wrap { display: flex; align-items: center; gap: var(--space-8); padding-block: var(--space-5); flex-wrap: wrap; }
.trust-strip .lbl { font-size: var(--label2-size); font-weight: 700; letter-spacing: var(--label2-spacing); text-transform: uppercase; color: var(--fg-muted); }
.clients { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.clients li {
  height: 52px; min-width: 132px; padding: 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
}
.clients img { height: 28px; width: auto; }
/* a two-line lockup needs more height than a single wordmark to stay legible */
.clients img.stacked { height: 38px; }
/* a square app-style mark needs more height than a wordmark to read */
.clients img.square { height: 40px; border-radius: 9px; }
.client .logo img.square { max-height: 88px; border-radius: 16px; }
.client .logo img.stacked { max-height: 74px; }
.clients .wordmark { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1rem; color: var(--neutral-700); letter-spacing: -0.01em; line-height: 1.1; }
.clients .wordmark small { display: block; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); padding-block: var(--space-10) var(--space-8); }
  .showcase { max-width: 440px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: var(--space-6) var(--space-10); }
}
@media (max-width: 480px) {
  .hero-lead { font-size: 1.0625rem; }
  .hero-ctas .btn { width: 100%; }
  .chip { font-size: 0.75rem; padding: 8px 12px 8px 8px; }
  .chip .ico { width: 30px; height: 30px; }
  .trust-strip .wrap { gap: var(--space-3); }
  .clients { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .clients li { min-width: 0; }
}

/* ---------- Trade-in band (home) ---------- */
.trade { padding-block: var(--space-20); }
.trade-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-10); align-items: center;
  background: var(--gradient-leaf-soft); border: 1px solid var(--bg-line); border-radius: var(--radius-2xl);
  padding: var(--space-12);
}
.trade h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.022em; margin: var(--space-3) 0 0;
}
html[lang="ar"] .trade h2 { line-height: 1.35; letter-spacing: 0; }
.trade p { margin: var(--space-4) 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--neutral-600); max-width: 32rem; }
.trade-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.trade-ctas .btn-tertiary .ic { color: var(--green-600); }
.trade-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); }
.trade-visual figure { margin: 0; background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-4); box-shadow: var(--shadow-card); text-align: center; }
.trade-visual img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.trade-visual figcaption { margin-top: var(--space-2); font-size: var(--caption-size); font-weight: 700; color: var(--fg-muted); }
.trade-visual .old img { filter: grayscale(1); mix-blend-mode: multiply; opacity: 0.7; }
.trade-visual .new { border-color: var(--green-300); box-shadow: var(--shadow-lg); transform: scale(1.06); }
.trade-visual .new figcaption { color: var(--green-700); }
.trade-visual .swap { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; box-shadow: var(--shadow-md); }
.trade-visual .swap .ic { width: 22px; height: 22px; stroke-width: 2; }
@media (max-width: 900px) {
  .trade { padding-block: var(--space-12); }
  .trade-card { grid-template-columns: 1fr; padding: var(--space-8) var(--space-5); }
}
@media (max-width: 480px) { .trade-ctas .btn { width: 100%; } }

/* ---------- Workshop banner (home) ---------- */
.banner { padding-top: var(--space-20); }
.banner-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--bg-line);
  min-height: 520px; display: flex; align-items: center; background: var(--gradient-hero); box-shadow: var(--shadow-card);
}
.banner-media { position: absolute; inset: 0; }
.banner-photo { width: 100%; height: 100%; object-fit: cover; }
.banner-frame.has-photo .banner-collage { display: none; }
/* Photo mode: soft white wash on the physical left, where the copy sits (the photo keeps its left third calm) */
.banner-frame.has-photo .banner-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 34%, rgba(255,255,255,0) 62%);
}
.banner-collage { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 50%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 36px; }
.banner-collage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--surface-card); border-radius: var(--radius-xl); border: 1px solid var(--bg-line); padding: 6%; box-shadow: var(--shadow-md); }
.banner-collage img:first-child { grid-row: span 2; }
.banner-copy { position: relative; z-index: 1; width: min(500px, 42%); margin-inline-start: var(--space-12); padding-block: var(--space-12); }
/* With the real photo, the copy sits on the physical left in both languages (the photo's calm third) */
.banner-frame.has-photo { direction: ltr; }
.banner-frame.has-photo .banner-copy { margin-left: var(--space-12); margin-right: 0; }
html[dir="rtl"] .banner-frame.has-photo .banner-copy { direction: rtl; }
/* Arabic sits right-aligned inside the copy column, so it reaches further into
   the photo — widen the white wash a little in RTL to keep it readable. */
html[dir="rtl"] .banner-frame.has-photo .banner-media::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0) 72%);
}
.banner h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.022em; margin: var(--space-3) 0 0; }
html[lang="ar"] .banner h2 { line-height: 1.4; letter-spacing: 0; }
.banner p { margin: var(--space-4) 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--neutral-600); }
.banner-chips { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: flex; flex-wrap: wrap; gap: 8px; }
.banner-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--bg-line); font-size: 0.8125rem; font-weight: 600; box-shadow: var(--shadow-xs); }
.banner-chips .ic { width: 16px; height: 16px; color: var(--green-600); }
@media (max-width: 900px) {
  .banner { padding-top: var(--space-12); }
  .banner-frame { flex-direction: column; align-items: stretch; min-height: 0; }
  .banner-media { position: relative; height: 260px; }
  .banner-collage { width: 100%; padding: 16px; gap: 10px; }
  .banner-frame.has-photo .banner-media::after { background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%); }
  .banner-copy { width: auto; margin: 0; padding: var(--space-6) var(--space-5) var(--space-8); }
  .banner-copy .btn { width: 100%; }
}

/* ---------- Inner pages: shared ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero { background: var(--gradient-hero); border-bottom: 1px solid var(--bg-line); padding-block: var(--space-16) var(--space-12); position: relative; overflow: hidden; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.028em; margin: var(--space-4) 0 0; max-width: 16ch; }
html[lang="ar"] .page-hero h1 { line-height: 1.3; letter-spacing: 0; max-width: 18ch; }
.page-hero .lead { margin: var(--space-5) 0 0; max-width: 40rem; font-size: 1.1875rem; line-height: 1.65; color: var(--neutral-600); }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-10) 0 0; }
.facts > div { background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 12px 18px; box-shadow: var(--shadow-xs); }
.facts dt { font-size: var(--label2-size); font-weight: 700; letter-spacing: var(--label2-spacing); text-transform: uppercase; color: var(--fg-muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1rem; }

.subnav { position: sticky; top: 72px; z-index: 40; background: var(--surface-translucent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--bg-line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 7px 14px; border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; color: var(--neutral-700); border: 1px solid var(--bg-line); background: var(--surface-card); }
.subnav a:hover { text-decoration: none; border-color: var(--green-300); color: var(--fg-primary); }
@media (max-width: 900px) { .subnav { position: static; } }

.section { padding-block: var(--space-20); scroll-margin-top: 130px; }
.section.tinted { background: var(--bg-alternate); border-block: 1px solid var(--bg-line); }
.section-head { max-width: 44rem; margin-bottom: var(--space-10); }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -0.022em; margin: var(--space-3) 0 0; }
html[lang="ar"] .section-head h2 { line-height: 1.4; letter-spacing: 0; }
.section-head p { margin: var(--space-4) 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--neutral-600); }
@media (max-width: 700px) { .section { padding-block: var(--space-12); } .section-head { margin-bottom: var(--space-8); } }

/* Numbers */
.numbers { padding-block: var(--space-12); }
.num-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-card); }
.num-grid > div { padding: var(--space-6) var(--space-5); border-inline-end: 1px solid var(--bg-line); }
.num-grid > div:last-child { border-inline-end: 0; }
.num-grid b { display: block; font-size: 1.875rem; font-weight: 500; color: var(--green-700); letter-spacing: -0.02em; line-height: 1.1; text-align: start; unicode-bidi: plaintext; }
.num-grid span { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--fg-muted); line-height: 1.35; }
@media (max-width: 1000px) {
  .num-grid { grid-template-columns: repeat(3, 1fr); }
  .num-grid > div:nth-child(3n) { border-inline-end: 0; }
  .num-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--bg-line); }
}
@media (max-width: 560px) {
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .num-grid > div { border-inline-end: 1px solid var(--bg-line) !important; border-bottom: 1px solid var(--bg-line); }
  .num-grid > div:nth-child(2n) { border-inline-end: 0 !important; }
  .num-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .num-grid b { font-size: 1.5rem; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.svc-card { background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: flex-start; }
.svc-ico, .f-ico { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--bg-primary-wash); color: var(--green-700); }
.svc-ico .ic, .f-ico .ic { width: 26px; height: 26px; }
.svc-card h3 { font-size: var(--title2-size); font-weight: 700; margin: var(--space-5) 0 0; letter-spacing: -0.014em; }
.svc-card > p { margin: var(--space-3) 0 0; color: var(--neutral-600); line-height: 1.65; }
.ticks { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks .ic { width: 20px; height: 20px; color: var(--green-600); margin-top: 2px; stroke-width: 2.2; }
.svc-card .btn { margin-top: auto; }
@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { padding: var(--space-6); } .svc-card .btn { width: 100%; } }

/* Quality steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: s; }
.steps li { position: relative; background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }
.steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-leaf); color: #fff; font-size: 0.875rem; }
.steps h3 { font-size: 1.0625rem; font-weight: 700; margin: var(--space-4) 0 0; }
.steps p { margin: var(--space-2) 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-muted); }
.groups { margin-top: var(--space-6); background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-8); }
.groups h3 { margin: 0 0 var(--space-5); font-size: 1.0625rem; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.groups h3 .mono { font-size: 1.75rem; color: var(--green-700); }
.groups ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px var(--space-6); }
.groups li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.groups .ic { width: 20px; height: 20px; color: var(--green-600); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:last-child { grid-column: span 2; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; } .steps li:last-child { grid-column: auto; }
  .groups { padding: var(--space-5); } .groups ul { grid-template-columns: 1fr 1fr; }
}

/* Warranty features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.feature { border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface-card); }
.feature h3 { font-size: 1.125rem; font-weight: 700; margin: var(--space-4) 0 0; }
.feature p { margin: var(--space-2) 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--fg-muted); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* SLA */
.sla-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.sla-card { background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-8); }
.sla-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-3); font-size: 1.125rem; }
.sla-card h3 .ic { color: var(--green-600); }
.sla-card dl { margin: 0; }
.sla-card dl > div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 14px; border-top: 1px solid var(--bg-line); }
.sla-card dt { color: var(--neutral-600); }
.sla-card dd { margin: 0; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.note { display: flex; align-items: center; gap: 10px; margin: var(--space-6) 0 0; font-size: 0.9375rem; color: var(--fg-muted); }
.note .ic { color: var(--green-600); }
@media (max-width: 800px) { .sla-grid { grid-template-columns: 1fr; } .sla-card { padding: var(--space-5); } }

/* Data security */
.security { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); align-items: start; }
.security .section-head { margin-bottom: 0; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sec-list li { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-5); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); background: var(--surface-card); font-weight: 600; line-height: 1.45; }
.sec-list .ic { width: 22px; height: 22px; color: var(--green-600); margin-top: 1px; }
@media (max-width: 900px) { .security { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .sec-list { grid-template-columns: 1fr; } }

/* Sustainability + CTA */
.eco-wrap { padding-top: 0; }
.eco { display: flex; gap: var(--space-5); align-items: center; padding: var(--space-8); border-radius: var(--radius-xl); background: var(--gradient-leaf-soft); border: 1px solid var(--bg-line); }
.eco h3 { margin: 0; font-size: 1.25rem; }
.eco p { margin: 6px 0 0; color: var(--neutral-600); line-height: 1.6; }
@media (max-width: 600px) { .eco { flex-direction: column; align-items: flex-start; padding: var(--space-6); } }
.cta-band { background: var(--gradient-hero); border-top: 1px solid var(--bg-line); text-align: center; padding-block: var(--space-20); }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.022em; margin: 0; }
html[lang="ar"] .cta-band h2 { letter-spacing: 0; }
.cta-band p { margin: var(--space-3) auto 0; max-width: 34rem; color: var(--neutral-600); font-size: 1.0625rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
@media (max-width: 480px) { .cta-actions .btn { width: 100%; } }

/* ---------- Catalog ---------- */
.page-hero.compact { padding-block: var(--space-12) var(--space-10); }
.cat-hero { display: grid; grid-template-columns: 1fr auto; gap: var(--space-10); align-items: end; }
.cat-hero h1 { max-width: 20ch; }
.how { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.how li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.how .mono { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; font-size: 0.75rem; }
@media (max-width: 1000px) { .cat-hero { grid-template-columns: 1fr; gap: var(--space-6); } .how { flex-wrap: wrap; } }

.catalog { padding-block: var(--space-8) var(--space-20); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); background: var(--surface-card); }
.search:focus-within { border-color: var(--green-500); box-shadow: var(--ring-focus); }
.search .ic { color: var(--fg-muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 0.9375rem; background: transparent; color: var(--fg); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-secondary); border: 1px solid var(--bg-line); }
.seg button { height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; font-weight: 600; font-size: 0.875rem; color: var(--neutral-600); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-card); color: var(--fg-primary); box-shadow: var(--shadow-sm); }
.seg button:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.count { margin: 0 0 0 auto; font-weight: 600; font-size: 0.875rem; color: var(--fg-muted); }
html[dir="rtl"] .count { margin: 0 auto 0 0; }
@media (max-width: 700px) { .count { width: 100%; margin: 0; } .filters { width: 100%; } .seg { flex: 1 1 100%; } .seg button { flex: 1; padding: 0 8px; } }

.lap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.lap-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.lap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lap-media { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 0; border: 0; border-bottom: 1px solid var(--bg-line); background: var(--surface-card); cursor: zoom-in; overflow: hidden; flex-shrink: 0; }
.lap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.lap-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--bg-primary-wash); color: var(--green-700); font-size: 0.75rem; font-weight: 700; border: 1px solid var(--green-100); }
.badge.alt { background: var(--accent-lime-wash); color: var(--lime-600); border-color: var(--lime-200); }
.lap-body { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4) var(--space-4) var(--space-5); flex: 1; }
.lap-body h3 { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.lap-body h3 button { all: unset; cursor: pointer; }
.lap-body h3 button:hover { color: var(--fg-primary); }
.lap-body h3 button:focus-visible { box-shadow: var(--ring-focus); border-radius: 4px; }
.lap-specs { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.lap-specs li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--neutral-600); }
.lap-specs .ic { width: 15px; height: 15px; color: var(--green-600); flex-shrink: 0; }
html[dir="rtl"] .lap-specs { text-align: left; }
/* the whole card opens the device — it carries no buttons of its own */
.lap-card[data-open] { cursor: pointer; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon .ic { color: var(--green-600); }
.btn-added { background: var(--bg-primary-wash); color: var(--green-700); border-color: var(--green-200); }
.btn-added:hover { background: var(--green-100); }
.empty { text-align: center; padding: var(--space-16) var(--space-4); color: var(--fg-muted); max-width: 30rem; margin: 0 auto; }

/* Sticky quote bar */
.quote-bar { position: sticky; bottom: 0; z-index: 55; background: var(--surface-translucent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--bg-line); box-shadow: 0 -8px 24px rgba(21,32,26,0.08); }
.quote-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 12px; }
.qb-info { display: flex; align-items: center; gap: 12px; }
.qb-info b { display: block; font-size: 0.9375rem; }
.qb-info span:not(.qb-ico) { font-size: 0.8125rem; color: var(--fg-muted); }
.qb-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-primary-wash); color: var(--green-700); }

/* Dialogs */
dialog { padding: 0; border: 0; color: var(--fg); background: transparent; }
dialog::backdrop { background: var(--bg-overlay); }
.modal { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.modal-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface-card); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-pop); max-height: calc(100vh - 32px); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bg-line); background: var(--surface-translucent); display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.modal-close:hover { background: var(--bg-secondary); }
.d-gallery { background: var(--surface-card); border-inline-end: 1px solid var(--bg-line); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.d-main { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.d-main img { width: 100%; height: 100%; object-fit: contain; }
.d-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.d-thumbs button { width: 64px; height: 56px; padding: 4px; border-radius: var(--radius-md); border: 1.5px solid var(--bg-line); background: var(--surface-card); cursor: pointer; }
.d-thumbs button[aria-pressed="true"] { border-color: var(--green-500); }
.d-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.d-info { padding: var(--space-8) var(--space-8) var(--space-6); overflow-y: auto; }
.d-info h2 { margin: 6px 0 0; font-size: var(--title1-size); font-weight: 800; letter-spacing: -0.018em; }
.d-price { margin: 6px 0 0; font-weight: 600; color: var(--fg-muted); font-size: 0.9375rem; }
.d-specs { margin: var(--space-5) 0 0; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); overflow: hidden; }
.d-specs > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 11px 14px; border-top: 1px solid var(--bg-line); font-size: 0.9375rem; }
.d-specs > div:first-child { border-top: 0; }
.d-specs > div:nth-child(odd) { background: var(--bg-alternate); }
.d-specs dt { color: var(--fg-muted); }
.d-specs dd { margin: 0; font-weight: 600; text-align: end; }
.d-promise { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: 8px; }
.d-promise li { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; font-weight: 500; }
.d-promise .ic { width: 18px; height: 18px; color: var(--green-600); }
.d-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.d-actions .btn { flex: 1; }
.d-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-4); font-weight: 600; font-size: 0.9375rem; }
.stepper { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); overflow: hidden; background: var(--surface-card); }
.stepper button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--fg); }
.stepper button:hover { background: var(--bg-secondary); }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; font-family: var(--font-mono); font-size: 0.9375rem; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm { height: 36px; }
.stepper.sm button { width: 32px; }
.stepper.sm input { width: 40px; }
@media (max-width: 800px) {
  .modal-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .d-gallery { border-inline-end: 0; border-bottom: 1px solid var(--bg-line); padding: var(--space-4); }
  .d-info { padding: var(--space-5); overflow: visible; }
}

/* Quote sheet (side panel) */
.sheet { margin: 0; margin-inline-start: auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); }
.sheet-inner { height: 100%; display: flex; flex-direction: column; background: var(--surface-card); box-shadow: var(--shadow-pop); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--bg-line); }
.sheet-head h2 { margin: 0; font-size: var(--title3-size); }
.sheet-head .modal-close { position: static; }
.sheet-body { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6); }
.sheet-foot { padding: var(--space-4) var(--space-6) var(--space-5); border-top: 1px solid var(--bg-line); background: var(--bg-alternate); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-item { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); }
.q-item img { width: 56px; height: 44px; object-fit: contain; }
.q-text { min-width: 0; }
.q-text b { display: block; font-size: 0.875rem; }
.q-text span { display: block; font-size: 0.75rem; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[dir="rtl"] .q-text span { text-align: right; }
.q-remove { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-muted); cursor: pointer; display: grid; place-items: center; }
.q-remove:hover { background: var(--red-wash); color: var(--red-600); }
.q-empty { color: var(--fg-muted); text-align: center; padding: var(--space-10) 0; margin: 0; }
.q-list:empty { display: none; }
.q-form { border: 0; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-form legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--neutral-700); position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-size: 0.9375rem; font-weight: 400; color: var(--fg); padding: 11px 12px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); background: var(--surface-card); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring-focus); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field.invalid input { border-color: var(--red-500); }
.field.invalid::after { content: attr(data-error); color: var(--red-600); font-size: 0.75rem; font-weight: 500; }
.q-hint { margin: 10px 0 0; text-align: center; font-size: 0.8125rem; color: var(--fg-muted); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) {
  .q-form { grid-template-columns: 1fr; } .sheet-body, .sheet-head, .sheet-foot { padding-inline: var(--space-4); }
  .q-item { grid-template-columns: 48px 1fr auto; row-gap: 8px; }
  .q-item img { width: 48px; grid-row: span 2; }
  .q-item .stepper { grid-column: 2; grid-row: 2; justify-self: start; }
  .q-remove { grid-column: 3; grid-row: 1; }
}

/* ---------- About ---------- */
/* The statement band: one idea, centred, on Kroobia green. The symbol is a
   badge rather than punctuation, so it reads as a comparison and not a typo. */
.about-quote {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; text-align: center; gap: var(--space-4);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-2xl);
  background: linear-gradient(150deg, var(--green-600) 0%, var(--green-800) 55%, var(--green-900) 100%);
  color: #fff;
}
/* a soft leaf-lime glow in the corner, so the panel is not a flat block */
.about-quote::after {
  content: ""; position: absolute; inset-inline-end: -12%; top: -45%;
  width: 55%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(185,194,89,0.28) 0%, rgba(185,194,89,0) 70%);
}
.about-quote > * { position: relative; z-index: 1; }
.about-quote .kr-eyebrow { color: rgba(255,255,255,0.75); }
.about-quote .big {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.25; letter-spacing: -0.03em;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.3em;
}
.about-quote .neq {
  font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 0.62em;
}
.about-quote .sub {
  margin: 0; font-size: 1.0625rem; line-height: 1.75;
  color: rgba(255,255,255,0.82); max-width: 54ch;
}
@media (max-width: 760px) {
  .about-quote { padding: var(--space-10) var(--space-5); }
  .about-quote .sub { font-size: 1rem; }
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
/* a mission or a vision is a statement — centre it so it reads as one,
   and cap the line length so the two cards do not end up ragged */
.mv { padding: var(--space-8) var(--space-6); border: 1px solid var(--bg-line); border-radius: var(--radius-xl);
  background: var(--gradient-leaf-soft); display: grid; justify-items: center; text-align: center; }
.mv p { max-width: 34ch; }
.mv h3 { margin: var(--space-4) 0 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: var(--label2-spacing); text-transform: uppercase; color: var(--green-700); }
.mv p { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }

/* Arabic joins its letters, and its dots sit under them. Negative tracking —
   which the Latin headings need — pulls the joins apart and drags the dot off
   letters like ج. Every tightened rule gets reset for Arabic. */
html[lang="ar"] .mono,
html[lang="ar"] .hero-stats .num,
html[lang="ar"] .num-grid b,
html[lang="ar"] .clients .wordmark,
html[lang="ar"] .client .logo .wordmark,
html[lang="ar"] .svc-card h3,
html[lang="ar"] .lap-body h3,
html[lang="ar"] .d-info h2,
html[lang="ar"] .about-quote .big,
html[lang="ar"] .mv p { letter-spacing: 0; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } .mv { padding: var(--space-6); } }

.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.client { display: flex; flex-direction: column; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); background: var(--surface-card); overflow: hidden; box-shadow: var(--shadow-card); }
.client .logo { height: 120px; display: grid; place-items: center; padding: var(--space-6); border-bottom: 1px solid var(--bg-line); }
.client .logo img { max-height: 52px; width: auto; }
.client .logo .wordmark { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.375rem; color: var(--neutral-700); text-align: center; line-height: 1.1; letter-spacing: -0.01em; }
.client .logo .wordmark small { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-top: 4px; }
.client .meta { padding: var(--space-4) var(--space-5); }
.client .meta b { display: block; font-size: 1rem; }
.client .meta span { font-size: 0.875rem; color: var(--fg-muted); }
@media (max-width: 1000px) { .client-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .client .logo { height: 96px; padding: var(--space-4); }
  .client .logo img { max-height: 40px; }
  .client .logo .wordmark { font-size: 1rem; white-space: nowrap; }
  .client .logo .wordmark small { font-size: 0.5625rem; letter-spacing: 0.06em; }
}

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.person { display: flex; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); background: var(--surface-card); }
.avatar {
  position: relative; overflow: hidden; flex-shrink: 0;
  width: 104px; height: 138px;            /* portrait, so the face fills it */
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: var(--gradient-leaf); color: #fff;
  font-weight: 800; font-size: 1.5rem; font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (max-width: 520px) { .avatar { width: 88px; height: 116px; } }
/* the photo covers the initials once it exists; until then the initials show */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; font-size: 1.1875rem; }
.person .role { display: block; margin-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--green-700); }
.person p { margin: var(--space-3) 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--neutral-600); }
.team-note { margin: var(--space-5) 0 0; color: var(--fg-muted); font-weight: 500; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } .person { padding: var(--space-5); } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
.timeline li { position: relative; padding-top: var(--space-8); }
.timeline li::before { content: ''; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--green-100); }
.timeline li::after { content: ''; position: absolute; top: 2px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--gradient-leaf); box-shadow: 0 0 0 4px var(--bg-alternate); }
.timeline .yr { font-family: var(--font-mono); font-size: 1.25rem; color: var(--green-700); }
.timeline p { margin: 6px 0 0; font-weight: 600; line-height: 1.5; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 var(--space-6); padding-inline-start: var(--space-8); }
  .timeline li::before { top: 0; bottom: 0; inset-inline: 7px auto; width: 2px; height: auto; }
}

/* ---------- Buyback ---------- */
.bb-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-10); align-items: end; }
.bb-hero .hero-ctas { margin-top: var(--space-6); }
.options { display: grid; gap: var(--space-3); }
.option { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-xl); background: var(--surface-card); border: 1px solid var(--bg-line); box-shadow: var(--shadow-card); }
.option b { display: block; font-size: 1.125rem; }
.option span.txt { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.5; }
.option .or { display: none; }
@media (max-width: 900px) { .bb-hero { grid-template-columns: 1fr; gap: var(--space-8); } }

.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.check-grid li { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-5); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); background: var(--surface-card); font-weight: 600; line-height: 1.45; }
.check-grid .ic { width: 22px; height: 22px; color: var(--green-600); flex-shrink: 0; }
@media (max-width: 900px) { .check-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps.four { grid-template-columns: 1fr 1fr; } .steps.four li:last-child { grid-column: auto; } }
@media (max-width: 600px) { .steps.four { grid-template-columns: 1fr; } }

.form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-12); align-items: start; }
.form-card { background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-2xl); padding: var(--space-8); box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.form-grid .field.full { grid-column: 1 / -1; }
.field select { font: inherit; font-size: 0.9375rem; font-weight: 400; color: var(--fg); padding: 11px 12px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); background: var(--surface-card); }
.field select:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring-focus); }
.field.invalid select { border-color: var(--red-500); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.choices input { accent-color: var(--green-700); margin: 0; }
.choices label:has(input:checked) { border-color: var(--green-500); background: var(--bg-primary-wash); color: var(--green-800); }
.form-card .btn-block { margin-top: var(--space-6); }
.form-card .q-hint { text-align: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: var(--space-5); } }

.faq { display: grid; gap: var(--space-3); max-width: 52rem; }
.faq details { border: 1px solid var(--bg-line); border-radius: var(--radius-lg); background: var(--surface-card); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--green-600); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--neutral-600); line-height: 1.65; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-inverse); color: rgba(255, 255, 255, 0.72); }
.site-footer .wrap { padding-block: var(--space-12) var(--space-8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.site-footer h4 { color: #fff; font-size: 0.9375rem; margin: 0 0 var(--space-4); }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
/* the contact line is a real button, not a link lost in a list */
.footer-cta { gap: 8px; color: #fff; width: fit-content; }
.footer-cta .mono { opacity: 0.85; }
.footer-cta:hover { color: #fff; }

.footer-logo { height: 40px; width: auto; }
.footer-tag { margin: var(--space-4) 0 0; max-width: 22rem; font-size: 0.9375rem; line-height: 1.6; }
.footer-legal { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--caption-size); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Floating WhatsApp button (mobile) */

/* ---------- Techne landing (QR page) ---------- */
body.landing { background: var(--gradient-hero); min-height: 100vh; }
.land-head { background: var(--surface-translucent); border-bottom: 1px solid var(--bg-line); backdrop-filter: blur(8px); }
.land-head .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.land-head img { height: 38px; width: auto; }
.land { padding-bottom: var(--space-10); }
.land-hero { padding-block: var(--space-10) var(--space-8); text-align: center; }
.land-hero .hero-eyebrow { margin-inline: auto; }
.land-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; margin: var(--space-5) 0 0; }
html[lang="ar"] .land-hero h1 { line-height: 1.35; letter-spacing: 0; }
.land-hero p { margin: var(--space-4) auto 0; max-width: 34rem; color: var(--neutral-600); font-size: 1.0625rem; line-height: 1.65; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.path { display: flex; flex-direction: column; gap: 6px; padding: var(--space-6); background: var(--surface-card); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); color: var(--fg); transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.path:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path .p-ico { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; margin-bottom: var(--space-2); }
.path .p-ico .ic { width: 26px; height: 26px; }
.path b { font-size: 1.25rem; }
.path > span:not(.p-ico):not(.go) { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.55; }
.path .go { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); color: var(--fg-primary); font-weight: 700; font-size: 0.9375rem; }
@media (max-width: 700px) { .paths { grid-template-columns: 1fr; } .path { padding: var(--space-5); } }

.offers {
  margin-top: var(--space-8); border-radius: var(--radius-2xl); padding: var(--space-8); color: #fff;
  /* Kroobia deep green, not black — the panel should read as the brand */
  background: linear-gradient(150deg, var(--green-700) 0%, var(--green-900) 100%);
}
.offers h2 { margin: 0 0 var(--space-5); font-family: var(--font-display); font-size: 1.5rem; }
.offers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--space-6); }
.offers li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.offers .ic { color: var(--lime-400); flex-shrink: 0; }
.offers .fine { margin: var(--space-5) 0 0; color: rgba(255,255,255,0.72); font-size: 0.8125rem; }
@media (max-width: 700px) { .offers { padding: var(--space-6); } .offers ul { grid-template-columns: 1fr; } }

.lead-wrap { margin-top: var(--space-8); }
.lead-wrap .form-card h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.lead-wrap .form-sub { margin: var(--space-2) 0 var(--space-6); color: var(--fg-muted); }
.lead-done { margin: var(--space-4) 0 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-positive-wash); color: var(--green-800); font-weight: 600; text-align: center; }
.lead-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-4); font-weight: 600; }
.land-foot { margin-top: var(--space-10); }
.land-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: var(--fg-muted); font-size: 0.8125rem; border-top: 1px solid var(--bg-line); padding-top: var(--space-5); }


/* ---------- Dark theme (generated by tools/theme_toggle.py) ----------
   Written twice on purpose: the media query keeps the device preference as the
   default, the [data-theme] copy lets the header toggle override it. Edit the
   palette in one place by re-running the script, not by hand. */

/* 1. what the device asks for, unless the visitor chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fg: #EFF3EC; --fg-muted: #A9B6A8; --fg-subtle: #8A978A; --fg-inverse: #0F1613; --fg-primary: #8FC970; --fg-positive: #8FC970; --bg: #0F1613; --bg-alternate: #141E19; --bg-secondary: #1A2620; --bg-tertiary: #223027; --bg-inverse: #1D2A23; --bg-overlay: rgba(6, 10, 8, 0.7); --bg-primary: #2E9E57; --bg-primary-hover: #46A05A; --bg-primary-active: #1E7A46; --bg-primary-wash: rgba(46, 158, 87, 0.16); --bg-positive-wash: rgba(46, 158, 87, 0.16); --bg-line: #26332C; --bg-line-heavy: #38493F; --surface-card: #16211C; --surface-translucent: rgba(18, 26, 22, 0.9); --surface-media: #F2F5F0; --surface-sunken: #121B16; --accent-lime-wash: rgba(185, 194, 89, 0.14); --green-100: rgba(46, 158, 87, 0.22); --green-200: rgba(46, 158, 87, 0.35); --gradient-hero: linear-gradient(160deg, #101A15 0%, #14211B 55%, #16261D 100%); --gradient-leaf-soft: linear-gradient(135deg, #16231B 0%, #142019 100%); --ring-focus: 0 0 0 3px rgba(143, 201, 112, 0.35); --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45); --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5); --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55); --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35); --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.6); }
  :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .land-head img { content: url('logo/kroobia-logo-white.png'); }
  :root:not([data-theme="light"]) .site-footer { background: var(--surface-sunken); border-top: 1px solid var(--bg-line); }
  :root:not([data-theme="light"]) .lap-media, :root:not([data-theme="light"]) .lap-media img, :root:not([data-theme="light"]) .d-main, :root:not([data-theme="light"]) .d-thumbs button, :root:not([data-theme="light"]) .showcase .tile, :root:not([data-theme="light"]) .trade-visual figure, :root:not([data-theme="light"]) .banner-collage img, :root:not([data-theme="light"]) .clients li { background: var(--surface-media); }
  :root:not([data-theme="light"]) .clients .wordmark { color: #2A3830; }
  :root:not([data-theme="light"]) .clients .wordmark small { color: #55635A; }
  :root:not([data-theme="light"]) .banner-frame.has-photo .banner-media::after { background: linear-gradient(90deg, rgba(15, 22, 19, 0.95) 0%, rgba(15, 22, 19, 0.82) 38%, rgba(15, 22, 19, 0) 66%); }
  html[dir="rtl"]:not([data-theme="light"]) .banner-frame.has-photo .banner-media::after { background: linear-gradient(90deg, rgba(15, 22, 19, 0.96) 0%, rgba(15, 22, 19, 0.9) 42%, rgba(15, 22, 19, 0) 72%); }
  :root:not([data-theme="light"]) .banner-frame { background: var(--gradient-hero); }
  :root:not([data-theme="light"]) .field input, :root:not([data-theme="light"]) .field textarea, :root:not([data-theme="light"]) .field select, :root:not([data-theme="light"]) .search, :root:not([data-theme="light"]) .stepper { background: var(--surface-card); color: var(--fg); }
  :root:not([data-theme="light"]) .field input::placeholder, :root:not([data-theme="light"]) .field textarea::placeholder, :root:not([data-theme="light"]) .search input::placeholder { color: var(--fg-subtle); }
  :root:not([data-theme="light"]) .btn-tertiary { background: var(--surface-card); color: var(--fg); }
  :root:not([data-theme="light"]) .btn-tertiary:hover { background: var(--bg-secondary); }
  :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: var(--bg-tertiary); color: var(--fg-primary); }
  :root:not([data-theme="light"]) .lang-toggle { background: var(--bg-secondary); color: var(--fg); }
}

/* 2. what the visitor picked with the header toggle */
:root[data-theme="dark"] { --fg: #EFF3EC; --fg-muted: #A9B6A8; --fg-subtle: #8A978A; --fg-inverse: #0F1613; --fg-primary: #8FC970; --fg-positive: #8FC970; --bg: #0F1613; --bg-alternate: #141E19; --bg-secondary: #1A2620; --bg-tertiary: #223027; --bg-inverse: #1D2A23; --bg-overlay: rgba(6, 10, 8, 0.7); --bg-primary: #2E9E57; --bg-primary-hover: #46A05A; --bg-primary-active: #1E7A46; --bg-primary-wash: rgba(46, 158, 87, 0.16); --bg-positive-wash: rgba(46, 158, 87, 0.16); --bg-line: #26332C; --bg-line-heavy: #38493F; --surface-card: #16211C; --surface-translucent: rgba(18, 26, 22, 0.9); --surface-media: #F2F5F0; --surface-sunken: #121B16; --accent-lime-wash: rgba(185, 194, 89, 0.14); --green-100: rgba(46, 158, 87, 0.22); --green-200: rgba(46, 158, 87, 0.35); --gradient-hero: linear-gradient(160deg, #101A15 0%, #14211B 55%, #16261D 100%); --gradient-leaf-soft: linear-gradient(135deg, #16231B 0%, #142019 100%); --ring-focus: 0 0 0 3px rgba(143, 201, 112, 0.35); --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45); --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5); --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55); --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35); --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.6); }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .land-head img { content: url('logo/kroobia-logo-white.png'); }
:root[data-theme="dark"] .site-footer { background: var(--surface-sunken); border-top: 1px solid var(--bg-line); }
:root[data-theme="dark"] .lap-media, :root[data-theme="dark"] .lap-media img, :root[data-theme="dark"] .d-main, :root[data-theme="dark"] .d-thumbs button, :root[data-theme="dark"] .showcase .tile, :root[data-theme="dark"] .trade-visual figure, :root[data-theme="dark"] .banner-collage img, :root[data-theme="dark"] .clients li { background: var(--surface-media); }
:root[data-theme="dark"] .clients .wordmark { color: #2A3830; }
:root[data-theme="dark"] .clients .wordmark small { color: #55635A; }
:root[data-theme="dark"] .banner-frame.has-photo .banner-media::after { background: linear-gradient(90deg, rgba(15, 22, 19, 0.95) 0%, rgba(15, 22, 19, 0.82) 38%, rgba(15, 22, 19, 0) 66%); }
html[dir="rtl"][data-theme="dark"] .banner-frame.has-photo .banner-media::after { background: linear-gradient(90deg, rgba(15, 22, 19, 0.96) 0%, rgba(15, 22, 19, 0.9) 42%, rgba(15, 22, 19, 0) 72%); }
:root[data-theme="dark"] .banner-frame { background: var(--gradient-hero); }
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .search, :root[data-theme="dark"] .stepper { background: var(--surface-card); color: var(--fg); }
:root[data-theme="dark"] .field input::placeholder, :root[data-theme="dark"] .field textarea::placeholder, :root[data-theme="dark"] .search input::placeholder { color: var(--fg-subtle); }
:root[data-theme="dark"] .btn-tertiary { background: var(--surface-card); color: var(--fg); }
:root[data-theme="dark"] .btn-tertiary:hover { background: var(--bg-secondary); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--bg-tertiary); color: var(--fg-primary); }
:root[data-theme="dark"] .lang-toggle { background: var(--bg-secondary); color: var(--fg); }

/* ---------- Booking screen ---------- */
[hidden] { display: none !important; }
.bk { display: grid; gap: var(--space-8); max-width: 780px; margin-inline: auto; min-width: 0; }
.bk-step { min-width: 0; }
.bk-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: 1.25rem; }
.bk-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: var(--bg-primary-wash); color: var(--fg-primary); font-size: 0.875rem; flex-shrink: 0;
}
.bk-note { margin: 0 0 var(--space-3); color: var(--fg-muted); font-size: 0.9375rem; }

/* the day rail scrolls sideways on a phone */
.bk-days { display: flex; gap: 10px; overflow-x: auto; min-width: 0; padding-bottom: 6px; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: 0 0 auto; min-width: 116px; display: grid; gap: 2px; text-align: center;
  padding: 12px 14px; border-radius: var(--radius-lg); cursor: pointer;
  border: 1px solid var(--bg-line); background: var(--surface-card); color: var(--fg);
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.bk-day b { font-size: 0.9375rem; }
.bk-day span { color: var(--fg-muted); font-size: 0.8125rem; }
.bk-day small { color: var(--fg-primary); font-size: 0.75rem; font-weight: 600; }
.bk-day:hover:not([disabled]) { border-color: var(--green-200); background: var(--bg-primary-wash); }
.bk-day[aria-pressed="true"] { border-color: var(--bg-primary); background: var(--bg-primary-wash); box-shadow: inset 0 0 0 1px var(--bg-primary); }
.bk-day[disabled] { opacity: 0.5; cursor: not-allowed; }
.bk-day[disabled] small { color: var(--fg-subtle); }

/* the times */
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.bk-slot {
  display: grid; gap: 2px; justify-items: center; padding: 10px 8px; cursor: pointer;
  border-radius: var(--radius-md); border: 1px solid var(--bg-line);
  background: var(--surface-card); color: var(--fg); font-weight: 600; font-size: 0.9375rem;
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.bk-slot:hover:not([disabled]) { border-color: var(--green-200); background: var(--bg-primary-wash); }
.bk-slot[aria-pressed="true"] { border-color: var(--bg-primary); background: var(--bg-primary); color: #fff; }
.bk-slot[disabled] { cursor: not-allowed; background: var(--bg-secondary); color: var(--fg-subtle); border-style: dashed; }
.bk-slot small { font-size: 0.6875rem; font-weight: 600; }
.bk-slot[disabled] small { color: var(--fg-subtle); }

.bk-picked {
  margin: 0 0 var(--space-5); padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-secondary); color: var(--fg-muted); font-size: 0.9375rem;
}
.bk-picked.is-set { background: var(--bg-primary-wash); color: var(--fg-primary); font-weight: 600; }
.bk-error { margin: var(--space-3) 0 0; color: var(--fg-negative, #B3261E); font-weight: 600; font-size: 0.9375rem; }

.bk-done { display: grid; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-10) var(--space-6); border-radius: var(--radius-2xl); background: var(--bg-primary-wash); }
.bk-done h2 { margin: 0; font-family: var(--font-display); }
.bk-done p { margin: 0; color: var(--fg-muted); max-width: 42ch; }
.bk-done #bkDoneWhen { color: var(--fg); font-weight: 700; font-size: 1.125rem; }
@media (max-width: 520px) { .bk-slots { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); } }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: var(--radius-pill);
  border: 1px solid var(--bg-line); background: var(--bg-alternate); color: var(--neutral-700);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.theme-toggle .ic { width: 18px; height: 18px; color: var(--green-600); }
.theme-toggle:hover { background: var(--bg-primary-wash); border-color: var(--green-200); color: var(--fg-primary); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--ring-focus); }
/* show the moon on a light page and the sun on a dark one */
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
