/* בונים אתר: the estimator is the site. Contract: CONTRACT in this design folder */
@import url("fonts/fonts.css");

:root {
  --base: #FAF5F2; --card: #FFFDFB; --wash: #F3EAE5; --wash-2: #E8DDD6; --field: #9A8C85;
  --ink: #1C1A24; --ink-2: #5C5560; --on-ink: #FAF5F2;
  --coral: #E8573F; --coral-hover: #F06B54;
  --self: #0E8A7B; --free: #3462D2; --studio: #7A3FA6;
  --display: "Secular One", "Assistant", sans-serif;
  --text: "Assistant", "Arial Hebrew", sans-serif;
  --shadow: 0 22px 46px -26px rgba(92, 50, 34, .34), 0 4px 12px -8px rgba(92, 50, 34, .16);
  --shadow-soft: 0 12px 28px -20px rgba(92, 50, 34, .30), 0 2px 6px -4px rgba(92, 50, 34, .14);
  --shadow-coral: 0 26px 52px -28px rgba(176, 58, 36, .62), 0 6px 16px -10px rgba(176, 58, 36, .32);
  --ease: cubic-bezier(.3, .7, .2, 1);
  --bar-h: 60px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 20px); }  /* no smooth scroll: keyboard focus lands in view at once, never under the bar */
body { margin: 0; background: var(--base); color: var(--ink); font: 400 19px/1.75 var(--text); font-synthesis: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.page-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 50; }
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
.skip-link:focus { position: fixed; inset-inline-start: 16px; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 12px; }
.ui-icon { width: 22px; height: 22px; flex: none; }

/* App bar: solid ink, the mark and the brand at the start, the calculator pill at the end */
.app-bar { position: sticky; top: 0; z-index: 20; background: var(--card); color: var(--ink); transition: box-shadow 200ms var(--ease); }
.app-bar[data-lift] { box-shadow: 0 12px 26px -20px rgba(92, 50, 34, .55), 0 2px 6px -4px rgba(92, 50, 34, .18); }
.bar-inner { display: flex; align-items: center; gap: 8px; min-height: var(--bar-h); }
.bar-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font: 800 23px/1 var(--display); letter-spacing: -.01em; }
.bar-links { display: none; }
.calc-pill { margin-inline-start: auto; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px 18px; border-radius: 999px; background: var(--coral); color: var(--ink); font: 800 17px/1 var(--text); text-decoration: none; transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.calc-pill:hover { background: var(--coral-hover); }
.calc-pill:active, .opt-card:active, .type-card:active, .plat-card:active, .read-card:active, .est-cta:active, .est-mini:active,
.dock-link:active, .stepper-btn:active { transform: scale(.97); }
.calc-pill .ui-icon { width: 20px; height: 20px; }

/* Phone: category tabs under the bar, underline on the active tab */
.cat-tabs { background: var(--card); box-shadow: 0 12px 26px -20px rgba(92, 50, 34, .55), 0 2px 6px -4px rgba(92, 50, 34, .18); }
.tabs-track { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: 8px; }
.tabs-track::-webkit-scrollbar { display: none; }
.tabs-track a { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 48px; padding-inline: 8px;
  font: 600 17px/1 var(--text); color: var(--ink-2); text-decoration: none; }
.tabs-track a[aria-current] { color: var(--ink); font-weight: 800; }
.tabs-track a[aria-current]::after { content: ""; position: absolute; inset-inline: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: currentColor; }
.bar-links a[aria-current]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: currentColor; }

/* Estimator hero: steps on the start side, the coral result card on the end side */
.cost-hero { padding: 22px 0 30px; }
.hero-grid { display: grid; gap: 26px; }
.hero-title { margin: 0; font: 800 68px/.98 var(--display); letter-spacing: -.02em; }
.hero-title span { display: block; }
.price-stamp { margin: 14px 0 0; display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1.3 var(--text); color: var(--ink-2); }
.price-stamp .ui-icon { width: 20px; height: 20px; }
.est-form { display: grid; gap: 26px; min-width: 0; }
.cost-hero .hero-grid { margin-top: 26px; }
.tool-hero .hero-grid { margin-top: 0; }
/* one markup for both pages: the home links to the tool, the tool shows its build up and links to its assumptions */
.page-home .result-lines, .page-home .link-assume, .page-tool .link-tool { display: none; }
.est-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step-label { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 12px; font: 800 20px/1.3 var(--text); }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font: 800 16px/1 var(--display); }
.opt-grid { display: grid; gap: 10px; }
.opt-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  min-height: 64px; padding: 10px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.opt-card input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt-icon { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--wash);
  transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.opt-icon .ui-icon { width: 24px; height: 24px; }
