/* Built by tools/build-pages.mjs from styles/*.css — edit the sources, not this file. */

/* ===== fonts.css ===== */
/* Rubik, self-hosted (SIL Open Font License 1.1, see /fonts/OFL.txt). One variable file per script carries
   every weight the site uses (400, 600, 800). Self-hosting keeps visitors' IP addresses away from third
   parties and removes a render-blocking request to another host. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/rubik-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/rubik-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== base.css ===== */
/* Pressman Law — base: tokens, reset, type, layout, controls, motion helpers.
   Built on tasteskill assets/base.css (MIT, Leonxlnx), tokens from design/direction.md. */

:root {
  /* colour: kept from the brand (NP logo) */
  --bg: #efefec;          /* bone ground, low chroma */
  --surface: #e2e1dc;     /* one tone step below the ground */
  --ink: #1c2429;         /* charcoal */
  --muted: #47525a;       /* secondary notes only */
  --accent: #bc945d;      /* gold: the arch, the primary button, the coupon. Nowhere else */
  --accent-soft: #d6bd95; /* coupon inputs: a lighter tone of the card */
  --accent-ink: #1c2429;
  --deep: #1c2429;        /* about panel */
  --deep-ink: #efefec;

  --font: "Rubik", "Assistant", system-ui, sans-serif;

  /* five type steps, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 0.95rem + 1.5vw, 2.25rem); /* statements stay ≤36px */
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --step-display: clamp(2.875rem, 0.6rem + 6.2vw, 6.25rem);

  --margin: clamp(0.75rem, 1.6vw, 1.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);
  --radius: 0px; /* one radius for the page: square. Only the arch is round */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; text-wrap: balance; letter-spacing: -0.02em; }
.display { font-size: var(--step-display); line-height: 0.98; }
.head { font-size: var(--step-head); line-height: 1.02; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }

/* ---------- the motif: one arch, at every scale ---------- */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
/* the list mark: a short gold rule at mid-letter height */
.arch-bullet { display: inline-block; width: 0.75em; height: 2px; background: var(--accent); flex: none; transform: translateY(-0.3em); }

/* ---------- controls: one button shape, square ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: var(--bg); }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.25em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--bg); }
  .button--ink:hover { background: var(--accent); color: var(--accent-ink); }
  .textlink:hover { text-decoration-color: currentColor; }
}

/* ---------- motion helpers: content stays visible without JavaScript ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-open] { clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-open].is-in { clip-path: inset(0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }

/* skip link: off screen until it receives keyboard focus */
.skip { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 20; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* quick exit: always in the same corner, above everything, a real button size */
.quick-exit { position: fixed; top: 12px; inset-inline-end: 12px; z-index: 30; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.quick-exit:active { transform: scale(0.97); }
.quick-exit[hidden] { display: none; }

/* focus on dark grounds turns light, so it is visible everywhere (WCAG 2.4.7) */
.about__panel :focus-visible, .covers__panel :focus-visible, .button--ink:focus-visible, .coupon__submit:focus-visible, .quick-exit:focus-visible { outline-color: var(--accent); }
.about__panel .button:focus-visible { outline-color: var(--deep-ink); }
input, textarea { caret-color: var(--ink); }
/* the topbar call button steps aside while the quick exit holds that corner */
@media (min-width: 48em) { body:has(.quick-exit:not([hidden])) .topnav { padding-inline-end: 12rem; } }
/* when the quick exit is shown, the top bar moves down to clear its corner */
body:has(.quick-exit:not([hidden])) .topnav { padding-top: calc(2.75rem + 20px); }
@media (min-width: 48em) { body:has(.quick-exit:not([hidden])) .topnav { padding-top: 1rem; } }
.quick-exit { gap: 0.5em; }
.quick-exit__key { padding: 0.1em 0.4em; background: var(--bg); color: var(--ink); font-size: var(--step-small); direction: ltr; }

/* desktop call bar on the homepage: flat, one tone step from the ground, slides in after the hero */
.deskbar { display: none; }
@media (min-width: 48em) {
  .deskbar {
    position: fixed; inset: 0 0 auto; z-index: 20;
    display: flex; align-items: center; gap: 1.75rem;
    padding: 0.625rem var(--margin);
    background: var(--surface);
    transform: translateY(-100%);
    transition: transform var(--t-ui) var(--ease-out);
  }
  .deskbar.is-in { transform: none; }
  .deskbar .topnav__mark { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; text-decoration: none; direction: ltr; }
  .deskbar .topnav__links { display: flex; gap: 1.5rem; margin-inline-start: auto; }
  .deskbar__call { min-height: 2.75rem; padding: 0 1.1rem; }
  body:has(.quick-exit:not([hidden])) .deskbar { padding-inline-end: 12rem; }
}
.nums { white-space: nowrap; }

/* where it matters, nothing is set in small print: labels, navigation and the form notice read at body size */
.coupon__label, .coupon__notice, .hero__links, .topnav__links, .deskbar .topnav__links, .doc__toc ol { font-size: var(--step-body); }
.hero__links a, .topnav__links a, .deskbar .topnav__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* the Esc hint is for keyboards; touch screens never see it */
@media (hover: none) { .quick-exit__key { display: none; } }

/* ===== hero.css ===== */
/* Hero: "Striped card beside the room", the stripe replaced by the arch (one motif). */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  min-height: 100svh;
}

/* the card: paper panel, everything centred */
.hero__card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 28px;
  min-height: calc(100svh - 24px);
}


