/* בית הדפוס: styles. Mobile first, RTL. Fonts are declared in fonts.css. */
:root {
  --v950: #1b1230; --v900: #2a1850; --v800: #3b2170; --v700: #4c2a8c; --v600: #5d35a8; --v500: #7c55c8;
  --v300: #c9bbe8; --v200: #e0d8f1; --v100: #efeaf8; --v50: #f6f3fb;
  --a600: #a85a06; --a500: #e59a0d; --a400: #f2b33d; --a300: #f7cb6b; --a100: #fcefd0; --a50: #fff8ea;
  --ink: #211a33; --muted: #5a5370; --line: #e4dfd6; --line-2: #eeeae2;
  --bg: #faf8f4; --card: #ffffff;
  --ok: #15803d; --danger: #b42318;
  --warn-bg: #fff8ea; --warn-line: #e8c36a; --warn-ink: #6b4300;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(33, 26, 51, .05);
  --sh-2: 0 1px 2px rgba(33, 26, 51, .05), 0 8px 24px rgba(33, 26, 51, .07);
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem; --fs-3xl: clamp(1.75rem, 3.6vw, 2.5rem); --fs-hero: clamp(2rem, 5.2vw, 3.25rem);
  --font-body: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Rubik', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-md)/1.65 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--v950); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
a { color: var(--v700); text-underline-offset: .2em; }
a:hover { color: var(--v900); }
:focus-visible { outline: 3px solid var(--v600); outline-offset: 3px; border-radius: 2px; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 42rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: .5rem; top: -4rem; z-index: 100; background: var(--a400); color: var(--ink);
  padding: .6rem 1rem; border-radius: var(--r-md); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: .5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1.4rem;
  border-radius: var(--r-pill); border: 2px solid transparent; font: 700 var(--fs-md)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--a500); color: var(--ink); }
.btn-primary:hover { background: var(--a400); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--v700); border-color: var(--v700); }
.btn-ghost:hover { background: var(--v100); color: var(--v900); }

/* Dev banner and header */
.dev-banner { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); font-size: var(--fs-sm); padding: .4rem 1rem; text-align: center; }
.site-header { background: var(--v950); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { font: 700 var(--fs-xl)/1 var(--font-head); color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.nav-list { display: flex; align-items: center; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .15rem; font-weight: 500; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-bottom-color: var(--a400); color: #fff; }
.nav-list .nav-phone { color: var(--a300); font-weight: 700; }
.site-header :focus-visible { outline-color: var(--a400); }

/* Hero */
.hero { background: var(--v50); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 1.5rem; padding-block: 1.75rem; align-items: center; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: .4em; }
.hero-lead { font-size: var(--fs-lg); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero-img { width: 100%; border-radius: var(--r-xl); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--sh-2); }

/* Sections */
.section { padding-block: 2.25rem; }
.section-alt { background: var(--v50); border-top: 1px solid var(--line); }
.section-title { font-size: var(--fs-2xl); margin-bottom: 1rem; }

/* Product tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.tile:hover { border-color: var(--v500); box-shadow: var(--sh-2); }
.tile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--v100); }
.tile-body { padding: .75rem .85rem 1rem; }
.tile-title { font-size: var(--fs-md); margin: 0 0 .15rem; }
.tile-title a { color: var(--v950); text-decoration: none; }
.tile-title a::after { content: ''; position: absolute; inset: 0; }
.tile:has(a:focus-visible) { outline: 3px solid var(--v600); outline-offset: 2px; }
.tile-title a:focus-visible { outline: none; }
.tile-spec { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 .4rem; }
.tile-price { margin: 0; font-size: var(--fs-sm); }
.tile-price strong { font-size: var(--fs-lg); color: var(--v800); }
.tile-price-note { display: block; color: var(--muted); font-size: var(--fs-xs); }
/* Banner among the products: same size, accent frame, no price. The one link covers the whole card. */
.tile-promo { border: 2px solid var(--a400); background: var(--a50); }
.tile-promo:hover { border-color: var(--a500); }
.tile-promo:not(:has(a)):hover { box-shadow: var(--sh-1); border-color: var(--a400); }
.tile-link { display: block; }
.tile-link::after { content: ''; position: absolute; inset: 0; }
.tile-link:focus-visible { outline: none; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: flex; gap: .85rem; align-items: flex-start; }
.steps li::before {
  content: counter(step); flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--v700); color: #fff;
  display: grid; place-items: center; font: 700 var(--fs-md)/1 var(--font-head);
}

/* Inner pages */
.page { padding-block: 1.25rem 3rem; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-inline-end: .35rem; }
.crumbs a { color: var(--muted); }
.p-head { margin-bottom: 1rem; }
.jump-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump-list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); text-decoration: none; }
.jump-list a:hover { border-color: var(--v500); }
.pl-section { margin-block: 2rem; scroll-margin-top: 1rem; }