.opt-name { font: 800 18px/1.25 var(--text); }
.opt-meta { grid-column: 2; font: 600 15px/1.3 var(--text); color: var(--ink-2); }
.who-card .route-chip { grid-column: 2; margin-top: 6px; }
.opt-tick { grid-row: 1 / span 2; grid-column: 3; width: 26px; height: 26px; padding: 5px; border-radius: 999px; background: var(--wash);
  color: var(--wash); transition: background-color 160ms var(--ease); }
.extra-card { grid-template-columns: 44px minmax(0, 1fr) auto; }
.extra-card .opt-icon { grid-row: auto; }
.extra-card .opt-tick { grid-row: auto; }
.opt-card:hover { box-shadow: inset 0 0 0 2px var(--wash-2), var(--shadow-soft); }
.opt-card:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--ink), var(--shadow-soft); }
.opt-card:has(input:checked) .opt-icon { background: var(--ink); color: var(--on-ink); }
.opt-card:has(input:checked) .opt-tick { background: var(--ink); color: var(--on-ink); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.size-row { display: flex; align-items: center; gap: 14px; }
.size-stepper { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); }
.stepper-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--wash); cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.stepper-btn:hover { background: var(--wash-2); }
.size-field { width: 6.2ch; height: 48px; border: 1.5px solid var(--field); border-radius: 14px; background: var(--base); text-align: center;
  font: 800 26px/1 var(--display); -moz-appearance: textfield; appearance: textfield; }
.size-field::-webkit-inner-spin-button, .size-field::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.size-unit { font: 700 18px/1 var(--text); color: var(--ink-2); }

/* The result card: the accent owns this surface */
.est-result { container-type: inline-size; align-self: start; display: grid; gap: 16px; padding: 22px 20px; border-radius: 26px; background: var(--coral); color: var(--ink);
  box-shadow: var(--shadow-coral); }
.result-kicker { margin: 0; font: 800 16px/1.2 var(--text); }
.result-range { margin: 0; font: 800 min(64px, 20cqi)/1 var(--display); letter-spacing: -.02em; }
.range-low, .range-high { display: block; white-space: nowrap; }
.range-to { font-size: .4em; letter-spacing: 0; vertical-align: .5em; margin-inline-end: .15em; }
.result-month { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 14px;
  border-radius: 14px; background: rgba(20, 27, 38, .09); }
.month-label { font: 700 15px/1.3 var(--text); }
.result-month b { font: 800 25px/1 var(--display); white-space: nowrap; }
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font: 600 15px/1.3 var(--text); }
.cmp-row[data-on] { font-weight: 800; }
.cmp-value { white-space: nowrap; }
.cmp-track { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 99px; background: rgba(20, 27, 38, .14); }
.cmp-bar { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--from, 0%); width: calc(var(--to, 0%) - var(--from, 0%));
  min-width: 10px; border-radius: 99px; background: rgba(20, 27, 38, .34);
  transition: inset-inline-start 280ms var(--ease), width 280ms var(--ease), background-color 280ms var(--ease); }
.cmp-row[data-on] .cmp-bar { background: var(--ink); }
.result-lines { display: grid; gap: 6px; }
.lines-title { margin: 0; font: 800 15px/1.2 var(--text); }
.build-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.build-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 10px; border-radius: 10px;
  font: 600 15px/1.35 var(--text); }
.build-lines li:nth-child(odd) { background: rgba(20, 27, 38, .06); }
.build-lines li[data-total] { margin-top: 4px; background: rgba(20, 27, 38, .13); font-weight: 800; }
.line-amount { white-space: nowrap; }
.result-note { margin: 0; font: 600 15px/1.4 var(--text); }
.result-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 800 16px/1 var(--text);
  text-underline-offset: 5px; text-decoration-thickness: 2px; }
.result-link .ui-icon { width: 18px; height: 18px; }

