/* ==========================================================================
   יוצאים לאור · forminds — style
   Brand: FORMINDS book (forest / cream / copper, Fredoka + Rubik, arches,
   the U-and-dot symbol). Ratio of use: ~55% cream, ~35% forest, ~10% copper.
   Copper is the spark — dots, lines, one accent per view. Never body text
   on cream (it fails AA); text copper on cream is --copper-ink.
   Mobile rules live at the end of the file.
   ========================================================================== */

/* registered so the glow only recalculates the card it sits on, never its subtree */
@property --gx { syntax: '<length>'; inherits: false; initial-value: -999px; }
@property --gy { syntax: '<length>'; inherits: false; initial-value: -999px; }

:root {
  /* brand palette (book p.9) */
  --forest: #0F2A24;      /* home colour: backgrounds, text, blocks */
  --forest-2: #2B4A42;    /* dark sage: surfaces on forest */
  --sage: #A9BDB6;        /* secondary text on dark */
  --sage-2: #C9D4CF;
  --cream: #EEE8DC;       /* the air */
  --ivory: #F7F3EC;       /* cards and surfaces */
  --copper: #C8783C;      /* the spark — accents only */
  --copper-soft: #DDA67A;
  --copper-tint: #F0D5BC;
  /* derived for AA text */
  --copper-ink: #8C5128;  /* copper text/links on cream & ivory: 5.2:1 */
  --ink: #0F2A24;
  --ink-2: #2E4640;
  --ink-soft: #4A625C;    /* 5.4:1 on cream */
  --line: rgba(15, 42, 36, .12);
  --line-2: rgba(15, 42, 36, .22);
  --on-dark: #EEE8DC;
  --on-dark-soft: #A9BDB6;

  --f-head: 'Fredoka', 'Rubik', system-ui, sans-serif;
  --f-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* type scale (book p.10: display 48/1.1, page 32/1.2, label 13 +20%, body 18/1.7) */
  --t-hero: clamp(2.4rem, 1.2rem + 2.9vw, 3.7rem);
  --t-h2: clamp(2rem, 1.35rem + 1.9vw, 3rem);
  --t-h3: 1.375rem;
  --t-lede: clamp(1.125rem, 1rem + .35vw, 1.3rem);
  --t-body: 1.125rem;
  --t-sm: 1rem;
  --t-xs: .875rem;
  --t-label: .8125rem;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --rhythm: clamp(80px, 48px + 6vw, 140px);
  --header-h: 76px;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(15, 42, 36, .05), 0 18px 40px -24px rgba(15, 42, 36, .28);
  --shadow-lg: 0 30px 70px -30px rgba(15, 42, 36, .5), 0 2px 6px rgba(15, 42, 36, .08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--f-body); font-weight: 300; font-size: var(--t-body); line-height: 1.7;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--copper-tint); color: var(--forest); }
b, strong { font-weight: 500; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.nw { white-space: nowrap; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* the filled dot inside every icon is the brand's spark */
.ico circle[fill] { fill: var(--copper); }

.skip-link {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 200;
  padding: 12px 20px; border-radius: 999px; background: var(--forest); color: var(--cream); font-weight: 500;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
h1, h2, h3 { text-wrap: balance; font-family: var(--f-head); font-weight: 500; color: var(--forest); letter-spacing: -.005em; }
h1 { font-size: var(--t-hero); line-height: 1.08; }
h2 { font-size: var(--t-h2); line-height: 1.12; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
.dot { color: var(--copper); }
.label {
  font-family: var(--f-body); font-size: var(--t-label); font-weight: 500; letter-spacing: .2em;
  color: var(--copper-ink); margin-block-end: 18px;
}
.label-on-dark { color: var(--copper-soft); }
.lede { font-size: var(--t-lede); color: var(--ink-soft); max-width: 36em; margin-block-start: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid, .btn-primary { background: var(--forest); color: var(--cream); }
.btn-solid:hover, .btn-primary:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: rgba(15, 42, 36, .06); }
.btn-copper { background: var(--copper); color: var(--forest); }
.btn-copper:hover { background: var(--copper-soft); }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress-bar { height: 100%; background: var(--copper); transform-origin: right center; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(238, 232, 220, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-symbol { width: 34px; height: 29px; color: var(--forest); }
.brand-word { font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--forest); letter-spacing: -.01em; direction: ltr; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: var(--t-sm); font-weight: 400; color: var(--ink-2); transition: color .25s var(--ease);
}
.nav-list a::after {
  content: ''; position: absolute; inset-block-end: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--copper); transform: scale(0); transition: transform .3s var(--ease-out);
}
.nav-list a:hover { color: var(--forest); }
.nav-list a[aria-current]::after, .nav-list a:hover::after { transform: scale(1); }
.menu-btn { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--rhythm); }
.section-ivory { background: var(--ivory); }
.sec-head { max-width: 760px; margin-block-end: clamp(48px, 6vw, 80px); }

/* ---------- Reveal (direction-aware, reversible) ---------- */
html.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
html.js[data-scrolldir="up"] [data-reveal]:not(.is-in) { transform: translate3d(0, -28px, 0); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
.included [data-reveal]:nth-child(2), .prep [data-reveal]:nth-child(2), .road .stop:nth-child(3), .work-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.included [data-reveal]:nth-child(3), .prep [data-reveal]:nth-child(3), .road .stop:nth-child(4), .work-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.included [data-reveal]:nth-child(4), .prep [data-reveal]:nth-child(4), .road .stop:nth-child(5), .work-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }
.included [data-reveal]:nth-child(5), .prep [data-reveal]:nth-child(5), .road .stop:nth-child(6) { transition-delay: .32s; }
/* OS "reduce motion": no travel, cross-fades stay (opacity is not motion per WCAG) */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js[data-scrolldir="up"] [data-reveal]:not(.is-in) { transform: none; }
  html { scroll-behavior: auto; }
}
/* the widget's "stop animations": everything static, everything visible */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }
html.a11y-motion.js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Hero — the launch stage (from tzfardea.com, in the forminds palette).
   A forest night with the nebula plate; hero-sky.js adds the live 3D scene
   and sets body.sky-on only once WebGL is really alive. Without it, the
   flat rocket below is the poster and still launches on click.
   ========================================================================== */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: min(88vh, 840px); display: flex; align-items: center;
  padding-block: calc(var(--header-h) + clamp(40px, 5vw, 72px)) clamp(72px, 8vw, 112px);
  background: var(--forest) url("assets/img/nebula-1344.webp") center bottom / cover no-repeat;
  color: var(--on-dark);
  transition: background-position 1.1s cubic-bezier(.4, 0, .7, .25);
}
.hero::before {               /* settle the plate so the copy stays legible */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(200, 120, 60, .16) 0%, rgba(200, 120, 60, 0) 60%),
    linear-gradient(to bottom, rgba(15, 42, 36, .82) 0%, rgba(15, 42, 36, .25) 44%, rgba(15, 42, 36, 0) 66%);
}
body.flying .hero { background-position: center 34%; }   /* the plate slides while the ship climbs */

