/* Version D v10 — "המכתב". The page is the object: a letter, set in a modern frame. A white brand bar (whose page this
   is), the title on the blue desk, then a clean white sheet with rounded corners, a soft layered shadow and the brand  taste-skill-ignore
   blue strip on top. On the sheet: letterhead, the addressee in handwriting, subject, the survey figure, the demands
   in their own framed box, the closing, the handwritten signatures and the signed-by line. The form and the sharing
   are two more white cards in the same language; the footer closes on the blue.
   The sheet's shadow, the strip, the letterhead rule and the demands frame are the brief's explicit requirements for
   this object.  taste-skill-ignore */
:root {
  --ground: #335AA7;       /* logo blue: the desk */
  --blue-2: #3B96CB;       /* the logo's second blue: the strip's gradient end */
  --white: #FFFFFF;
  --paper: #FFFFFF;        /* the sheet */
  --paper-2: #EEF2F8;      /* one tone step on the sheet: fields, the signed block, secondary buttons */
  --tint: #EAF0FA;         /* the demands box */
  --line: #C3CDDF;         /* field borders */
  --ink: #111111;
  --soft: #45443F;         /* secondary notes only (AA on paper and paper-2) */
  --marker: #F3EB0E;       /* logo yellow: the highlighter */
  --dim: #CBD6E8;          /* the chart's quiet segment ("ידעו") */
  --wa: #25D366;           /* WhatsApp green */
  --on-wa: #0B3D2E;        /* text on the green (6.2:1) */
  --img-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 2v10.6l4.3-4.3a1 1 0 0 1 1.4 0l3.8 3.8 2.3-2.3a1 1 0 0 1 1.4 0L20 15.6V5H4zm12.5 1.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E");
  --on-ground: #FFFFFF;
  --error: #A1121B;

  --text: 'Heebo', 'Heebo Fallback', 'Heebo Fallback N', Arial, sans-serif;   /* v7: metric-matched fallbacks (fonts.css) */
  --hand: 'Amatic SC', 'Segoe Print', cursive;   /* handwriting: the addressee and the signatures only */

  /* five sizes */
  --s-small: 0.9375rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --s-head: clamp(1.5rem, 0.9rem + 2.2vw, 2.375rem);
  --s-big: clamp(2.25rem, 1rem + 3.4vw, 4.5rem);
  --s-title: clamp(2.75rem, 1.4rem + 5.4vw, 5.75rem);

  --m: 12px;               /* the desk margin (phones: the sheet is the screen minus 12px a side) */
  --pad: 20px;             /* inside the sheet */
  --r: 14px;               /* the cards' corners */
  --bar: 60px;
  --safe: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --strip: linear-gradient(90deg, var(--ground), var(--blue-2));  /* the logo's blue, the brief's ask  taste-skill-ignore */
  --shadow-card: 0 1px 2px rgba(10, 20, 50, .10), 0 6px 18px rgba(10, 20, 50, .10), 0 28px 48px -18px rgba(5, 15, 45, .40);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scroll-padding-bottom: calc(var(--bar) + var(--safe) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--s-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
p, ol, ul, h1, h2, h3, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .foot :focus-visible, .sticky :focus-visible { outline-color: var(--marker); }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; top: -100px; right: 16px; z-index: 30;
  background: var(--paper); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- buttons: one shape, rounded ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--text); font-weight: 700; font-size: var(--s-body); line-height: 1.2;
  text-align: center; text-decoration: none;
  transition: transform .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-tone { background: var(--paper-2); color: var(--ink); }
.btn-tone:hover, .btn-paper:hover { background: var(--marker); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
/* WhatsApp: the green, the dark text, the real icon (Simple Icons, CC0, assets/icons/whatsapp.svg, painted via mask) */
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: #1FC65C; }
.wa-ico {
  display: inline-block; width: 1.35em; height: 1.35em; flex: none; background: currentColor;
  -webkit-mask: url(/assets/icons/whatsapp.svg) center / contain no-repeat;
  mask: url(/assets/icons/whatsapp.svg) center / contain no-repeat;
}
/* a picture (frame, hill, sun), drawn here as a mask so it takes the text colour */
.img-ico {
  display: inline-block; width: 1.3em; height: 1.3em; flex: none; background: currentColor;
  -webkit-mask: var(--img-ico) center / contain no-repeat; mask: var(--img-ico) center / contain no-repeat;
}
.btn-big { min-height: 60px; font-size: var(--s-lead); }
.textbtn {
  background: none; border: 0; padding: 10px 2px; cursor: pointer; text-align: start;
  font-size: var(--s-body); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: background-color .16s var(--ease);
}
.textbtn:hover { background: var(--marker); }
.textbtn:disabled { opacity: .5; cursor: default; }
.textlink { display: inline-block; justify-self: start; padding: 8px 2px; font-weight: 700; color: var(--ground); }
.textlink:hover { background: var(--marker); color: var(--ink); }
.note { font-size: var(--s-small); color: var(--soft); line-height: 1.5; }
.note:empty { display: none; }

/* ---------- the brand bar: the real logo on white, above everything ---------- */
.brand { background: var(--white); padding: 12px var(--m) 10px; display: flex; }
.brand-logo { width: 148px; }
.brand a { display: block; }

/* ---------- the opening: the title on the desk ---------- */
.hero { position: relative; z-index: 2; padding: 30px var(--m) 0; color: var(--on-ground); }
.title {
  font-weight: 900;
  font-size: var(--s-title); line-height: 1; letter-spacing: -0.025em;
  max-width: 6.984em;   /* = 12ch in Heebo 900 (its "0" is .582em); v7: em, as ch would follow the fallback until the next restyle */
}
.title .ln { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .06em; margin-bottom: -.06em; }
.title .ln > span { display: block; }
.lede { margin-top: 16px; font-size: var(--s-body); max-width: 34em; }
.lede strong { font-weight: 700; background: var(--marker); color: var(--ink); padding: 0 .2em; border-radius: 3px; }
/* phones: the two side by side, equal, 48px (one line each down to 360px) */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.actions .btn { min-height: 48px; padding: 6px 10px; gap: 7px; font-size: 1rem; border-radius: 10px; white-space: nowrap; }
.actions .wa-ico { width: 1.25em; height: 1.25em; }

/* ---------- the sheet: a clean white page, rounded, a soft shadow, the brand strip on top ---------- */
.sheet {
  position: relative; z-index: 1;
  margin: 28px var(--m) 0;
  padding: 40px var(--pad) 44px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);  /* the sheet lies on the desk  taste-skill-ignore */
  font-size: calc(var(--s-body) * 1.03);
  line-height: 1.55;
}
.sheet::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 8px;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--strip);  /* the brand strip, the brief's own ask  taste-skill-ignore */
}