.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: clamp(2.5rem, 7vh, 5rem);
  text-decoration: none;
}
.wordmark__np { font-size: var(--step-head); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; direction: ltr; }

.hero h1 {
  margin-top: auto;
  padding-top: clamp(2rem, 6vh, 4rem);
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 36ch;
  font-size: var(--step-body);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: auto;
  padding-top: 3rem;
  font-size: var(--step-body);
}

/* the stage: a gold field, Noa's portrait inside one giant arch */
.hero__stage {
  position: sticky;
  top: 12px;
  height: calc(100svh - 24px);
  background: var(--accent);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__arch {
  position: relative;
  width: 84%;
  height: 92%;
  margin: 0;
  background: var(--surface);
}
.hero__arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__arch { animation: arch-rise 1200ms var(--ease-out) both; }
  .hero__arch img.is-on { animation: drift 4.5s var(--ease-soft) both; }
}
@keyframes arch-rise { from { transform: translateY(12%); } to { transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: none; } }

/* phone: the portrait first, the card overlapping its foot */
@media (max-width: 47.99em) {
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero__stage { order: -1; position: relative; top: 0; height: 52svh; }
  .hero__arch { width: 78%; height: 90%; }
  .hero__card { position: relative; margin: -24px 12px 0; min-height: 0; padding-bottom: 24px; }
  .wordmark { margin-top: 1.5rem; }
  .hero h1 { padding-top: 1.5rem; }
  .hero__sub { padding-inline: 1.25rem; }
  .hero__actions { flex-direction: column; gap: 1rem; }
  .hero__links { padding-top: 2rem; }
}

/* ===== sections.css ===== */
/* Sections 2–5: intro statement, the areas menu + picker, many-into-one, the about panel. */

/* ---------- 2. intro: one statement ---------- */
.intro { padding-block: clamp(6rem, 22vh, 14rem); }
.intro__statement {
  max-width: 24em;
  margin-inline: auto;
  text-align: center;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- 3. areas: the picker ---------- */
.picker { margin: 0 calc(var(--margin) * -1) clamp(4rem, 9vw, 7rem); padding: clamp(3rem, 7vw, 6rem) var(--margin); background: var(--surface); }
.picker > * { max-width: 60rem; }
.picker .chip { background: var(--bg); }
.picker__hint { margin-top: 0.75rem; }
.picker__chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.75rem; }
.chip {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  background: var(--surface);
  font-weight: 600;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .chip[aria-pressed="false"]:hover { background: color-mix(in srgb, var(--surface) 70%, var(--accent)); }
}
.picker__result { margin-top: 2rem; display: grid; gap: 1.5rem; justify-items: start; }
.picker__result[hidden] { display: none; }
.picker__steps { display: grid; gap: 0.75rem; font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.picker__steps li { display: flex; gap: 0.75rem; align-items: baseline; }
@media (prefers-reduced-motion: no-preference) {
  .picker__steps li { animation: rise 320ms var(--ease-out) both; }
}

/* ---------- 3. areas: the menu ---------- */
.menu__group + .menu__group { margin-top: clamp(4.5rem, 8vw, 6rem); }
.menu__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.menu__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 4rem;
}
.item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  transition: opacity var(--t-ui) ease;
}
.item .arch-bullet { transform: translateY(-0.3em); transition: transform var(--t-ui) var(--ease-out); }
.item__name { font-weight: 600; text-decoration: none; }
.item p { margin-top: 0.375rem; max-width: 40ch; }
@media (hover: hover) and (pointer: fine) {
  .item__name:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 0.08em; }
}
/* picker state: chosen areas stay, the rest step back */
.menu.is-filtered .item:not(.is-match) { color: var(--muted); }
.menu.is-filtered .item:not(.is-match) .arch-bullet { background: var(--surface); }
.menu.is-filtered .item.is-match .arch-bullet { transform: translateY(-0.3em) scaleX(1.6); }