.hero-sky { position: absolute; inset: 0; z-index: 1; display: none; width: 100%; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.sky-on .hero-sky { display: block; }

.hero-row { position: relative; z-index: 3; display: flex; align-items: center; gap: 34px; }
.hero-in { flex: 0 1 660px; }
.hero h1 { color: var(--cream); max-width: 15em; }
/* the copy stays legible where a planet or a cloud passes behind it */
.hero-in .label, .hero h1, .hero-sub { text-shadow: 0 2px 14px rgba(15, 42, 36, .85), 0 0 2px rgba(15, 42, 36, .6); }
html.a11y-contrast-high .hero-in .label, html.a11y-contrast-high .hero h1, html.a11y-contrast-high .hero-sub { text-shadow: none; }
.h1-line { display: block; margin-block-start: .12em; }
.hero-sub { font-size: var(--t-lede); color: var(--on-dark-soft); max-width: 30em; margin-block-start: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }
.btn-ghost-light { border-color: rgba(238, 232, 220, .7); color: var(--cream); background: transparent; }
.btn-ghost-light:hover { background: rgba(238, 232, 220, .1); border-color: var(--cream); }
.hero .btn-copper { box-shadow: 0 14px 34px -12px rgba(200, 120, 60, .55); }
.hero :focus-visible { outline-color: var(--copper-soft); }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: clamp(44px, 5vw, 60px);
  padding: 4px 22px 20px; border-radius: 20px; border: 1px solid rgba(169, 189, 182, .2);
  background: rgba(15, 42, 36, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);   /* glass, so copper holds over the bright clouds */
}
.facts li { padding: 20px 0 0; padding-inline-end: 20px; }
.facts li + li { padding-inline-start: 20px; border-inline-start: 1px solid rgba(169, 189, 182, .18); }
.facts b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--copper); }
.facts span { display: block; margin-block-start: 6px; font-size: var(--t-xs); line-height: 1.5; color: var(--sage-2); }
.facts .facts-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-block-start: 18px; padding: 16px 0 0; border-inline-start: 0; border-block-start: 1px solid rgba(169, 189, 182, .18); }
.facts-wide .ico { width: 26px; height: 26px; color: var(--copper); }
.facts-wide p { font-size: var(--t-sm); line-height: 1.5; color: var(--sage-2); }
.facts-wide p b { display: inline; font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; color: var(--copper); }

/* load-in, not scroll-bound */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
html.js .hero-in > * { animation: rise 1s var(--ease-out) both; }
html.js .hero-in > :nth-child(2) { animation-delay: .08s; }
html.js .hero-in > :nth-child(3) { animation-delay: .16s; }
html.js .hero-in > :nth-child(4) { animation-delay: .24s; }
html.js .hero-in > :nth-child(5) { animation-delay: .32s; }

/* the static scene (poster) — the 3D stage replaces all of it */
.poster-planet, .poster-moon { position: absolute; z-index: 1; pointer-events: none; }
.poster-planet { width: min(44vw, 620px); inset-inline-end: -7%; top: calc(var(--header-h) - 2%); }
.poster-moon { width: min(9vw, 120px); inset-inline-start: 7%; top: calc(var(--header-h) + 6%); }
body.sky-on .poster-planet, body.sky-on .poster-moon, body.sky-on .rk { display: none; }