/* Phone: a compact live price while the steps are on screen */
.est-dock { position: fixed; z-index: 15; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
.est-dock[hidden] { display: none; }
.dock-link { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-inline: 20px 16px; border-radius: 999px; background: var(--coral); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-coral); transition: transform 160ms var(--ease); }
.dock-label { font: 800 15px/1 var(--text); }
.dock-link b { margin-inline-start: auto; font: 800 22px/1 var(--display); white-space: nowrap; }
.dock-caret { width: 20px; height: 20px; }

/* Section titles */
.block-title { margin: 0 0 18px; font: 800 34px/1.15 var(--display); letter-spacing: -.01em; }

/* Range board: every site type, three routes, one shekel axis */
.range-board { padding: 34px 0 6px; }
.board-head { display: grid; gap: 10px; margin-bottom: 16px; }
.board-head .block-title { margin: 0; }
.route-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font: 700 16px/1.4 var(--text); }
.route-key li { display: inline-flex; align-items: center; gap: 8px; }
.route-chip { display: inline-block; width: 22px; height: 10px; flex: none; border-radius: 99px; }
.route-self { background: var(--self); }
.route-free { background: var(--free); }
.route-studio { background: var(--studio); }
.board-card { display: grid; gap: 24px; padding: 18px 16px 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.board-group { display: grid; gap: 12px; }
.group-name { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 19px/1.3 var(--text); }
.group-name .ui-icon { width: 24px; height: 24px; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.row-name { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1.3 var(--text); }
.row-value { font: 700 16px/1.3 var(--text); white-space: nowrap; }
.row-none { color: var(--ink-2); }
.row-track { grid-column: 1 / -1; position: relative; height: 14px; border-radius: 99px; background: var(--wash); }
.row-bar { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--from); width: calc(var(--to) - var(--from)); min-width: 14px; border-radius: 99px; }
.bar-open { border-start-end-radius: 0; border-end-end-radius: 0; }
.bar-open::after { content: ""; position: absolute; top: -3px; bottom: -3px; inset-inline-end: -10px; width: 11px; background: inherit;
  clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.board-axis { display: grid; font: 700 14px/1 var(--text); color: var(--ink-2); }
.axis-pad { display: none; }
.axis-ticks { position: relative; height: 16px; }
.axis-ticks span { position: absolute; top: 0; inset-inline-start: var(--at); transform: translateX(50%); white-space: nowrap; }
.axis-ticks span:first-child { transform: none; }
.axis-ticks span:last-child { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
.board-foot { margin: 14px 0 0; font: 600 15px/1.5 var(--text); color: var(--ink-2); }

/* Site types: drawn browser frames with real photos of small businesses */
.type-shelf { padding: 46px 0 6px; }
.type-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: -16px; padding: 4px 16px 24px; scroll-padding-inline: 16px; scrollbar-width: none; }
.type-grid::-webkit-scrollbar { display: none; }
.type-card { scroll-snap-align: start; display: grid; align-content: start; gap: 14px; padding: 12px 12px 18px; border-radius: 24px;
  background: var(--card); text-decoration: none; box-shadow: var(--shadow); transition: transform 160ms var(--ease); }
.type-copy { display: grid; gap: 6px; padding-inline: 6px; }
.type-kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 15px/1.3 var(--text); color: var(--ink-2); }
.type-kicker .ui-icon { width: 20px; height: 20px; }
.type-title { min-height: 2.7em; font: 800 20px/1.35 var(--text); }
.type-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 4px; font: 800 21px/1.2 var(--display); }
.type-price small { flex-basis: 100%; font: 600 15px/1.3 var(--text); color: var(--ink-2); }

