/* Guglielmi B2B landing page. Mobile first, RTL. Tokens live in brand.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
section[id], [id="top"] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body-he);
  font-weight: var(--fw-regular);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--g-ink);
  background: var(--g-paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display-he);
  font-weight: var(--fw-thin);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.015em;
}
p { margin: 0 0 var(--space-2); }
:focus-visible { outline: 3px solid var(--g-leaf-drop); outline-offset: 3px; }

[lang="en"], [lang="it"] { unicode-bidi: isolate; }
span[lang] { white-space: nowrap; }
.latin { font-family: var(--font-latin); font-weight: var(--fw-regular); letter-spacing: 0.01em; }
.wordmark { font-family: var(--font-latin); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-latin); text-transform: uppercase; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; right: var(--space-2); z-index: 100;
  background: var(--g-ink); color: var(--g-white); padding: var(--space-1) var(--space-2);
}
.skip-link:focus { top: var(--space-1); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--space-6); }
.section--soft { background-color: var(--g-paper-soft); }
.section--pattern { background-image: var(--pattern-leaves); background-size: 160px 160px; }
.section-head { max-width: 680px; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-body-he); font-size: var(--fs-xs);
  font-weight: var(--fw-semibold); letter-spacing: 0.12em; color: var(--g-muted);
  margin-bottom: var(--space-2);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: 10px; }
h2 { font-size: var(--fs-2xl); font-weight: var(--fw-extralight); }
.lead { font-size: var(--fs-lg); font-weight: var(--fw-thin); color: var(--g-muted); line-height: 1.6; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75em 1.6em; border-radius: var(--radius);
  font: inherit; font-weight: var(--fw-semibold); font-size: var(--fs-sm); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 1px solid var(--g-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--g-ink); color: var(--g-white); }
.btn--primary:hover { background: var(--g-cover-green); border-color: var(--g-cover-green); }
.btn--ghost { background: transparent; color: var(--g-ink); }
.btn--ghost:hover { background: var(--g-ink); color: var(--g-white); }
.btn--light { background: var(--g-white); color: var(--g-ink); border-color: var(--g-white); }
.btn--light:hover { background: transparent; color: var(--g-white); }
.btn--outline-light { background: transparent; color: var(--g-white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: var(--g-white); color: var(--g-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.section-cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.section-cta--center { justify-content: center; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--g-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 68px; }
.site-header__logo img { width: 52px; height: auto; }
.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: var(--fs-sm); color: var(--g-muted); }
.site-nav a:hover { color: var(--g-ink); }
.site-header .btn { min-height: 42px; padding: 0.5em 1.1em; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-block: var(--space-4) var(--space-5); background-image: var(--pattern-leaves); background-size: 160px 160px; }
.hero__grid { display: grid; gap: var(--space-4); align-items: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: var(--fw-extralight); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: var(--space-3); }
.hero__sub { font-size: var(--fs-lg); font-weight: var(--fw-thin); color: var(--g-muted); max-width: 34ch; margin-bottom: var(--space-4); }
.hero__note { font-size: var(--fs-xs); color: var(--g-muted); margin-top: var(--space-3); }
.hero__media { margin: 0 -1.25rem; overflow: hidden; }
.hero__media img { width: 100%; aspect-ratio: 1772 / 1265; object-fit: cover; }

/* ---- Trust strip ---------------------------------------------------------- */
.trust { border-block: 1px solid var(--g-line); padding-block: var(--space-4); }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
.trust__item { text-align: center; }
.trust__figure { display: block; font-family: var(--font-display-he); font-weight: var(--fw-extralight); font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.trust__label { display: block; font-size: var(--fs-xs); color: var(--g-muted); line-height: 1.5; }

/* ---- Tales cards ---------------------------------------------------------- */
.tales-grid { display: grid; gap: var(--space-3); }
.tale-card {
  position: relative; color: var(--g-ink); border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
}
.tale-card--cielo  { background: var(--tales-cielo); }
.tale-card--terra  { background: var(--tales-terra); }
.tale-card--pietra { background: var(--tales-pietra); }
.tale-card--tempo  { background: var(--tales-tempo); }
.tale-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.tale-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.tale-card__bottle { object-fit: contain; padding: 8% 0 4%; }
.tale-card__life { object-fit: cover; opacity: 0; transform: scale(1.04); }
@media (hover: hover) {
  .tale-card:hover .tale-card__life, .tale-card:focus-within .tale-card__life { opacity: 1; transform: none; }
  .tale-card:hover .tale-card__bottle, .tale-card:focus-within .tale-card__bottle { opacity: 0; }
}
.tale-card.show-alt .tale-card__life { opacity: 1; transform: none; }
.tale-card.show-alt .tale-card__bottle { opacity: 0; }
.tale-card__body { padding: var(--space-3); background: rgba(255,255,255,.0); }
.tale-card__name { font-family: var(--font-latin); font-weight: var(--fw-semibold); font-size: 1.15rem; line-height: 1.2; margin: 0 0 0.3rem; letter-spacing: 0.14em; text-transform: uppercase; }
.tale-card__element { display: block; font-family: var(--font-display-he); font-size: 1.6rem; font-weight: var(--fw-thin); line-height: 1.1; margin-bottom: var(--space-2); }
.tale-card__story { font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: 1.5; margin-bottom: var(--space-1); }
.tale-card__taste { font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1.55; margin: 0; }
.tale-card__taste strong { font-weight: var(--fw-bold); }
.tales-note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--g-muted); }

