/* מאגר המודליסטיות — espresso and rose gold (NailMatch style) */
:root {
  --espresso: #1a110e;
  --cocoa: #241713;
  --cocoa-2: #2f201b;
  --rose: #dba88f;
  --rose-deep: #b98066;
  --rose-glow: #f0c7b1;
  --champagne: #f5e6dc;
  --mink: #bda69a;
  --line: rgba(219, 168, 143, 0.16);
  --line-strong: rgba(219, 168, 143, 0.38);
  --ok: #b9d3a8;
  --no: #e3a098;

  --serif: "Frank Ruhl Libre", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Heebo", "Jost", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.6vw, 4.3rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 34px;
}
[lang="en"] {
  --serif: "Cormorant Garamond", "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Jost", "Heebo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 50% 40%, rgba(26, 17, 14, 0.2), rgba(26, 17, 14, 0.85) 100%),
    url("../media/grain.svg") 0 0 / 240px 240px repeat,
    var(--espresso);
  background-attachment: fixed;
  color: var(--champagne);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("../media/ribbons.svg") center / cover no-repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("../media/quilt.svg") center / 96px 96px repeat;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(0,0,0,.55) 75%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(0,0,0,.55) 75%, #000 100%);
  opacity: 0.55;
}
main, .site-footer, .mobile-cta { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--rose-glow); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--rose); color: var(--espresso); padding: 10px 16px; border-radius: var(--radius-s); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 32px; border-radius: 999px;
  font: 400 0.95rem/1 var(--sans); letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.btn-solid { background: var(--champagne); color: #2a1812; }
.btn-solid:hover { background: #fff4ec; }
.btn-ghost { border-color: var(--line-strong); color: var(--champagne); background: transparent; }
.btn-ghost:hover { border-color: var(--champagne); }
.btn-small { min-height: 40px; padding: 0 22px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 17, 14, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }

.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; line-height: 1; }
.wordmark-name {
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  background: linear-gradient(180deg, var(--rose-glow), var(--rose-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark-sub { font-size: 0.74rem; color: var(--mink); }
[lang="en"] .wordmark-name { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 300; }
[lang="en"] .wordmark-sub { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.62rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; color: var(--mink); transition: color .3s; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--champagne); }
.lang-toggle {
  min-height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--mink);
  font: 400 0.85rem var(--sans); cursor: pointer; transition: color .3s, border-color .3s;
}
.lang-toggle:hover { color: var(--champagne); border-color: var(--champagne); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 50%; background: none; cursor: pointer; position: relative;
}
.nav-toggle .bar { position: absolute; inset-inline: 13px; height: 1px; background: var(--champagne); transition: transform .25s; }
.nav-toggle .bar:nth-of-type(1) { top: 18px; }
.nav-toggle .bar:nth-of-type(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art::before {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 60%;
  background: url("../media/hero.jpg") center 42% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, #000 45%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  opacity: .92;
}
[dir="ltr"] .hero-art::before {
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%);
  mask-image: linear-gradient(to left, #000 45%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%);
}
.hero-inner { padding-block: 72px 96px; }
.hero-inner > * { max-width: 640px; }
.hero-kicker { font-family: var(--serif); color: var(--rose); font-size: 1.3rem; margin-bottom: 18px; }
.hero-title {
  font-family: var(--serif); font-weight: 300; font-size: var(--step-4); line-height: 1.08;
  background: linear-gradient(180deg, #f9dccb 10%, var(--rose) 60%, #a76b53 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.hero-lede { margin-top: 26px; font-size: var(--step-1); opacity: .86; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-note { margin-top: 22px; font-size: var(--step--1); color: var(--mink); max-width: 36em; }
.hero-facts {
  list-style: none; padding: 22px 0 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; border-top: 1px solid var(--line);
}
.hero-facts li {
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.2;
  padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--rose); transform: rotate(45deg); flex: none; }
.hero-facts li:last-child { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3) { animation-delay: .2s; }
  .hero-inner > :nth-child(4) { animation-delay: .28s; }
  .hero-inner > :nth-child(5) { animation-delay: .36s; }
  .hero-inner > :nth-child(6) { animation-delay: .46s; }
  .hero-art { animation: glow 1.6s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Shared section type */
.section { padding-block: clamp(88px, 11vw, 150px); }
.kicker { font-family: var(--serif); color: var(--rose); font-size: 1.2rem; margin-bottom: 14px; }
.title, .section-head h2 {
  font-family: var(--serif); font-weight: 300; font-size: var(--step-3); line-height: 1.12; color: var(--champagne);
}
.section-head { text-align: center; margin: 0 auto 72px; max-width: 42em; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 1px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
}
.section-head > p:last-child { margin-top: 20px; font-family: var(--serif); font-size: 1.3rem; color: var(--rose-glow); line-height: 1.6; }
.lead { font-size: var(--step-1); opacity: .9; margin-top: 20px; max-width: 32em; }
.body { margin-top: 16px; color: var(--mink); max-width: 34em; }

.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; }
.ticks li { position: relative; padding-block: 16px; padding-inline-start: 30px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 28px; width: 6px; height: 6px; background: var(--rose); transform: rotate(45deg); }

/* Benefits */
.benefits { background: rgba(36, 23, 19, 0.86); border-block: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.benefits-intro { position: sticky; top: 120px; }
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 24px; align-items: start;
  padding-block: 26px; border-bottom: 1px solid var(--line);
}
.benefit-list li:first-child { border-top: 1px solid var(--line); }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--rose-glow); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.benefit-list h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; }
.benefit-list p { margin-top: 6px; color: var(--mink); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-photo {
  border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 6px #120b09, 0 0 0 7px rgba(219,168,143,.35), 0 40px 80px -30px rgba(0,0,0,.8);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 8px 32px; }
.step:first-child { padding-inline-start: 0; }
.step:last-child { padding-inline-end: 0; }
.step + .step { border-inline-start: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: 1.4rem; color: var(--rose); }
.step-icon { width: 40px; height: 40px; fill: none; stroke: var(--rose-glow); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 20px 0 24px; }
.step h3 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; }
.step p { margin-top: 12px; color: var(--mink); }
.center-cta { text-align: center; margin-top: 72px; }

/* Register */
.register { background: rgba(36, 23, 19, 0.86); border-block: 1px solid var(--line); }
.register-wrap { max-width: 980px; }
.apply, .success-panel {
  border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(47,32,27,.75), rgba(29,19,16,.85));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  padding: clamp(24px, 5vw, 52px);
}
.group { border: 0; margin: 0; padding: 0 0 36px; min-width: 0; }
.group + .group { border-top: 1px solid var(--line); padding-top: 36px; }
.group legend, .legend-like {
  font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; color: var(--champagne); padding: 0; margin-bottom: 18px;
}
.legend-like { display: block; margin-bottom: 4px; }
.group legend { float: inline-start; width: 100%; }
.group legend + * { clear: both; }
.hint { color: var(--mink); margin: -8px 0 20px; font-size: .98rem; }
.fine-print { color: var(--mink); font-size: var(--step--1); margin: 16px 0 22px; padding-inline-start: 16px; border-inline-start: 1px solid var(--rose); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.field > span, .field > label { font-size: .88rem; color: var(--mink); }
.field-wide { grid-column: 1 / -1; }
.field-narrow { max-width: 420px; margin-top: 22px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 16px;
  border-radius: var(--radius-s); border: 1px solid var(--line);
  background: rgba(245, 230, 220, 0.04); color: var(--champagne);
  font: 300 1rem var(--sans); transition: border-color .2s, box-shadow .2s;
}
.field textarea { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(189, 166, 154, .55); }
[dir="rtl"] .field input[dir="ltr"]::placeholder { text-align: right; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(219, 168, 143, 0.2); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%), linear-gradient(135deg, var(--rose) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px;
}
[dir="rtl"] .field select { background-position: 15px 22px, 20px 22px; }
.field select option { background: var(--cocoa); color: var(--champagne); }
.inline { display: flex; gap: 10px; }
.inline + .inline { margin-top: 10px; }
.inline[hidden] { display: none; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { min-height: 50px; padding: 0 26px; }

.form-status { font-size: .9rem; min-height: 1.5em; color: var(--rose-glow); }
.form-status.error { color: var(--no); }
.form-status.success { color: var(--ok); }
.form-status-center { text-align: center; margin-top: 14px; }

/* Selectable pills */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--mink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span::before {
  content: ""; width: 6px; height: 6px; transform: rotate(45deg);
  border: 1px solid var(--rose); transition: background-color .2s;
}
.chip:hover span { color: var(--champagne); border-color: var(--rose); }
.chip input:checked + span { background: var(--champagne); border-color: var(--champagne); color: #2a1812; }
.chip input:checked + span::before { background: var(--rose-deep); border-color: var(--rose-deep); }
.chip input:focus-visible + span { outline: 2px solid var(--rose-glow); outline-offset: 3px; }

/* Checkboxes */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks-stack { grid-template-columns: 1fr; }
.check {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  padding: 14px 18px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: rgba(245, 230, 220, 0.03); transition: border-color .2s, background-color .2s;
}
.check:hover { border-color: var(--line-strong); }
.check:has(input:checked) { border-color: var(--line-strong); background: rgba(219, 168, 143, 0.08); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 4px 0 0;
  width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--rose);
  background: transparent; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s;
}
.check input::after {
  content: ""; width: 5px; height: 10px; margin-top: -3px;
  border: solid #2a1812; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0);
  transition: transform .15s;
}
.check input:checked { background: var(--rose-glow); border-color: var(--rose-glow); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check span { font-size: .98rem; line-height: 1.6; }
.checks .check:nth-child(3):last-child { grid-column: 1 / -1; }
.checks-stack .check:nth-child(3):last-child { grid-column: auto; }

#registerSubmit { margin-top: 4px; min-height: 56px; font-size: 1.05rem; }

.success-panel { text-align: center; display: grid; justify-items: center; gap: 16px; }
.success-panel[hidden] { display: none; }
.success-mark {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--rose); position: relative;
}
.success-mark::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 12px; height: 24px;
  border: solid var(--rose-glow); border-width: 0 1.5px 1.5px 0; transform: translate(-50%, -50%) rotate(45deg);
}
.success-panel h3 { font-family: var(--serif); font-size: var(--step-2); }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.grid-2 > .hint { margin: -4px 0 0; font-size: .9rem; }
.success-panel p { color: var(--mink); max-width: 34em; }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.quote { padding: 40px 32px; display: flex; flex-direction: column; gap: 18px; }
.quote:first-child { padding-inline-start: 0; }
.quote:last-child { padding-inline-end: 0; }
.quote + .quote { border-inline-start: 1px solid var(--line); }
.stars { color: var(--rose); letter-spacing: 4px; font-size: .95rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: var(--champagne); flex: 1; }
[lang="en"] .quote blockquote { font-style: italic; font-size: 1.4rem; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.quote strong { display: block; font-weight: 400; }
.quote small { display: block; color: var(--mink); font-size: .85rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 40px 56px; align-items: start; }
.footer-brand p { margin-top: 18px; color: var(--mink); font-size: .95rem; max-width: 28em; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-head { font-family: var(--serif); font-size: 1.25rem; color: var(--rose); margin-bottom: 4px; }
.footer-col a { color: var(--mink); text-decoration: none; font-size: .95rem; transition: color .3s; justify-self: start; }
.footer-col a:hover { color: var(--champagne); }
.footer-col p { color: var(--mink); font-size: .95rem; }
.admin-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.icon-sm { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.footer-copy {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); padding-top: 22px; color: var(--mink); font-size: .85rem;
}

.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .hero-art::before { width: 66%; }
}

/* The menu folds into ☰ before the labels get squeezed (English labels are the longest). */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--espresso); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .lang-toggle { margin-top: 16px; align-self: flex-start; }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
}

@media (max-width: 900px) {

  .hero-art::before, [dir="ltr"] .hero-art::before {
    width: 100%; height: 520px; bottom: auto; background-position: center 35%;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 55%);
    mask-image: linear-gradient(to top, transparent 0, #000 55%);
  }
  .hero { min-height: auto; align-items: flex-end; }
  .hero-inner { padding-block: 300px 64px; }

  .benefits-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .benefits-intro { position: static; }
  .about-photo { aspect-ratio: 4 / 3; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step, .step:first-child, .step:last-child { padding: 0 24px; }
  .step:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .quotes { grid-template-columns: 1fr; }
  .quote, .quote:first-child, .quote:last-child { padding: 32px 0; }
  .quote + .quote { border-inline-start: 0; border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 84px; }
  /* On phones the photo sits on top; its height follows the screen so the headline is always visible. */
  .hero-art::before, [dir="ltr"] .hero-art::before { height: calc(min(330px, 40vh) + 110px); }
  .hero-inner { padding-block: min(330px, 40vh) 56px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; gap: 12px; }
  .hero-facts li { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:last-child { padding: 28px 0; }
  .step:first-child { padding-top: 0; }
  .step + .step { border-inline-start: 0; border-top: 1px solid var(--line); }
  .grid-2, .checks { grid-template-columns: 1fr; }
  .inline { flex-direction: column; }
  .inline .btn { width: 100%; }
  .chip, .chip span { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .mobile-cta {
    display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(26, 17, 14, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
}

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

/* Hebrew: no letter-spacing or italics */
[dir="rtl"] body, [dir="rtl"] body * { letter-spacing: 0 !important; font-style: normal !important; }
[dir="rtl"] .stars { letter-spacing: 4px !important; }

/* Parent approval (applicants under 18) */
.parent-slot { width: 100%; max-width: 560px; }
.parent-slot[hidden] { display: none; }
.parent-box {
  display: grid; gap: 12px; justify-items: center; text-align: center;
  border: 1px solid var(--rose); border-radius: var(--radius-m); padding: 24px;
  background: rgba(219, 168, 143, .08);
}
.parent-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--rose-glow); }
.parent-box p { margin: 0; }
.parent-body { color: var(--champagne) !important; opacity: .92; }
.parent-rejected { color: var(--no) !important; }
.parent-tip { font-size: .88rem; }
.parent-pick { cursor: pointer; }
.parent-preview { max-width: 100%; max-height: 280px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); object-fit: contain; background: #fff; }
.parent-preview[hidden], .parent-send[hidden] { display: none; }
.parent-done { color: var(--ok) !important; }

/* City picker */
.city-box { position: relative; display: block; }
.city-list {
  position: absolute; inset-inline: 0; top: 100%; z-index: 30; margin: 6px 0 0; padding: 6px;
  list-style: none; max-height: 290px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cocoa); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
  scrollbar-width: thin; scrollbar-color: var(--rose-deep) transparent;
}
.city-list[hidden] { display: none; }
.city-list li { padding: 10px 14px; border-radius: 8px; cursor: pointer; color: var(--champagne); font-size: .98rem; }
.city-list li:hover, .city-list li.is-active { background: rgba(219, 168, 143, .16); }
.city-list li[aria-selected="true"] { color: var(--rose-glow); }
.city-list li[aria-selected="true"]::after { content: " ✓"; }
.city-list .city-empty { color: var(--mink); cursor: default; }
.city-list .city-empty:hover { background: none; }

/* Several cities: the chosen ones appear as tags inside the box */
.field .city-box-multi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 50px; padding: 6px 8px; cursor: text;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(245, 230, 220, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.field .city-box-multi:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(219, 168, 143, 0.2); }
.field .city-box-multi input {
  flex: 1 1 9em; width: auto; min-width: 0; min-height: 36px; padding: 0 6px;
  border: 0; background: none; box-shadow: none !important;
}
.field .city-box-multi.has-tags input::placeholder { color: transparent; }
.city-tags { display: contents; }
.city-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; max-width: 100%;
  border-radius: 999px; background: var(--champagne); color: #2a1812; font-size: .9rem; line-height: 1.4;
}
[dir="rtl"] .city-tag { padding: 4px 12px 4px 6px; }
.city-tag-x {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; line-height: 1;
  background: rgba(42, 24, 18, .12); color: #2a1812; font-size: .7rem;
}
.city-tag-x:hover { background: rgba(42, 24, 18, .25); }

/* Very narrow phones: keep the header on one line */
.wordmark-name { white-space: nowrap; }
@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .wordmark-name { font-size: 1.22rem; }
  .wordmark-sub { font-size: .66rem; }
  .admin-actions { gap: 6px; }
  .admin-actions .btn-small { padding: 0 12px; min-height: 38px; font-size: .85rem; letter-spacing: 0; }
}

/* Show/hide password eye */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-inline-end: 48px !important; }
.pw-eye {
  position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--mink); transition: color .2s, background-color .2s;
}
.pw-eye:hover { color: var(--champagne); background: rgba(245, 230, 220, .06); }
.pw-eye[aria-pressed="true"] { color: var(--rose-glow); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
