/* מפות ישראל – product site. One stylesheet, no framework, no external resources.
   Design system: tokens on :root (light) and the dark overrides below; components after. */

@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;

  /* palette – the app's blue (icon, buttons) + forest and sand for the Israeli landscape */
  --blue-50: #eef4ff; --blue-100: #dbe7fe; --blue-300: #93b4fb; --blue-400: #5b8ff7;
  --blue-500: #3b82f6; --blue-600: #2563eb; --blue-700: #1d4ed8; --blue-800: #1e40af;
  --forest-950: #07140f; --forest-900: #0c1f19; --forest-800: #13302a; --forest-700: #18382f;
  --forest-600: #22513f; --forest-500: #2f6b52; --forest-300: #8fc2a6; --forest-200: #c4e0cf;
  --forest-100: #e2f0e7; --forest-50: #f1f7f2;
  --sand-50: #fbfaf6; --sand-100: #f5f2ea; --sand-200: #ebe6d9; --sand-300: #d9d2bf;
  --sun-500: #d97a2b; --sun-100: #fbeedd;

  /* semantic */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --surface: #ffffff;
  --surface-2: #f7f5ef;
  --ink: #0f1f1a;          /* headings */
  --text: #2b3934;         /* body */
  --muted: #56655f;        /* secondary text, 5.9:1 on --bg */
  --line: #e4dfd2;
  --line-strong: #d3ccba;
  --link: var(--blue-700);
  --accent: var(--blue-600);
  --accent-ink: #ffffff;
  --accent-soft: var(--blue-50);
  --leaf: var(--forest-500);
  --leaf-soft: var(--forest-100);
  --focus: var(--blue-600);
  --contour: rgba(47, 107, 82, .13);
  --band-bg: var(--forest-800);
  --band-text: #e8f2ec;
  --band-muted: #b8cfc3;

  /* type */
  --font: "Heebo", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-2xl: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-hero: clamp(2.45rem, 1.45rem + 4.3vw, 4.6rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* space (4px grid) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;
  --section: clamp(4rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --maxw: 1200px;

  /* shape + depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 26, .06), 0 1px 1px rgba(15, 31, 26, .04);
  --shadow-md: 0 6px 16px -6px rgba(15, 31, 26, .14), 0 2px 4px rgba(15, 31, 26, .05);
  --shadow-lg: 0 30px 60px -24px rgba(12, 31, 25, .32), 0 12px 24px -12px rgba(12, 31, 25, .16);
  --shadow-window: 0 50px 100px -30px rgba(10, 28, 22, .45), 0 24px 48px -24px rgba(10, 28, 22, .28),
    0 0 0 1px rgba(15, 31, 26, .08);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1512;
    --bg-alt: #0e1c18;
    --surface: #12221d;
    --surface-2: #162a24;
    --ink: #f0f6f2;
    --text: #cfdcd5;
    --muted: #9db0a7;
    --line: #213731;
    --line-strong: #2c463e;
    --link: var(--blue-300);
    --accent: var(--blue-500);
    --accent-ink: #ffffff;
    --accent-soft: rgba(59, 130, 246, .14);
    --leaf: var(--forest-300);
    --leaf-soft: rgba(143, 194, 166, .12);
    --focus: var(--blue-300);
    --contour: rgba(143, 194, 166, .09);
    --band-bg: #0f2620;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 20px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    --shadow-window: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--forest-900); }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }
.nowrap { white-space: nowrap; }
kbd {
  font-family: inherit; font-size: .85em; font-weight: 600; padding: .05em .45em; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--line-strong); color: var(--ink);
}
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; direction: ltr; unicode-bidi: isolate;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; color: var(--ink); overflow-wrap: anywhere; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: var(--s-3) var(--s-5); border-radius: var(--r-md);
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--s-3); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--bg-alt); }
/* below-the-fold blocks are laid out only when they come near the viewport (faster first paint on phones) */
/* (switched off by site.js before jumping to an #anchor, so the jump lands exactly) */
html:not(.cv-off) main > .section, html:not(.cv-off) .cta-band, html:not(.cv-off) .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-tight { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
p.more, .section-head p.more { margin-top: var(--s-6); }

/* section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 700;
  color: var(--leaf); letter-spacing: .01em; margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--muted); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px;
  padding: .7rem 1.35rem; border-radius: var(--r-full); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 700; font-size: var(--fs-base);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  --btn-fg: #fff; --btn-bd: transparent;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(37, 99, 235, .75), 0 2px 4px rgba(15, 31, 26, .1);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -10px rgba(37, 99, 235, .85), 0 2px 4px rgba(15, 31, 26, .1); transform: translateY(-1px); }
.btn-lg { min-height: 58px; padding: .85rem 1.7rem; font-size: var(--fs-lg); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: var(--fs-sm); }
.btn-sm svg { width: 18px; height: 18px; }

/* the download block: button + live meta line */
.dl { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.dl-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: var(--fs-sm); color: var(--muted); }
.dl-meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.dl-meta > span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-inline-end: .5rem; }
.dl-meta a { color: inherit; }
.dl-meta [data-dl-version] { font-weight: 700; color: var(--ink); }
@media (max-width: 520px) { /* wrapped lines would start with a stray dot */
  .dl-meta { gap: .2rem 1.1rem; }
  .dl-meta > span + span::before { display: none; }
}

/* offline update file (download page) */
.dl-alt { margin-top: var(--s-3); display: flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); color: var(--muted); }
.dl-alt svg { width: 18px; height: 18px; flex: none; }
.dl-offline { margin-bottom: var(--s-6); }
.prose .dl-parts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.dl-parts[hidden] { display: none !important; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .6); }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-2); }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .8rem; border-radius: var(--r-full);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-gh svg { width: 20px; height: 20px; }
.nav-gh { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); }
.nav-gh:hover { background: var(--surface-2); color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; inset-inline: 0;
    padding: var(--s-3) var(--gutter) var(--s-5); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-links a { min-height: 48px; font-size: var(--fs-base); }
}
@media (max-width: 520px) {
  .nav .btn-sm span.long { display: none; }
  .brand { font-size: 1.05rem; gap: .5rem; }
  .header-inner { gap: var(--s-3); }
}
@media (max-width: 400px) {
  .nav-gh { display: none; }
  .brand img { width: 30px; height: 30px; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem); overflow: clip; isolation: isolate; }