/* letterhead: the real logo, the rule in the brand blue, the date on the other side */
.letterhead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-bottom: 12px; border-bottom: 3px solid var(--ground);  /* the letterhead rule  taste-skill-ignore */
}
.lh-logo { width: 132px; }
.lh-date { font-size: .8125rem; color: var(--soft); line-height: 1.3; padding-bottom: 2px; white-space: nowrap; }
/* the addressee, written by hand */
.addr { margin-top: 24px; font-family: var(--hand); font-size: 1.75rem; line-height: 1.08; letter-spacing: .01em; }
.addr b { font-weight: 700; font-size: 1.1em; }
.greet { margin-top: 22px; }
.subject {
  margin-top: 12px; font-weight: 700; font-size: var(--s-lead); line-height: 1.3;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.opening { margin-top: 16px; }

/* the survey: the figure inside the letter. The emphasis is on those who could not answer */
.survey { margin-top: 18px; }
.sv-q { margin-top: 6px; font-weight: 700; font-size: var(--s-lead); line-height: 1.25; }
.sv-fig { margin-top: 18px; }
.sv-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; align-items: center; }
.sv-chart { width: 116px; height: 116px; }
.sv-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sv-result { font-weight: 700; font-size: var(--s-body); line-height: 1.25; }
.sv-result b { display: block; font-size: var(--s-big); line-height: .95; letter-spacing: -0.02em; color: var(--ground); font-weight: 900; }
.sv-base { margin-top: 6px; font-size: var(--s-small); }
.sv-asof { display: block; color: var(--soft); }
.sv-cap { margin-top: 12px; font-size: .875rem; color: var(--soft); }
.sv-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sv-legend li { display: inline-flex; align-items: center; gap: 7px; }
.sv-legend b { font-weight: 700; color: var(--ink); }
.sv-legend .lead { color: var(--ink); font-weight: 700; }
.sw { width: 12px; height: 12px; flex: none; border-radius: 3px; }
.sw-didnt { background: var(--ground); }
.sw-knew { background: var(--dim); }
.js .sv-arc { transform-origin: 50% 50%; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.js .survey:not(.is-in) .sv-arc { transform: rotate(-24deg) scale(.92); opacity: 0; }

/* the demand: its own framed box inside the letter, a small heading, three numbered lines on the highlighter */
.demand {
  margin-top: 28px; padding: 16px 18px 20px;
  background: var(--tint); border: 2px solid var(--ground); border-radius: 12px;  /* the demands' frame  taste-skill-ignore */
}
.demand-head { font-size: 1rem; font-weight: 700; color: var(--ground); line-height: 1.3; }
.demand .intro { margin-top: 6px; }
.demands { margin-top: 2px; counter-reset: d; }
.demands li { counter-increment: d; padding-top: 14px; }
.demand-text {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline;
  font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); line-height: 1.3; letter-spacing: -0.01em;
}
.demand-text::before { content: counter(d) "."; font-weight: 900; color: var(--ground); min-width: .9em; }
.demand-text mark {
  color: var(--ink); background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23F3EB0E'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 0% 100%; background-position: 100% 0;
  padding: .04em .25em; margin: 0 -.1em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .7s var(--ease);
}
.demand-text mark.is-on, html:not(.js) .demand-text mark { background-size: 100% 100%; }