.browser-mock { container-type: inline-size; padding: 0 6px 6px; border-radius: 12px; background: #ECE2DB; }
.mock-chrome { display: flex; align-items: center; gap: 10px; height: 28px; padding-inline: 6px; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 99px; background: #CDBDB3; }
.mock-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 17px; padding-inline: 8px; border-radius: 99px; background: var(--card); }
.mock-url i { width: 42%; height: 5px; border-radius: 9px; background: var(--wash-2); }
.mock-lock { width: 10px; height: 10px; color: var(--ink-2); }
.mock-screen { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; font-size: 3.1cqi; line-height: 1.25; }
.mock-screen img { width: 100%; height: 100%; object-fit: cover; }
.mock-screen b { font-weight: 800; }
/* landing page: one offer, one button (a pottery workshop) */
.mock-landing .mock-screen { display: grid; grid-template-rows: 58% 1fr; background: #F3EBE1; color: #3B2417; }
.mp-photo { min-height: 0; }
.mp-copy { display: grid; justify-items: center; align-content: center; gap: .35em; padding: .5em 1em; text-align: center; }
.mp-copy b { font: 800 1.45em/1.1 var(--display); }
.mp-copy span { font-size: .8em; font-weight: 600; }
.mp-copy em { font-style: normal; font-weight: 800; font-size: .85em; padding: .35em 1.3em; border-radius: 99px; background: #8E4327; color: #F7EFE6; }
/* business site: a neighbourhood bakery */
.mock-brochure .mock-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #F6EFE4; color: #4A2F1C; }
.mb-nav { display: flex; align-items: center; gap: 1em; padding: max(11px, 1.2em) max(10px, 1.6em) .7em; font-size: .78em; font-weight: 700; }
.mb-nav b { margin-inline-end: auto; font: 800 1.3em/1 var(--display); }
.mb-hero { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: .9em; padding-inline: 1.6em; min-height: 0; }
.mb-hero img { border-radius: .55em; min-height: 0; }
.mb-copy b { display: block; font: 800 1.7em/1.05 var(--display); }
.mb-copy em { display: inline-block; margin-top: .6em; padding: .35em 1em; border-radius: 99px; background: #4A2F1C; color: #F6EFE4;
  font-style: normal; font-weight: 800; font-size: .8em; }
.mb-info { display: flex; gap: .55em; padding: .8em 1.6em 1.2em; font-size: .7em; font-weight: 700; }
.mb-info span { flex: 1; display: flex; align-items: center; gap: .45em; padding: .45em .6em; border-radius: .5em; background: #EBDDC8; white-space: nowrap; }
.mb-info i { width: .75em; height: .75em; flex: none; border-radius: 99px; background: #B9783F; }
/* small store: kitchenware */
.mock-store .mock-screen { display: grid; grid-template-rows: auto auto 1fr; background: #EEF2EC; color: #233A2C; }
.ms-chips { display: flex; align-items: center; gap: .45em; padding: .8em 1.6em 0; font-size: .74em; font-weight: 700; }
.ms-chips span { padding: .3em .9em; border-radius: 99px; background: #DDE6D9; }
.ms-chips span[data-on] { background: #233A2C; color: #EEF2EC; }
.ms-chips small { margin-inline-start: auto; font-size: 1em; font-weight: 600; color: #4F6656; }
.ms-bar { display: flex; align-items: center; gap: .9em; padding: max(11px, 1em) max(10px, 1.6em); background: #E1E9DD; }
.ms-bar b { font: 800 1.25em/1 var(--display); }
.ms-search { flex: 1; height: 1.6em; border-radius: 99px; background: #F7F9F5; }
.ms-cart { display: inline-flex; align-items: center; gap: .25em; font-weight: 800; font-size: .9em; }
.ms-bag { width: 1.4em; height: 1.4em; }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: .9em; padding: .9em 1.6em; }
.ms-item { display: grid; gap: .2em; font-size: .8em; font-weight: 600; }
.ms-item span { margin-top: .2em; }
.ms-item img { aspect-ratio: 1 / 1.14; height: auto; border-radius: .5em; }
.ms-item b { font-weight: 800; }
/* custom store: lighting, with filters */
.mock-custom .mock-screen { display: grid; grid-template-rows: 50% minmax(0, 1fr); background: #23201D; color: #F1E7D6; }
.ml-banner { position: relative; min-height: 0; }
.ml-banner b { position: absolute; inset-inline-start: 1.4em; bottom: .6em; font: 800 1.5em/1 var(--display); color: #FBF4E8; }
.ml-body { display: grid; grid-template-columns: 24% minmax(0, 1fr); gap: .9em; padding: .9em 1.4em; min-height: 0; }
.ml-filters { display: grid; align-content: start; gap: .5em; font-size: .74em; font-weight: 600; }
.ml-filters b { font-weight: 800; }
.ml-filters span { display: flex; align-items: center; gap: .45em; }
.ml-filters i { width: .95em; height: .95em; flex: none; border-radius: .22em; box-shadow: inset 0 0 0 .14em #8F857A; }
.ml-filters i[data-on] { background: #E0B26A; box-shadow: none; }
.ml-slider { height: .35em; margin-top: .3em; border-radius: 99px; background: #4A443E; }
.ml-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: .6em; }
.ml-item { display: grid; gap: .3em; font-size: .78em; }
.ml-item img { aspect-ratio: 1; height: auto; border-radius: .45em; }
.ml-item b { font-weight: 800; }

/* Small frames (phones): fewer details so nothing crowds the frame */
@container (max-width: 330px) {
  .mb-info span:nth-child(3), .ms-chips span:nth-child(4), .mb-nav span:nth-child(4) { display: none; }
  .mb-info, .mb-nav { padding-inline: max(10px, 1.6em); }
  .ms-item img { aspect-ratio: 1; }
  .ms-chips small, .ms-item span { display: none; }
}

/* Guides by section, quiet lists */
.guide-shelf { padding: 46px 0 6px; }
.guide-columns { columns: 1; column-gap: 48px; }
.guide-group { break-inside: avoid; margin-bottom: 26px; }
.guide-section { margin: 0 0 6px; font: 800 17px/1.35 var(--text); color: var(--ink-2); }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px;
  margin-inline: -12px; border-radius: 12px; text-decoration: none; font: 600 18px/1.35 var(--text); }
.guide-list a:hover { background: var(--wash); }
.guide-caret { width: 18px; height: 18px; color: var(--ink-2); }
.guide-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer;
  font: 800 16px/1 var(--text); color: var(--ink-2); }
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more summary .fold-caret { width: 18px; height: 18px; }
.guide-more[open] summary { display: none; }
.tool-badge { display: inline-block; vertical-align: .12em; margin-inline-start: 6px; flex: none; padding: 5px 10px; border-radius: 99px; background: var(--coral); color: var(--ink); font: 800 13px/1 var(--text); }

/* Platforms */
.plat-shelf { padding: 30px 0 6px; }
.plat-row { display: grid; gap: 12px; }
.plat-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 20px 22px; border-radius: 22px; background: var(--wash);
  text-decoration: none; transition: transform 160ms var(--ease); }
.plat-card:hover { background: var(--wash-2); }
.plat-name { font: 800 34px/1 var(--display); letter-spacing: -.01em; text-align: end; }
.plat-title { font: 700 17px/1.4 var(--text); color: var(--ink-2); padding-inline-end: 34px; }
.plat-arrow { position: absolute; inset-inline-end: 20px; bottom: 22px; width: 22px; height: 22px; }

/* About the guide (the home intro) */
.about-band { margin-top: 50px; padding: 38px 0 30px; background: var(--card); }
.about-text { display: grid; gap: 8px; }
.about-text h2 { margin: 0 0 14px; font: 800 30px/1.2 var(--display); }
.about-text h3 { margin: 22px 0 6px; font: 800 20px/1.35 var(--text); }
.about-text p { margin: 0 0 14px; max-width: 66ch; }
.about-text a { font-weight: 700; text-underline-offset: 4px; }

/* Footer */
.site-foot { background: var(--wash); color: var(--ink); }
.foot-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; padding-block: 38px 30px; }
.map-head { margin: 0 0 4px; font: 800 15px/1.4 var(--text); color: var(--ink-2); }
.map-col ul { list-style: none; margin: 0; padding: 0; }
.map-col a { display: flex; align-items: center; min-height: 44px; font: 600 16px/1.35 var(--text); text-decoration: none; }
.map-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { background: var(--wash-2); }
.base-row { display: grid; gap: 4px 20px; padding-block: 16px 20px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font: 600 15px/1 var(--text); text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
main { padding-bottom: 56px; }
main:has(.about-band) { padding-bottom: 0; }

/* Article and tool: title block */
.article-head, .tool-head { padding-top: 18px; }
.topic-kicker { margin: 0 0 4px; font: 800 15px/1.3 var(--text); }
.topic-kicker a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.topic-kicker a:hover { color: var(--ink); }
.page-title { margin: 0; }
.title-main { display: block; font: 800 50px/1.04 var(--display); letter-spacing: -.02em; }
.tool-head .title-main { font-size: 68px; line-height: .98; }
.title-rest { display: block; margin-top: 12px; font: 700 23px/1.3 var(--text); color: var(--ink-2); }
/* the colon the split title hides: still in the heading's text for screen readers and search */
.title-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font: 600 16px/1.3 var(--text); color: var(--ink-2); }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta .ui-icon { width: 19px; height: 19px; }

/* At a glance price card */
.glance-card { margin-top: 24px; display: grid; gap: 22px; padding: 20px 16px 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.glance-title { margin: 0 0 14px; font: 800 26px/1.2 var(--display); }
.glance-board { gap: 16px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.glance-board .board-foot { margin-top: 0; }
.points-title { margin: 0 0 10px; font: 800 17px/1.3 var(--text); }
.glance-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.glance-points li { position: relative; padding-inline-start: 22px; font-size: 17px; line-height: 1.65; }
.glance-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 12px; height: 5px; border-radius: 9px; background: var(--ink); }

/* Contents */
.toc-fold { margin-top: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-soft); }
.toc-fold summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-inline: 18px; list-style: none; cursor: pointer; font: 800 18px/1 var(--text); }
.toc-fold summary::-webkit-details-marker { display: none; }
.fold-caret { width: 22px; height: 22px; flex: none; margin-inline-start: auto; transition: rotate 200ms var(--ease); }
.toc-fold[open] .fold-caret { rotate: 180deg; }
.toc-fold ol, .toc-box ol { list-style: none; margin: 0; padding: 0; }
.toc-fold ol { padding: 0 18px 12px; }
.toc-fold a { display: flex; align-items: center; min-height: 44px; font: 600 17px/1.35 var(--text); text-decoration: none; }
.tool-article .toc-fold { margin: 0 0 28px; }
.article-layout { display: grid; gap: 32px; padding-top: 30px; }
.article-body { min-width: 0; max-width: 600px; }
.article-side { display: none; }
.toc-box { padding: 18px 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-soft); }
.toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-inline: 8px; font: 800 16px/1.3 var(--text); color: var(--ink-2); }
.toc-title .ui-icon { width: 20px; height: 20px; }
.toc-box a { display: block; padding: 8px 10px; border-radius: 12px; font: 600 16px/1.4 var(--text); color: var(--ink-2); text-decoration: none; }
.toc-box a:hover { color: var(--ink); background: var(--base); }
.toc-box a[aria-current] { color: var(--ink); background: var(--wash); box-shadow: inset -3px 0 0 var(--ink); }

/* Article text */
.article-body > p:first-child { font-size: 21px; line-height: 1.7; }
.article-body h2 { margin: 50px 0 12px; font: 800 32px/1.2 var(--display); letter-spacing: -.01em; }
.article-body > h2:first-child, .article-body > .toc-fold + h2 { margin-top: 0; }
.article-body h3 { margin: 30px 0 8px; font: 800 22px/1.35 var(--text); }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-inline-start: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--ink-2); }
.article-body strong { font-weight: 800; }
.article-body a { text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(20, 27, 38, .35); }
.article-body a:hover { text-decoration-color: var(--ink); }
.article-body code { padding: 1px 6px; border-radius: 6px; background: var(--wash); font: 600 .85em/1 ui-monospace, monospace; }
/* code blocks (Markdown fences): wrapped, never wider than the column; each line takes its own text's direction and
   alignment (a Hebrew prompt line right to left, a code line left to right), characters unchanged */
.article-body pre { margin: 22px 0 26px; padding: 16px 18px; border-radius: 18px; background: var(--wash); color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start;
  font: 500 16px/1.8 ui-monospace, "Cascadia Mono", Menlo, Consolas, "Assistant", monospace; }
.article-body pre code { padding: 0; border-radius: 0; background: none; font: inherit; unicode-bidi: normal; }  /* no isolate: the pre's lines see the text */

/* Tables: ink head, tinted rows, their own scroll box */
.table-scroll { margin: 24px 0 28px; overflow-x: auto; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); }
.table-scroll table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.5; }
.table-scroll th { padding: 13px 14px; background: var(--ink); color: var(--on-ink); font: 800 15px/1.35 var(--text); text-align: start; vertical-align: middle; }
.table-scroll th .route-chip { display: block; margin-bottom: 7px; }
.table-scroll td { padding: 12px 14px; vertical-align: middle; }
.keep-range { white-space: nowrap; }
.table-scroll tbody tr:nth-child(even) > * { background: var(--base); }
.table-scroll tbody td:first-child, .table-scroll tbody th { font-weight: 800; }
.table-scroll tbody th { background: transparent; color: var(--ink); font-size: 16px; vertical-align: middle; }
.table-scroll tbody th .route-chip { display: inline-block; margin: 0 0 0 8px; }

/* Sources, the calculator link, related */
.source-list { margin-top: 46px; }
.source-list h2 { margin: 0 0 8px; font: 800 26px/1.2 var(--display); }
.source-list ol { margin: 0; padding-inline-start: 24px; }
.source-list li { margin: 0; }
.source-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; }
.source-list .ui-icon { width: 18px; height: 18px; color: var(--ink-2); }
.est-cta { margin-top: 36px; display: grid; gap: 16px; padding: 22px 20px; border-radius: 24px; background: var(--coral); color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-coral); transition: transform 160ms var(--ease); }
.cta-copy b { display: block; font: 800 30px/1.1 var(--display); letter-spacing: -.01em; }
.cta-copy span { display: block; margin-top: 6px; font: 600 17px/1.4 var(--text); }
.cta-go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 20px 16px; border-radius: 99px;
  background: var(--ink); color: var(--on-ink); font: 800 17px/1 var(--text); }
