/* OrderBox: the platform's home page (resources/views/landing.blade.php). RTL-first, mobile-first.
   One order (#12, Dana, 79 ₪) runs through the page: on the phone, on the kitchen ticket, on the money slip.
   The paper is the page's one bold element; everything around it stays quiet. */

:root {
    --ink: #221d1a;
    --muted: #5c5f66;
    --page: #ffffff;
    --band: #eef3f1;
    --rule: #dde2df;
    --accent: #0f766e;
    --accent-hover: #0b5c56;
    --paper: #fffefa;
    --focus: #2563eb;
    --font: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
    --gutter: 16px;
    /* The torn bottom edge of receipt paper. */
    --paper-edge: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
    --paper-shadow: drop-shadow(0 14px 18px rgba(34, 29, 26, 0.2)) drop-shadow(0 1px 1px rgba(34, 29, 26, 0.2));
    /* The accessibility widget (public/assets/js/accessibility.js) reads these for its colours and font. */
    --blue: var(--accent);
    --blue-ink: var(--accent-hover);
    --line: var(--rule);
    --ink-soft: var(--muted);
    --body: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--page);
}

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }

a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.home-ltr { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }

.home-skip {
    position: absolute; inset-inline-start: var(--gutter); top: -4rem;
    padding: 0.5rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10;
}
.home-skip:focus { top: 0.75rem; }

.home-wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* Top bar */
/* Wraps: with the accessibility menu's largest text on a phone, the name and the log-in link do not fit one row. */
.home-top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 4.25rem; }
/* The mark and the name read left to right, like the icon in the tab, also on this right-to-left page. */
.home-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.home-brand .brand-mark { width: 1.6em; height: 1.6em; flex: none; }
.home-top__nav { display: flex; align-items: center; gap: 1.25rem; }
.home-top__login { color: var(--ink); font-weight: 600; text-underline-offset: 4px; padding: 0.5rem 0; }
.home-top .home-top__signup { display: none; }