/* v11: the letter's last paragraph, after the demands box */
.coda { margin-top: 24px; }

/* the closing and the signatures */
.signoff-sec { margin-top: 36px; }
.closing { font-size: var(--s-lead); line-height: 1.3; }
.signoff { margin-top: 4px; font-size: var(--s-lead); line-height: 1.3; font-weight: 700; }
.from { margin-top: 4px; }
.signers-wrap { position: relative; margin-top: 20px; }
/* "נחתם על ידי 12,480 הורים": a clean line of its own, the number big. Above 10,000 only. */
.signed-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 18px; color: var(--ground); font-weight: 700; }
.seal-l { font-size: var(--s-body); }
.seal-n { font-weight: 900; font-size: var(--s-big); line-height: 1; letter-spacing: -0.02em; }
.seal-u { font-size: var(--s-lead); font-weight: 700; }
.signers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; align-items: start; }
.signers li { transform: rotate(var(--rot, 0deg)); transform-origin: 100% 100%; }
.signers .name { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.875rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.signers .name:lang(en) { white-space: normal; }
.signers .city { display: block; margin-top: 3px; font-size: .8125rem; color: var(--soft); line-height: 1.3; }
.signers li.mine .name { display: inline-block; background: var(--marker); padding: .1em .25em 0; margin: 0 -.2em; border-radius: 4px; }
.signers li.mine .city { color: var(--ink); font-weight: 700; }
.signers li.is-new { animation: ink .6s var(--ease) both; }
.more { margin-top: 14px; font-size: var(--s-body); color: var(--ground); text-decoration-thickness: 1.5px; }

/* ---------- the form card: where one signs ---------- */
.coupon {
  margin: 28px var(--m) 0;
  padding: 28px var(--pad) 32px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);  /* same card as the sheet  taste-skill-ignore */
}
/* the heading, then the counter line that goes on to the call: "12,480 הורים כבר חתמו. עכשיו תורכם." */
.sign-title { font-weight: 900; font-size: var(--s-head); line-height: 1.1; letter-spacing: -0.015em; }
.counter { margin-top: 8px; font-size: var(--s-body); line-height: 1.4; font-weight: 700; text-wrap: balance; }
.counter-n { font-weight: 900; color: var(--ground); }
.form-slot { margin-top: 22px; }