.cta-go .ui-icon { width: 20px; height: 20px; }
.est-mini { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 22px; background: var(--coral);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-coral); transition: transform 160ms var(--ease); }
.est-mini > .ui-icon { width: 30px; height: 30px; }
.est-mini b { display: block; font: 800 21px/1.15 var(--display); }
.mini-arrow { margin-inline-start: auto; width: 22px; height: 22px; }
.read-next { padding: 48px 0 0; }
.more-guides { padding: 40px 0 0; }
.read-row { display: grid; gap: 12px; }
.read-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-soft); text-decoration: none; transition: transform 160ms var(--ease); }
.read-kicker { font: 700 14px/1.3 var(--text); color: var(--ink-2); }
.read-card b { font: 800 19px/1.35 var(--text); }
.read-arrow { margin-top: auto; align-self: flex-end; width: 22px; height: 22px; }
/* legal pages and the 404 */
.legal-head, .lost-head { padding-top: 18px; }
.legal-layout { padding-top: 26px; }
.legal-body { max-width: 600px; }
.lost-head { padding-bottom: 8px; }
.lost-text { margin: 18px 0 0; max-width: 56ch; font-size: 20px; line-height: 1.7; }
.lost-text a { font-weight: 800; text-underline-offset: 4px; }
.lost-head .est-cta { max-width: 760px; }
/* a guide with only takeaways (no price card) */
.glance-text .points-title { font: 800 26px/1.2 var(--display); margin-bottom: 14px; }