/* ---------- 4. way: three stages ---------- */
.way__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}
.way__intro h2 { grid-column: 1 / span 5; }
.way__intro p { grid-column: 8 / span 5; }
.way__zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.way__zones h3 { font-size: var(--step-body); letter-spacing: 0; }
.way__zones p { margin-top: 0.5rem; max-width: 30ch; }

/* ---------- 5. about: deep inset panel, arched portrait ---------- */
.about { padding: 20px; }
.about__panel {
  position: relative;
  min-height: 110svh;
  background: var(--deep);
  color: var(--deep-ink);
  overflow: hidden;
  padding: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: start;
}
.about__title { grid-column: 1 / span 7; }
.about__text {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
  display: grid;
  gap: 4rem;
  justify-items: start;
  align-content: start;
  max-width: 22rem;
}
.about__text h3 { font-size: var(--step-lead); letter-spacing: -0.01em; }
.about__text p { margin-top: 0.625rem; }
.about__portrait {
  position: absolute;
  inset-inline-start: 56px;
  bottom: -9%;
  width: 38vw;
  aspect-ratio: 4 / 5;
  margin: 0;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 25%; }

/* ---------- phone ---------- */
@media (max-width: 47.99em) {
  .intro { padding-block: 6rem; }
  .intro__statement { text-align: start; line-height: 1.4; }
  .menu__items { grid-template-columns: 1fr; gap: 1.75rem; }
  .way__intro { display: block; }
  .way__intro p { margin-top: 1rem; }
  .way__zones { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .about { padding: 10px; }
  .about__panel { display: flex; flex-direction: column; min-height: 0; padding: 40px 24px 0; }
  .about__text { max-width: none; gap: 2.5rem; margin-top: 2.5rem; }
  .about__portrait { position: relative; inset: auto; width: 86vw; align-self: center; margin: 3rem 0 -25%; }
}


/* tablet: give the about text room */
@media (min-width: 48em) and (max-width: 63.99em) {
  .about__panel { padding: 40px; }
  .about__title { grid-column: 1 / -1; }
  .about__text { grid-column: 7 / span 6; grid-row: 2; margin-top: 3rem; }
  .about__portrait { inset-inline-start: 40px; width: 40vw; }
}

.picker__clear { font-size: var(--step-small); min-height: 2.75rem; }

/* the danger row: its own ground, first, with the number to call */
.picker__danger { display: grid; gap: 0.875rem; margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--bg); max-width: 44rem; }
.picker__danger p { margin: 0; }
.picker__danger-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.picker__hint { margin-top: 2rem; }
/* the result names the pages it found */
.picker__areas-title { margin: 0.5rem 0 0; font-weight: 600; }
.picker__areas { display: grid; gap: 0.5rem; }
.picker__areas a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ===== contact.css ===== */
/* Section 6 (the contact panel), the footer and the phone call bar. */