/* ---- Packages ------------------------------------------------------------- */
.packages { background: var(--tales-navy); color: var(--g-white); }
.packages .eyebrow, .packages .lead { color: rgba(255,255,255,.82); }
.packages h2 { font-weight: var(--fw-thin); }
.packages .lead { font-weight: var(--fw-regular); }
/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: var(--space-3); }
.tab {
  position: relative; background: none; border: 0; color: rgba(255,255,255,.72); cursor: pointer;
  font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: 1.2rem; padding: 0.9rem 0; min-height: 48px;
  transition: color .25s var(--ease);
}
.tab:hover { color: var(--g-white); }
.tab[aria-selected="true"] { color: var(--g-white); font-weight: var(--fw-regular); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--g-white); }
.tab__count { font-family: var(--font-body-he); font-size: var(--fs-xs); font-weight: var(--fw-regular); opacity: .7; margin-inline-start: 0.2rem; }
.tab-panel__intro { color: rgba(255,255,255,.82); font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.tab-panel:focus-visible { outline-offset: 8px; }

/* Package cards */
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.package { background: var(--tales-navy-deep); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.package__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--tales-navy-light) 0%, var(--tales-navy-deep) 75%);
}
.package__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.package__media .fit-navy { object-fit: contain; padding: 6%; background: radial-gradient(120% 90% at 50% 100%, var(--tales-navy-light) 0%, var(--tales-navy-deep) 75%); }
.package__media .fit-photo-navy { object-fit: contain; background: linear-gradient(#203c80, #214084); }
.package__media .fit-white { object-fit: contain; padding: 8%; background: var(--g-white); }
.package__media .package__alt { opacity: 0; }
@media (hover: hover) {
  .package:hover .package__alt, .package:focus-within .package__alt { opacity: 1; }
  .package:hover .package__media > img:first-child { transform: scale(1.03); }
}
.package.show-alt .package__alt { opacity: 1; }
.package__media .package__row {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 3%; padding: 6%; opacity: 0; transition: opacity .6s var(--ease);
}
.package__row--navy { background: radial-gradient(120% 90% at 50% 100%, var(--tales-navy-light) 0%, var(--tales-navy-deep) 75%); }
.package__row--white { background: var(--g-white); }
.package__media .package__row img { position: static; height: auto; max-height: 100%; object-fit: contain; flex: 0 1 auto; }
.package__row--navy img { width: 23%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.package__row--white img { width: 31%; }
.package__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.package__name { font-family: var(--font-latin); font-weight: var(--fw-thin); font-size: 1.55rem; margin: 0 0 0.25rem; line-height: 1.15; letter-spacing: 0.005em; }
.package__spec { font-size: var(--fs-sm); color: rgba(255,255,255,.82); margin-bottom: var(--space-2); }
.package__desc { font-size: var(--fs-sm); font-weight: var(--fw-regular); margin-bottom: var(--space-3); flex: 1; }
.package .btn { align-self: flex-start; }
.package__desc { display: none; }
.offer-box { margin-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.2); padding-top: var(--space-4); display: grid; gap: var(--space-3); }
.offer-box h3 { font-size: var(--fs-xl); font-weight: var(--fw-thin); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-inline-start: 1.8rem; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* ---- Awards carousel -------------------------------------------------------- */
.awards { background-color: var(--g-paper-soft); }
.awards__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.awards__head .section-head { margin-bottom: 0; }
.carousel-controls { display: flex; gap: 0.5rem; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--g-ink); background: transparent; color: var(--g-ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: var(--g-ink); color: var(--g-white); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }
.carousel { position: relative; margin-inline: -1.25rem; }
.carousel__track {
  list-style: none; margin: 0; padding: 0.25rem 1.25rem 0.75rem; display: flex; gap: var(--space-2);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.award {
  flex: 0 0 auto; width: 236px; scroll-snap-align: start; background: var(--g-white); border: 1px solid var(--g-line);
  border-radius: var(--radius); padding: var(--space-4) var(--space-3) var(--space-3); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.award__logo { height: 128px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3); }
.award__logo img { max-height: 128px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.award__name { font-family: var(--font-latin); font-weight: var(--fw-medium); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 var(--space-2); line-height: 1.4; }
.award__sub { display: block; font-weight: var(--fw-thin); letter-spacing: 0.08em; color: var(--g-muted); }
.award__result { font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: 1.35rem; line-height: 1.25; margin: 0 0 0.35rem; }
.award__detail { font-size: var(--fs-xs); color: var(--g-muted); line-height: 1.5; margin: 0; }

/* ---- Customization + audience -------------------------------------------- */
.feature-grid { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.feature { border-top: 1px solid var(--g-ink); padding-top: var(--space-2); }
.feature__num { font-family: var(--font-display-he); font-weight: var(--fw-extralight); font-size: 2.5rem; line-height: 1; display: block; margin-bottom: 0.6rem; }
.feature h3 { font-size: var(--fs-lg); font-weight: var(--fw-regular); margin-bottom: 0.4rem; }
.feature p { color: var(--g-muted); margin: 0; font-size: var(--fs-sm); }
.audience-grid { display: grid; gap: var(--space-3); }
.audience { background: var(--g-white); border: 1px solid var(--g-line); padding: var(--space-4) var(--space-3); border-radius: var(--radius); }
.audience h3 { font-size: var(--fs-xl); font-weight: var(--fw-thin); }
.audience p { color: var(--g-muted); margin: 0; }

/* ---- Story ---------------------------------------------------------------- */
.story { background: var(--g-cover-green); color: var(--g-white); }
.story .eyebrow { color: rgba(255,255,255,.8); }
.story h2 { font-weight: var(--fw-thin); }
.story__grid { display: grid; gap: var(--space-4); }
.story__text p { font-size: var(--fs-md); font-weight: var(--fw-regular); color: rgba(255,255,255,.9); max-width: 56ch; }
.story__facts { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); border-top: 1px solid rgba(255,255,255,.25); padding-top: var(--space-3); }
.story__facts strong { display: block; font-family: var(--font-display-he); font-weight: var(--fw-extralight); font-size: 2.25rem; line-height: 1.1; }
.story__facts span { font-size: var(--fs-xs); color: rgba(255,255,255,.8); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mosaic li { overflow: hidden; background: rgba(255,255,255,.06); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.mosaic .wide, .mosaic .wide-sm { grid-column: span 2; }
.mosaic .wide img, .mosaic .wide-sm img { aspect-ratio: 16 / 9; }

/* ---- Steps ---------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
.step { position: relative; padding-inline-start: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--g-ink); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: 1.15rem;
}
.step h3 { font-size: var(--fs-lg); font-weight: var(--fw-regular); margin-bottom: 0.3rem; }
.step p { color: var(--g-muted); margin: 0; font-size: var(--fs-sm); }
.deadline {
  margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--g-ink); color: var(--g-white); padding: var(--space-4) var(--space-3); border-radius: var(--radius);
  border-inline-start: 6px solid var(--tales-pietra);
}
.deadline strong { font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: var(--fs-xl); line-height: 1.25; }
.deadline p { margin: 0; color: rgba(255,255,255,.85); font-size: var(--fs-sm); }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--g-line); }
.faq details:first-child { border-top: 1px solid var(--g-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-3) 0; padding-inline-end: 2.5rem; position: relative;
  font-family: var(--font-display-he); font-weight: var(--fw-regular); font-size: var(--fs-lg); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-display-he); font-weight: var(--fw-extralight); font-size: 1.9rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--g-muted); padding-bottom: var(--space-3); margin: 0; max-width: 68ch; }

/* ---- Form ----------------------------------------------------------------- */
.quote { background-color: var(--g-paper-soft); }
.quote__grid { display: grid; gap: var(--space-5); }
.quote__aside .check-list { color: var(--g-ink); margin-bottom: var(--space-4); }
.form { background: var(--g-white); border: 1px solid var(--g-line); padding: var(--space-4) var(--space-3); border-radius: var(--radius); }
.form__grid { display: grid; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.field .req { color: #a3271f; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--g-ink); background: var(--g-white);
  border: 1px solid #8a8587; border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 48px; width: 100%;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--g-leaf-drop); outline-offset: 1px; border-color: var(--g-ink); }
.field[data-invalid] input, .field[data-invalid] select { border-color: #a3271f; border-width: 2px; }
.field__error { color: #a3271f; font-size: var(--fs-xs); min-height: 0; }
.field__hint { color: var(--g-muted); font-size: var(--fs-xs); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.radio-row label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: var(--fw-regular); cursor: pointer; min-height: 44px; }
.radio-row input { width: 20px; height: 20px; min-height: 0; accent-color: var(--g-ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__footer { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.form__footer .btn { width: 100%; }
.form__privacy { font-size: var(--fs-xs); color: var(--g-muted); margin: 0; }
.form__status { font-size: var(--fs-sm); padding: var(--space-2); border-radius: var(--radius); }
.form__status:empty { display: none; }
.form__status--ok { background: #e7f1e5; color: #1f4a1a; border: 1px solid #9cc595; }
.form__status--err { background: #fbeaea; color: #7a1d17; border: 1px solid #e0a4a0; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--g-black); color: var(--g-white); padding-block: var(--space-5) var(--space-4); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: var(--space-4); }
.site-footer img { width: 84px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--g-white); text-underline-offset: 3px; }
.site-footer__legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; }


/* ---- Placeholders (hidden until content is approved) ----------------------- */
[hidden] { display: none !important; }

/* ---- Breakpoints ---------------------------------------------------------- */
@media (max-width: 599px) {
  .package__body { padding: var(--space-2); }
  .package__name { font-size: 1.05rem; font-weight: var(--fw-regular); }
  .package__spec { font-size: 0.85rem; line-height: 1.45; flex: 1; }
  .package .btn { align-self: stretch; padding-inline: 0.5em; min-height: 44px; font-size: 0.9rem; }
  .tabs { flex-wrap: nowrap; gap: 0 0.7rem; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { font-size: 0.92rem; white-space: nowrap; flex: none; }
  .audience-grid.snap-mobile > * { flex-basis: 78%; }
  .audience { padding: var(--space-3); }
}
@media (min-width: 600px) {
  .package__desc { display: block; }
  .tales-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .form__footer { flex-direction: row; align-items: center; }
  .form__footer .btn { width: auto; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic .tall img { aspect-ratio: 3 / 4; }
  .mosaic .wide img { aspect-ratio: auto; }
  .mosaic .wide-sm { grid-column: auto; }
  .mosaic .wide-sm img { aspect-ratio: 1 / 1; }
}
@media (min-width: 768px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .package-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding-inline-start: 0; padding-top: 3.5rem; }
  .deadline { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-4); }
  .offer-box { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
  .carousel { --bleed: max(2rem, calc((100vw - var(--container)) / 2 + 2rem)); margin-inline: calc(-1 * var(--bleed));
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5rem, #000 calc(100% - 5rem), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 5rem, #000 calc(100% - 5rem), transparent 100%); }
  .carousel__track { padding-inline: var(--bleed); scroll-padding-inline: var(--bleed); }
  .award { width: 252px; }
  .section { padding-block: var(--space-7); }
  .site-nav { display: block; }
  .hero { padding-block: var(--space-5) var(--space-6); }
  .hero__grid { grid-template-columns: 5fr 7fr; gap: var(--space-5); }
  .hero__media { margin: 0; }
  .tales-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .story__grid { grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start; }
  .quote__grid { grid-template-columns: 4fr 8fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Mobile UX layer
   ========================================================================== */

/* Touch feedback */
.btn:active, .icon-btn:active, .tab:active { transform: scale(.97); }
.btn, .icon-btn { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .12s var(--ease); }

/* Header actions + menu button */
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header__inner { transition: min-height .3s var(--ease); }
.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--g-line); border-radius: 50%; background: var(--g-white);
  display: grid; place-content: center; gap: 6px; cursor: pointer; padding: 0;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--g-ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu sheet */
.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--tales-navy); color: var(--g-white);
  padding-top: 76px; overflow-y: auto; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mnav.is-open { opacity: 1; transform: none; }
.mnav__inner:focus { outline: none; }
.mnav__inner { padding-block: var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom)); }
.mnav__links { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.mnav__links a {
  display: block; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,.14); color: var(--g-white); text-decoration: none;
  font-family: var(--font-display-he); font-weight: var(--fw-extralight); font-size: 1.9rem; line-height: 1.2;
}
.mnav__links a:active { color: rgba(255,255,255,.7); }
.mnav__cta { display: grid; gap: 0.75rem; }
.mnav__cta .btn { width: 100%; min-height: 52px; font-size: 1rem; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: var(--g-white); }

/* Sticky bottom action bar (mobile) */
.mbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; gap: 0.6rem; align-items: center;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(10px); border-top: 1px solid var(--g-line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar__cta { flex: 1; min-height: 50px; font-size: 1rem; }
.mbar__wa { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #1f7a4a; color: #fff; display: grid; place-items: center; }
.mbar__wa svg { width: 26px; height: 26px; }

/* Swap indicator dots on touch screens */
.swap-dots { display: none; }
@media (hover: none) {
  .swap-dots {
    position: absolute; z-index: 3; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px;
    padding: 5px 7px; border-radius: 99px; background: rgba(0,0,0,.28); pointer-events: none;
  }
  .swap-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background-color .3s, transform .3s; }
  .swap-dots i:first-child, .show-alt .swap-dots i:last-child { background: #fff; transform: scale(1.15); }
  .show-alt .swap-dots i:first-child { background: rgba(255,255,255,.55); transform: none; }
  .package__media, .tale-card__media { cursor: pointer; }
}

/* Swipe galleries: progress dots */
.snap-dots { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .site-header.is-scrolled .site-header__inner { min-height: 58px; }
  .site-header .btn { min-height: 40px; padding: 0.45em 1em; }
}
@media (min-width: 768px) {
  .mbar { display: none !important; }
}
@media (min-width: 1024px) {
  .menu-btn, .mnav { display: none !important; }
}
@media (min-width: 600px) {
  .hide-sm { display: inline; }
}
@media (max-width: 599px) {
  .hide-sm { display: none; }
  .hero { padding-top: var(--space-3); }
  .hero__sub { font-size: var(--fs-md); }
  .section { padding-block: var(--space-5); }
  .section-head { margin-bottom: var(--space-4); }

  /* Horizontal swipe galleries */
  .snap-mobile {
    display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -1.25rem; padding: 0 1.25rem 0.25rem; scroll-padding-inline: 1.25rem; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .snap-mobile::-webkit-scrollbar { display: none; }
  .snap-mobile > * { flex: 0 0 82%; scroll-snap-align: center; }
  .snap-dots { display: flex; justify-content: center; gap: 4px; margin-top: var(--space-2); }
  .snap-dots button {
    width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .snap-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; opacity: .3; transition: width .3s var(--ease), opacity .3s; }
  .snap-dots button[aria-current="true"]::before { width: 20px; opacity: 1; }
  .story .snap-dots { color: var(--g-white); }

  /* Tales cards: vertical inside the gallery */

  /* Story gallery */
  .mosaic > li { flex-basis: 80%; }
  .mosaic img, .mosaic .tall img, .mosaic .wide img, .mosaic .wide-sm img { aspect-ratio: 4 / 5 !important; }

  /* Compact feature grid */
  .feature-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
  .feature__num { font-size: 2rem; }
  .feature h3 { font-size: var(--fs-md); }

  .deadline .btn, .section-cta .btn { flex: 1 1 auto; }
  .faq summary { padding-block: 1.1rem; font-size: var(--fs-md); }
}

/* Latin product names: keep their own punctuation order inside RTL cards */
.package__name, .tale-card__name { unicode-bidi: plaintext; text-align: right; }

/* Award badge on a package image */
.pkg-badge {
  position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-start;
  padding: 0.45rem 0.7rem; border-radius: var(--radius); background: rgba(255,255,255,.94); color: var(--g-ink);
  font-family: var(--font-latin); font-size: 0.68rem; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none;
}
.pkg-badge b { font-weight: var(--fw-semibold); font-size: 0.78rem; letter-spacing: 0.04em; color: #8a6a1c; }
@media (max-width: 599px) { .pkg-badge { top: 6px; right: 6px; padding: 0.35rem 0.5rem; font-size: 0.58rem; } .pkg-badge b { font-size: 0.64rem; } }

/* Hero tagline under the H1 */
.hero__tagline {
  font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: var(--fs-xl);
  line-height: 1.25; color: var(--g-ink); margin: calc(-1 * var(--space-2)) 0 var(--space-3);
  display: flex; align-items: center; gap: 0.75rem;
}
.hero__tagline::before { content: ""; flex: none; width: 34px; height: 2px; background: linear-gradient(to left, var(--tales-cielo) 25%, var(--tales-pietra) 25% 50%, var(--tales-terra) 50% 75%, var(--tales-tempo) 75%); }

/* Tales card typography: Hebrew element leads, Latin name is a quiet label */
.tale-card__body { display: flex; flex-direction: column; padding: var(--space-3) var(--space-3) var(--space-4); }
.tale-card__name {
  font-family: var(--font-latin); font-weight: var(--fw-medium); font-size: 0.74rem; line-height: 1.3;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: .78; margin: 0 0 0.4rem;
}
.tale-card__element {
  font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: 2.25rem; line-height: 1.05;
  letter-spacing: -0.01em; margin: 0 0 var(--space-2);
}
.tale-card__story {
  font-family: var(--font-body-he); font-weight: var(--fw-regular); font-size: 1.05rem; line-height: 1.55;
  margin: 0 0 var(--space-3); min-height: 3.1em; text-wrap: pretty;
}
.tale-card__profile {
  margin: 0; padding-top: 0.85rem; border-top: 1px solid rgba(35, 31, 32, .28);
  display: grid; gap: 0.2rem;
}
.tale-card__meta { font-family: var(--font-display-he); font-weight: var(--fw-medium); font-size: 0.9rem; line-height: 1.4; }
.tale-card__notes { font-family: var(--font-body-he); font-weight: var(--fw-regular); font-size: 0.95rem; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 599px) {
  .tale-card__element { font-size: 2rem; }
}

/* ==========================================================================
   Film section
   ========================================================================== */
.film {
  position: relative; overflow: hidden; color: var(--g-white); background: #0f1a10 url("../video/film-poster.webp") center / cover no-repeat;
  min-height: min(82vh, 760px); display: flex; align-items: flex-end;
}
.film__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 20, 12, .88) 0%, rgba(12, 20, 12, .45) 45%, rgba(12, 20, 12, .12) 100%);
}
.film__content { position: relative; z-index: 1; padding-block: var(--space-6); }
.film .eyebrow { color: rgba(255,255,255,.85); }
.film__title {
  font-family: var(--font-latin); font-weight: var(--fw-extralight); font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 var(--space-2); unicode-bidi: plaintext; text-align: right;
}
.film__lead { font-size: var(--fs-lg); font-weight: var(--fw-thin); color: rgba(255,255,255,.9); max-width: 40ch; margin-bottom: var(--space-4); text-wrap: pretty; }
.film__play {
  display: inline-flex; align-items: center; gap: 0.85rem; padding: 0.5rem 1.4rem 0.5rem 0.5rem; padding-inline: 0.5rem 1.5rem;
  border: 0; border-radius: 99px; background: var(--g-white); color: var(--g-ink); cursor: pointer;
  font: inherit; font-weight: var(--fw-semibold); font-size: 1rem; min-height: 56px;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.film__play:hover { box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateY(-1px); }
.film__play:active { transform: scale(.97); }
.film__play-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--g-ink); color: var(--g-white); display: grid; place-items: center; }
.film__play-icon svg { width: 18px; height: 18px; margin-left: 3px; }
.film__dur { font-weight: var(--fw-regular); opacity: .65; margin-inline-start: 0.35rem; }
.film__pause { position: absolute; z-index: 2; bottom: var(--space-3); left: var(--space-3); color: var(--g-white); border-color: rgba(255,255,255,.6); }
.film__pause:hover { background: var(--g-white); color: var(--g-ink); }
.film__pause .i-play { display: none; }
.film__pause[aria-pressed="true"] .i-play { display: block; }
.film__pause[aria-pressed="true"] .i-pause { display: none; }
.film.no-loop .film__pause { display: none; }

/* Film dialog */
.film-modal { width: min(1120px, 94vw); max-width: none; padding: 0; border: 0; background: #000; border-radius: var(--radius); overflow: visible; }
.film-modal::backdrop { background: rgba(6, 10, 6, .88); backdrop-filter: blur(4px); }
.film-modal__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-modal__close {
  position: absolute; top: -52px; left: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.film-modal__close svg { width: 22px; height: 22px; }
.film-modal[open] { animation: filmIn .35s var(--ease); }
@keyframes filmIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 599px) {
  .film { min-height: 78vh; }
  .film__content { padding-block: var(--space-5) var(--space-6); }
  .film__lead { font-size: var(--fs-md); }
  .film__pause { bottom: var(--space-2); left: var(--space-2); width: 44px; height: 44px; }
  .film-modal { width: 100vw; }
  .film-modal__close { top: -56px; left: 12px; }
}

@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } .audience h3 { font-size: var(--fs-lg); } }

/* Tales sits right under the hero: avoid a double gap */
.hero + .section { padding-top: var(--space-4); }
@media (min-width: 1024px) { .hero + .section { padding-top: var(--space-5); } }

/* ==========================================================================
   VERSION SWITCH (added for pro.html, shared with index.html)
   A slim bar above the header that links the two versions of the site:
   employee gifts (index.html) and hospitality and food (pro.html).
   ========================================================================== */
.topbar { background: var(--g-ink); color: var(--g-white); font-size: 0.8rem; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; }
.topbar__link { color: rgba(255,255,255,.86); text-decoration: none; letter-spacing: 0.02em; padding-block: 0.4rem; }
.topbar__link:hover { color: var(--g-white); text-decoration: underline; text-underline-offset: 3px; }
.topbar__link::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-inline-start: 0.5em; vertical-align: 0.1em; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.vswitch { display: inline-flex; margin-inline: auto; padding: 3px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; }
.vswitch__opt { display: inline-flex; align-items: center; min-height: 30px; padding: 0 0.9rem; border-radius: 99px; color: rgba(255,255,255,.78); text-decoration: none; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease); }
.vswitch__opt:hover { color: var(--g-white); }
.vswitch__opt[aria-current="page"] { background: var(--g-white); color: var(--g-ink); font-weight: var(--fw-semibold); }
.topbar .vswitch { margin-block: 3px; }
/* The bar sits above the header, so the mobile menu sheet starts lower */
.topbar ~ .mnav { padding-top: 112px; }

/* ==========================================================================
   MOBILE UX (shared by index.html and pro.html)
   ========================================================================== */
/* Header hides on scroll down and returns on scroll up (main.js) */
.site-header { transition: border-color .3s, transform .35s var(--ease); }
@media (max-width: 767px) {
  html.hdr-hidden .site-header { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

@media (max-width: 767px) {
  /* Gallery dots: small to look at, big enough to tap */
  .snap-dots { gap: 0; }
  .snap-dots button { width: 34px; height: 44px; }

  /* Footer links: full 44px rows */
  .site-footer ul { gap: 0; }
  .site-footer li { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Slim top bar link */
  .topbar__link { display: inline-flex; align-items: center; min-height: 40px; }

  /* Award badge: readable on a phone */
  .pkg-badge { font-size: 0.66rem; padding: 0.4rem 0.55rem; }
  .pkg-badge b { font-size: 0.74rem; }
}

/* Gift-box grid: an odd last card fills the row as a horizontal card, instead of sitting alone */
@media (max-width: 599px) {
  .package-grid > .package:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 46% 1fr; }
  .package-grid > .package:last-child:nth-child(odd) .package__media { aspect-ratio: auto; min-height: 220px; height: 100%; }
  .package-grid > .package:last-child:nth-child(odd) .package__body { justify-content: center; padding: var(--space-3) var(--space-2); }
  .package-grid > .package:last-child:nth-child(odd) .package__spec { flex: 0; }
}

/* ==========================================================================
   PRODUCT MATCH (guided quiz, shared by pro.html #match and index.html #gift-match)
   ========================================================================== */
.match { margin-top: var(--space-5); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--g-paper-soft); scroll-margin-top: 110px; }
.match__head { margin-bottom: var(--space-4); }
.match__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: var(--fw-extralight); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.match__lead { color: var(--g-muted); margin: 0; }
.match__progress { display: flex; gap: 6px; margin-bottom: var(--space-3); max-width: 180px; }
.match__progress i { flex: 1; height: 3px; border-radius: 3px; background: #d8d3cc; transition: background-color .3s var(--ease); }
.match__progress i.is-on { background: var(--g-ink); }
.match__step { border: 0; margin: 0; padding: 0; }
.match__q { display: flex; align-items: baseline; gap: 0.75rem; padding: 0; margin-bottom: var(--space-3);
  font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); line-height: 1.25; }
.match__n { font-family: var(--font-latin); font-size: 0.85rem; letter-spacing: 0.14em; color: var(--g-muted); }
.match__opts { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.match__opt {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 1.2rem; cursor: pointer;
  background: var(--g-white); border: 1px solid #d1ccc6; font-size: 1.05rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.match__opt:hover { border-color: var(--g-ink); }
.match__opt input { position: absolute; opacity: 0; pointer-events: none; }
.match__opt:has(input:checked) { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-white); }
.match__opt:has(input:focus-visible) { outline: 3px solid var(--g-leaf-drop); outline-offset: 2px; }
.match__back, .match__restart {
  margin-top: var(--space-3); background: none; border: 0; padding: 0.6rem 0; min-height: 44px; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); color: var(--g-muted); text-decoration: underline; text-underline-offset: 3px;
}
.match__result-title { font-family: var(--font-display-he); font-weight: var(--fw-thin); font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); margin-bottom: var(--space-3); }
.match__result-title:focus { outline: none; }
.match__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.match__card { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-2); align-items: start; background: var(--g-white); padding: 12px; }
.match__card img { width: 96px; height: 120px; object-fit: cover; }
.match__card h4 { margin: 0 0 0.2rem; font-family: var(--font-latin); font-weight: var(--fw-regular); font-size: 1.3rem; unicode-bidi: plaintext; text-align: right; }
.match__card p { margin: 0 0 0.4rem; font-size: var(--fs-sm); color: var(--g-muted); line-height: 1.5; }
.match__card .match__note { color: var(--g-leaf-drop); font-weight: var(--fw-semibold); }
.match__card .text-link { font-size: 0.9rem; min-height: 32px; }
.match__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); }
.match__actions .match__restart { margin-top: 0; }
@media (min-width: 700px) { .match__opts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .match { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-6); align-items: start; }
  .match__head { margin: 0; }
  .match__cards { grid-template-columns: repeat(3, 1fr); }
  .match__card { grid-template-columns: 1fr; padding: 0 0 var(--space-2); }
  .match__card img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .match__card-body { padding: 0 var(--space-2); }
}
@media (max-width: 599px) { .match { margin-inline: -1.25rem; } .match__actions .btn { width: 100%; } }
.match__hint { margin: calc(-1 * var(--space-2)) 0 var(--space-3); color: var(--g-muted); font-size: var(--fs-sm); }
.match__stage .match__step { animation: matchIn .35s var(--ease); }
@keyframes matchIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .match__stage .match__step { animation: none; } }
/* Latin phrases inside the match cards may wrap on narrow screens */
.match__card span[lang] { white-space: normal; }
.match__card-body { min-width: 0; }
/* Gifts page: the quiz sits in its own section */
.gift-match .match { margin-top: 0; }
.lead-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lead-link:hover { opacity: .8; }

/* ==========================================================================
   SERVICE PROMISE (gifts.html and pro.html, after "how it works")
   ========================================================================== */
.promise { background: var(--promise-bg, var(--tales-navy)); color: var(--g-white); }
.pro .promise { --promise-bg: var(--g-ink); }
.promise .eyebrow, .promise .lead { color: rgba(255, 255, 255, .82); }
.promise h2 { font-weight: var(--fw-thin); color: var(--g-white); }
.promise__grid { display: grid; gap: var(--space-5); }
.promise__head .lead { margin-bottom: var(--space-4); max-width: 46ch; }
.promise__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.promise__item { display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.promise__n { font-family: var(--font-latin); font-weight: var(--fw-extralight); font-size: 1.6rem; line-height: 1.2; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.promise__item h3 { margin: 0 0 .3rem; font-family: var(--font-display-he); font-weight: var(--fw-light, 300); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); color: var(--g-white); }
.promise__item p { margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.6; max-width: 52ch; }
@media (min-width: 1024px) {
  .promise__grid { grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start; }
  .promise__item { grid-template-columns: 4.5rem 1fr; padding: var(--space-4) 0; }
  .promise__n { font-size: 2.1rem; }
}
@media (max-width: 599px) { .promise__head .btn { width: 100%; } }

/* ==========================================================================
   FORMS: optional fields fold away (gifts.html and pro.html)
   ========================================================================== */
.field__opt { color: var(--g-muted); font-weight: var(--fw-regular); font-size: 0.9em; }
.form__more { border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); padding: 0; }
.form__more > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer;
  list-style: none; font-weight: var(--fw-semibold);
}
.form__more > summary::-webkit-details-marker { display: none; }
.form__more > summary::after { content: "+"; font-size: 1.4rem; font-weight: var(--fw-thin); transition: transform .25s var(--ease); }
.form__more[open] > summary::after { transform: rotate(45deg); }
.form__more-body { display: grid; gap: var(--space-3); padding-bottom: var(--space-3); }

/* ==========================================================================
   GIFTS HERO: quick links, and the photo first on phones
   ========================================================================== */
.hero__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: var(--space-3); }
.hero__links a {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-weight: var(--fw-semibold); color: var(--g-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.hero__links a::after { content: "←"; text-decoration: none; display: inline-block; transition: transform .25s var(--ease); }
.hero__links a:hover::after { transform: translateX(-4px); }
.hero__links + .hero__note { margin-top: var(--space-1, .5rem); }
@media (max-width: 1023px) {
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 11; }
}

/* ==========================================================================
   PACKAGES BY BUDGET (gifts.html): budget chips instead of package types
   ========================================================================== */
.budget-label { margin: 0 0 0.6rem; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.12em; color: rgba(255,255,255,.75); }
.tabs--budget { border-bottom: 0; gap: 0.5rem; margin-bottom: var(--space-3); }
.tabs--budget .tab {
  min-height: 48px; padding: 0 1.25rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  font-family: var(--font-body-he); font-size: 1.05rem; font-weight: var(--fw-semibold); color: rgba(255,255,255,.88);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tabs--budget .tab:hover { border-color: var(--g-white); color: var(--g-white); }
.tabs--budget .tab[aria-selected="true"] { background: var(--g-white); border-color: var(--g-white); color: var(--tales-navy); }
.tabs--budget .tab[aria-selected="true"]::after { display: none; }
.tabs--budget .tab__count { opacity: .6; }
.package__kind { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: var(--fw-semibold); letter-spacing: 0.14em; color: rgba(255,255,255,.65); }
.budget-note { margin: var(--space-3) 0 0; font-size: var(--fs-xs); color: rgba(255,255,255,.65); }
@media (max-width: 599px) {
  .tabs--budget { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .tabs--budget::-webkit-scrollbar { display: none; }
  .tabs--budget .tab { flex: none; padding: 0 1rem; font-size: 1rem; }
}

/* Reading progress line in the four Tales colors (assets/js/flair.js) */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
  transform-origin: right center; transform: scaleX(0);
  background: linear-gradient(to left, var(--tales-terra) 0 25%, var(--tales-pietra) 25% 50%, var(--tales-cielo) 50% 75%, var(--tales-tempo) 75% 100%);
}
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }

/* ==========================================================================
   UX touches (assets/js/flair.js): back-to-top, smoother FAQ, nav marker
   ========================================================================== */
section[id] { scroll-margin-top: 92px; }
.to-top {
  position: fixed; z-index: 90; left: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-ink); color: var(--g-white);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--tales-navy); }
@media (max-width: 767px) { .to-top { display: none; } }
.faq details[open] > p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: var(--tales-navy); }
.site-nav a[aria-current="true"] { color: var(--g-ink); font-weight: var(--fw-semibold); }
@media (prefers-reduced-motion: reduce) { .faq details[open] > p { animation: none; } .to-top { transition: none; } }

/* ==========================================================================
   ARRIVAL from the entry page: the color that filled the screen there lifts
   up like a curtain here, and the hero continues instead of repeating.
   ========================================================================== */
html.arrive::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: var(--arrive);
  animation: arriveLift .45s cubic-bezier(.4,0,.2,1) both;
}
@keyframes arriveLift { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
/* the photo and words settle quickly as the color lifts; no second circle */
html.arrive .hx__slide { animation: none; }
html.arrive .hx__photo img, html.arrive .ph__photo img { animation: arrivePhoto .7s cubic-bezier(.2,.7,.2,1) .05s both; }
@keyframes arrivePhoto { from { transform: scale(1.06); } to { transform: none; } }
html.arrive .ph__photo { background: var(--arrive); }
html.arrive .hx__word { animation-duration: .8s; animation-delay: .15s; }
html.arrive .hx__content { animation-duration: .5s; animation-delay: .15s; }
html.arrive .ph__text > * { animation-duration: .5s; animation-delay: .15s; }
html.arrive .ph__drip::before, html.arrive .ph__drip::after { animation-delay: .2s; }

/* ==========================================================================
   THANK-YOU PANEL (assets/js/thanks.js)
   ========================================================================== */
.thanks {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: var(--space-2);
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--g-white); box-shadow: 0 1px 0 var(--g-line), 0 30px 60px -40px rgba(35,31,32,.3);
  animation: thanksIn .6s cubic-bezier(.2,.7,.2,1) both;
}
.thanks:focus { outline: none; }
.thanks::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(to left, var(--tales-terra) 0 25%, var(--tales-pietra) 25% 50%, var(--tales-cielo) 50% 75%, var(--tales-tempo) 75% 100%);
}
.thanks__check { width: 76px; height: 76px; margin-bottom: var(--space-1, .5rem); }
.thanks__check svg { width: 100%; height: 100%; fill: none; stroke: var(--g-leaf-drop); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: thanksDraw .7s ease-out .15s forwards; }
.thanks__check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: thanksDraw .45s ease-out .75s forwards; }
.thanks__title { margin: 0; font-family: var(--font-display-he); font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.25; max-width: 22ch; }
.thanks__next { margin: 0 0 var(--space-2); color: var(--g-muted); font-size: var(--fs-md); }
.thanks__next b { color: var(--g-ink); margin-inline-end: 0.3rem; }
.thanks__wa { display: inline-flex; align-items: center; gap: 0.6rem; background: #1f7a4a; border-color: #1f7a4a; color: #fff; }
.thanks__wa svg { width: 20px; height: 20px; }
.thanks__wa:hover { background: #17603a; border-color: #17603a; color: #fff; }
@keyframes thanksIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes thanksDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .thanks { animation: none; }
  .thanks__check circle, .thanks__check path { animation: none; stroke-dashoffset: 0; }
}
.thanks__title { max-width: none; }
.thanks__title span { display: block; }
.thanks__title span + span { font-size: 0.72em; color: var(--g-muted); margin-top: 0.2rem; }
.thanks__next { display: grid; gap: 0.2rem; }
.thanks__next b { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--g-leaf-drop); }
/* the thank-you panel as a popup over the page */
.thanks-pop {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem;
  background: rgba(20, 18, 19, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: popFade .25s ease both;
}
.thanks-pop.is-closing { animation: popFade .25s ease reverse both; }
.thanks-pop .thanks { width: min(460px, 100%); border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: popIn .4s cubic-bezier(.2,.7,.2,1) both; }
.thanks__close {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--g-muted); cursor: pointer;
}
.thanks__close svg { width: 20px; height: 20px; }
.thanks__close:hover { background: var(--g-paper-soft); color: var(--g-ink); }
html.thanks-open { overflow: hidden; }
@keyframes popFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .thanks-pop, .thanks-pop .thanks { animation: none; } }