/* Product page */
.p-grid { display: grid; gap: 1.25rem; grid-template-areas: 'img' 'cfg' 'sum'; }
.p-img { grid-area: img; width: 100%; max-height: 16rem; object-fit: cover; border-radius: var(--r-xl); border: 1px solid var(--line); }
.config { grid-area: cfg; }
.summary { grid-area: sum; }
.field { border: 0; margin: 0 0 1.25rem; padding: 0; min-inline-size: 0; }
.field legend { font: 700 var(--fs-md)/1.3 var(--font-head); padding: 0; margin-bottom: .5rem; color: var(--v950); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; min-width: 3.5rem; padding: .45rem 1rem;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md); font-weight: 500;
}
.chip:hover span { border-color: var(--v500); }
.chip input:checked + span { background: var(--v700); border-color: var(--v700); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--v600); outline-offset: 3px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { background: var(--line-2); border-style: dashed; color: var(--muted); text-decoration: line-through; }
.chip-price { font-size: var(--fs-xs); font-weight: 400; }
.field .hint { margin: 0 0 .6rem; font-size: var(--fs-sm); color: var(--muted); }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: var(--r-md); padding: .6rem .9rem; }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.1rem 1.25rem; box-shadow: var(--sh-2); align-self: start; }
.summary h2 { font-size: var(--fs-lg); margin-bottom: .6rem; }
.sum-lines { margin: 0 0 .5rem; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .3rem; border-bottom: 1px solid var(--line-2); }
.sum-lines > div[hidden] { display: none; }
.sum-lines dt { color: var(--muted); }
.sum-lines dd { margin: 0; font-weight: 500; }
.sum-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; margin: .5rem 0 .75rem; }
.sum-total span { font-weight: 700; }
.sum-total strong { font: 700 var(--fs-2xl)/1.1 var(--font-head); color: var(--v800); }
.sum-total small { color: var(--muted); }
.sum-total .sum-alt { flex-basis: 100%; font-size: var(--fs-sm); }
.sum-total .sum-alt[hidden] { display: none; }
.sum-note { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.sum-actions { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.section-inner { margin-top: 2.25rem; }
.ways { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.ways li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .85rem 1rem; }
.prose { max-width: 46rem; }
.lead p { margin: 0 0 .75rem; }
.content-body h2 { margin-top: 2rem; scroll-margin-top: 1rem; }
.content-body li + li { margin-top: .35rem; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.link-list a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.cat-title { font-size: var(--fs-lg); color: var(--v800); margin: 1.75rem 0 .75rem; }
.cat-title:first-of-type { margin-top: 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--v950); padding: .75rem 0; min-height: 44px; display: flex; align-items: center; gap: .5rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; flex: none; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--v100); color: var(--v700); font-weight: 700; }
.faq[open] summary::before { content: '−'; }
.faq p { margin: 0 0 1rem; padding-inline-start: 2rem; }

/* Price tables */
.table-scroll { position: relative; overflow-x: auto; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.prices { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.prices caption { text-align: start; padding: .75rem 1rem; font-weight: 700; color: var(--v950); }
.prices th, .prices td { padding: .6rem 1rem; text-align: start; border-top: 1px solid var(--line-2); white-space: nowrap; }
.prices thead th { background: var(--v50); border-top: 1px solid var(--line); font-weight: 700; }
.prices tbody th { font-weight: 500; background: var(--card); }
.prices td { text-align: center; }
.price-alt { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.prices thead th:not(:first-child) { text-align: center; }

/* Footer */
.site-footer { background: var(--v950); color: #e8e2f5; margin-top: 3rem; padding-block: 2rem; font-size: var(--fs-sm); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-title { font-size: var(--fs-md); color: #fff; margin-bottom: .6rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-list a { display: inline-block; padding-block: .15rem; }
.site-footer :focus-visible { outline-color: var(--a400); }

@media (min-width: 40rem) {
  .wrap { padding-inline: 1.5rem; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
}
@media (min-width: 56rem) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding-block: 2.75rem; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .p-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: 'cfg img' 'cfg sum'; align-items: start; }
  .p-img { max-height: 20rem; }
  .ways { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .chip input:checked + span { outline: 3px solid Highlight; }
  .btn { border-color: ButtonText; }
}
@media print {
  .site-header, .site-footer, .dev-banner, .skip-link { display: none; }
}
