/* Self-hosted fonts (no request to Google, so visitors' IP addresses are not shared). IBM Plex Sans Hebrew (Hebrew + Latin) and IBM Plex Mono (Latin). */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plexmono-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plexmono-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plex-hebrew-400.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plex-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plex-hebrew-500.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plex-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-hebrew-600.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-hebrew-700.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== WiseCode, light direction (2026-11-15) =====
   Light ground, deep blue from the logo, IBM Plex Sans Hebrew + Plex Mono, small radii, hairlines.
   Dark accents only where they help the rhythm: the code card, the "now" column, contact and footer.
   The previous dark theme is in tools/backup-dark-2026-11-15/site/styles.css */
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #0C1220;
  --soft: #586174;          /* 5.9:1 on --bg */
  --faint: #8A93A5;         /* decorative only, and field edges (3:1 on white) */
  --line: #E2E5EB;
  --line-strong: #CDD2DB;
  --blue: #1D4FD8;          /* deep blue of "Wise" in the logo; white text on it is 6.6:1 */
  --blue-hover: #1740B0;
  --blue-tint: #EEF3FE;
  --blue-soft: #C7D7FF;
  --dark: #0C1220;
  --dark-2: #080C15;
  --dark-line: rgba(255, 255, 255, .1);
  --dark-text: #EEF1F6;
  --dark-soft: #A7B0C2;
  --blue-on-dark: #8DB0FF;
  --radius: 10px;
  --radius-sm: 8px;
  --font: "IBM Plex Sans Hebrew", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--blue-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--blue); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 50; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius-sm); font-family: var(--font); font-weight: 600; font-size: 17px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary, .btn-solid { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-solid:hover { background: var(--blue-hover); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-tint); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.link-arrow span { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .15s ease; }
.link-arrow::after { content: "←"; transition: translate .2s ease; }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover span { border-color: var(--blue); }
.link-arrow:hover::after { translate: -4px 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 249, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand img { width: 168px; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--soft); padding: 6px 0; }
.nav a:hover { color: var(--blue); }
.top-row .btn-sm { margin-inline-start: auto; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 88px 0 104px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(12, 18, 32, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 18, 32, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 25% 35%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 25% 35%, #000 0%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex-shrink: 0; }
.hero h1 { font-size: clamp(40px, 5vw, 70px); line-height: 1.08; letter-spacing: -.015em; margin-top: 20px; }
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark::after { content: ""; position: absolute; inset-inline: -.04em; bottom: .04em; height: .3em; background: var(--blue-soft); z-index: -1; }
.hero-sub { margin-top: 24px; font-size: 20px; line-height: 1.65; color: var(--soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 38px; }

.hero-visual { position: relative; margin-bottom: 40px; }
.win { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -40px rgba(12, 18, 32, .35); }
.win-bar { height: 34px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--soft); }
.code { position: absolute; inset-inline-end: -28px; bottom: -44px; width: 340px; margin: 0; background: var(--dark); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #C9D1DE; text-align: left; white-space: pre; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(12, 18, 32, .6); }
.code .c { color: #7A8497; } .code .k { color: #8DB0FF; } .code .s { color: #9FE1C9; } .code .f { color: #F2C66D; }
.code bdi { font-family: var(--font); }
/* Demo dashboard in the hero window (fictional data, no client). Drawn at calc(572 * var(--u)) wide, scales with the window. */
.win { container-type: inline-size; }
.mock { --u: calc(100cqw / 572); display: grid; grid-template-columns: calc(124 * var(--u)) 1fr; height: calc(330 * var(--u)); font-family: var(--font); font-size: calc(11 * var(--u)); line-height: 1.45; color: var(--ink); background: #FAFBFC; }
.m-side { background: var(--surface); border-inline-end: 1px solid var(--line); padding: calc(14 * var(--u)) calc(10 * var(--u)); display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.m-brand { display: flex; align-items: center; gap: calc(7 * var(--u)); font-weight: 700; font-size: calc(11.5 * var(--u)); white-space: nowrap; margin-bottom: calc(12 * var(--u)); padding: 0 calc(4 * var(--u)); }
.m-brand i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(5 * var(--u)); background: var(--blue); flex: none; }
.m-nav { display: flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(6 * var(--u)) calc(8 * var(--u)); border-radius: calc(6 * var(--u)); color: var(--soft); }
.m-nav::before { content: ""; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: calc(2.5 * var(--u)); background: currentColor; opacity: .3; flex: none; }
.m-nav.on { background: var(--blue-tint); color: var(--blue); font-weight: 600; }
.m-nav.on::before { opacity: 1; }
.m-main { min-width: 0; padding: calc(14 * var(--u)) calc(16 * var(--u)); display: flex; flex-direction: column; gap: calc(11 * var(--u)); }
.m-top { display: flex; align-items: center; justify-content: space-between; }
.m-h { font-size: calc(15 * var(--u)); font-weight: 700; }
.m-sub { font-size: calc(10 * var(--u)); color: var(--soft); }
.m-btn { font-size: calc(10 * var(--u)); font-weight: 600; background: var(--blue); color: #fff; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: calc(6 * var(--u)); }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(8 * var(--u)); }
.m-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); }
.m-kpi { padding: calc(9 * var(--u)) calc(11 * var(--u)); }
.m-kpi small { display: block; font-size: calc(9.5 * var(--u)); color: var(--soft); }
.m-kpi b { display: block; font-size: calc(17 * var(--u)); margin-top: calc(3 * var(--u)); }
.m-kpi em { font-style: normal; font-size: calc(9 * var(--u)); font-weight: 600; color: #127A4A; }
.m-kpi em.warn { color: #9A6200; }
.m-row { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: calc(8 * var(--u)); }
.m-feed { padding: calc(10 * var(--u)) calc(12 * var(--u)); font-size: calc(10 * var(--u)); }
.m-feed p { font-weight: 600; margin-bottom: calc(6 * var(--u)); }
.m-feed div { display: flex; align-items: flex-start; gap: calc(7 * var(--u)); padding: calc(5 * var(--u)) 0; border-top: 1px solid var(--line); color: var(--soft); }
.m-feed div::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--blue); margin-top: calc(4 * var(--u)); flex: none; }
.m-feed b { color: var(--ink); font-weight: 600; }
.m-chart { padding: calc(10 * var(--u)) calc(12 * var(--u)); display: flex; flex-direction: column; }
.m-chart p { display: flex; justify-content: space-between; font-size: calc(10 * var(--u)); font-weight: 600; }
.m-chart p span { font-weight: 400; color: var(--soft); }
.m-bars { flex: 1; direction: ltr; display: flex; align-items: flex-end; gap: calc(5 * var(--u)); margin-top: calc(8 * var(--u)); border-bottom: 1px solid var(--line); }
.m-bars i { flex: 1; height: var(--h); background: var(--blue-soft); border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; }
.m-bars i:last-child { background: var(--blue); }
/* Narrow window (phones): drop the side menu so the rest is drawn bigger. */
@container (max-width: 440px) { .mock { --u: calc(100cqw / 448); grid-template-columns: 1fr; } .m-side { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .win { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .code { animation: rise .8s .15s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
}

/* Section heads */
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section-head p { margin-top: 12px; font-size: 19px; color: var(--soft); }

/* Capabilities: one hairline grid, numbered cells */
.caps { padding: 96px 0 88px; }
.cap-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: cap; }
.cap { position: relative; display: flex; flex-direction: column; background: var(--surface); padding: 28px 26px 30px; counter-increment: cap; transition: background-color .2s ease; }
.cap:hover { background: #FBFCFE; }
.cap::before { content: counter(cap, decimal-leading-zero); position: absolute; top: 30px; inset-inline-end: 26px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.cap-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--blue-tint); border: 1px solid rgba(29, 79, 216, .22); color: var(--blue); }
.cap-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { margin-top: 20px; font-size: 20px; font-weight: 600; }
.cap > p { margin-top: 8px; color: var(--soft); font-size: 16.5px; line-height: 1.6; }

/* Work: compact project cards */
.work { padding: 90px 0; background: var(--surface); border-block: 1px solid var(--line); }
.proj-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proj { display: flex; }
.proj-link { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.proj-link:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 44px -28px rgba(12, 18, 32, .35); }
.proj-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.proj-shot-plain { background: #EEF2F8; }
.proj-shot-plain img { object-fit: contain; object-position: center; }
.proj-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.client { display: block; font-weight: 600; font-size: 14px; color: var(--blue); }
.proj-title { display: block; margin-top: 6px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.proj-line { display: block; margin-top: 10px; color: var(--soft); font-size: 16px; line-height: 1.55; }
.proj-more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.proj-more::after { content: "←"; transition: translate .2s ease; }
.proj-link:hover .proj-more::after { translate: -4px 0; }

/* Websites: a secondary service, a compact band above the client logos */
.sites { padding: 0 0 88px; }
.sites-card { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px 44px; }
.sites-kicker { font-size: 14px; font-weight: 600; color: var(--blue); }
.sites-copy h2 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 30px); }
.sites-copy > p:not(.sites-kicker) { margin-top: 12px; color: var(--soft); font-size: 17px; line-height: 1.6; }
.sites-copy .link-arrow { margin-top: 14px; }
.site-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.site-list li { display: flex; }
.site-link { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
.site-shot { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.frame.site-shot::before { height: 18px; background-size: 10px 10px; background-position: right 10px center, right 24px center, right 38px center; }
.site-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.site-link:hover .site-shot { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(12, 18, 32, .45); }
.site-name { margin-top: 12px; display: flex; flex-direction: column; font-weight: 700; font-size: 16px; }
.site-name::after { content: "לביקור באתר ↗"; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--blue); }
.site-name small { font-weight: 400; font-size: 14.5px; color: var(--soft); }

/* Project details dialog */
.case-dlg { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(12, 18, 32, .5); }
.case-dlg::backdrop { background: rgba(12, 18, 32, .55); backdrop-filter: blur(3px); }
html:has(.case-dlg[open]) { overflow: hidden; }
.case-dlg:focus-visible { outline: none; } /* the dialog itself takes focus when opened; controls inside keep their focus ring */
.dlg-inner { position: relative; padding: 44px 48px 36px; }
.dlg-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dlg-close:hover { background: var(--line); }
.dlg-close svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dlg-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .case-dlg[open] { animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
  @keyframes pop { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}
.case { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.case h3 { font-size: clamp(26px, 2.8vw, 32px); margin-top: 8px; }
.before { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--soft); font-size: 17px; }
.before span { font-weight: 600; font-size: 13px; color: #8A3B00; background: #FFF0E0; padding: 2px 10px; border-radius: 6px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.facts li { position: relative; padding-inline-start: 24px; font-size: 17px; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .66em; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }
.case-shot { margin: 0; }
.frame { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -30px rgba(12, 18, 32, .4); }
.frame::before { content: ""; display: block; height: 28px; background-color: #F1F3F6; background-image: radial-gradient(circle, #CDD2DB 4px, transparent 5px), radial-gradient(circle, #CDD2DB 4px, transparent 5px), radial-gradient(circle, #CDD2DB 4px, transparent 5px); background-size: 14px 14px; background-repeat: no-repeat; background-position: right 14px center, right 32px center, right 50px center; border-bottom: 1px solid var(--line); }
.frame-plain { border: none; box-shadow: none; }
.frame-plain::before { display: none; }
.case-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--soft); }

/* Why custom (SaaS then / custom now) */
.why { padding: 96px 0 24px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col { border-radius: var(--radius); padding: 30px 32px; }
.col h3 { font-size: 22px; }
.col ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.col li { position: relative; padding-inline-start: 30px; font-size: 17.5px; }
.col li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 700; }
.then { background: var(--surface); border: 1px solid var(--line); color: var(--soft); }
.then h3 { color: #3A4356; }
.then li::before { content: "✕"; color: var(--faint); }
.now { background: var(--dark); color: var(--dark-text); border: 1px solid var(--dark); }
.now h3 { color: #fff; }
.now li::before { content: "✓"; color: var(--blue-on-dark); }

/* What we replaced */
.replaced { margin-top: 40px; }
.replaced-title { font-size: 16px; font-weight: 600; color: var(--soft); }
.old-tools { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.old-tools li { font-weight: 500; font-size: 16px; padding: 6px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--soft); text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(88, 97, 116, .6); }

/* Process */
.process { padding: 96px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 62px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--blue); background: var(--surface); border: 1px solid var(--line-strong); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; inset-inline-start: 56px; inset-inline-end: -16px; height: 1px; background: var(--line-strong); }
.steps h3 { font-size: 20px; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--soft); font-size: 16.5px; }

/* Clients */
.clients { padding: 8px 0 96px; }
.clients-title { font-size: 16px; font-weight: 600; color: var(--soft); text-align: center; letter-spacing: 0; }
.logos { list-style: none; margin: 22px 0 0; padding: 30px 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.logos img { height: 64px; width: auto; }
.logo-schools { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.logo-schools img { height: 46px; }
.logo-schools span { font-weight: 600; font-size: 15px; color: #B94A33; }

/* Contact (dark) */
.contact { background: var(--dark); color: var(--dark-text); padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(30px, 3.8vw, 44px); color: #fff; }
.contact-copy > p { margin-top: 14px; font-size: 19px; color: var(--dark-soft); }
.direct { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.direct a { display: flex; gap: 14px; align-items: center; text-decoration: none; color: #fff; font-size: 21px; font-weight: 600; }
.direct a:hover bdi { color: var(--blue-on-dark); }
.direct .ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--blue-on-dark); background: rgba(141, 176, 255, .08); border: 1px solid rgba(141, 176, 255, .3); transition: background-color .2s, border-color .2s; }
.direct .ic svg { width: 22px; height: 22px; }
.direct a:hover .ic { background: rgba(141, 176, 255, .16); border-color: rgba(141, 176, 255, .55); }
.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
/* Field edges need 3:1 against the white card (WCAG 1.4.11) */
.lead-form input, .lead-form textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; border: 1px solid var(--faint); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #737C8E; }
.lead-form input[dir="ltr"] { text-align: right; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 79, 216, .2); }
.lead-form [aria-invalid="true"] { border-color: #B42318; }
.lead-form textarea { resize: vertical; }
.lead-form .btn { width: 100%; }
.form-error { color: #B42318; font-weight: 500; font-size: 15px; }
.form-note { font-size: 14px; color: var(--soft); text-align: center; }
.form-note a { color: inherit; text-underline-offset: 3px; }

/* Footer (dark) */
.foot { background: var(--dark-2); color: var(--dark-soft); padding: 32px 0; font-size: 15px; border-top: 1px solid var(--dark-line); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { width: 150px; }
.foot .tagline { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-soft); }
.foot .copy { margin-inline-start: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.foot-links a { color: var(--dark-text); font-size: 16px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Legal pages (privacy, terms, accessibility, data processing) */
.legal { padding: 64px 0 96px; }
.legal-wrap { display: block; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 46px); }
.legal .updated { margin-top: 10px; color: var(--soft); font-size: 15px; }
.legal .lead { margin-top: 22px; font-size: 20px; line-height: 1.6; }
.legal h2 { margin-top: 52px; font-size: 25px; scroll-margin-top: 96px; }
.legal h3 { margin-top: 26px; font-size: 19px; font-weight: 600; }
.legal p { margin-top: 12px; }
.legal ul { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.legal li::marker { color: var(--blue); }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal a:hover { color: var(--blue-hover); }
.toc { margin-top: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.toc p { margin: 0; font-weight: 600; }
.toc ol { margin: 12px 0 0; padding-inline-start: 22px; columns: 2; column-gap: 36px; font-size: 16.5px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.note { margin-top: 30px; background: var(--blue-tint); border: 1px solid #C9D6F7; border-radius: var(--radius); padding: 18px 22px; }
.note p { margin: 0; font-size: 16.5px; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 16.5px; }
.legal th, .legal td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: #F1F3F6; font-weight: 600; }
.legal td:first-child { white-space: nowrap; font-weight: 600; }
.legal .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }

/* WhatsApp floating button (phones) */
.wa-float { display: none; position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; place-items: center; box-shadow: 0 10px 24px -8px rgba(12, 18, 32, .45); }

/* Responsive */
@media (max-width: 980px) {
  .sites-card { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top-row { justify-content: space-between; gap: 12px; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: visible; }
  .menu-btn path { transform-box: view-box; }
  .menu-btn .l1 { transform-origin: 12px 7px; }
  .menu-btn .l3 { transform-origin: 12px 17px; }
  .nav-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
  .nav-open .menu-btn .l2 { opacity: 0; }
  .nav-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
  .top.nav-open .nav { display: flex; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px 24px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -28px rgba(12, 18, 32, .35); }
  .top.nav-open .nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .top.nav-open .nav a:last-child { border-bottom: 0; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 620px; margin-bottom: 0; }
  .code { position: relative; inset: auto; width: auto; max-width: 360px; margin: -40px 16px 0 auto; }
  .cap-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .case .case-shot { order: -1; }
  .dlg-inner { padding: 72px 32px 28px; }
  .compare { grid-template-columns: 1fr; }
  .logos { gap: 24px 44px; padding: 22px 20px; }
  .logos img { height: 50px; }
  .logo-schools img { height: 36px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 16px; }
  .top-row { height: 64px; }
  .brand img { width: 138px; }
  .top.nav-open .nav { padding: 6px 16px 14px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
  .hero { padding: 44px 0 64px; }
  .hero-sub { font-size: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .link-arrow { align-self: center; }
  .code { font-size: 12.5px; margin: -36px 12px 0; max-width: none; }
  .caps, .work { padding: 72px 0; }
  .why { padding-top: 72px; }
  .section-head { margin-bottom: 30px; }
  .cap-grid, .proj-grid { grid-template-columns: 1fr; }
  .proj-grid { gap: 14px; }
  .sites-card { padding: 28px 22px; gap: 28px; }
  .sites { padding-bottom: 64px; }
  .cap { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; padding: 20px 18px; }
  .cap::before { top: 20px; inset-inline-end: 18px; }
  .cap h3 { margin-top: 0; font-size: 19px; padding-inline-end: 28px; }
  .cap > p { grid-column: 1 / -1; margin-top: 12px; font-size: 16.5px; }
  .proj-shot { aspect-ratio: 2 / 1; }
  .proj-body { padding: 16px 18px 18px; }
  .proj-more { padding-top: 12px; }
  .case-dlg { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .dlg-inner { padding: 68px 18px 24px; }
  .dlg-close { position: fixed; top: 12px; }
  .dlg-cta .btn { width: 100%; }
  .col { padding: 24px 22px; }
  .steps { grid-template-columns: 1fr; }
  .contact, .process { padding: 72px 0; }
  .lead-form { padding: 22px; }
  .direct a { font-size: 19px; min-height: 44px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .wa-float { display: grid; }
  body:has(.wa-float) .foot { padding-bottom: 92px; } /* keep the last footer links above the floating button */
  .foot .copy { margin-inline-start: 0; }
  .legal { padding: 40px 0 72px; }
  .legal-wrap { padding: 0 16px; }
  .legal .lead { font-size: 18.5px; }
  .legal h2 { margin-top: 40px; font-size: 22px; }
  .toc { padding: 18px 20px; }
  .toc ol { columns: 1; }
  .legal td:first-child { white-space: normal; }
}
/* Very narrow phones: let the highlighted word wrap instead of touching the edge */
@media (max-width: 360px) { .mark { white-space: normal; } }
@media (prefers-reduced-motion: no-preference) { .menu-btn path { transition: transform .2s ease, opacity .2s ease; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