/* ---------- The flat rocket: idles, shakes, ignites, climbs out ---------- */
.rk { position: relative; flex: 0 0 auto; width: 190px; height: 224px; margin-inline-start: auto; margin-inline-end: 6%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rk-body { position: absolute; inset: 0; display: block; animation: rkBob 3.6s var(--ease) infinite; }
.rk-ship { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .35)); }
.rk-flame {
  position: absolute; z-index: 1; left: 50%; top: 82%; width: 18px; height: 0; transform: translateX(-50%); pointer-events: none;
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  background: linear-gradient(to bottom, #fffaf0 0%, #f0d5bc 22%, #dda67a 50%, #c8783c 78%, rgba(200, 120, 60, 0) 100%);
  transition: height .26s ease;
}
.rk.fire .rk-flame { height: 70px; animation: rkFlick .12s infinite; }
.rk-trail {
  position: absolute; z-index: 0; left: 50%; bottom: 40%; width: 10px; height: 0; opacity: 0;
  transform: translateX(-50%); pointer-events: none; filter: blur(3px); border-radius: 6px;
  background: linear-gradient(to top, rgba(221, 166, 122, .55), rgba(238, 232, 220, .16), rgba(238, 232, 220, 0));
}
.rk.go .rk-trail { height: 52vh; opacity: 1; transition: height .95s cubic-bezier(.4, 0, .75, .25), opacity .22s ease; }
.rk-glow {
  position: absolute; z-index: 0; left: 50%; top: 70%; width: 240px; height: 240px; opacity: 0;
  transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s ease;
  background: radial-gradient(circle, rgba(240, 213, 188, .5) 0%, rgba(200, 120, 60, .22) 40%, rgba(200, 120, 60, 0) 70%);
}
.rk.fire .rk-glow { opacity: 1; }
.rk.shake .rk-body { animation: rkShake .085s infinite; }
.rk.go .rk-body { animation: none; transform: translateY(-118vh) scale(.42); transition: transform 1s cubic-bezier(.4, 0, .78, .28); }
.rk.snap .rk-body { animation: none; transform: translateY(46px); opacity: 0; transition: none; }
.rk.home .rk-body { animation: none; transform: none; opacity: 1; transition: transform .62s var(--ease), opacity .45s ease; }
.rk.snap .rk-trail, .rk.home .rk-trail { transition: none; height: 0; opacity: 0; }
@keyframes rkBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rkShake { 0% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, -1px); } 100% { transform: translate(1px, 1px); } }
@keyframes rkFlick { 0%, 100% { transform: translateX(-50%) scaleX(1); } 50% { transform: translateX(-50%) scaleX(1.35); } }
/* movement is the whole point, so it goes away whole */
@media (prefers-reduced-motion: reduce) {
  .rk { cursor: default; }
  .rk-body, .rk.shake .rk-body { animation: none !important; transform: none !important; }
  .rk-flame, .rk-trail, .rk-glow { display: none !important; }
}
html.a11y-motion .rk { cursor: default; }
html.a11y-motion .rk-body { transform: none !important; }
html.a11y-motion .rk-flame, html.a11y-motion .rk-trail, html.a11y-motion .rk-glow { display: none !important; }