/* the form (markup from HMPetition.buildForm) */
.pf { display: grid; gap: 18px; position: relative; }
.pf-status { background: var(--error); color: #fff; padding: 12px 16px; font-weight: 700; border-radius: 10px; }
.pf-field { display: grid; gap: 4px; align-content: start; }   /* side by side from 640px: the inputs stay level */
.pf-label { font-weight: 700; }
.pf-optional { font-weight: 400; color: var(--soft); }
.pf-input {
  width: 100%; min-height: 52px; padding: 10px 14px 8px;
  font-family: var(--text); font-size: 1.125rem; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: 10px;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.pf-input:hover { background: var(--paper-2); }
.pf-input:focus { outline: none; background: #fff; border-color: var(--ground); }
.pf-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pf-input[dir="ltr"] { text-align: right; }
.pf-hint { font-size: var(--s-small); color: var(--soft); }
.pf-field--phone .pf-hint { font-size: .75rem; line-height: 1.4; }   /* v6: smaller, still 9.9:1 on white */
.pf-error { font-size: var(--s-small); font-weight: 700; color: var(--error); }
.is-invalid .pf-input { border-color: var(--error); background: #F7E3E2; }
/* the live thing: the signature as it will be written, only once a first name is typed */
.preview { padding: 6px 0 0; }
.js .preview { animation: rise .45s var(--ease) both; }
.preview-label { font-size: var(--s-small); color: var(--soft); }
.preview-line {
  margin-top: 4px; min-height: 2.2em; padding: 0 2px 4px;
  font-family: var(--hand); font-weight: 700; font-size: 2.125rem; line-height: 1.2;
  border-bottom: 3px solid var(--ink);
}
.preview-line:empty::after { content: '\00a0'; }
.pf-captcha:empty { display: none; }
.pf-captcha { min-height: 0; }
.pf-submit {
  min-height: 60px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-family: var(--text); font-weight: 700; font-size: var(--s-body);
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.pf-submit:hover { background: var(--ground); color: var(--on-ground); }
.pf-submit:active { transform: translateY(2px); }
.pf-submit:disabled { opacity: .6; cursor: progress; }

/* signed block */
.signed { margin-top: 18px; background: var(--paper-2); border-radius: 12px; padding: 22px 20px; display: grid; gap: 12px; }
.signed-title { font-weight: 700; font-size: var(--s-lead); line-height: 1.25; }
.signed-line { font-weight: 700; font-size: var(--s-lead); }
.signed-line mark { display: inline-block; background: var(--marker); color: var(--ink); padding: 0 .15em; border-radius: 3px; }
.to-share { margin-top: 2px; }
.signed-another { display: grid; gap: 0; margin-top: 6px; }

/* ---------- the sharing card ---------- */
.reply {
  margin: 28px var(--m) 0;
  padding: 32px var(--pad) 36px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);  /* same card as the sheet  taste-skill-ignore */
}
.reply-title { font-weight: 900; font-size: var(--s-head); line-height: 1.08; letter-spacing: -0.015em; max-width: 10.476em; }   /* = 18ch in Heebo 900 */
.reply-line { margin-top: 8px; text-wrap: balance; }
[data-share-slot] { margin-top: 22px; }

/* v10: the three options, open on the page. Phones: the cards one under the other, each a label, the preview and
   one button. "לחברים" / "לקבוצת הורים": the message as it will look, an outgoing bubble (light green) on a quiet
   beige chat ground, RTL: the bubble sits on the left; inside it the link preview in its small row form (the og
   thumbnail, the title, the domain) and then the whole text. "לסטטוס": the 9:16 picture on a tone step, centred.
   The pictures' places are held (aspect ratios), so nothing moves when they arrive. */
.share-cards { display: grid; gap: 30px; }
.sc { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; align-content: start; }
.sc-label { font-weight: 700; font-size: var(--s-lead); line-height: 1.2; }
.sc-chat { display: flex; align-items: flex-end; padding: 14px 12px 14px; background: #EFEAE2; border-radius: 12px; }
.sc-bubble {
  position: relative; width: 92%; margin-inline-start: auto; padding: 4px 4px 8px;
  background: #D9FDD3; border-radius: 10px; border-start-end-radius: 0; color: var(--ink);
}
.sc-bubble::before {   /* the tail, at the top corner */
  content: ''; position: absolute; top: 0; inset-inline-end: -8px; width: 8px; height: 13px;
  background: #D9FDD3; clip-path: polygon(0 0, 100% 0, 100% 100%);
}
/* the link preview: on a phone one row (the thumbnail, the title and the domain beside it) */
.sc-link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 10px; align-items: center; overflow: hidden; border-radius: 7px; background: rgba(11, 61, 46, .07); }
.sc-og { width: 64px; height: 64px; aspect-ratio: auto; object-fit: cover; background: #C5E8BE; opacity: 0; transition: opacity .3s var(--ease); }
.sc-og.is-loaded { opacity: 1; }
.sc-meta { display: grid; gap: 1px; padding: 6px 8px 6px 0; min-width: 0; }
.sc-t { font-weight: 700; font-size: .875rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-d { display: none; font-size: .8125rem; line-height: 1.35; color: var(--soft); }
.sc-host { font-size: .75rem; line-height: 1.3; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }   /* LTR, so a long domain is cut at its end */
.sc-msg { padding: 7px 6px 0; font-size: .96875rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-url { color: var(--ground); unicode-bidi: isolate; direction: ltr; }
/* the status picture: 9:16, a little over half the card's width, centred on a tone step */
.sc-pic { display: grid; place-items: center; padding: 16px; background: var(--paper-2); border-radius: 12px; }
.sc-card-img {
  width: 56%; aspect-ratio: 9 / 16; height: auto;
  border-radius: 8px; background: var(--paper); box-shadow: 0 1px 2px rgba(10, 20, 50, .12), 0 10px 28px -10px rgba(5, 15, 45, .35);   /* the picture lies on the field  taste-skill-ignore */
  opacity: 0; transition: opacity .3s var(--ease);
}
.sc-card-img.is-loaded { opacity: 1; }
.sc-go { width: 100%; min-height: 52px; }
.sc-img-go { background: var(--ink); color: var(--white); }
.sc-img-go:hover { background: var(--ground); }
.sc-note:empty { display: none; }
/* v11, phones: each option is its own framed card with its label as a tag, so the three read as three different
   messages and not as one long thread */
@media (max-width: 639px) {
  .share-cards { gap: 18px; margin-top: 20px; }
  .sc { padding: 14px 14px 16px; gap: 14px; background: #F7F9FD; border: 1.5px solid #D9E2F2; border-radius: 16px; }
  .sc-label {
    justify-self: start; padding: 5px 14px; border-radius: 999px;
    background: #E3EBF8; color: var(--ground); font-size: 1rem; line-height: 1.3;
  }
  .sc-pic { background: #EDF1F8; padding: 14px; }
  .sc-card-img { width: 66%; }
}
/* the thank-you's green button: full width */
.go-share--thanks { width: 100%; min-height: 52px; }

/* ---------- footer ---------- */
.foot { color: var(--on-ground); padding: 56px 20px calc(40px + var(--bar) + var(--safe)); max-width: 1220px; margin: 0 auto; }
.foot-name { font-weight: 900; font-size: var(--s-big); line-height: 1.05; letter-spacing: -0.02em; }
.foot-links { margin-top: 22px; display: grid; gap: 10px; font-size: var(--s-lead); line-height: 1.3; }
.foot-links a, .foot-small a { text-decoration-color: var(--marker); }
.foot-links a:hover, .foot-small a:hover { background: var(--marker); color: var(--ink); }
.foot-small { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-small a { display: inline-block; padding: 6px 0; }

/* ---------- the slim bottom bar (phones only, once the opening has left the screen) ---------- */
.sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 5px;
  padding: 5px 5px calc(5px + var(--safe));
  background: var(--ink);
  transition: transform .25s var(--ease);
}
.sticky .btn { min-height: 48px; padding: 6px 10px; font-size: 1rem; border-radius: 10px; }
.sticky.is-signed { grid-template-columns: 1fr; }
.sticky.is-away, .sticky.is-parked { transform: translateY(110%); }

/* ---------- thank-you dialog: a small white card ---------- */
.thanks {
  width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px);
  padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); /* the dialog really floats  taste-skill-ignore */
}
.thanks::backdrop { background: rgba(20, 38, 80, .72); }
.thanks-body { padding: 30px 20px 22px; display: grid; gap: 12px; position: relative; }
.thanks-body::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--strip); }
.thanks-title { font-weight: 900; font-size: var(--s-head); line-height: 1.08; }
.thanks-line { font-weight: 700; font-size: var(--s-lead); line-height: 1.35; }
.thanks-line mark { display: inline-block; background: var(--marker); color: var(--ink); padding: 0 .15em; border-radius: 3px; }
.thanks-line:empty { display: none; }
.thanks-actions { margin-top: 8px; }
.close {
  justify-self: start; margin-top: 6px; background: none; border: 0; cursor: pointer;
  padding: 10px 2px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.close:hover { background: var(--marker); }
.thanks[open] { animation: lift .35s var(--ease) both; }

/* ---------- about: the brand bar, the title on the desk, the same sheet ---------- */
.sub-title { font-weight: 900; font-size: var(--s-big); line-height: 1.05; letter-spacing: -0.02em; }
.sub .sheet { margin-top: 24px; padding-top: 40px; padding-bottom: 44px; font-size: var(--s-body); }
.sub .foot { padding-bottom: 48px; }
.block { margin-top: 40px; }
.block h2 { font-weight: 700; font-size: var(--s-lead); line-height: 1.2; margin-bottom: 12px; }
.about-text { display: grid; gap: .7em; font-size: var(--s-body); line-height: 1.6; max-width: 38em; }
.about-text p:first-child { font-weight: 700; font-size: var(--s-lead); line-height: 1.35; }
.chair { margin-top: 22px; }
.chair-name { font-weight: 700; font-size: var(--s-lead); }
.chair-role { color: var(--soft); }
.press { display: grid; gap: 14px; max-width: 42em; }
.press li { display: grid; gap: 2px; }
.press .p-meta { font-size: var(--s-small); color: var(--soft); }
.press .p-title { font-weight: 700; }
.press .p-title:hover { background: var(--marker); }
.press .p-note { font-size: var(--s-small); color: var(--soft); }
.contact { display: grid; gap: 12px; }
.contact a:hover { background: var(--marker); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ink { from { opacity: 0; transform: translateY(8px) rotate(var(--rot, 0deg)); } to { opacity: 1; transform: rotate(var(--rot, 0deg)); } }
@keyframes lift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .title .ln > span { animation: line-up .9s cubic-bezier(.16, 1, .3, 1) both; }
.js .title .ln:nth-child(2) > span { animation-delay: .11s; }
.js.is-ready .hero [data-after] { animation: rise .7s var(--ease) .5s both; }
.js.is-ready .page-letter .sheet { animation: rise .9s cubic-bezier(.16, 1, .3, 1) .3s both; } /* the sheet lands on the desk */
/* v7: when the copy arrives late (a slow network), the title has long finished: no wait before the rest comes in */
.js.is-late .hero [data-after], .js.is-late .page-letter .sheet { animation-delay: 0s; }
/* v7: until app.js has placed the copy, only the brand bar and the title (already split in the HTML, in its final
   place) are painted; everything else waits hidden, so nothing shows in a place it then leaves */
.js:not(.is-ready) .hero [data-after], .js:not(.is-ready) .page-letter main > :not(.hero),
.js:not(.is-ready) .page-about main, .js:not(.is-ready) .foot { visibility: hidden; }
/* v7: content from the API keeps its place until it arrives: the survey (its final height with a one-line question;
   what follows it in the letter waits hidden, so a survey below its threshold closes without a visible jump), the
   counter line, and the signatures (a hidden page of placeholders, the size of the real one) */
.survey.is-pending, .survey.is-pending ~ *, .counter.is-pending, .signers-wrap.is-pending, .share-cards.is-pending { visibility: hidden; }   /* v10: the share cards too (their count line) */
.survey.is-pending .sv-q { min-height: 1.25em; }
.survey.is-pending .sv-legend { min-height: 1.55em; }
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .survey:not(.is-in) .sv-arc { transform: none; opacity: 1; }
  .js .demand-text mark { background-size: 100% 100%; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  :root { --m: 24px; --pad: 40px; --r: 16px; }
  .brand { padding: 14px var(--m) 12px; }
  .brand-logo { width: 176px; }
  .hero { padding-top: 40px; }
  /* v6: lighter than the title and the letter: smaller, side by side, sized to their words */
  .actions { grid-template-columns: auto auto; justify-content: start; gap: 8px; }
  .actions .btn { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
  .sheet { margin: 36px auto 0; width: min(100% - 2 * var(--m), 720px); padding: 48px var(--pad) 56px; }
  .lh-logo { width: 160px; }
  .lh-date { font-size: var(--s-small); }
  .addr { font-size: 2rem; }
  .sv-row { gap: 14px 26px; }
  .sv-chart { width: 140px; height: 140px; }
  .sv-cap { font-size: var(--s-small); }
  .demand { padding: 20px 24px 24px; }
  .signers { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 16px; }
  .pf { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .pf > :not(.pf-field--first):not(.pf-field--last):not(.pf-field--city):not(.pf-field--phone) { grid-column: 1 / -1; }
  .pf-submit { justify-self: start; min-width: 280px; padding: 0 32px; }

  .coupon, .reply { margin-inline: auto; width: min(100% - 2 * var(--m), 720px); }
  .coupon { margin-top: 32px; padding: 36px var(--pad) 40px; }
  .reply { margin-top: 32px; padding: 44px var(--pad) 48px; }
  /* v10: three narrow columns, the same height, the buttons level at the bottom; the link preview keeps its row form */
  .share-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
  .sc-chat { height: 100%; padding: 12px 10px; }
  .sc-bubble { width: 94%; }
  .sc-pic { padding: 14px; }
  .sc-card-img { width: 72%; }
  .sc-go { padding-inline: 12px; }
  .foot { padding: 80px 44px 48px; }
  .sticky { display: none; }
  .thanks-body { padding: 36px 34px 28px; }
}

/* ---------- desk ---------- */
@media (min-width: 1000px) {
  :root { --m: 40px; --pad: 60px; }
  .brand { padding: 16px 0 14px; }
  .brand-logo { width: 190px; margin-inline-start: max(var(--m), calc((100% - 720px) / 2)); }
  .hero { width: min(100% - 80px, 720px); margin: 52px auto 0; padding: 0; }
  .title { max-width: 6.402em; }   /* = 11ch in Heebo 900 */
  .lede { margin-top: 22px; font-size: var(--s-lead); line-height: 1.4; max-width: 24em; }
  .actions { margin-top: 28px; }
  .sheet { margin-top: 44px; padding: 56px var(--pad) 64px; width: 720px; }
  .lh-logo { width: 168px; }
  .addr { margin-top: 28px; font-size: 2rem; }
  .greet { margin-top: 26px; }
  .survey { margin-top: 22px; }
  .demand { margin-top: 34px; }
  .demands li { padding-top: 18px; }
  .coda { margin-top: 28px; }
  .signoff-sec { margin-top: 44px; }
  .signers .name { font-size: 2rem; }
  .coupon { margin-top: 40px; padding: 44px var(--pad) 48px; width: 720px; }
  /* v10: the sharing card is the one wide card: three columns, the same height, the buttons level at the bottom */
  .reply { margin-top: 40px; padding: 52px var(--pad) 56px; width: min(100% - 80px, 1080px); }
  .reply-title { max-width: none; }
  .share-cards { gap: 24px; margin-top: 28px; }
  .sc-chat { padding: 14px 12px; }
  .sc-bubble { width: 92%; }
  /* the link preview in its large form: the og picture, the title, two lines of the description, the domain */
  .sc-link { grid-template-columns: 1fr; gap: 0; }
  .sc-og { width: 100%; height: auto; aspect-ratio: 1200 / 630; }
  .sc-meta { padding: 8px 10px 9px; }
  .sc-t { font-size: .9375rem; line-height: 1.3; }
  .sc-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sc-pic { padding: 16px; }
  .sc-card-img { width: 74%; }
  .sc-go { padding-inline: 22px; }
  .foot { padding: 120px 72px 72px; }
  .sub .sheet { width: 720px; }
}