.hero::before { /* soft light from the top, like early morning over the hills */
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2;
  background:
    radial-gradient(50% 55% at 75% 20%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(45% 50% at 20% 10%, rgba(47, 107, 82, .16), transparent 70%);
}
.contours { position: absolute; inset: 0; z-index: -1; color: var(--contour); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); }
.contours svg { width: 100%; height: 100%; }
.hero-copy { text-align: center; max-width: 54rem; margin-inline: auto; }
.badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .9rem .35rem .45rem; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm); color: var(--text); text-decoration: none; margin-bottom: var(--s-6);
}
.badge b { color: var(--ink); }
.badge .dot { display: inline-grid; place-items: center; height: 24px; padding-inline: .55rem; border-radius: var(--r-full);
  background: var(--leaf-soft); color: var(--leaf); font-weight: 700; font-size: var(--fs-xs); }
a.badge:hover { border-color: var(--line-strong); text-decoration: none; }
.hero h1 { font-size: var(--fs-hero); font-weight: 850; letter-spacing: -.025em; line-height: 1.05; }
.hero h1 .soft { display: block; color: var(--leaf); }
.hero .lead { margin: var(--s-6) auto 0; max-width: 40rem; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.hero-actions { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.hero .dl { align-items: center; }
.hero .dl-meta { justify-content: center; }

/* the app window: a real screenshot of the desktop app, whose own RTL title bar (tabs + window buttons) is part of the image */
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: #e9edf2; box-shadow: var(--shadow-window);
  aspect-ratio: 16 / 10;
}
.window picture, .window img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-shot { margin-top: clamp(2.75rem, 1.5rem + 4vw, 4.5rem); position: relative; }
.hero-shot .window { max-width: 1200px; margin-inline: auto; }
.hero-shot::after { /* ground shadow + fade into the next section */
  content: ""; position: absolute; inset: auto -5% -1px; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}
.hero-shot .callout { position: absolute; z-index: 2; display: none; }

/* trust strip */
.facts { position: relative; z-index: 2; margin-top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 3rem)); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.facts li { background: var(--surface); padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.facts li svg { width: 26px; height: 26px; color: var(--leaf); }
.facts b { color: var(--ink); font-size: var(--fs-base); }
.facts span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, 1fr); } .facts li:last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ feature bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: var(--fs-xl); font-weight: 750; margin-bottom: var(--s-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: var(--s-5);
  background: var(--leaf-soft); color: var(--leaf);
}
.card .ico svg { width: 24px; height: 24px; }
.card .ico.blue { background: var(--accent-soft); color: var(--accent); }
.card .ico.sun { background: var(--sun-100); color: #a35512; }
@media (prefers-color-scheme: dark) { .card .ico.sun { background: rgba(217, 122, 43, .14); color: #f0a868; } }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.card-media { padding: 0; display: flex; flex-direction: column; }
.card-media .card-body { padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); padding-bottom: var(--s-5); }
.card-media .shot { flex: 1 1 auto; min-height: 240px; max-height: 420px; margin-top: auto; margin-inline-start: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border-start-start-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid var(--line); border-bottom: 0; border-inline-end: 0; box-shadow: var(--shadow-md); background: var(--surface-2); }
.card-media .shot picture { position: absolute; inset: 0; }
.card-media .shot img { width: 100%; height: 100%; object-fit: cover; }
.card-media .shot.pos-end img { object-position: right top; }   /* RTL: the panel is on the right */
.card-media .shot.pos-start img { object-position: left top; }
.card-media .shot.pos-center img { object-position: center; }
.card ul.ticks { list-style: none; margin-top: var(--s-4); display: grid; gap: .4rem; font-size: var(--fs-sm); }
.card ul.ticks li { display: flex; gap: .5rem; align-items: flex-start; }
.card ul.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: .3rem; border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%232f6b52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s-4); }
.chip { font-size: var(--fs-xs); font-weight: 600; padding: .25rem .65rem; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.chip.ltr-chip { direction: ltr; }

@media (max-width: 1024px) {
  .span-3 { grid-column: span 6; } .span-4 { grid-column: span 6; } .span-5, .span-7 { grid-column: span 12; }
  .span-6, .span-8 { grid-column: span 12; }
}
@media (max-width: 640px) { .bento > * { grid-column: 1 / -1 !important; } }

/* ------------------------------------------------------------------ tour (tabs over real screenshots) */
.tour-tabs { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-bottom: var(--s-8); }
.tour-tabs button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tour-tabs button svg { width: 18px; height: 18px; color: var(--leaf); }
.tour-tabs button:hover { border-color: var(--line-strong); color: var(--ink); }
.tour-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tour-tabs button[aria-selected="true"] svg { color: currentColor; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.tour-panel + .tour-panel { margin-top: var(--s-16); }
.js .tour-panel + .tour-panel { margin-top: 0; }
.tour-panel[hidden] { display: none; }
.tour-panel figcaption h3 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.tour-panel figcaption p { color: var(--muted); }
.tour-panel figcaption .chips { margin-top: var(--s-5); }
.tour-panel figure { margin: 0; display: contents; }
.js .tour-panel:not([hidden]) .window { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .tour-panel { grid-template-columns: 1fr; } .tour-panel figcaption { order: -1; text-align: center; } .tour-panel figcaption .chips { justify-content: center; } }
@media (max-width: 640px) {
  .tour-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scroll-snap-type: x proximity; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: none; scroll-snap-align: start; }
}

/* ------------------------------------------------------------------ how it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); counter-reset: step; }
.step { position: relative; padding: var(--s-8) var(--s-6) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: calc(-1 * var(--s-4)); inset-inline-start: var(--s-6);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--ink); color: var(--bg); box-shadow: 0 0 0 6px var(--bg-alt);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: var(--s-8); } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.privacy-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--band-bg); color: var(--band-text); isolation: isolate;
}
.privacy-card::after { content: ""; position: absolute; inset: auto -30% -50% auto; width: 420px; height: 420px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .2), transparent); }
.privacy-card h3 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.privacy-card p { color: var(--band-muted); }
.privacy-card ul { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.privacy-card li { display: flex; gap: var(--s-3); align-items: flex-start; }
.privacy-card li svg { flex: none; width: 22px; height: 22px; color: var(--forest-300); margin-top: .15rem; }
.privacy-card li b { color: #fff; display: block; }
.privacy-card li span { color: var(--band-muted); font-size: var(--fs-sm); }
.privacy-card a { color: #c9dafd; }

.sources { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sources li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-1) var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.sources svg { grid-row: span 2; width: 24px; height: 24px; color: var(--leaf); margin-top: .2rem; }
.sources b { color: var(--ink); }
.sources span { color: var(--muted); font-size: var(--fs-sm); }
.sources-title { font-size: var(--fs-xl); margin-bottom: var(--s-4); }

/* ------------------------------------------------------------------ what's new (timeline) */
.timeline { list-style: none; position: relative; display: grid; gap: var(--s-6); max-width: 52rem; }
.timeline::before { content: ""; position: absolute; inset-block: .6rem .6rem; inset-inline-start: 7px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding-inline-start: var(--s-10); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--leaf); }
.timeline li:first-child::before { background: var(--leaf); box-shadow: 0 0 0 5px var(--leaf-soft); }
.timeline h3 { font-size: var(--fs-lg); }
.timeline p { color: var(--muted); font-size: var(--fs-sm); margin-top: .25rem; }
.timeline .tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--leaf); margin-bottom: .2rem; }
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.news .section-head { margin-bottom: 0; position: sticky; top: 6rem; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } .news .section-head { position: static; } }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-6); font-weight: 700; color: var(--ink); font-size: var(--fs-lg); border-radius: var(--r-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1 1 auto; min-width: 0; }
.faq summary:hover { color: var(--leaf); }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2356655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 var(--s-6) var(--s-6); color: var(--text); }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: var(--s-3); }
.faq .answer ul { padding-inline-start: 1.25rem; display: grid; gap: .3rem; }
.hosts { list-style: none !important; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: .4rem !important; }

