@charset "UTF-8";
/* ==========================================================================
   نادي القراءة الثقافي والاجتماعي
   Warm paper palette, Arabic-first, RTL.
   ========================================================================== */

:root {
  --background:           #F6DFC1;
  --background-secondary: #ECD4B0;
  --primary:              #EA5C2F;
  --secondary:            #A79267;
  --accent:               #DAA26B;
  --text:                 #30242A;

  /* Derived — kept few and named by role, not by hue. */
  --paper:      #FBF1DF;
  --paper-warm: #F3E2C6;
  --ink:        var(--text);
  --ink-soft:   #6B5A52;
  --ink-faint:  #9A8874;
  --line:       #E0C9A4;
  --line-soft:  #E9D8BB;
  --deep:       #582D29;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(88, 45, 41, .05), 0 4px 14px rgba(88, 45, 41, .05);
  --shadow-md: 0 2px 6px rgba(88, 45, 41, .06), 0 16px 40px rgba(88, 45, 41, .09);
  --shadow-lg: 0 30px 70px rgba(88, 45, 41, .16);

  --font: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --serif: "Amiri", Georgia, serif;

  --wrap: 1120px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  /* Very fine paper tooth. Keeps the flat cream from reading as a screen fill. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: #fff; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--primary); margin-bottom: 12px;
}
.h2 {
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.4; font-weight: 800; letter-spacing: -.01em;
}
.lede { font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.8; color: var(--ink-soft); }
.lede--center { margin-inline: auto; max-width: 56ch; }
.muted { color: var(--ink-faint); font-size: 14px; margin-top: 16px; }

.pull {
  margin: 22px 0;
  padding: 3px 18px 3px 0;
  border-right: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.75;
  color: var(--deep);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 24px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .25s ease, color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); box-shadow: 0 8px 22px rgba(234, 92, 47, .26); }
.btn--ghost   { --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--muted   { --btn-bg: var(--background-secondary); --btn-fg: var(--ink-faint); --btn-bd: transparent; cursor: not-allowed; box-shadow: none; }
.btn--sm      { padding: 9px 18px; font-size: 14px; }
.btn--lg      { padding: 13px 30px; font-size: 15.5px; }
.btn--full    { width: 100%; }

.btn:not(:disabled):hover  { transform: translateY(-2px); }
.btn--primary:not(:disabled):hover { box-shadow: 0 14px 32px rgba(234, 92, 47, .34); }
.btn--ghost:not(:disabled):hover   { border-color: var(--secondary); background: rgba(167, 146, 103, .1); }
.btn:not(:disabled):active { transform: translateY(0); }
.btn:disabled { opacity: .85; }

.btn__spin { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spin  { display: block; }
.btn.is-loading .btn__label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--background);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__mark { width: 74px; margin: 0 auto 20px; color: var(--deep); }
.pl-book, .pl-spine {
  stroke-dasharray: 180; stroke-dashoffset: 180;
  animation: draw 1.5s var(--ease) forwards;
}
.pl-spine { animation-delay: .35s; stroke-dasharray: 40; stroke-dashoffset: 40; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.preloader__name {
  font-size: 21px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink); opacity: 0;
  animation: fadeUp .8s var(--ease) .5s forwards;
}
.preloader__bar {
  width: 128px; height: 2px; margin: 20px auto 0;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0; background: var(--primary);
  transition: width .35s var(--ease);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Brand mark ---------- */
.brandmark { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brandmark img { border-radius: 16px; box-shadow: var(--shadow-md); flex: none; }
.brandmark span { display: flex; flex-direction: column; line-height: 1.3; }
.brandmark b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brandmark i { font-style: normal; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(34px, 5.5vw, 68px) 0 clamp(48px, 6.4vw, 82px); overflow: hidden; }
.hero__glow {
  position: absolute; inset-inline-end: -12%; top: -18%;
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(218,162,107,.42), rgba(218,162,107,0) 66%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.hero__title {
  font-size: clamp(38px, 7.6vw, 76px);
  line-height: 1; font-weight: 900; letter-spacing: -.03em;
  color: var(--deep); margin: 6px 0 18px;
}
.hero__title span { display: inline-block; }
.hero__author { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }
.hero__author b { color: var(--ink); font-weight: 700; }
.hero__lede { font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.85; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__meta { display: flex; align-items: center; gap: 22px; margin-top: 44px; }
.hero__meta > div:not(.hero__meta-sep) { display: flex; flex-direction: column; }
.hero__meta b { font-size: 22px; font-weight: 800; color: var(--deep); line-height: 1.2; }
.hero__meta span { font-size: 12.5px; color: var(--ink-faint); }
.hero__meta-sep { width: 1px; height: 34px; background: var(--line); }

/* Book, drawn rather than photographed — no asset, no layout shift. */
.hero__art { position: relative; display: grid; place-items: center; min-height: 380px; }
.book {
  position: relative; width: min(290px, 74vw); aspect-ratio: 5 / 7;
  transform: rotate(-4deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-14px); } }
.book__cover {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #fffdf8, #f4ece0);
  border-radius: 5px 12px 12px 5px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(88,45,41,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 30px 22px; text-align: center;
}
.book__cover::before { /* spine shading */
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 16px;
  background: linear-gradient(to left, rgba(88,45,41,.14), transparent);
  border-radius: 0 12px 12px 0;
}
.book__author { font-size: 12.5px; color: var(--ink-soft); }
.book__title { font-size: clamp(34px, 8vw, 46px); font-weight: 900; line-height: 1.12; color: #A32C2C; letter-spacing: -.02em; }
.book__sub { font-size: 11.5px; line-height: 1.75; color: var(--ink-soft); }
.book__pages {
  position: absolute; inset-block: 7px; inset-inline-start: -7px; width: 12px;
  background: repeating-linear-gradient(to bottom, #fff 0 2px, #ece2d2 2px 4px);
  border-radius: 3px 0 0 3px; box-shadow: var(--shadow-sm);
}

.sprig { position: absolute; width: 90px; height: 90px; opacity: .5; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23A79267' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M30 56V10'/%3E%3Cpath d='M30 20c-8-2-12-7-13-14 8 0 12 4 13 10'/%3E%3Cpath d='M30 20c8-2 12-7 13-14-8 0-12 4-13 10'/%3E%3Cpath d='M30 34c-8-2-12-7-13-14 8 0 12 4 13 10'/%3E%3Cpath d='M30 34c8-2 12-7 13-14-8 0-12 4-13 10'/%3E%3C/svg%3E");
}
.sprig--1 { top: 4%; inset-inline-start: 2%; transform: rotate(-24deg); }
.sprig--2 { bottom: 4%; inset-inline-end: 4%; transform: rotate(154deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6.4vw, 86px) 0; }
.section--tint { background: var(--background-secondary); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto clamp(38px, 5vw, 62px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: start; }

/* ---------- Session cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s ease;
  overflow: hidden;
}
.card::before { /* hairline of brand colour along the top edge */
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--secondary); opacity: .5; transition: opacity .4s ease;
}
.card--onsite::before { background: var(--primary); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card:hover::before { opacity: 1; }

.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card__num { font-size: 30px; font-weight: 900; color: var(--line); line-height: 1; }
.chip { padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip--brand { background: rgba(234, 92, 47, .13); color: #C24418; }
.chip--olive { background: rgba(167, 146, 103, .18); color: #6F5F3C; }

.card__title { font-size: clamp(18px, 1.8vw, 21px); font-weight: 800; line-height: 1.45; }
.card__tagline { font-family: var(--serif); font-size: 15.5px; color: var(--secondary); margin-top: 8px; }

.facts { margin: 24px 0 0; border-top: 1px solid var(--line-soft); }
.fact { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.fact dt { flex: 0 0 84px; font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.fact dd { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.7; }

.card__desc { margin-top: 12px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

.agenda { margin-top: 22px; }
.agenda__label { font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-bottom: 10px; }
.agenda__list { counter-reset: agenda; display: grid; gap: 7px; }
.agenda__list li {
  position: relative; counter-increment: agenda;
  padding-inline-start: 28px;
  font-size: 14px; line-height: 1.6; font-weight: 500;
}
.agenda__list li::before {
  content: counter(agenda);
  position: absolute; inset-inline-start: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--background-secondary); color: var(--secondary);
  font-size: 11.5px; font-weight: 800;
}

/* Its own line — inline beside the street address it just looked cramped. */
.maplink-row { display: block; margin-top: 8px; }
.maplink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--primary);
  transition: color .25s ease;
}
.maplink svg { width: 15px; height: 15px; flex: none; }
.maplink span {
  border-bottom: 1.5px solid rgba(234, 92, 47, .32);
  padding-bottom: 1px;
  transition: border-color .25s ease;
}
.maplink:hover span { border-bottom-color: var(--primary); }

.includes { margin-top: 22px; }
.includes__label { font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-bottom: 10px; }
.includes ul { display: flex; flex-wrap: wrap; gap: 8px; }
.includes li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--background-secondary); font-size: 13px; font-weight: 500;
}
.includes li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.card__foot {
  margin-top: auto; padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
/* Saudi riyal sign — sized in em so it tracks whatever it sits beside. */
.riyal {
  display: inline-block; width: .68em; height: .76em;
  vertical-align: -.02em; flex: none;
}
.price { display: flex; align-items: baseline; gap: 9px; }
.price b { font-size: 32px; font-weight: 900; color: var(--deep); line-height: 1; }
.price .riyal { color: var(--deep); font-size: 27px; }
.price .price--tba { font-size: 20px; font-weight: 700; color: var(--ink-faint); }
/* Seats counter */
.seats { margin-top: 18px; }
.seats__bar {
  height: 6px; border-radius: 99px; overflow: hidden;
  background: var(--background-secondary);
}
.seats__bar span {
  display: block; height: 100%; border-radius: 99px;
  background: var(--secondary);
  transition: width .8s var(--ease);
}
.seats__text { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.seats__text b { color: var(--ink); font-weight: 800; }
.seats.is-low .seats__bar span { background: var(--primary); }
.seats.is-low .seats__text,
.seats.is-low .seats__text b { color: var(--primary); }
.seats.is-full .seats__bar span { background: var(--ink-faint); }

/* ---------- Credit ---------- */
.madeby {
  /* Same tint as the sessions block above, so it reads as the page settling
     rather than a new band. */
  background: var(--background-secondary);
  padding: 4px 0 46px;
  text-align: center;
}
.madeby__in { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; }

/* A hairline that draws itself open as the foot of the page arrives. One
   quiet gesture beats a looping animation begging to be noticed. */
.madeby__rule {
  width: 46px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: center;
  transition: transform 1s var(--ease) .15s;
}
.reveal.is-in .madeby__rule { transform: scaleX(1); }

.madeby__line {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-faint);
}
.madeby__brand {
  position: relative;
  font-size: 15.5px; font-weight: 800; letter-spacing: .005em;
  color: var(--deep);
  transition: color .3s var(--ease);
}
.madeby__brand::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px;
  height: 1.5px; background: var(--primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform .4s var(--ease);
}
.madeby__brand:hover { color: var(--primary); }
.madeby__brand:hover::after { transform: scaleX(1); }

/* ---------- Session pills ---------- */
.switchwrap { text-align: center; margin-bottom: clamp(24px, 3.5vw, 34px); }
.switch {
  display: inline-flex; gap: 5px; padding: 5px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.switch__pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.switch__pill:hover { color: var(--ink); }
.switch__pill.is-on { background: var(--primary); color: #fff; }
.switch__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }

/* Brief ring when a pill jumps you to its card. */
@keyframes flash {
  0%   { box-shadow: 0 0 0 0 rgba(234, 92, 47, .34); }
  100% { box-shadow: 0 0 0 16px rgba(234, 92, 47, 0); }
}
.card.is-flash { animation: flash 1s var(--ease); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__veil { position: absolute; inset: 0; background: rgba(48, 36, 42, .5); backdrop-filter: blur(5px); animation: veil .35s ease; }
@keyframes veil { from { opacity: 0; } }
.modal__box {
  position: absolute; inset-inline: 0; bottom: 0;
  margin-inline: auto;
  width: min(440px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-lg);
  animation: sheet .45s var(--ease);
}
@keyframes sheet { from { transform: translateY(28px); opacity: 0; } }
.modal__box--center { text-align: center; }
.modal__x {
  position: absolute; inset-inline-end: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-soft); background: var(--background);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-soft);
  transition: background-color .25s, color .25s;
}
.modal__x svg { width: 15px; height: 15px; }
.modal__x:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.modal__title { font-size: clamp(19px, 2.1vw, 22px); font-weight: 800; line-height: 1.45; }
.modal__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.modal__price b { font-size: 25px; font-weight: 900; color: var(--deep); }
.modal__price .riyal { color: var(--deep); font-size: 21px; }
.modal__box--center .modal__price { justify-content: center; }
.modal__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); text-align: center; line-height: 1.7; }

@media (min-width: 640px) {
  .modal__box { top: 50%; bottom: auto; transform: translateY(-50%); border-radius: var(--radius-lg); }
  @keyframes sheet { from { transform: translateY(calc(-50% + 22px)); opacity: 0; } }
}

/* ---------- Form ---------- */
#bookForm { margin-top: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  background: var(--background);
  border: 1.5px solid var(--line-soft); border-radius: var(--radius-sm);
  font-size: 16px; /* ≥16px stops iOS Safari zooming the page on focus */
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 62px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--paper);
  box-shadow: 0 0 0 4px rgba(234, 92, 47, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #B9A78E; }
.field.has-error input, .field.has-error select { border-color: #C0392B; }

.phone { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.phone select { padding-inline: 12px; }

.err { display: none; margin-top: 6px; font-size: 13px; color: #C0392B; }
.field.has-error .err { display: block; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-faint); }
.hint--wa { color: var(--secondary); font-weight: 500; }
.hint[hidden] { display: none; }
.formError {
  margin: 0 0 14px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, .1); color: #A93226; font-size: 14.5px; font-weight: 500;
}
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Result ---------- */
.result__icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center;
}
.result__icon svg { width: 26px; height: 26px; }
.result__icon--ok { background: rgba(122, 155, 106, .18); color: #4E7A3C; }
.result__icon--no { background: rgba(192, 57, 43, .12); color: #C0392B; }
.result__help { margin: 16px 0 4px; font-size: 14px; color: var(--ink-soft); }
.result__help a { color: var(--primary); font-weight: 600; }
.btn--wa { --btn-bg: #25D366; --btn-fg: #fff; --btn-bd: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, .26); }
.btn--wa:not(:disabled):hover { box-shadow: 0 12px 28px rgba(37, 211, 102, .34); }
.btn__ico { width: 19px; height: 19px; flex: none; }
.modal--result .btn + .btn { margin-top: 10px; }

.result__ref { margin: 16px 0 24px; font-size: 15px; color: var(--ink-soft); }
.result__ref b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 16px; color: var(--ink); }
.modal--result .lede { margin-top: 12px; }
.modal--result .btn { margin-top: 24px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; inset-inline: 20px; bottom: 22px; z-index: 300;
  margin-inline: auto; width: max-content; max-width: calc(100% - 40px);
  padding: 12px 20px; border-radius: 999px;
  background: var(--deep); color: #FBF1DF;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

.notice { padding: 18px 22px; border-radius: var(--radius); text-align: center; font-weight: 500; }
.notice--warn { background: rgba(218, 162, 107, .2); color: var(--deep); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-stagger] span { opacity: 0; transform: translateY(.35em); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-stagger].is-in span { opacity: 1; transform: none; }
[data-stagger].is-in span:nth-child(2) { transition-delay: .12s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Copy leads, the book follows as a supporting image — that keeps the
     logo and the title above the fold instead of pushing them down. */
  .hero__in   { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__art  { order: 2; min-height: 0; margin-top: 34px; }
  .brandmark  { justify-content: center; }
  .hero__lede { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .section__head { text-align: center; }
}

@media (max-width: 560px) {
  /* The sessions block is the last thing on the page, so its bottom
     padding is trailing whitespace rather than spacing between sections. */
  .section--tint { padding-bottom: 34px; }

  .switch { width: 100%; }
  .switch__pill { flex: 1; justify-content: center; padding: 11px 10px; font-size: 14px; }

  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }

  .hero { padding-top: 30px; }
  .brandmark { gap: 12px; margin-bottom: 24px; }
  .brandmark img { width: 52px; height: 52px; border-radius: 12px; }
  .brandmark b { font-size: 16px; }
  .brandmark i { font-size: 12px; }

  .hero__title  { letter-spacing: -.02em; }
  .hero__author { margin-bottom: 18px; }
  .hero__actions { margin-top: 26px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { gap: 12px; margin-top: 32px; }
  .hero__meta b { font-size: 19px; }
  .hero__meta span { font-size: 11px; }
  .hero__meta-sep { height: 28px; }

  .book  { width: min(200px, 58vw); }
  .sprig { width: 54px; height: 54px; }

  .cards { gap: 18px; }
  .card  { border-radius: var(--radius); padding: 20px 18px; }
  .card__num { font-size: 26px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .card__foot .btn { width: 100%; }
  .price { justify-content: center; }
  .price b { font-size: 28px; }

  /* Stacked label-over-value reads better than a cramped two-column row. */
  .fact { flex-direction: column; gap: 2px; padding: 11px 0; }
  .fact dt { flex: none; font-size: 12.5px; }
  .fact dd { font-size: 14px; }

  .agenda__list li { font-size: 13.5px; padding-inline-start: 24px; }
  .includes li { font-size: 12.5px; padding: 6px 11px; }

  .pull { font-size: 17px; padding-inline-end: 14px; }

  .modal__box { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .modal__x { inset-inline-end: 14px; top: 14px; width: 34px; height: 34px; }
  .field { margin-bottom: 14px; }
  .phone { grid-template-columns: 104px 1fr; gap: 8px; }
  .phone select { padding-inline: 8px; font-size: 15px; }
}

@media (max-width: 380px) {
  .hero__meta-sep { display: none; }
  .hero__meta { gap: 18px; }
  .brandmark { flex-direction: column; gap: 10px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal, [data-stagger] span { opacity: 1; transform: none; }
}
@media print { .modal, .toast, .preloader { display: none !important; } }
