/* Miluim landing page. Olive and khaki from the uniform, black type, one gold accent (the brand gold) for actions and the stamp. */
:root {
  --olive: #3B4528;
  --olive-dark: #20261A;
  --khaki: #C7B98F;
  --khaki-line: #DDD5BC;
  --ink: #000000;
  --paper: #FFFFFF;
  --gold: #FCA311;
  --mute: #5C6049;
  --display: "Karantina", "IBM Plex Sans Hebrew", sans-serif;
  --body: "IBM Plex Sans Hebrew", -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 0.95; letter-spacing: 0; }
h2 { font-size: clamp(3rem, 12vw, 4.2rem); }
h3 { font-size: 2.1rem; }
p { margin: 0; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.sub { margin-top: 10px; color: var(--mute); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* the one action color */
.btn {
  display: inline-block; margin-top: 22px; padding: 15px 30px; border: 0; border-radius: 4px;
  background: var(--gold); color: var(--ink); font: 700 1.1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero: the photo carries it, the copy sits on the dark bottom of the frame */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; overflow: hidden; background: var(--olive-dark); color: var(--paper); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; }
.hero::after { content: ""; position: absolute; inset: 28% 0 0 0; background: linear-gradient(to bottom, rgba(32, 38, 26, 0), var(--olive-dark) 58%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 140px var(--gutter) 28px; }
.logo { position: absolute; top: 14px; inset-inline-start: var(--gutter); z-index: 3; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero h1 { font-size: clamp(3.4rem, 14vw, 5.2rem); }
.hero .star { color: var(--gold); }
.lede { margin-top: 14px; font-size: 1.05rem; line-height: 1.55; color: #E8E6DD; }
.fine { margin-top: 12px; font-size: .85rem; color: var(--khaki); }

/* the calculator: a ruled form on olive, the result stamped on it */
.calc { background: var(--olive); color: var(--paper); padding: 56px 0 60px; }
.calc .sub { color: var(--khaki); }
.paper { margin-top: 26px; background: var(--paper); color: var(--ink); padding: 6px 18px; border-radius: 2px; }
.paper fieldset { margin: 0; padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--khaki-line); min-width: 0; }
.paper fieldset:last-of-type { border-bottom: 0; }
.paper legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 10px 16px; border: 1.5px solid var(--olive); border-radius: 3px; font-weight: 500; font-size: .98rem; line-height: 1.2; color: var(--olive); background: var(--paper); transition: background .12s ease, color .12s ease; }
.chips input:checked + span { background: var(--olive); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.result { margin-top: 26px; }
.result-label { font-weight: 600; color: var(--khaki); }
.stamp {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 10px 22px 6px;
  border: 4px double var(--gold); border-radius: 6px; color: var(--gold); transform: rotate(-3deg);
  font-family: var(--display); font-weight: 700; line-height: 1;
}
.stamp-pre { font-size: 2rem; }
.stamp-num { font-size: clamp(4.4rem, 20vw, 6rem); font-variant-numeric: tabular-nums; }
.stamp-cur { font-size: 2.6rem; }
.stamp.pressed { animation: press .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes press { from { transform: scale(1.35) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(-3deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp.pressed { animation: none; } }
.result-none { margin-top: 18px; font-size: 1.05rem; }
.tracks { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid rgba(199, 185, 143, .35); }
.tracks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid rgba(199, 185, 143, .35); }
.tracks .t-name { font-weight: 600; }
.tracks .t-amount { font-weight: 700; white-space: nowrap; }
.tracks .t-note { grid-column: 1 / -1; font-size: .88rem; color: var(--khaki); }
.tracks li[data-state="no"] .t-name, .tracks li[data-state="no"] .t-amount { color: rgba(255, 255, 255, .45); }
.tracks li[data-state="maybe"] .t-amount { color: var(--khaki); }
.result-note { margin-top: 16px; font-size: .88rem; color: var(--khaki); }

/* steps: a real sequence, so the numbers stay */
.how { padding: 60px 0; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 0; padding-inline-start: 64px; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -6px; font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--olive); }
.steps li + li { padding-top: 22px; border-top: 1px solid var(--khaki-line); }
.steps li + li::before { top: 16px; }
.steps p { margin-top: 6px; }

/* why: the uniform photo and the team of experts */
.why { background: var(--olive-dark); color: var(--paper); }
.why-img { width: 100%; max-height: 80vh; object-fit: cover; object-position: 50% 15%; }
.why-copy { padding-top: 34px; padding-bottom: 60px; }
.why-copy p { margin-top: 14px; color: #E8E6DD; }
.why blockquote { margin: 26px 0 8px; padding: 0; font-family: var(--display); font-size: clamp(2.8rem, 12vw, 3.8rem); line-height: 1; color: var(--gold); }
.team { list-style: none; margin: 22px 0 0; padding: 0; }
.team li { padding: 14px 0; border-top: 1px solid rgba(199, 185, 143, .3); color: #E8E6DD; }
.team li:last-child { border-bottom: 1px solid rgba(199, 185, 143, .3); }
.team strong { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--khaki); }

/* results */
.results { padding: 60px 0 40px; }
.grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid figure { margin: 0; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: #EEE; }
.grid figcaption { margin-top: 6px; font-size: .9rem; color: var(--mute); }

/* faq */
.faq { padding: 30px 0 60px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--khaki-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--olive); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: #2A2A2A; }

/* lead form */
.lead { background: var(--olive); color: var(--paper); padding: 56px 0 64px; }
.lead .sub { color: var(--khaki); }
.lead-form { margin-top: 24px; display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; padding: 14px 14px; border: 0; border-radius: 3px; background: var(--paper); color: var(--ink); font: 500 1.1rem/1.2 var(--body); text-align: right; }
.field input[dir="ltr"] { text-align: right; }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 3px #E2574C; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: .88rem; color: #E8E6DD; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.lead .btn { justify-self: start; margin-top: 6px; }
.form-msg { min-height: 1.4em; font-weight: 600; color: #FFD7A1; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.thanks { margin-top: 24px; }
.thanks h3 { font-size: 3rem; color: var(--gold); }
.thanks p { margin-top: 8px; }

/* footer */
.foot { background: var(--ink); color: #BDBDB3; padding: 30px 0 90px; font-size: .82rem; }
.foot p + p { margin-top: 8px; }

/* the sticky action on phones, hidden near the form */
.sticky {
  position: fixed; inset: auto 12px 12px 12px; z-index: 5; display: block; padding: 15px; border-radius: 4px; text-align: center;
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.sticky[hidden] { display: none; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 88vh; }
  .hero::after { display: none; }
  .hero-img { position: static; grid-column: 2; grid-row: 1; height: 100%; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 60px 48px; max-width: 36rem; }
  .why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .why-img { height: 100%; max-height: none; }
  .why-copy { padding: 60px 48px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sticky { display: none; }
}

/* the first result runs the full width */
.grid li.wide { grid-column: 1 / -1; }

/* thanks page: the testimonials of trainees who served during their process */
.thanks-top { background: var(--olive-dark); color: var(--paper); padding: 72px 0 40px; }
.thanks-top .logo { position: static; display: block; margin-bottom: 36px; text-shadow: none; }
.thanks-top h1 { font-size: clamp(3.6rem, 16vw, 5rem); color: var(--gold); }
.thanks-top p { margin-top: 12px; color: #E8E6DD; }
.thanks-top .wa { display: inline-block; margin-top: 18px; color: var(--khaki); font-weight: 600; }
.stories { padding: 52px 0 70px; }
.vgrid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.vgrid figure { margin: 0; }
.vgrid video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; border-radius: 3px; }
.vgrid figcaption { margin-top: 8px; font-size: .88rem; line-height: 1.45; color: #2A2A2A; }
.vgrid figcaption strong { display: block; font-size: .98rem; color: var(--ink); }
@media (min-width: 760px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the last result fills the row on phones, where the grid has two columns */
.grid li.wide-m { grid-column: 1 / -1; }
@media (min-width: 760px) { .grid li.wide-m { grid-column: auto; } }