/* Tool page */
.tool-hero { padding-top: 26px; }
.tool-points .glance-card { margin-top: 0; }
.assume-block { margin-top: 30px; }
.assume-block .block-title { display: flex; align-items: center; gap: 10px; font-size: 30px; }
.assume-block .block-title .ui-icon { width: 28px; height: 28px; }
.assume-note { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); }

/* Phone: tables become stacked rows, each cell with its column name */
@media (max-width: 599.98px) {
  html { scroll-padding-bottom: 92px; }
  .table-scroll { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .table-scroll table { display: block; }
  .table-scroll thead { display: none; }
  .table-scroll tbody { display: grid; gap: 10px; }
  .table-scroll tr { display: grid; padding: 12px 16px 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); }
  .table-scroll tbody tr:nth-child(even) > * { background: none; }
  .table-scroll td, .table-scroll tbody th { display: block; padding: 6px 0; }
  .table-scroll td::before, .table-scroll tbody th::before { content: attr(data-label); display: block; font: 700 14px/1.45 var(--text); color: var(--ink-2); }
  .table-scroll tr > :first-child { display: block; padding: 2px 0 6px; font: 800 18px/1.35 var(--text); }
  .table-scroll tr > :first-child::before { content: none; }
}
@media (max-width: 359.98px) {
  .keep-range { white-space: normal; }
  .calc-pill .ui-icon { display: none; }
  .calc-pill { padding-inline: 14px; }
}