/* Buttons */
.home-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.home-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3.25rem; padding: 0.75rem 1.6rem; border-radius: 12px;
    font-size: 1.0625rem; font-weight: 700; text-decoration: none; line-height: 1.2;
    border: 2px solid transparent;
}
.home-btn--small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.95rem; border-radius: 10px; }
.home-btn--primary { background: var(--accent); color: #fff; }
.home-btn--primary:hover { background: var(--accent-hover); }
.home-btn--quiet { border-color: var(--ink); color: var(--ink); }
.home-btn--quiet:hover { background: var(--ink); color: #fff; }
.home-btn--light { background: #fff; color: var(--ink); }
.home-btn--light:hover { background: var(--band); }

/* Hero. The tilted ticket must never push the page sideways, also when the accessibility menu enlarges the text. */
.home-hero { padding-block: 0.5rem 3rem; overflow-x: clip; }
.home-hero__inner { display: grid; gap: 2.5rem; }
.home-hero h1 {
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.9rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.015em;
    max-width: 12ch;
}
.home-hero__lead { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.home-hero .home-actions { margin-top: 1.5rem; }
.home-demos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.9rem; }
.home-demos__label { font-weight: 600; margin-inline-end: 0.25rem; }
.home-hero__terms { margin-top: 1rem; font-weight: 600; }
.home-hero__help { margin-top: 0.35rem; color: var(--muted); }
.home-hero__help a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* The same order twice, side by side: the ticket never covers what was chosen on the phone. */
.home-demo { display: flex; align-items: flex-start; gap: 4%; }
.home-demo__side--phone { flex: 0 0 56%; display: flex; flex-direction: column; gap: 0.6rem; }
.home-demo__label { font-size: 0.9rem; font-weight: 700; text-align: center; line-height: 1.35; }
.home-phone {
    border: 9px solid var(--ink);
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 48px -24px rgba(34, 29, 26, 0.45);
}
.home-phone img, .home-phone video { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1298; object-fit: cover; background: #f7f3ee; }
.home-demo__pause {
    align-self: center;
    min-height: 2.75rem; padding: 0.35rem 0.9rem;
    border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink);
    font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.home-demo__pause:hover { border-color: var(--ink); }

.home-ticket {
    flex: 0 0 40%;
    margin-top: 22%;
    transform: rotate(-3deg);
}
.home-ticket__shadow { filter: var(--paper-shadow); }
.home-ticket .home-demo__label { margin-top: 0.75rem; font-size: 0.85rem; }
.home-ticket__paper {
    -webkit-mask: var(--paper-edge);
    mask: var(--paper-edge);
    background: var(--paper);
    color: #111;
    padding: 0.7rem 0.6rem 1.2rem;
    font-size: 0.62rem;
    line-height: 1.4;
    animation: home-print 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s both;
}
.home-ticket__store { font-weight: 700; font-size: 0.85rem; }
.home-ticket__number { font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.home-ticket__strong { font-weight: 700; }
.home-ticket__heading { font-weight: 700; margin-top: 0.4rem !important; padding-bottom: 0.1rem; border-bottom: 1px dashed #111; }
.home-ticket__row { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.2rem !important; }
.home-ticket__small { font-size: 0.66rem; }
.home-ticket__total { font-weight: 800; font-size: 0.9rem; margin-top: 0.45rem !important; padding-top: 0.35rem; border-top: 1px dashed #111; }

/* The ticket comes out of the printer once, when the page opens. */
@keyframes home-print {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-1.5rem); }
    to { clip-path: inset(0 0 0 0); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-ticket__paper { animation: none; }
}

/* Sections */
.home-section { padding-block: 3.5rem; }
.home-section h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    max-width: 20ch;
}
.home-section h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.home-section h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
.home-section--band { background: var(--band); }

/* Who it is for, then what each side gets. */
.home-types { display: grid; margin-top: 1.75rem; border-top: 3px solid var(--ink); }
.home-type { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.home-type h3 { font-size: 1.2rem; }
.home-type p { margin-top: 0.3rem; color: var(--muted); max-width: 30em; }

.home-sides { display: grid; gap: 2.5rem; margin-top: 3rem; }
.home-side__title { font-size: 1.35rem !important; padding-bottom: 0.5rem; }
.home-feature { padding-block: 1rem; border-top: 1px solid var(--rule); }
.home-feature p { margin-top: 0.3rem; color: var(--muted); max-width: 36em; }

/* Money: the same order as a settlement slip. */
.home-money { display: grid; gap: 2.25rem; align-items: center; }
.home-money h2 { max-width: 16ch; }
.home-money__text { display: grid; gap: 0.9rem; margin-top: 1rem; font-size: 1.15rem; max-width: 34em; }
.home-slip { justify-self: center; width: 100%; max-width: 22rem; filter: var(--paper-shadow); }
.home-slip__paper {
    -webkit-mask: var(--paper-edge);
    mask: var(--paper-edge);
    --paper-edge: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
    background: var(--paper);
    color: #111;
    padding: 1.25rem 1.25rem 1.9rem;
    line-height: 1.5;
    transform: rotate(1.5deg);
}
.home-slip__paper p { display: flex; justify-content: space-between; gap: 1rem; }
.home-slip__head { font-weight: 800; font-size: 1.1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed #111; margin-bottom: 0.6rem !important; }
.home-slip__zero { font-weight: 700; }
.home-slip__total { font-weight: 800; font-size: 1.45rem; border-top: 2px dashed #111; margin-top: 0.7rem !important; padding-top: 0.55rem; }
.home-slip__note { display: block !important; font-size: 0.8rem; color: #444; margin-top: 0.9rem !important; }

/* Steps: a real sequence, so they are numbered. */
.home-steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; display: grid; gap: 1.75rem; }
.home-steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; }
.home-steps li::before {
    content: counter(step);
    grid-row: span 2;
    display: grid; place-items: center;
    width: 3rem; height: 3rem; border-radius: 50%;
    border: 2px solid var(--ink);
    font-weight: 800; font-size: 1.2rem;
}
.home-steps h3 { align-self: center; }
.home-steps p { color: var(--muted); max-width: 36em; }

/* Questions owners ask. Native details: works without JavaScript and with the keyboard. */
.home-section--faq { padding-top: 0; }
.home-faq { margin-top: 1.5rem; max-width: 46rem; border-top: 1px solid var(--rule); }
.home-faq details { border-bottom: 1px solid var(--rule); }
.home-faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    min-height: 3.5rem; padding-block: 0.9rem;
    font-weight: 700; font-size: 1.1rem;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.home-faq details[open] summary::after { content: "−"; }
.home-faq details p { padding-bottom: 1.1rem; color: var(--muted); max-width: 38em; }

/* Ending */
.home-section--end { background: var(--ink); color: #fff; }
.home-end > p { margin-top: 0.75rem; color: #d9d5d2; font-size: 1.15rem; }
.home-end .home-actions { margin-top: 1.75rem; }
.home-end__mail { margin-top: 1.25rem; color: #d9d5d2; }
.home-end__mail a { color: #fff; text-underline-offset: 4px; }
.home-section--end :focus-visible { outline-color: #93b4ff; }

/* Footer */
.home-foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.home-foot__inner { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; min-height: 4rem; padding-block: 1rem; }
.home-foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.home-foot a { color: var(--muted); text-underline-offset: 4px; display: inline-block; padding-block: 0.35rem; }

/* Terms, privacy and accessibility (resources/views/legal). */
.legal { max-width: 46rem; padding-block: 1.5rem 4rem; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.legal__updated { margin-top: 0.4rem; color: var(--muted); }
.legal h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin-top: 2.25rem; }
.legal p { margin-top: 0.75rem; }
.legal ul { margin: 0.75rem 0 0; padding-inline-start: 1.25rem; }
.legal li + li { margin-top: 0.4rem; }
.legal__contact { list-style: none; padding-inline-start: 0 !important; }

@media (min-width: 720px) {
    :root { --gutter: 24px; }
    .home-top .home-top__signup { display: inline-flex; }
    .home-hero { padding-block: 1.5rem 3.5rem; }
    .home-hero__lead { font-size: 1.2rem; margin-top: 1.25rem; }
    .home-hero .home-actions { margin-top: 2rem; }
    .home-section { padding-block: 5rem; }
    .home-section--faq { padding-top: 0; }
    .home-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
    .home-type { border-bottom: 0; }
    .home-sides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
    .home-money { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3.5rem; }
    .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
    .home-steps li { grid-template-columns: minmax(0, 1fr); row-gap: 0.75rem; }
    .home-steps li::before { grid-row: auto; }
    .home-steps h3 { align-self: start; }
    .home-demo { gap: 2rem; }
    .home-demo__side--phone { flex-basis: 17rem; }
    .home-ticket { flex-basis: 13rem; margin-top: 7rem; }
    .home-ticket__paper { font-size: 0.78rem; padding: 0.9rem 0.85rem 1.35rem; }
}

@media (min-width: 960px) {
    .home-hero { padding-block: 3rem 5rem; }
    .home-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 3rem; }
    .home-demo { gap: 1.25rem; }
    .home-ticket { flex-basis: 12rem; }
}

/* The accessibility menu's high contrast (html.contrast-high) turns all text white on black. The light surfaces of
   this page (the paper slips, the grey band, light buttons) must turn black too, or their text disappears. */
html.contrast-high { --band: #000; --paper: #000; --rule: #fff; --muted: #fff; }
html.contrast-high .home-ticket__paper,
html.contrast-high .home-slip__paper { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
html.contrast-high .home-ticket__paper *,
html.contrast-high .home-slip__paper *,
html.contrast-high .home-types,
html.contrast-high .home-steps li::before { border-color: #fff !important; }
html.contrast-high .home-slip__note { color: #fff; }
html.contrast-high .home-btn--light,
html.contrast-high .home-btn--quiet,
html.contrast-high .home-demo__pause { background: #000; color: #fff; border-color: #fff; }
html.contrast-high .home-section--end { border-top: 2px solid #fff; }
/* Links turn yellow in high contrast: on black they read well, on the teal button they would not. */
html.contrast-high .home-btn--primary { background: #000; border-color: #ffd23f; }

/* Articles (docs/SPEC-phase1.md section 12, "מאמרים"): the legal pages' reading width, plus a trail, a lead,
   the call to action and lists. The footer lists the latest ones on every platform page. */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: 0.5rem; }
.breadcrumbs a { color: var(--muted); text-underline-offset: 3px; }
.article__lead { margin-top: 1rem; font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.article h2 { scroll-margin-top: 1rem; }
.article h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; }
.article ol { margin: 0.75rem 0 0; padding-inline-start: 1.25rem; }
.article-draft { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border-radius: 10px; background: #fff4d6; border: 1px solid #f0c66b; font-weight: 600; }
.article-cta { margin-top: 3rem; padding: 1.5rem; border-radius: 16px; background: var(--band); }
.article-cta h2 { margin-top: 0; }
.article-cta .home-actions { margin-top: 1rem; }
.article-more { margin-top: 2.5rem; }
.article__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 1.5rem; border-radius: 16px; background: var(--band); }
.post-cards { list-style: none; margin: 1.25rem 0 0; padding: 0 !important; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fff; }
.post-cards li + li { margin-top: 0; }
.post-card__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--band); }
.post-card__body { padding: 1rem 1.1rem 1.1rem; }
.post-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--ink); text-underline-offset: 4px; }
.post-card p { margin-top: 0.4rem; }
.post-card__date { color: var(--muted); font-size: 0.9rem; }
.solution__actions { margin-top: 1.25rem; }
.solution__terms { margin-top: 0.75rem; font-weight: 600; }
.solution__demo-note { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.solution-links { list-style: none; margin: 0.75rem 0 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.solution-links a { font-weight: 600; color: var(--ink); text-underline-offset: 4px; }
/* min(): with the accessibility menu's larger text on a narrow phone, a column may not be wider than the page. */
.home-foot__columns { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); padding-block: 1.75rem 0.5rem; }
.home-foot__columns h2 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.home-foot__columns ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.home-foot__all { font-weight: 600; }
.home-type__links { margin-top: 0.6rem; font-weight: 600; }
.home-type__links a { color: var(--ink); text-underline-offset: 4px; }
/* A comparison table in a post: scrolls sideways inside itself on a narrow phone, never the page. */
.article-table { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article-table caption { text-align: start; padding: 0.75rem 1rem 0.25rem; font-weight: 700; }
.article-table th, .article-table td { padding: 0.6rem 1rem; text-align: start; vertical-align: top; border-top: 1px solid var(--rule); }
.article-table thead th { background: var(--band); }
.article-table tbody th { font-weight: 700; white-space: nowrap; }
/* On a phone every row becomes a small card: what is compared, then each option under its own label. */
@media (max-width: 40rem) {
    .article-table { overflow-x: visible; }
    .article-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .article-table tr, .article-table th, .article-table td { display: block; }
    .article-table tbody tr { border-top: 1px solid var(--rule); padding: 0.4rem 0; }
    .article-table th, .article-table td { border-top: 0; padding: 0.3rem 1rem; }
    .article-table tbody th { white-space: normal; }
    .article-table td::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* Three more stories after the money band. The customers stay the owner's, with the real table of where they came
   from; order 12 on the television in the shop, next to the printed sign; and the store's real site in the three
   looks. Headings stay on the start edge and the pictures on the end side. */

.home-lead { margin-top: 1rem; font-size: 1.15rem; max-width: 34em; }

/* The only paid add-on (the kiosk) carries this mark. Nothing else on the page does. */
.home-addon {
    display: inline-block; margin-inline-start: 0.4rem; padding: 0 0.55rem;
    border: 1.5px solid currentColor; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; line-height: 1.55; vertical-align: 0.15em; white-space: nowrap;
}

/* The customers stay yours, next to the report that shows where they come from. */
.home-keep { overflow-x: clip; }
.home-keep__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.home-keep__list { display: grid; }
/* The real table of the report. A screen, so it sits straight; only the paper on this page is tilted. */
.home-report { justify-self: center; width: 100%; max-width: 22rem; }
.home-report img {
    display: block; width: 100%; height: auto; border-radius: 12px;
    box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -24px rgba(34, 29, 26, 0.45);
}
.home-report .home-demo__label { margin-top: 0.75rem; }

/* In the shop: the screen customers watch, with order 12 ready, and the printed sign in front of it. */
.home-shop { overflow-x: clip; }
.home-shop__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.home-shop__cols { margin-top: 2.5rem; }
/* Signing up again under the steps: the closing button is a long way down. */
.home-steps__actions { margin-top: 2rem; }


@media (min-width: 720px) {
    .home-keep__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; }
    .home-keep__text, .home-keep__list { grid-column: 1; }
    .home-keep__inner > .home-report { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .home-shop__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
    .home-shop__cols { margin-top: 3.5rem; }
}

@media (min-width: 960px) {
    .home-keep__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
    .home-shop__top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3.5rem; }
}

/* The scene under "גם בתוך העסק": a television on its stand, showing order 12 ready, and the printed sign standing in
   front of it. What makes it a television and not a tablet: a thin frame with square corners, a stand under the
   middle, and a sheet of paper that is under a third of its width. The sign sits at the end side, clear of the stand
   and of the numbers. */
.home-scene { position: relative; width: 100%; max-width: 27rem; margin-inline: auto; padding-bottom: 7%; }
.home-tv { --tv-frame: var(--ink); container-type: inline-size; }
/* Everything inside is in em, and the em follows the width of the screen. */
.home-tv__screen {
    aspect-ratio: 16 / 9; display: grid; grid-template-columns: 2fr 3fr; grid-template-rows: auto 1fr; gap: 0.7em;
    padding: 0.9em; border: 3px solid var(--tv-frame); border-bottom-width: 5px; border-radius: 4px;
    background: #faf6f1; color: #221a16;
    font-size: 0.66rem; font-size: 3.5cqw; line-height: 1.2;
}
/* The stand: a short neck on a wide, flat foot, and the foot's shadow on the counter. */
.home-tv::after {
    content: ""; display: block; width: 30%; aspect-ratio: 9 / 1; margin-inline: auto;
    background:
        linear-gradient(var(--tv-frame), var(--tv-frame)) bottom / 100% 36% no-repeat,
        linear-gradient(var(--tv-frame), var(--tv-frame)) top / 14% 100% no-repeat;
    filter: drop-shadow(0 0.3rem 0.25rem rgba(34, 29, 26, 0.3));
}
.home-tv__store { grid-column: 1 / -1; font-weight: 700; }
.home-tv__col { padding: 0.7em; border-radius: 0.5em; background: #fff; box-shadow: inset 0 0 0 1px #ecdfd2; }
.home-tv__col--ready { background: #3f3632; color: #fff; box-shadow: none; }
.home-tv__nums { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: 0.45em; }
.home-tv__nums span { padding: 0.1em 0.55em; border-radius: 0.35em; background: #f5eee6; font-size: 1.5em; font-weight: 700; }
.home-tv__col--ready .home-tv__nums span { padding: 0.05em 0.6em; background: #fff; color: #221a16; font-size: 2.25em; font-weight: 800; box-shadow: 0 0 0 0.06em #3f3632, 0 0 0 0.12em #fff; }

.home-sign {
    position: absolute; inset-inline-end: 0; bottom: 0; width: 31%;
    transform: rotate(3deg); filter: var(--paper-shadow);
    container-type: inline-size;
}
.home-sign__paper {
    aspect-ratio: 210 / 297; display: grid; align-content: center; justify-items: center; gap: 0.4em;
    padding: 0.9em 0.8em; background: var(--paper); color: #111; text-align: center;
    font-size: 0.5rem; font-size: 8cqw; line-height: 1.2;
}
.home-sign__store { font-size: 1.55em; font-weight: 800; line-height: 1.1; }
.home-sign__lead { font-weight: 700; text-wrap: balance; }
/* A real code (StoreQrCode), with its own white margin. It stays black on white, as on the printed sign; only the
   frame takes the colour. */
.home-sign__code { display: block; width: 64%; overflow: hidden; border: 0.4em solid #111; border-radius: 0.9em; background: #fff; }
.home-sign__code svg { display: block; width: 100%; height: auto; }
.home-sign__url { font-size: 0.78em; font-weight: 700; }

/* A site that looks like the business: the example burger store's real site on a phone, in the three themes
   (assets/landing/look-<theme>.webp), in the hero's phone frame. On a phone and a tablet the three overlap, so each
   is wide enough to read: the two behind show their start side, where a right-to-left page keeps its logo and name,
   and the one whose header is centred (בוטיק) is last, in front and whole. On a wide screen they stand side by side. */
.home-look-section__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
/* The columns are what is seen of each phone: about three fifths of the first, most of the second, all of the third. */
.home-looks {
    display: grid; grid-template-columns: minmax(0, 25fr) minmax(0, 35fr) minmax(0, 40fr);
    width: 100%; max-width: 26rem; margin-inline: auto;
    container-type: inline-size;
}
/* Positioned, so each paints as one piece over the one before it. */
.home-look { position: relative; min-width: 0; }
/* The frame follows the width of the group, so it stays in proportion when the phones get small. */
.home-look__phone {
    border: 4px solid var(--ink); border-width: 1.2cqw; border-radius: 18px; border-radius: 5.4cqw;
    overflow: hidden; background: #fff;
    box-shadow: 0 18px 32px -20px rgba(34, 29, 26, 0.5);
}
/* Each phone is as wide as the one in front: the rest of it runs under the next phone. */
.home-look:nth-child(1) .home-look__phone { width: calc(100% * 40 / 25); }
.home-look:nth-child(2) .home-look__phone { width: calc(100% * 40 / 35); }
.home-look__phone img { display: block; width: 100%; height: auto; }
.home-look__label { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 700; text-align: center; line-height: 1.35; }

@media (min-width: 720px) {
    .home-look-section__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
}

@media (min-width: 960px) {
    .home-look-section__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3.5rem; }
    .home-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: none; }
    .home-look:nth-child(n) .home-look__phone { width: auto; border-width: 5px; border-width: 0.9cqw; border-radius: 22px; border-radius: 4cqw; }
}

/* High contrast: the new light surfaces turn black too, with a white line where an edge is needed. The QR code stays
   black on white, like any code that has to scan, and the pictures of the store keep their colours inside a white
   frame. */
html.contrast-high .home-tv { --tv-frame: #fff; }
html.contrast-high .home-tv::after { filter: none; }
html.contrast-high .home-tv__screen,
html.contrast-high .home-tv__col,
html.contrast-high .home-tv__nums span { background: #000; color: #fff; }
html.contrast-high .home-tv__col,
html.contrast-high .home-tv__nums span { box-shadow: inset 0 0 0 1px #fff; }
html.contrast-high .home-tv__col--ready .home-tv__nums span { box-shadow: inset 0 0 0 3px #fff; }
html.contrast-high .home-sign__paper { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
html.contrast-high .home-sign__code { border-color: #fff; }
html.contrast-high .home-look__phone { border-color: #fff; box-shadow: none; }
html.contrast-high .home-report img { box-shadow: 0 0 0 2px #fff; }
