/* C137 sales site. Dark, one accent, logical properties throughout so the Hebrew page mirrors cleanly.
   Contrast ratios in comments were measured with web-craft scripts/contrast.mjs (see README). */

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  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;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik-hebrew-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  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: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0b0d11;
  --panel: #12151b;
  --panel-2: #181c24;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #eef0f3;
  --text-soft: #c5cad3;
  --text-muted: #9ba2ae;
  --accent: #ff6a2b;
  --accent-ink: #14100c;
  --particle: #efe6d8;
  --radius: 14px;
  --radius-sm: 8px;
  --pad: clamp(20px, 5vw, 72px);
  --display: 'Bricolage Grotesque', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --topbar: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); }
html.motion-off { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(he) { letter-spacing: 0 !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.vh {
  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 {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }
main:focus { outline: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px 20px;
  min-height: var(--topbar); padding: 8px var(--pad);
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font: 800 22px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--text);
  margin-inline-end: auto;
}
.logo-dot { color: var(--accent); }
.nav-list { display: flex; gap: clamp(12px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.nav-list a {
  color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  padding-block: 10px; display: inline-block;
}
.nav-list a:hover { color: var(--text); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 12px;
  font: 500 13px/1 var(--body); color: var(--text-soft);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.motion-toggle:hover { color: var(--text); border-color: var(--text-muted); }
.motion-toggle[aria-disabled='true'] { cursor: default; opacity: 0.85; }
.motion-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.motion-toggle:is([data-state='off'], [data-state='forced-off']) .motion-icon {
  border: 0; width: 0; height: 0;
  border-block: 6px solid transparent; border-inline-start: 10px solid currentColor;
}

/* ---------- the 3D field ---------- */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.field-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; }
.field-on .field-canvas { opacity: 1; }
.field-still {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  background:
    radial-gradient(38vmax 38vmax at 72% 42%, rgba(255, 106, 43, 0.16), transparent 62%),
    radial-gradient(28vmax 28vmax at 78% 50%, rgba(239, 230, 216, 0.08), transparent 70%);
}
[dir='rtl'] .field-still {
  background:
    radial-gradient(38vmax 38vmax at 28% 42%, rgba(255, 106, 43, 0.16), transparent 62%),
    radial-gradient(28vmax 28vmax at 22% 50%, rgba(239, 230, 216, 0.08), transparent 70%);
}
.field-off .field-still { opacity: 1; }
.field-off .field-canvas { display: none; }
main { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - var(--topbar));
  padding: clamp(48px, 9vh, 110px) var(--pad) 40px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 40px;
}
.hero-copy { max-width: 38rem; }
.kicker {
  font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  margin-block-end: 18px;
}
:lang(he) .kicker, .kicker:lang(he) { font-family: var(--body); text-transform: none; font-size: 15px; }
h1 {
  font: 700 clamp(38px, 5.6vw, 72px)/1.03 var(--display); letter-spacing: -0.025em;
}
:lang(he) h1 { font-family: var(--body); font-weight: 700; line-height: 1.12; }
.sub { margin-block-start: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-soft); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }

.hero-lines { align-self: end; max-width: 40rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  background: rgba(18, 21, 27, 0.6);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.chip:hover, .chip.is-active { color: var(--text); border-color: var(--accent); background: rgba(255, 106, 43, 0.1); }
.field-caption { margin-block-start: 14px; font: 400 13px/1.5 var(--mono); color: var(--text-muted); min-height: 1.5em; }
:lang(he) .field-caption { font-family: var(--body); }
.field-off .field-caption { visibility: hidden; }

.proof { border-top: 1px solid var(--line); padding-block-start: 18px; }
.proof-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 28px;
  margin: 0; padding: 0; list-style: none; color: var(--text-soft); font-size: 15px;
}
.proof-list li { padding-inline-start: 14px; position: relative; }
.proof-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font: 600 15px/1.2 var(--body); text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff8148; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(11, 13, 17, 0.4); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-secondary { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-strong); }
.btn.is-placeholder {
  background: transparent; color: var(--text-muted); border: 1px dashed var(--line-strong);
  cursor: not-allowed; flex-direction: column; gap: 2px; padding-block: 6px;
}
.ph-note { font: 500 11px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
:lang(he) .ph-note { font-family: var(--body); text-transform: none; font-size: 12px; }

/* ---------- product lines ---------- */
.line { padding: clamp(80px, 14vh, 160px) var(--pad) 40px; }
.line-intro { max-width: 38rem; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: baseline; gap: 12px; font: 600 15px/1 var(--body); color: var(--text-soft); margin-block-end: 18px; }
.eyebrow .num { font: 500 13px/1 var(--mono); color: var(--accent); }
.line h2 { font: 700 clamp(32px, 4.2vw, 54px)/1.06 var(--display); letter-spacing: -0.02em; }
.buyer { margin-block-start: 16px; font: 500 14px/1.5 var(--mono); color: var(--text-muted); }
.lede { margin-block-start: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-soft); }
.ladder { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 18px; background: rgba(18, 21, 27, 0.82); }
.step-name { font: 500 13px/1.6 var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
:lang(he) .step-name { font-family: var(--body); text-transform: none; font-size: 14px; }
.step-items { font-size: 15px; color: var(--text); }

.line-body { display: grid; gap: 22px; }
.block-h { margin-block-start: 48px; font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
:lang(he) .block-h { font-family: var(--body); text-transform: none; font-size: 15px; }

.prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.prod {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.prod-media { margin: 0; position: relative; aspect-ratio: 16 / 10; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.prod-media figcaption {
  position: absolute; inset-block-end: 10px; inset-inline-end: 10px;
  font: 500 11px/1 var(--mono); padding: 6px 8px; border-radius: 6px;
  background: rgba(11, 13, 17, 0.86); color: var(--text-soft); border: 1px solid var(--line);
}
.prod-diagram { display: grid; place-items: center; padding: 14px; }
/* phone-shaped media (Shorts, phone screenshots, covers) are shown whole, scaled to fit, never cropped */
.prod-media.is-tall { aspect-ratio: auto; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 18px; height: 420px; }
.prod-media.is-tall img { width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-strong); }
.prod-media.is-tall.is-pair img { max-width: calc(50% - 7px); }
.prod-media.is-tall figcaption { inset-block-end: auto; inset-block-start: 10px; }
.prod-diagram-scripts { aspect-ratio: auto; padding: 22px; }
.files { width: 100%; padding: 6px 4px; }
.files-h { font: 500 12px/1 var(--mono); color: var(--text-muted); margin-block-end: 10px; }
.files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.files li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 10px; font-size: 13px; color: var(--text-soft); align-items: baseline; }
.files code { font: 500 13px var(--mono); color: var(--text); }
.diagram { width: 100%; height: 100%; max-height: 210px; }
.diagram rect { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1.2; }
.diagram text { fill: var(--text-soft); font: 500 13px var(--mono); text-anchor: middle; }
.diagram .d-edge { fill: none; stroke: var(--text-muted); stroke-width: 1.4; }
.diagram .d-edge-cut { stroke-dasharray: 4 4; }
.diagram .d-gate rect { stroke: var(--accent); stroke-width: 1.6; }
.diagram .d-node-block rect { stroke-dasharray: 4 3; }
.diagram .d-pill-accent rect { stroke: var(--accent); }
.diagram .d-aside { fill: var(--text-muted); font-size: 12px; text-anchor: start; }
.diagram .d-axis { stroke: var(--line-strong); stroke-width: 1.2; }
.diagram .d-line { fill: none; stroke: var(--text-soft); stroke-width: 2; stroke-linejoin: round; }
.diagram .d-mark { fill: none; stroke: var(--accent); stroke-width: 2; }
.diagram .d-sphere { fill: var(--panel); stroke: var(--line-strong); }
.diagram .d-meridian { fill: none; stroke: var(--line); }
.diagram .d-arc { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.diagram .d-legend text { fill: var(--text-soft); font-size: 12px; text-anchor: start; }
:lang(he) .diagram text { font-family: var(--body); font-size: 14px; }
.prod-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-role { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.prod h4 { font: 700 24px/1.15 var(--display); }
.prod-body > p:not(.prod-role):not(.prod-status) { color: var(--text-soft); font-size: 15.5px; }
.prod-status { font: 400 13px/1.5 var(--mono); color: var(--text-muted); padding-block-start: 6px; }
.prod-actions { margin-block-start: auto; display: flex; flex-wrap: wrap; gap: 10px; }

.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 18px; }
.pkg {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.pkg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.pkg h4 { font: 700 22px/1.2 var(--display); }
:lang(he) .pkg h4, :lang(he) .prod h4, :lang(he) .line h2 { font-family: var(--body); }
.pkg-from { font: 500 14px/1 var(--mono); color: var(--text-soft); white-space: nowrap; }
.pkg-pitch { color: var(--text-soft); font-size: 15.5px; }
.tiers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tier { padding-block: 12px; border-bottom: 1px solid var(--line); }
.tier-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-block-end: 4px; }
.tier-name { font-weight: 600; }
.tier-days { font: 400 13px/1 var(--mono); color: var(--text-muted); }
.tier-price { margin-inline-start: auto; font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.per { font: 400 12px var(--mono); color: var(--text-muted); }
.tier p { font-size: 14.5px; color: var(--text-soft); }
.pkg-note { font-size: 14px; color: var(--text-muted); }
.pkg-label { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-block-end: 8px; }
:lang(he) .pkg-label { font-family: var(--body); text-transform: none; font-size: 14px; }
.pkg-inside ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-soft); }
.pkg-warning { font-size: 14px; color: var(--text); padding: 12px 14px; border: 1px solid var(--line-strong); border-inline-start: 3px solid var(--text-muted); border-radius: var(--radius-sm); background: var(--panel-2); }
.prods.is-single, .pkgs.is-single { grid-template-columns: minmax(0, 46rem); }
.line-note { font-size: 15px; color: var(--text-muted); margin-block-end: 22px; }
.line-note a { color: var(--text); text-underline-offset: 3px; }
.pkg-note b { color: var(--text-soft); font-weight: 600; }
.pkg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: auto; padding-block-start: 6px; }

.other-lines { padding: clamp(60px, 10vh, 120px) var(--pad) 20px; }
.other-lines h2, .contact h2 { font: 700 clamp(28px, 3.4vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; }
:lang(he) .other-lines h2, :lang(he) .contact h2 { font-family: var(--body); letter-spacing: 0; }
.other-lines .lede { margin-block-start: 12px; }
.ol-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 52rem; }
.ol-list a {
  display: grid; grid-template-columns: 2.6rem 9rem 1fr; gap: 12px; align-items: baseline; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.ol-list a:hover { border-color: var(--line-strong); }
.ol-num { font: 500 13px var(--mono); color: var(--accent); }
.ol-name { font-weight: 600; }
.ol-title { color: var(--text-soft); }

.contact {
  margin: clamp(60px, 10vh, 120px) var(--pad) 0; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px);
  background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
}
.contact .lede { margin-block-start: 14px; color: var(--text-soft); }
.contact-privacy, .contact-alt { margin-block-start: 16px; font-size: 14px; color: var(--text-muted); }
.contact-alt a { color: var(--text); }
.contact-form { display: grid; gap: 16px; align-content: start; }
.field-row { display: grid; gap: 6px; }
.field-row label { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.req { color: var(--accent); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 400 16px/1.4 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form [aria-invalid='true'] { border-color: #ff8a80; }
.contact-form [dir='ltr'] { text-align: start; }
[dir='rtl'] .contact-form input[dir='ltr'] { text-align: right; }
.hint { font-size: 13px; color: var(--text-muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.form-status { font-size: 15px; color: var(--text); min-height: 1.5em; }
.form-offline { font-size: 14px; color: var(--text-soft); padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }

.footer {
  position: relative; z-index: 1; margin-block-start: clamp(60px, 10vh, 120px);
  padding: 36px var(--pad) 48px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; background: var(--bg);
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p, .footer-fine p { font-size: 14px; color: var(--text-muted); }
.footer-brand a { color: var(--text-soft); }
.footer-fine { display: grid; gap: 8px; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .field { position: absolute; inset: 0 0 auto; height: 32svh; top: var(--topbar); }
  .field-still { background: radial-gradient(60vw 30svh at 50% 50%, rgba(255, 106, 43, 0.18), transparent 70%); }
  [dir='rtl'] .field-still { background: radial-gradient(60vw 30svh at 50% 50%, rgba(255, 106, 43, 0.18), transparent 70%); }
  .hero { padding-top: 31svh; min-height: 0; gap: 28px; }
  .kicker { margin-block-end: 12px; }
  .sub { margin-block-start: 16px; }
  .cta-row { margin-block-start: 22px; }
  .nav-list { gap: 14px; }
  .nav-lines { display: none; }
  .motion-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-toggle { width: 40px; justify-content: center; padding: 0; }
  .line-intro { min-height: 0; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .pkg { padding: 20px 18px; }
  .contact { grid-template-columns: 1fr; margin-inline: 12px; padding: 24px 18px; }
  .footer { grid-template-columns: 1fr; }
  .ol-list a { grid-template-columns: 2.2rem 1fr; }
  .ol-title { grid-column: 2; }
  .prod-media.is-tall { height: 360px; }
  .files li { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
  h1 { font-size: 32px; }
  .sub { font-size: 16px; }
  .topbar { gap: 8px 10px; }
  .nav-list { gap: 10px; }
  .nav-list a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hebrew: the mono face has no Hebrew glyphs, so every mono label falls back to the body face */
:lang(he) :is(.buyer, .tier-days, .tier-price, .pkg-from, .per, .prod-status, .prod-role, .prod-media figcaption, .eyebrow .num, .ph-note) {
  font-family: var(--body);
  letter-spacing: 0;
  text-transform: none;
}
:lang(he) .tier-price { font-variant-numeric: tabular-nums; font-weight: 600; }