/* ------------------------------------------------------------------ CTA band + footer */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--forest-800); color: var(--band-text); text-align: center; padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
@media (prefers-color-scheme: dark) { .cta-band { background: #0f2620; border-block: 1px solid var(--line); } }
.cta-band .contours { color: rgba(196, 224, 207, .09); -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent); }
.cta-band h2 { color: #fff; font-size: var(--fs-3xl); }
.cta-band p { color: var(--band-muted); margin: var(--s-4) auto 0; max-width: 36rem; font-size: var(--fs-lg); }
.cta-band .dl { align-items: center; margin-top: var(--s-8); }
.cta-band .dl-meta { color: var(--band-muted); justify-content: center; }
.cta-band .dl-meta [data-dl-version] { color: #fff; }
.cta-band .dl-meta > span + span::before { background: rgba(255, 255, 255, .3); }
.cta-band .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .3); }
.cta-band .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .08); border-color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: var(--s-16) var(--s-10); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-10); }
.footer-grid h2 { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin-bottom: var(--s-4); letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { color: var(--muted); margin-top: var(--s-3); max-width: 22rem; }
.attrib { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; display: grid; gap: var(--s-2); }
.attrib a { color: inherit; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ inner pages */
.page-hero { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 600px; z-index: -2;
  background: radial-gradient(45% 60% at 80% 20%, rgba(59, 130, 246, .13), transparent 70%), radial-gradient(40% 60% at 15% 0%, rgba(47, 107, 82, .14), transparent 70%); }
.page-hero h1 { font-size: var(--fs-3xl); max-width: 40rem; }
.page-hero .lead { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--muted); max-width: 42rem; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: inherit; }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--s-12); margin-bottom: var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-8); margin-bottom: var(--s-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s-4); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; display: grid; gap: .45rem; }