/* ---------- 6. contact: a gold panel, words beside the form ---------- */
.contact { display: grid; gap: 3rem; }
.coupon {
  --cut: 46%;
  position: relative;
  width: min(100%, 76rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--cut) 1fr;
  background: var(--accent);
  color: var(--accent-ink);
}
.coupon__words {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 48px;
}
.coupon__words p { max-width: 30ch; }
.coupon__fields {
  display: grid;
  gap: 10px;
  padding: 48px;
  border-inline-start: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent);
}
.field {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  background: var(--accent-soft);
  border: 0;
  border-radius: var(--radius);
  font-size: max(1rem, var(--step-body));
  color: var(--ink);
}
.field::placeholder { color: color-mix(in srgb, var(--ink) 72%, transparent); }
textarea.field { resize: vertical; min-height: 5.5rem; }
.field[aria-invalid="true"] { background: var(--bg); }
.coupon__submit {
  min-height: 3.5rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.coupon__submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .coupon__submit:hover { background: color-mix(in srgb, var(--ink) 82%, #000); } }
.coupon__status:empty { display: none; }

.office {
  width: min(100%, 76rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  font-style: normal;
}

/* ---------- 7. footer ---------- */
.footer { margin-top: calc(var(--section) / 2); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; background: var(--surface); border-top: 2px solid var(--accent); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
  margin-top: 56px;
  font-size: var(--step-small);
}
.footer__col { grid-column: span 2; display: grid; gap: 0.5rem; align-content: start; }
.footer__contact { grid-column: 9 / span 4; }
.footer__last {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
}
.footer__wa { min-height: 2.75rem; padding: 0 1.1rem; }

/* ---------- phone call bar ---------- */
.callbar { display: none; }

@media (max-width: 47.99em) {
  .coupon {
    --cut: 0;
    grid-template-columns: 1fr;
  }
  .coupon__words { padding: 32px 24px; }
  .coupon__fields { padding: 32px 24px; border-inline-start: 0; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent); }
  .field { min-height: 3.375rem; }
  .office { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 6; }
  .footer__contact { grid-column: 1 / -1; }
  body { padding-bottom: 76px; }
  .callbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg);
  }
  .callbar .button { min-height: 3.25rem; padding: 0; }
}
.credits { margin-top: 3rem; max-width: 60ch; }
.callbar { transition: transform var(--t-ui) var(--ease-out); }
.callbar.is-away { transform: translateY(110%); transition-duration: 180ms; }
.coupon__status:empty { display: none; }
.coupon__status { font-weight: 600; }
.coupon__status[data-kind="ok"] { padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); }
.coupon__notice { max-width: 46ch; }
.coupon__notice .textlink { font-weight: 600; }
.coupon__submit:disabled { opacity: 0.6; cursor: progress; }
.credits, .credits .textlink { font-weight: 400; }
.office .fax { font-size: var(--step-small); }