/* ---------- "לחצו לשיגור" — parked next to the 3D ship ---------- */
.rk-cta {
  position: absolute; z-index: 3; display: none; pointer-events: none; transform: translate(-50%, -50%);
  padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  font-size: .85rem; font-weight: 500; letter-spacing: .01em; color: var(--cream);
  background: rgba(15, 42, 36, .72); border: 1px solid rgba(221, 166, 122, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 26px rgba(200, 120, 60, .3);
  opacity: 0; transition: opacity .45s ease; animation: rkCtaBob 2.8s var(--ease) infinite;
}
body.sky-on .rk-cta { display: block; }
body.sky-on .rk-cta.on { opacity: 1; }
.rk-cta::after {
  content: ''; position: absolute; top: 50%; inset-inline-start: -5px; width: 9px; height: 9px;
  transform: translateY(-50%) rotate(45deg); background: rgba(15, 42, 36, .72);
  border-inline-start: 1px solid rgba(221, 166, 122, .55); border-block-end: 1px solid rgba(221, 166, 122, .55);
}
.rk-cta.above::after { top: auto; bottom: -5px; inset-inline-start: 50%; transform: translateX(-50%) rotate(45deg); }
@keyframes rkCtaBob { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
@media (prefers-reduced-motion: reduce) { .rk-cta { animation: none; } }
html.a11y-motion .rk-cta { animation: none; }

/* high contrast is a light-on-white contract; the dark stage stands down completely */
html.a11y-contrast-high .hero { background: #fff; color: #000; }
html.a11y-contrast-high .hero::before, html.a11y-contrast-high .hero-sky, html.a11y-contrast-high .rk-cta,
html.a11y-contrast-high .poster-planet, html.a11y-contrast-high .poster-moon { display: none !important; }
html.a11y-contrast-high .hero h1, html.a11y-contrast-high .facts b { color: #000; }
html.a11y-contrast-high .facts { background: #fff; border-color: #000; }
html.a11y-contrast-high .hero-sub, html.a11y-contrast-high .facts span, html.a11y-contrast-high .hero .label { color: #1d1d1d; }
html.a11y-contrast-high .btn-ghost-light { color: #000; border-color: #000; }

/* ---------- Header over the dark stage (until it scrolls) ---------- */
.site-header:not(.is-scrolled) .brand-word { color: var(--cream); }
.site-header:not(.is-scrolled) .brand-symbol { color: var(--cream); }
.site-header:not(.is-scrolled) :focus-visible { outline-color: var(--copper-soft); }
@media (min-width: 1001px) {
  .site-header:not(.is-scrolled) .nav-list a { color: rgba(238, 232, 220, .82); }
  .site-header:not(.is-scrolled) .nav-list a:hover { color: var(--cream); }
  .site-header:not(.is-scrolled) .nav-cta { background: var(--copper); color: var(--forest); }
  .site-header:not(.is-scrolled) .nav-cta:hover { background: var(--copper-soft); }
}
html.a11y-contrast-high .site-header:not(.is-scrolled) .brand-word,
html.a11y-contrast-high .site-header:not(.is-scrolled) .brand-symbol { color: #000; }

/* ==========================================================================
   Journey — five stops on one rail that fills as you scroll
   ========================================================================== */
.road { --road-gap: clamp(20px, 2.4vw, 36px); position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--road-gap); align-items: start; }
.road-rail { position: absolute; inset-inline-start: 28px; inset-inline-end: calc((100% - 4 * var(--road-gap)) / 5 - 28px); inset-block-start: 27px; height: 2px; background: var(--line-2); border-radius: 2px; }
.rail-fill { position: absolute; inset: 0; background: var(--copper); transform-origin: right center; transform: scaleX(var(--fill, 0)); border-radius: 2px; }
.stop { position: relative; }
.stop-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--cream);
  font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; color: var(--forest);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.stop.is-lit .stop-n { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.stop.is-lit .stop-n-last { background: var(--copper); border-color: var(--copper); color: var(--forest); }
.stop h3 { margin-block: 24px 8px; }
.stop > p { font-size: var(--t-sm); line-height: 1.65; color: var(--ink-2); }
.stop-meta { display: inline-flex; align-items: center; gap: 8px; margin-block-end: 8px; font-size: var(--t-xs) !important; font-weight: 400; color: var(--copper-ink) !important; }
.stop-meta .ico { width: 18px; height: 18px; }
.more { margin-block-start: 14px; }
.more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer;
  font-size: var(--t-xs); font-weight: 500; color: var(--copper-ink);
}
.more summary::-webkit-details-marker { display: none; }
.more summary .ico { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.more[open] summary .ico { transform: rotate(45deg); }
.more ul { display: grid; gap: 10px; padding-block: 6px 4px; }
.more li { position: relative; padding-inline-start: 16px; font-size: var(--t-xs); line-height: 1.6; color: var(--ink-soft); }
.more li b { font-weight: 500; color: var(--forest); }
.more li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }

/* ==========================================================================
   Package — price, what's included, optional plans
   ========================================================================== */
.package-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.price-card { position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius); background: var(--forest); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.price-card::after {
  content: ''; position: absolute; inset-block-end: -38%; inset-inline-start: -18%; width: 64%; aspect-ratio: 1;
  border: 34px solid var(--forest-2); border-top-color: transparent; border-radius: 50%; transform: rotate(-45deg); opacity: .7; pointer-events: none;
}
.price-row { position: relative; z-index: 1; padding-block: 0 26px; }
.price-row + .price-row { padding-block-start: 26px; border-block-start: 1px solid rgba(169, 189, 182, .22); }
.price-k { font-size: var(--t-label); font-weight: 500; letter-spacing: .2em; color: var(--copper-soft); }
.price-v { margin-block: 8px 6px; font-family: var(--f-head); font-weight: 500; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--cream); }
.price-v small { font-family: var(--f-body); font-weight: 300; font-size: var(--t-sm); color: var(--on-dark-soft); }
.price-d { font-size: var(--t-sm); line-height: 1.6; color: var(--on-dark-soft); max-width: 30em; }
.price-note { position: relative; z-index: 1; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(43, 74, 66, .7); font-size: var(--t-xs); line-height: 1.6; color: var(--sage-2); }

.included { display: grid; }
.included li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 22px; border-block-end: 1px solid var(--line); }
.included li:first-child { padding-block-start: 4px; }
.included .ico { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--cream); color: var(--forest); stroke-width: 1.5; }
.included h3 { font-size: 1.2rem; margin-block-end: 4px; }
.included p { font-size: var(--t-sm); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Client portal: copy + a decorative mock of the panel ---------- */
.spot { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-block-start: clamp(72px, 9vw, 128px); }
.spot-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: var(--t-xs); font-weight: 500; }
.spot-badge .ico { width: 18px; height: 18px; }
.spot-badge .ico circle { fill: none; }
.spot-h { margin-block-start: 22px; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.4rem); line-height: 1.15; }
.spot-free { display: flex; align-items: center; gap: 16px; margin-block-start: 20px; padding: 14px 20px; border-radius: var(--radius-sm); background: var(--cream); }
.spot-free b { flex: none; font-family: var(--f-head); font-weight: 500; font-size: 2.2rem; line-height: 1; color: var(--forest); }
.spot-free span { font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.spot-lede { margin-block-start: 18px; font-size: var(--t-sm); line-height: 1.65; color: var(--ink-soft); }
.spot-feats { display: grid; gap: 16px; margin-block-start: 26px; }
.spot-feats li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.spot-feats .ico { width: 24px; height: 24px; margin-block-start: 2px; color: var(--forest); }
.spot-feats b { display: block; font-weight: 500; font-size: var(--t-sm); color: var(--forest); }
.spot-feats span { display: block; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-soft); }
.spot-note { position: relative; margin-block-start: 24px; padding-inline-start: 18px; font-size: var(--t-xs); color: var(--copper-ink); font-weight: 500; }
.spot-note::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }

.dash { position: relative; overflow: hidden; border-radius: 22px; background: var(--cream); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -36px rgba(15, 42, 36, .45), 0 8px 20px rgba(15, 42, 36, .08); }
.dash-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--ivory); border-block-end: 1px solid var(--line); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sage-2); }
.dash-dots i:first-child { background: var(--copper); }
.dash-dots i:nth-child(2) { background: var(--sage); }
.dash-url { flex: 1; min-width: 0; padding: 5px 12px; border-radius: 9px; background: var(--cream); font-size: .78rem; font-weight: 400; color: var(--ink-soft); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-save { flex: none; padding: 6px 15px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: .78rem; font-weight: 500; }
.dash-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.dash-side { padding: 18px 14px; background: rgba(169, 189, 182, .22); border-inline-end: 1px solid var(--line); }
.dash-brand { display: flex; align-items: center; gap: 9px; padding-block-end: 14px; margin-block-end: 4px; border-block-end: 1px solid var(--line); font-family: var(--f-head); font-weight: 500; font-size: .92rem; color: var(--forest); }
.dash-logo { position: relative; width: 24px; height: 24px; flex: none; border-radius: 8px; background: var(--forest); }
.dash-logo::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--copper); }
.dash-navt { margin: 14px 0 7px; padding-inline-start: 9px; font-size: .68rem; font-weight: 500; letter-spacing: .14em; color: var(--ink-soft); }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-navi { padding: 7px 10px; border-radius: 9px; font-size: .8rem; font-weight: 400; color: var(--ink-2); }
.dash-navi.on { background: var(--forest); color: var(--cream); }
.dash-main { min-width: 0; padding: 20px 20px 22px; }
.dash-h { margin-block-end: 14px; font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; color: var(--forest); }
.dash-block { padding: 12px 14px 13px; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line); }
.dash-block + .dash-block, .dash-block + .dash-lock { margin-block-start: 11px; }
.dash-lab { display: flex; align-items: center; gap: 7px; margin-block-end: 8px; font-size: .74rem; font-weight: 500; color: var(--ink-soft); }
.dash-lab .ico { width: 15px; height: 15px; color: var(--forest); }
.dash-field { padding: 9px 11px; border-radius: 9px; background: var(--cream); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.dash-field.big { font-family: var(--f-head); font-weight: 500; font-size: 1rem; color: var(--forest); }
/* the caret is the whole trick: it is what says "this field is yours" */
.dash-car { display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -.14em; background: var(--copper); animation: dashCaret 1.1s steps(1) infinite; }
@keyframes dashCaret { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.dash-thumbs { display: flex; gap: 7px; }
.dash-thumbs i { flex: 1 1 0; min-width: 0; height: 46px; border-radius: 8px; }
.dash-thumbs i.t1 { background: linear-gradient(150deg, #dda67a, #a2602c); }
.dash-thumbs i.t2 { background: linear-gradient(150deg, #a9bdb6, #56706a); }
.dash-thumbs i.t3 { background: linear-gradient(150deg, #2b4a42, #0f2a24); }
.dash-ver { background: #fff; border-color: rgba(200, 120, 60, .35); }
.dash-verrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-vername { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dash-vername b { font-weight: 500; font-size: .88rem; color: var(--forest); }
.dash-vername em { font-style: normal; font-size: .76rem; color: var(--ink-soft); }
.dash-btns { display: flex; flex: none; gap: 6px; }
.dash-btn { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .75rem; font-weight: 500; color: var(--forest); }
.dash-btn.ok { background: var(--forest); border-color: var(--forest); color: var(--cream); }
/* editability is shown per field, so the limits read at a glance */
.dash-pill { margin-inline-start: auto; padding: 2px 9px; border-radius: 999px; background: rgba(169, 189, 182, .4); color: var(--forest); font-size: .68rem; font-weight: 500; }
.dash-lock { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(15, 42, 36, .28); font-size: .78rem; color: var(--ink-soft); }
.dash-lock .ico { width: 16px; height: 16px; color: var(--forest); }
@media (prefers-reduced-motion: reduce) { .dash-car { animation: none; } }

.plans { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); margin-block-start: clamp(64px, 8vw, 112px); align-items: stretch; }
.plans-head h3 { font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem); line-height: 1.2; }
.plans-head p { margin-block-start: 12px; font-size: var(--t-sm); color: var(--ink-soft); }
.plan { position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.plan-name { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; color: var(--copper-ink); direction: ltr; text-align: right; }
.plan-price { margin-block: 6px 10px; font-size: var(--t-sm); color: var(--ink-soft); }
.plan-price b { font-family: var(--f-head); font-weight: 500; font-size: 2rem; color: var(--forest); }
.plan-sum { font-size: var(--t-sm); line-height: 1.6; color: var(--ink-2); padding-block-end: 18px; margin-block-end: 18px; border-block-end: 1px solid var(--line); }
.plan ul { display: grid; gap: 10px; }
.plan li { position: relative; padding-inline-start: 18px; font-size: var(--t-xs); line-height: 1.55; color: var(--ink-2); }
.plan li::before { content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.plan-dark { background: var(--forest); border-color: var(--forest); }
.plan-dark .plan-name { color: var(--copper-soft); }
.plan-dark .plan-price, .plan-dark .plan-sum, .plan-dark li { color: var(--on-dark-soft); }
.plan-dark .plan-price b { color: var(--cream); }
.plan-dark .plan-sum { border-color: rgba(169, 189, 182, .22); }

/* ---------- Glow + tilt cards ---------- */
.glow::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(200, 120, 60, .12), transparent 60%);
}
.glow > * { position: relative; z-index: 1; }

/* ==========================================================================
   Work — one slot for all, media crops to fill (symmetry over fidelity)
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.work { grid-column: span 2; }
.work-feat { grid-column: span 3; }
.work { position: relative; border-radius: var(--radius); background: var(--ivory); box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease); }
.work:hover { box-shadow: var(--shadow-lg); }
.work a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "shot shot" "meta go"; align-items: end; gap: 0 16px; padding: 14px 14px 22px; border-radius: inherit; }
.work-shot { grid-area: shot; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 8px); background: var(--cream); margin-block-end: 20px; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease-out); }
.work:hover .work-shot img { transform: scale(1.035); }
.work-meta { grid-area: meta; padding-inline-start: 8px; }
.work-meta b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.12rem; color: var(--forest); }
.work-feat .work-meta b { font-size: 1.3rem; }
.work-meta span { display: block; font-size: var(--t-xs); color: var(--ink-soft); margin-block-start: 2px; }
.work-go { grid-area: go; display: inline-flex; align-items: center; gap: 6px; padding-inline-end: 8px; font-size: var(--t-xs); font-weight: 500; color: var(--copper-ink); white-space: nowrap; }
.work-go .ico { width: 18px; height: 18px; }

/* ==========================================================================
   Prepare
   ========================================================================== */
.prep { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.prep li { padding: 28px 24px 30px; border-radius: var(--radius); background: var(--cream); }
.prep-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--copper); font-family: var(--f-head); font-weight: 500; color: var(--copper-ink); margin-block-end: 22px; }
.prep h3 { font-size: 1.2rem; margin-block-end: 6px; }
.prep p { font-size: var(--t-sm); line-height: 1.6; color: var(--ink-soft); }
.prep-note { display: flex; align-items: center; gap: 12px; margin-block-start: 28px; font-size: var(--t-sm); color: var(--ink-2); }
.prep-note .ico { width: 24px; height: 24px; color: var(--forest); }

/* ==========================================================================
   Signup — forest, the symbol pattern, a giant U behind the form
   ========================================================================== */
.signup {
  position: relative; overflow: hidden; padding-block: var(--rhythm); color: var(--on-dark);
  background-color: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='116' height='116' viewBox='0 0 116 116'%3E%3Cg fill='none' stroke='%232B4A42' stroke-width='7.5' stroke-linecap='round'%3E%3Cpath d='M16 16v8a13 13 0 0 0 26 0v-8'/%3E%3Cpath d='M74 74v8a13 13 0 0 0 26 0v-8'/%3E%3C/g%3E%3Cg fill='%23C8783C' fill-opacity='.55'%3E%3Ccircle cx='29' cy='18' r='5.5'/%3E%3Ccircle cx='87' cy='76' r='5.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 116px 116px;
}
.signup::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, rgba(15, 42, 36, .55) 0%, var(--forest) 78%); pointer-events: none; }
.signup-u {
  position: absolute; left: 50%; top: -14%; width: min(1180px, 130vw); aspect-ratio: 1 / 1.05;
  border: clamp(70px, 11vw, 150px) solid rgba(43, 74, 66, .75); border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 47.6% 47.6%; transform: translateX(-50%); pointer-events: none;
}
.signup-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.signup h2 { color: var(--cream); }
.signup-copy > p { margin-block-start: 20px; font-size: var(--t-lede); color: var(--on-dark-soft); max-width: 28em; }
.signup-points { display: grid; gap: 12px; margin-block-start: 30px; }
.signup-points li { position: relative; padding-inline-start: 22px; color: var(--sage-2); font-size: var(--t-sm); }
.signup-points li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }

.lead-form { padding: clamp(26px, 3.2vw, 40px); border-radius: var(--radius); background: var(--ivory); color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); }
.lead-form h3 { margin-block-end: 22px; }
.field { display: grid; gap: 6px; margin-block-end: 16px; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); }
.field legend { margin-block-end: 8px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid rgba(15, 42, 36, .28);
  background: var(--cream); font-size: var(--t-sm); font-weight: 400; color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input::placeholder { color: #6E827C; opacity: 1; }
.field input[dir="ltr"] { text-align: right; }
.field input:hover { border-color: rgba(15, 42, 36, .5); }
.field input:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(200, 120, 60, .35); }
.field input[aria-invalid="true"] { border-color: #A3341F; }
.err { font-size: var(--t-xs); font-weight: 500; color: #A3341F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(15, 42, 36, .28); background: var(--cream); font-size: var(--t-xs); font-weight: 400; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chips label:hover span { border-color: rgba(15, 42, 36, .5); }
.chips input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.chips input:focus-visible + span { outline: 3px solid var(--copper-ink); outline-offset: 3px; }
.sizes[aria-invalid="true"] .chips span { border-color: #A3341F; }
.lead-form .btn { margin-block-start: 8px; min-height: 56px; }
.form-status { min-height: 1.6em; margin-block-start: 12px; font-size: var(--t-xs); font-weight: 500; color: var(--copper-ink); }
.form-status:empty { display: none; }
.form-note { margin-block-start: 10px; font-size: var(--t-xs); color: var(--ink-soft); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark-soft); border-block-start: 1px solid rgba(169, 189, 182, .14); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand program top" "brand links copy"; gap: 18px 40px; align-items: center; padding-block: 48px; }
.footer-brand { grid-area: brand; display: grid; grid-template-columns: auto auto; grid-template-areas: "sym word" "sym tag"; gap: 2px 14px; align-items: center; justify-content: start; }
.footer-brand .brand-symbol { grid-area: sym; width: 46px; height: 39px; }
.footer-brand .brand-symbol { color: var(--cream); }
.footer-brand .brand-word { grid-area: word; color: var(--cream); font-size: 1.7rem; }
.tagline { grid-area: tag; font-size: var(--t-xs); letter-spacing: .06em; color: var(--sage); direction: ltr; text-align: right; }
.footer-program { grid-area: program; font-size: var(--t-sm); color: var(--sage-2); }
.footer-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .link-btn { display: inline-block; min-width: 44px; font-size: var(--t-xs); color: var(--sage); text-decoration: underline; text-decoration-color: rgba(169, 189, 182, .35); text-underline-offset: 4px; padding-block: 10px; }
.footer-links a:hover, .link-btn:hover { color: var(--cream); text-decoration-color: var(--copper); }
.link-btn { display: inline-block; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--t-xs); }
.to-top { grid-area: top; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t-xs); color: var(--sage-2); }
.to-top:hover { color: var(--cream); }
.copy { grid-area: copy; justify-self: end; font-size: var(--t-xs); color: var(--sage); direction: ltr; }
.site-footer :focus-visible, .signup :focus-visible { outline-color: var(--copper-soft); }
.lead-form :focus-visible { outline-color: var(--copper-ink); }

/* ---------- Bottom banner: "יוצאים לדרך" rides along the whole scroll ----------
   Steps aside while the signup form itself is on screen and while the
   consent banner is up (they share the bottom edge). */
.cta-bar {
  position: fixed; inset-inline: 0; inset-block-end: 20px; z-index: 105;
  display: flex; justify-content: center; padding-inline: 100px; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .35s var(--ease);
}
.cta-bar-in {
  pointer-events: auto; display: flex; align-items: center; gap: 22px; max-width: 100%;
  padding: 8px 8px 8px 8px; padding-inline-start: 26px; border-radius: 999px;
  background: rgba(15, 42, 36, .94); border: 1px solid rgba(221, 166, 122, .4); color: var(--cream);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 44px -16px rgba(15, 42, 36, .65), 0 2px 6px rgba(0, 0, 0, .12);
}
.cta-bar-text { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.cta-bar-text b { font-family: var(--f-head); font-weight: 500; font-size: 1.08rem; color: var(--cream); }
.cta-bar-text > span { font-size: var(--t-xs); color: var(--sage); }
.cta-bar .btn { min-height: 46px; }
.cta-bar :focus-visible { outline-color: var(--copper-soft); }
html.cta-off .cta-bar, body:has(.consent) .cta-bar { transform: translateY(160%); opacity: 0; }
html.cta-off .cta-bar-in, body:has(.consent) .cta-bar-in { pointer-events: none; }
.site-footer { padding-block-end: 88px; }   /* the banner never covers the last links */
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: opacity .3s ease; } }

/* ---------- Success modal ---------- */
.ok-veil { position: fixed; inset: 0; z-index: 150; background: rgba(15, 42, 36, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ok-modal {
  position: fixed; left: 50%; top: 50%; z-index: 151; width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow-y: auto;
  padding: 34px 30px 30px; border-radius: var(--radius); background: var(--ivory); color: var(--ink); text-align: center;
  transform: translate(-50%, -50%); box-shadow: var(--shadow-lg); animation: rise .5s var(--ease-out) both;
}
.ok-veil[hidden], .ok-modal[hidden] { display: none; }
.ok-x { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream); color: var(--forest); }
.ok-x .ico { width: 20px; height: 20px; }
.ok-rocket { width: 84px; margin: 0 auto 14px; }
.ok-modal h3 { font-size: 1.7rem; }
.ok-steps { display: grid; gap: 10px; margin-block: 22px 26px; counter-reset: ok; text-align: start; }
.ok-steps li { counter-increment: ok; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); }
.ok-steps li::before { content: counter(ok); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--cream); font-family: var(--f-head); font-weight: 500; font-size: .95rem; }

/* ==========================================================================
   Accessibility widget — preference classes + chrome
   (a11y-widget.js injects markup only; styles live here)
   ========================================================================== */
html.a11y-text-115 { font-size: 115%; }
html.a11y-text-130 { font-size: 130%; }
html.a11y-text-150 { font-size: 150%; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font body,
html.a11y-font :where(h1, h2, h3, h4, p, li, a, span, b, label, button, input, select, textarea, summary, legend) {
  font-family: Arial, Helvetica, sans-serif !important; letter-spacing: normal !important;
}
html.a11y-lines-16 :where(p, li, dd, summary) { line-height: 1.9 !important; }
html.a11y-lines-20 :where(p, li, dd, summary) { line-height: 2.3 !important; }
html.a11y-headings :where(h1, h2, h3) { background: var(--copper-tint); outline: 2px solid var(--copper-ink); outline-offset: 3px; }
html.a11y-contrast-high {
  --cream: #fff; --ivory: #fff; --ink: #000; --ink-2: #000; --ink-soft: #1d1d1d; --forest: #06140f;
  --line: #000; --line-2: #000; --copper-ink: #5a3215; --on-dark-soft: #fff; --sage: #fff; --sage-2: #fff;
}
html.a11y-contrast-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast-invert :where(img) { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast-mono { filter: grayscale(1); }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'%3E%3Cpath d='M6 2l28 16-12 3-5 12z' fill='%230F2A24' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto !important; }

.a11y-trigger {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 112;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid var(--cream); border-radius: 50%; background: var(--forest); color: var(--cream);
  box-shadow: 0 0 0 1px rgba(15, 42, 36, .25), 0 12px 28px -12px rgba(15, 42, 36, .7);
  transition: transform .35s var(--ease-out), background-color .3s var(--ease);
}
.a11y-trigger:hover { transform: translateY(-3px); background: var(--forest-2); }
.a11y-trigger svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.a11y-trigger svg circle { fill: currentColor; stroke: none; }
.a11y-panel {
  position: fixed; inset-block-end: 88px; inset-inline-end: 24px; z-index: 113;
  width: min(340px, calc(100vw - 32px)); max-height: min(72vh, 580px); overflow-y: auto;
  padding: 20px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); color: var(--ink);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 16px; }
.a11y-panel-head h2 { font-size: 1.25rem; font-weight: 500; color: var(--forest); }
.a11y-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); }
.a11y-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 76px;
  padding: 11px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--cream); color: var(--ink);
  font-size: var(--t-xs); font-weight: 400; line-height: 1.3; text-align: center;
}
.a11y-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a11y-item:hover { background: #fff; }
.a11y-item.is-on { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.a11y-item-value { font-size: var(--t-xs); color: var(--ink-soft); }
.a11y-item.is-on .a11y-item-value { color: var(--copper-soft); }
.a11y-reset { width: 100%; min-height: 46px; margin-block-start: 16px; padding: 11px; border: 0; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: var(--t-sm); font-weight: 500; }
.a11y-reset:hover { background: var(--forest-2); }
.a11y-statement-link { display: block; margin-block-start: 12px; padding-block: 6px; font-size: var(--t-xs); color: var(--copper-ink); text-align: center; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Consent banner (consent.js). Accept and "necessary only" weigh the same.
   ========================================================================== */
.consent {
  position: fixed; inset-inline: 0; inset-block-end: 24px; z-index: 110;
  display: flex; justify-content: center; padding-inline: 100px; pointer-events: none;
  animation: rise .6s var(--ease-out) both;
}
.cc-card {
  pointer-events: auto; width: min(820px, 100%);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main actions" "prefs prefs";
  gap: 16px 28px; align-items: center; padding: 22px 26px;
  border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.cc-main { grid-area: main; }
.cc-title { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: 1.2rem; font-weight: 500; color: var(--forest); margin-block-end: 6px; }
.beam { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); flex: none; }
.cc-text { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.6; }
.cc-text a { color: var(--copper-ink); text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { grid-area: actions; display: grid; gap: 8px; min-width: 190px; }
.cc-btn { width: 100%; min-height: 46px; padding-block: 10px; }
.cc-prefs { grid-area: prefs; display: grid; gap: 8px; padding-block-start: 14px; border-top: 1px solid var(--line); }
.cc-prefs[hidden] { display: none; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border-radius: 12px; background: var(--cream); }
.cc-row label { font-size: var(--t-xs); font-weight: 500; color: var(--forest); }
.cc-row p { font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.5; }
.cc-switch {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0;
  width: 50px; height: 30px; border-radius: 999px; cursor: pointer; background: #6F8078; border: 0;
  transition: background-color .25s var(--ease);
}
.cc-switch::before { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--ease-out); }
.cc-switch:checked { background: var(--forest); }
.cc-switch:checked::before { transform: translateX(-20px); }
.cc-switch:disabled { cursor: not-allowed; }
.cc-switch:disabled:checked { background: var(--forest-2); }

/* cookie table on cookies.html */
.table-wrap { overflow-x: auto; margin-block: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
.doc-table th, .doc-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table th { background: var(--cream); color: var(--forest); font-weight: 500; white-space: nowrap; }
.doc-table tr:last-child td { border-bottom: 0; }

/* ---------- Inner documents (accessibility / privacy / terms / cookies / 404) ---------- */
.doc-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--cream); }
.doc-header .header-inner { height: var(--header-h); justify-content: space-between; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t-sm); font-weight: 500; color: var(--forest); }
.doc { padding-block: clamp(48px, 7vw, 96px); }
.doc-inner { max-width: 780px; }
.doc h1 { font-size: var(--t-h2); line-height: 1.12; margin-block-end: 10px; }
.doc .doc-meta { font-size: var(--t-xs); color: var(--ink-soft); margin-block-end: 36px; }
.doc h2 { font-size: 1.5rem; margin-block: 40px 12px; line-height: 1.25; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-block-start: 12px; }
.doc ul { list-style: disc; padding-inline-start: 1.3em; display: grid; gap: 6px; margin-block: 10px; }
.doc a { color: var(--copper-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-box { margin-block-start: 28px; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--ivory); border: 1px solid var(--line); }
.doc-box p + p { margin-block-start: 4px; }
.doc .todo { background: var(--copper-tint); padding: 0 4px; border-radius: 4px; }
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-block: var(--rhythm); }
.notfound h1 { font-size: var(--t-hero); line-height: 1; }
.notfound p { margin-block: 16px 28px; font-size: var(--t-lede); color: var(--ink-soft); }

/* ==========================================================================
   Responsive (keep at the end)
   ========================================================================== */
@media (max-width: 1100px) {
  .prep { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plans-head { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .menu-btn {
    display: inline-grid; place-content: center; gap: 6px; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--forest); position: relative; z-index: 2;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .3s var(--ease-out); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 18px;
    padding: calc(var(--header-h) + 12px) var(--gutter) 28px; background: var(--cream); box-shadow: var(--shadow-lg);
    transform: translateY(-105%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { min-height: 56px; padding: 0 4px; font-size: 1.15rem; border-block-end: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-cta { min-height: 52px; }

  .hero { align-items: flex-start; min-height: auto; padding-block: calc(var(--header-h) + 28px) 64px; }
  body.sky-on .hero { min-height: min(96vh, 940px); padding-block-end: 250px; }   /* the 3D ship lives in this band */
  .hero-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-in { flex: none; width: 100%; }
  .rk { order: -1; width: 104px; height: 123px; margin: 0 0 14px; }
  .rk.fire .rk-flame { height: 48px; }
  .rk-glow { width: 160px; height: 160px; }
  .poster-planet { width: 58vw; inset-inline-end: -18vw; bottom: auto; top: calc(var(--header-h) + 8px); opacity: .9; }
  .poster-moon { width: 64px; inset-inline-start: auto; inset-inline-end: 44vw; top: calc(var(--header-h) + 14px); }
  .site-header:not(.is-scrolled) .menu-btn[aria-expanded="false"] { background: var(--cream); }
  .site-header:not(.is-scrolled) .menu-btn[aria-expanded="false"] span { background: var(--forest); }

  .road { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .road-rail { inset-inline: auto; inset-inline-start: 27px; inset-inline-end: auto; inset-block: 28px 28px; width: 2px; height: auto; }
  .rail-fill { transform-origin: center top; transform: scaleY(var(--fill, 0)); }
  .stop { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding-block-end: 36px; }
  .stop:last-child { padding-block-end: 0; }
  .stop-n { grid-row: 1 / span 4; }
  .stop > :not(.stop-n) { grid-column: 2; }
  .stop h3 { margin-block: 12px 6px; }

  .package-grid, .signup-grid, .spot { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work, .work-feat { grid-column: auto; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; --t-body: 1.0625rem; }
  .brand-word { font-size: 1.4rem; }
  .facts { grid-template-columns: minmax(0, 1fr); margin-block-start: 36px; padding: 2px 18px 6px; }
  .facts li, .facts li + li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border: 0; }
  .facts li + li { border-block-start: 1px solid rgba(169, 189, 182, .2); }
  .facts b { flex: none; min-width: 6.2em; font-size: 1.35rem; }
  .facts span { margin: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .prep { grid-template-columns: minmax(0, 1fr); }
  .prep li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 22px 20px; }
  .prep-n { grid-row: 1 / span 2; margin: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .dash-body { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .work a { grid-template-areas: "shot" "meta" "go"; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .work-go { padding-inline-start: 8px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "program" "links" "top" "copy"; }
  .to-top, .copy { justify-self: start; }
  .consent { padding-inline: 12px; inset-block-end: 12px; }
  .cc-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "actions" "prefs"; padding: 18px; }
  .a11y-trigger { inset-block-end: 16px; inset-inline-end: 16px; width: 48px; height: 48px; }
  .cta-bar { inset-block-end: max(10px, env(safe-area-inset-bottom)); padding-inline: 10px; }
  .cta-bar-in { width: 100%; justify-content: space-between; gap: 12px; padding: 7px; padding-inline-start: 18px; border-radius: 20px; }
  .cta-bar-text { flex-direction: column; align-items: flex-start; gap: 0; }
  .cta-bar-text b { font-size: 1rem; }
  /* the a11y trigger sits above the banner, never on top of it */
  html:not(.cta-off) body:not(:has(.consent)) .a11y-trigger { inset-block-end: calc(max(10px, env(safe-area-inset-bottom)) + 76px); }
  html:not(.cta-off) body:not(:has(.consent)) .a11y-panel { inset-block-end: calc(max(10px, env(safe-area-inset-bottom)) + 136px); }
}