.dl-card { margin-top: var(--s-8); display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6); align-items: center; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.dl-card .app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .7); }
.dl-card h2 { font-size: var(--fs-xl); }
.dl-card .dl-meta { margin-top: .35rem; }
@media (max-width: 760px) { .dl-card { grid-template-columns: auto 1fr; } .dl-card .btn { grid-column: 1 / -1; width: 100%; } }

.req { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.req th, .req td { text-align: start; padding: .8rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 34%; color: var(--ink); font-weight: 700; }
.req td { color: var(--text); }

.install { list-style: none; counter-reset: s; display: grid; gap: var(--s-4); padding: 0 !important; }
.install > li { counter-increment: s; position: relative; padding: var(--s-5) var(--s-6) var(--s-5) var(--s-5); padding-inline-start: 4.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.install > li::before { content: counter(s); position: absolute; inset-inline-start: var(--s-5); top: var(--s-5); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.install h3 { margin: 0 0 .25rem; font-size: var(--fs-base); }
.install p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* SmartScreen walkthrough – a schematic drawing (not a screenshot) of the two clicks */
.smartscreen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-4); }
.ss { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong); background: #0b5cad; color: #fff; font-size: .85rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.ss .ss-body { padding: 1rem 1.1rem 1.1rem; min-height: 170px; display: flex; flex-direction: column; gap: .5rem; }
.ss .ss-title { font-size: 1.05rem; font-weight: 700; }
.ss .ss-link { text-decoration: underline; font-weight: 600; }
.ss .ss-bar { margin-top: auto; display: flex; gap: .5rem; justify-content: flex-start; }
.ss .ss-btn { border: 1px solid rgba(255, 255, 255, .8); padding: .25rem .9rem; border-radius: 3px; font-weight: 600; }
.ss .hl { outline: 3px solid #ffd166; outline-offset: 3px; border-radius: 3px; }
.ss-cap { font-size: var(--fs-xs); color: var(--muted); margin-top: .5rem; }
@media (max-width: 640px) { .smartscreen { grid-template-columns: 1fr; } }

.note { display: flex; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); margin-block: var(--s-6); }
.note svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: .15rem; }
.note.leaf { background: var(--leaf-soft); border-color: color-mix(in srgb, var(--leaf) 25%, transparent); }
.note.leaf svg { color: var(--leaf); }
.note p { margin: 0 !important; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.two-col aside { position: sticky; top: 6rem; display: grid; gap: var(--s-4); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); font-size: var(--fs-sm); }
.aside-card h2 { font-size: var(--fs-base); margin-bottom: var(--s-3); }
.aside-card ul { list-style: none; display: grid; gap: .5rem; }
@media (max-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr); } .two-col aside { position: static; } }

.changelog { list-style: none; display: grid; gap: var(--s-10); padding: 0 !important; }
.changelog > li { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-6); }
.changelog h2 { font-size: var(--fs-xl); margin: 0 0 var(--s-3) !important; }
.changelog .when { font-weight: 700; color: var(--leaf); font-size: var(--fs-sm); padding-top: .3rem; }
.changelog ul { padding-inline-start: 1.2rem; }
@media (max-width: 640px) { .changelog > li { grid-template-columns: 1fr; gap: var(--s-2); } }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; position: relative; overflow: clip; isolation: isolate; padding-block: var(--s-16); }
.notfound .code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 900; line-height: 1; color: var(--leaf); letter-spacing: -.04em; }
.notfound h1 { font-size: var(--fs-2xl); margin-top: var(--s-4); }
.notfound p { color: var(--muted); margin-top: var(--s-3); }
.notfound .hero-actions { margin-top: var(--s-8); }

/* ------------------------------------------------------------------ motion */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .cta-band, .tour-tabs, .skip-link, .contours { display: none !important; }
  body { background: #fff; color: #000; }
  .tour-panel[hidden] { display: grid !important; }
}