/* the address under the contact panel */
.contact { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.contact > .coupon { grid-column: 1 / -1; }
.contact > .office { grid-column: 1 / -1; width: min(100%, 76rem); }
.contact > .office { min-width: 0; }
@media (max-width: 63.99em) { .contact > .office { grid-template-columns: 1fr; } }

/* visible labels and errors at the field (not colour alone: a mark and the words) */
.coupon__label { margin-top: 6px; font-weight: 600; }
.coupon__label:first-of-type { margin-top: 0; }
.field[aria-invalid="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.field-error { margin: 0; font-size: var(--step-small); font-weight: 600; }
.field-error::before { content: "! "; }

.footer__voice { max-width: none; margin-top: clamp(3rem, 7vw, 5rem); font-size: var(--step-head); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.footer__voice .textlink { text-decoration-thickness: 0.06em; }

/* field edges that can be seen on the gold card (WCAG 1.4.11, 3:1): a bone fill with an ink base line
   (ink on gold ≈ 5.7:1); an invalid field gets a heavier ink frame, so the two states stay distinct */
.coupon .field { background: var(--bg); border-bottom: 2px solid var(--ink); }
.coupon .field[aria-invalid="true"] { background: var(--bg); outline: 3px solid var(--ink); outline-offset: -3px; }

/* ===== area.css ===== */
/* Practice-area pages: navigation, the shorter hero, and the sections only these pages have.
   Everything else (hero card, statement, contact panel, footer) comes from the homepage styles. */

/* ---------- navigation: the mark, three links, one action. No bar. ---------- */
.topnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
}
.topnav__mark { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; text-decoration: none; direction: ltr; }
.topnav__links { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.topnav__call { min-height: 2.75rem; padding: 0 1.1rem; }

/* ---------- hero, shorter than the homepage's ---------- */
.hero--area { min-height: 82svh; padding-top: 0; }
.hero--area .hero__card { min-height: calc(82svh - 12px); padding-bottom: clamp(2rem, 6vh, 3.5rem); }
.hero--area .hero__stage { height: calc(82svh - 12px); top: 12px; }
.hero--area h1 { margin-top: auto; }
.hero--area .hero__actions { margin-bottom: auto; }

/* ---------- when it fits: two lists on two grounds ---------- */
.fit { padding-bottom: calc(var(--section) / 2); }
.fit__title { margin-bottom: 2.5rem; }
.fit__cols { display: grid; grid-template-columns: 1fr 1fr; }
.fit__col { padding: clamp(2rem, 4vw, 3.5rem); }
.fit__col--yes { background: var(--surface); }
.fit__col--no { background: var(--bg); }
.fit__col h3 { font-size: var(--step-lead); margin-bottom: 1.5rem; }
.ticks { display: grid; gap: 1rem; }
.ticks li { display: flex; gap: 0.875rem; align-items: baseline; max-width: 46ch; }
.fit__link { display: inline-block; margin-top: 1.5rem; }

/* ---------- steps: arches rising toward the last, gold one ---------- */
.steps h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.steps__list {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}
.step { display: grid; grid-template-rows: auto auto 1fr; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step:last-child { border-top-color: var(--accent); }
.step__num { font-size: var(--step-lead); font-weight: 700; line-height: 1; margin-bottom: 1rem; color: var(--accent); }
.step h3 { font-size: var(--step-body); }
.step p { margin-top: 0.5rem; min-height: 6.5em; }

/* ---------- what it covers: a deep panel ---------- */
.covers { padding: 20px; }
.covers__panel {
  background: var(--deep);
  color: var(--deep-ink);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2.5rem;
}
.covers__panel h2 { grid-column: 1 / span 4; }
.covers__list {
  grid-column: 6 / span 7;
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
  font-size: var(--step-body);
}
.covers__list li { display: flex; gap: 0.875rem; align-items: baseline; }
.covers__picture { grid-column: 1 / span 4; grid-row: 2; align-self: end; aspect-ratio: 4 / 5; margin: 0; width: 78%; }
.covers__picture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Noa, in her own words ---------- */
.voice {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}
.voice__words { grid-column: 3 / span 8; margin: 0; }
.voice__words blockquote { margin: 0; }
.voice__words blockquote p { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; max-width: 22em; }
.voice__words blockquote p::before { content: "״"; }
.voice__words blockquote p::after { content: "״"; }
.voice__words figcaption { margin-top: 1.25rem; font-weight: 600; }

/* ---------- questions: open and close, no lines ---------- */
.faq h2 { margin-bottom: 2.5rem; }
.faq__list { display: grid; gap: 8px; max-width: 60rem; }
.qa { background: var(--surface); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; }
.qa summary::after {
  content: "+"; /* turns into × when open */
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  transition: transform 200ms var(--ease-in-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 1.5rem 1.5rem; max-width: 60ch; }
@media (hover: hover) and (pointer: fine) {
  .qa summary:hover { background: color-mix(in srgb, var(--surface) 70%, var(--accent)); }
}

/* ---------- related ---------- */
.related { padding-block: calc(var(--section) / 2); }
.related h2 { margin-bottom: 2.5rem; }
.related__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; }

/* ---------- tablet ---------- */
@media (min-width: 48em) and (max-width: 63.99em) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .covers__panel h2, .covers__list { grid-column: 1 / -1; grid-row: auto; }
  .covers__picture { grid-column: 1 / span 6; grid-row: auto; width: 100%; }
}

/* ---------- phone ---------- */
@media (max-width: 47.99em) {
  .topnav { gap: 1rem; }
  .topnav__links { display: none; }
  .topnav__call { margin-inline-start: auto; }
  .hero--area, .hero--area .hero__card { min-height: 0; }
  .hero--area .hero__stage { height: 46svh; }
  .fit__cols { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; row-gap: 2rem; align-items: start; }
  .step { grid-template-columns: 2.5rem 1fr; grid-template-rows: auto 1fr; column-gap: 1rem; }
  .step__num { grid-row: 1 / span 2; margin: 0; }
  .step p { min-height: 0; }
  .covers { padding: 10px; }
  .covers__panel h2, .covers__list { grid-column: 1 / -1; grid-row: auto; }
  .covers__list { grid-template-columns: 1fr; }
  .covers__picture { grid-column: 1 / -1; grid-row: auto; width: 70%; }
  .voice { display: block; }
  .related__list { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- phone menu: the areas list opens under the bar and floats over the page ---------- */
.topnav { position: relative; }
.topnav__menu { display: none; }
.topnav__menu summary { list-style: none; min-height: 2.75rem; padding: 0 1.1rem; cursor: pointer; }
.topnav__menu summary::-webkit-details-marker { display: none; }
.topnav__panel {
  position: absolute;
  inset-inline: 10px;
  top: 100%;
  z-index: 25;
  display: grid;
  padding: 0.5rem 0;
  background: var(--bg);
  box-shadow: 0 12px 32px rgb(28 36 41 / 0.18); /* taste-skill-ignore: a real overlay (open menu) */
}
.topnav__panel a { display: block; padding: 0.75rem 1.25rem; font-weight: 600; text-decoration: none; }
.topnav__panel a:active { background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .topnav__menu[open] .topnav__panel { animation: menu-in 200ms var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 47.99em) {
  .topnav__call { display: none; }
  .topnav__menu { display: block; margin-inline-start: auto; }
}
.topnav__menu:not([open]) .topnav__panel { display: none; }

/* protection order: the two emergency numbers lead the card */
.hero__emergency { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-top: 1.75rem; }
/* a calm page: someone may be reading this in fear, so nothing assembles itself on screen */
.calm [data-reveal], .calm [data-rise], .calm .lines [data-line], .calm [data-open], .calm .hero__arch, .calm .hero__arch img {
  opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; transition: none !important;
}

/* protection order on a phone: safety first. No portrait in the opening; the emergency numbers
   come straight after the headline, before any other text (the portrait still appears in the panel below). */
@media (max-width: 47.99em) {
  .calm .hero__stage { display: none; }
  .calm .hero__card { margin-top: 0; }
  .calm .hero h1 { padding-top: 1.25rem; }
  .calm .hero__emergency { order: 1; margin: 1.25rem 0 0.25rem; }
  .calm .hero__sub { order: 2; }
  .calm .hero__actions { order: 3; }
  .calm .hero__emergency .button { flex: 1 1 9rem; }
}

/* homepage: the same top bar, on phones only (desktop has the call bar that follows the hero);
   the card's own NP steps aside so the mark appears once */
@media (min-width: 48em) { .home .topnav { display: none; } }
@media (max-width: 47.99em) { .home .hero .wordmark { display: none; } .home .hero__card { padding-top: 0; } }

/* ===== legal.css ===== */
/* Accessibility statement and privacy policy: Read mode. The arch appears once, huge and flat, beside the
   title; the text runs on a reading measure next to a sticky index. */

/* ---------- title ---------- */
.doc-head {
  position: relative;
  overflow: hidden;
  min-height: 62svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: end;
  padding-block: clamp(4rem, 10vh, 7rem) clamp(3rem, 7vh, 5rem);
  margin-inline: 12px;
}
.doc-head__arch {
  position: absolute;
  inset-inline-end: -8vw;
  bottom: 0;
  width: 46vw;
  height: 112%;
  background: var(--accent);
  border-radius: 999px 999px 0 0;
}
.doc-head h1, .doc-head__intro, .doc-head__date { position: relative; grid-column: 1 / span 7; }
.doc-head__intro { margin-top: 1.75rem; max-width: 44ch; }
.doc-head__date { margin-top: 1rem; font-weight: 600; }

/* ---------- document ---------- */
.doc {
  margin: 0 12px 12px;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: calc(var(--section) / 2) clamp(1.5rem, 4vw, 3.5rem);
}
.doc__toc { grid-column: 1 / span 3; }
.doc__toc ol { position: sticky; top: 2rem; display: grid; gap: 0.75rem; padding: 0; list-style: none; }
.doc__body { grid-column: 5 / span 7; max-width: 66ch; }
.doc__body section + section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.doc__body h2 { font-size: var(--step-lead); letter-spacing: -0.01em; margin-bottom: 1rem; scroll-margin-top: 2rem; }
.doc__body p + p, .doc__body p + .ticks, .doc__body .ticks + p, .doc__body p + address { margin-top: 1rem; }
.doc__body .ticks { gap: 0.875rem; }
.doc__body .ticks li { max-width: none; }
.doc__contact { font-style: normal; padding: 1.5rem; background: var(--bg); }

/* ---------- phone and tablet ---------- */
@media (max-width: 63.99em) {
  .doc__toc { display: none; }
  .doc__body { grid-column: 1 / -1; }
  .doc-head h1, .doc-head__intro, .doc-head__date { grid-column: 1 / -1; }
  .doc-head__arch { width: 58vw; inset-inline-end: -22vw; opacity: 1; }
}
@media (max-width: 47.99em) {
  .doc-head { min-height: 0; margin-inline: 10px; padding-top: 9rem; }
  .doc { margin-inline: 10px; }
  .doc-head__arch { width: 44vw; height: 8rem; top: 0; bottom: auto; inset-inline-end: 1.25rem; }
}

/* 404: the two actions under the title */
.doc-head .hero__actions { position: relative; grid-column: 1 / -1; justify-content: flex-start; align-items: flex-start; margin-top: 2rem; }