/* Desktop WhatsApp button (assets/js/flair.js); back-to-top sits above it */
.wa-float {
  position: fixed; z-index: 90; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 52px; padding: 0 1.2rem 0 1rem; border-radius: 999px; background: #1f7a4a; color: #fff; text-decoration: none;
  font-weight: var(--fw-semibold); box-shadow: 0 14px 28px -12px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #17603a; }
.to-top { bottom: 88px; }
@media (max-width: 767px) { .wa-float { display: none; } }
html.thanks-open .wa-float, html.thanks-open .to-top { visibility: hidden; }

/* Legal identity line in the footer */
.legal-id { white-space: normal; }

/* ==========================================================================
   ACCESSIBILITY FIXES (IS 5568 / WCAG AA contrast)
   ========================================================================== */
.tale-card__name { opacity: 1; color: #111; }

/* ---- Mattino: wide wordmark in the header and footer ---------------------- */
.site-header__logo img { width: 112px; }
@media (max-width: 599px) { .site-header__logo img { width: 96px; } }
.site-footer img { width: 132px; }

/* ---- Mattino: who brings the oil, a short block inside the family story ---- */
.about-mattino { margin-top: var(--space-4); padding: var(--space-3) var(--space-3) var(--space-3) 0; padding-inline-start: var(--space-3); border-inline-start: 3px solid #d6b06a; }
.about-mattino__kicker { display: block; font-family: var(--font-latin); font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: #d6b06a; margin-bottom: .4rem; }
.about-mattino p { margin: 0; }
.house__intro .about-mattino { border-inline-start-color: #9a6b1f; }
.house__intro .about-mattino__kicker { color: #8a5c14; }
.house__intro .about-mattino p { color: var(--g-ink); font-size: var(--fs-md); }

/* ---- Mattino: "who we are" link at the start of the top bar --------------- */
.topbar__about { margin-inline-end: auto; color: rgba(255,255,255,.86); text-decoration: none; letter-spacing: 0.02em; padding-block: 0.4rem; }
.topbar__about:hover { color: var(--g-white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .topbar__about { display: inline-flex; align-items: center; min-height: 40px; } }
.about-mattino .lead-link { white-space: nowrap; }

/* Small labels (eyebrows) stand alone, with no rule before or after them (Eyal, 24/11/2026) */
.eyebrow::before, .eyebrow__n::after { display: none !important; }