@media (min-width: 600px) {
  .opt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; align-items: start; row-gap: 4px; min-height: 148px; padding: 16px; }
  .opt-icon { grid-row: 1; grid-column: 1; }
  .opt-tick { grid-row: 1; grid-column: 2; }
  .opt-name { grid-column: 1 / -1; margin-top: 10px; }
  .opt-meta, .who-card .route-chip { grid-column: 1 / -1; }
  .extra-card { min-height: 128px; }
  .extra-card .opt-icon, .extra-card .opt-tick { grid-row: 1; }
  .type-grid { grid-auto-columns: 62%; }
  .guide-columns { columns: 2; }
  .plat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .est-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px 30px; }
}

@media (min-width: 960px) {
  :root { --bar-h: 68px; }
  .page-wrap { padding-inline: 32px; }
  .bar-inner { gap: 4px; }
  .brand-name { font-size: 25px; }
  .bar-links { display: flex; margin-inline-start: auto; }
  .bar-links a { position: relative; display: inline-flex; align-items: center; min-height: var(--bar-h); padding-inline: 14px;
    font: 600 17px/1 var(--text); color: var(--ink-2); text-decoration: none; }
  .bar-links a:hover, .bar-links a[aria-current] { color: var(--ink); }
  .bar-links a[aria-current] { font-weight: 800; }
  .calc-pill { margin-inline-start: 14px; }
  .cat-tabs, .est-dock { display: none; }
  .app-bar { box-shadow: 0 12px 26px -20px rgba(92, 50, 34, .55), 0 2px 6px -4px rgba(92, 50, 34, .18); }
  .cost-hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 52px; align-items: start; }
  .hero-title { font-size: 92px; }
  .cost-hero .hero-grid { margin-top: 34px; }
  .hero-title span { display: inline; }
  .est-result { position: sticky; top: calc(var(--bar-h) + 24px); padding: 28px 28px 24px; }
  .result-range { font-size: min(76px, 20cqi); }
  .block-title { font-size: 42px; }
  .range-board { padding-top: 40px; }
  .board-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .board-card { gap: 26px; padding: 28px 34px 30px; }
  .range-board .board-row { grid-template-columns: 200px 230px minmax(0, 1fr); }
  .range-board .row-track { grid-column: auto; }
  .range-board .board-axis { grid-template-columns: 200px 230px minmax(0, 1fr); column-gap: 12px; }
  .range-board .axis-pad { display: block; grid-column: span 2; }
  .range-board .group-name { margin-bottom: -2px; }
  .type-shelf { padding-top: 64px; }
  .type-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; overflow: visible; margin: 0; padding: 0; }
  .read-grid { grid-template-columns: repeat(var(--cards, 3), minmax(0, 1fr)); gap: 22px; }
  .read-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glance-card.glance-text { grid-template-columns: minmax(0, 1fr); }
  .glance-text ul { display: block; columns: 2; column-gap: 44px; }
  .glance-text li { break-inside: avoid; margin-bottom: 12px; }
  .article-layout.no-side { grid-template-columns: minmax(0, 600px); }
  .legal-head, .lost-head { padding-top: 34px; }
  .read-grid .type-title { font-size: 20px; }
  .read-grid .type-price { font-size: 21px; }
  .type-card { padding: 14px 14px 22px; gap: 18px; }
  .browser-mock { border-radius: 10px; padding: 0 8px 8px; }
  .mock-screen { border-radius: 4px; }
  .mock-chrome { height: 34px; }
  .type-copy { padding-inline: 10px; }
  .type-title { font-size: 22px; }
  .type-price { font-size: 24px; }
  .guide-shelf { padding-top: 64px; }
  .guide-columns { columns: 3; }
  .plat-shelf { padding-top: 40px; }
  .about-band { margin-top: 64px; padding: 52px 0 44px; }
  .about-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px; }
  .about-text h2 { font-size: 36px; }
  .about-more { padding-top: 64px; }
  .about-more h3:first-child { margin-top: 0; }
  .foot-map { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; padding-block: 48px 36px; }
  .base-row { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
  .foot-note { margin-inline-start: auto; }
  .article-head, .tool-head { padding-top: 34px; }
  .title-main { font-size: 68px; }
  .tool-head .title-main { font-size: 88px; }
  .title-rest { font-size: 28px; }
  .glance-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; padding: 30px 34px; }
  .toc-fold, .tool-article .toc-fold { display: none; }
  .article-layout { grid-template-columns: minmax(0, 600px) 300px; justify-content: space-between; gap: 56px; padding-top: 44px; }
  .article-side { display: block; }
  .side-stick { position: sticky; top: calc(var(--bar-h) + 24px); }
  .tool-hero { padding-top: 34px; }
  .assume-block { margin-top: 44px; }
}

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