/* =========================================================
   NUTRAVEX Soft Body — Arabic RTL COD landing (Mauritania)
   Hand-written CSS. No framework, no runtime compiler.
   Feminine blush / rose-gold theme.
   ========================================================= */

@import url('assets/vendor/fonts/tajawal.css');

/* ---------------------------------------------------------
   1. Tokens
   --------------------------------------------------------- */
:root {
  /* Surfaces — warm cream, not stark white */
  --bg: #FFF7F9;
  --bg-2: #FDEDF1;
  --surface: #FFFFFF;
  --surface-2: #FCEAF0;
  --line: #F3D6DF;
  --line-soft: #F8E6EC;

  /* Text */
  --text: #3A2530;
  --text-dim: #7A5A66;
  --text-mute: #A98A95;

  /* Brand — the label's magenta/rose */
  --rose: #D63384;
  --rose-2: #E85CA8;
  --rose-deep: #B62271;
  --rose-soft: #FBDCEA;
  --rose-glow: rgba(214, 51, 132, 0.28);

  /* CTA — warm rose-gold gradient */
  --cta: #E24B93;
  --cta-2: #F072AE;
  --cta-press: #C43179;

  --gold: #E7A33E;
  --ok: #2FB98A;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --shadow: 0 10px 30px rgba(214, 51, 132, 0.12);
  --shadow-lg: 0 24px 60px rgba(182, 34, 113, 0.18);

  --maxw: 480px;

  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------------------------------------------------------
   2. Reset
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------
   3. App shell
   --------------------------------------------------------- */
.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(182, 34, 113, 0.12);
}

@media (min-width: 520px) {
  body {
    background:
      radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 92, 168, 0.12), transparent 70%),
      #F7E7ED;
  }
}

.wrap {
  padding-inline: 18px;
}

section {
  padding-block: 52px;
  position: relative;
}

/* ---------------------------------------------------------
   4. Typography
   --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
}

h1 {
  font-size: clamp(28px, 8.5vw, 37px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(23px, 6.5vw, 29px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.lead {
  color: var(--text-dim);
  font-size: 15.5px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head .lead {
  max-width: 36ch;
  margin-inline: auto;
}

.hl {
  color: var(--rose);
}

/* ---------------------------------------------------------
   5. Announcement
   --------------------------------------------------------- */
.announce {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose), var(--rose-deep));
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  position: relative;
  z-index: 40;
}

/* ---------------------------------------------------------
   6. Navbar
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  background: rgba(255, 247, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 247, 249, 0.96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--rose-2), var(--rose));
  color: #fff;
  box-shadow: 0 4px 12px var(--rose-glow);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  margin-top: -3px;
}

.nav-cta {
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s;
}

.nav-cta:active {
  transform: scale(0.96);
  background: var(--cta-press);
}

/* ---------------------------------------------------------
   7. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 16px 22px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 16.5px;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cta-2), var(--cta));
  color: #fff;
  box-shadow: 0 10px 26px rgba(226, 75, 147, 0.4);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* Shine sweep */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -60%; }
  55%, 100% { left: 140%; }
}

.btn-primary:active {
  transform: scale(0.975);
}

/* Pulse ring via box-shadow (survives overflow:hidden) */
.pulse {
  animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 10px 26px rgba(226, 75, 147, 0.4), 0 0 0 0 rgba(226, 75, 147, 0.5); }
  70% { box-shadow: 0 10px 26px rgba(226, 75, 147, 0.4), 0 0 0 14px rgba(226, 75, 147, 0); }
  100% { box-shadow: 0 10px 26px rgba(226, 75, 147, 0.4), 0 0 0 0 rgba(226, 75, 147, 0); }
}

/* Gentle bob */
.cta-move {
  animation: ctaBob 2.6s ease-in-out infinite;
}

.pulse.cta-move {
  animation: pulseRing 2.2s ease-out infinite, ctaBob 2.6s ease-in-out infinite;
}

@keyframes ctaBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cta-move:active {
  filter: brightness(0.94);
}

/* ---------------------------------------------------------
   8. Hero
   --------------------------------------------------------- */
/* The order form sits immediately below, so the hero is kept deliberately
   short — its job is to say what the product is and what it costs, then get
   out of the way so the form lands inside the first screen. */
.hero {
  padding-top: 18px;
  padding-bottom: 22px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  width: 440px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 92, 168, 0.18), transparent 65%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 15.5px;
  margin-top: 12px;
  margin-inline: auto;
  max-width: 38ch;
}

.hero-img {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--surface);
}

.hero-img img {
  width: 100%;
}

/* Product photo framed on a soft rose stage */
.product-stage {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(232, 92, 168, 0.16), transparent 70%),
    linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

/* Capped so the pack shot proves the product without eating the fold. */
.product-stage img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Price */
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.price-now {
  font-size: 42px;
  font-weight: 800;
  color: var(--rose);
  line-height: 1;
}

.price-cur {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dim);
}

.price-note {
  font-size: 13.5px;
  color: var(--text-mute);
  margin-top: 6px;
}

.hero-actions {
  margin-top: 20px;
}

/* ---------------------------------------------------------
   9. Trust strip
   --------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.trust-item {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.4;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 5px;
  color: var(--rose);
  display: block;
}

/* ---------------------------------------------------------
   10. Cards
   --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Ingredient list — the honest hero asset */
.ingredients {
  display: grid;
  gap: 10px;
}

.ing {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.ing:hover {
  transform: translateY(-2px);
  border-color: var(--rose-2);
}

.ing-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.ing-ico svg {
  width: 22px;
  height: 22px;
}

.ing-body {
  flex: 1;
  min-width: 0;
}

.ing-name {
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ing-dose {
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 1px 8px;
  border-radius: 999px;
}

.ing-desc {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  margin-top: 2px;
}

/* ---------------------------------------------------------
   11. Benefits
   --------------------------------------------------------- */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.benefit:hover {
  transform: translateY(-3px);
}

.benefit-ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--rose-2), var(--rose));
  color: #fff;
  box-shadow: 0 6px 14px var(--rose-glow);
}

.benefit-ico svg {
  width: 23px;
  height: 23px;
}

.benefit h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.benefit p {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.55;
}

/* ---------------------------------------------------------
   12. Media band (lifestyle image + caption)
   --------------------------------------------------------- */
.band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.band img {
  width: 100%;
  display: block;
}

.band-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(58, 37, 48, 0.82), transparent);
  color: #fff;
}

.band-cap h3 {
  font-size: 18px;
  font-weight: 800;
}

.band-cap p {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 2px;
}

/* ---------------------------------------------------------
   13. How to use
   --------------------------------------------------------- */
.steps {
  display: grid;
  gap: 11px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.step h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.step p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   14. Order form
   --------------------------------------------------------- */
.order {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 92, 168, 0.14), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  /* Follows the hero directly — no need for a full section gap on top. */
  padding-top: 18px;
}

.order .section-head {
  margin-bottom: 12px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 15px;
  box-shadow: var(--shadow-lg);
  /* Sits high on the page, so keep it compact and centred. */
  max-width: 420px;
  margin-inline: auto;
}

.packs {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
}

.pack {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pack input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack-dot {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid var(--text-mute);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}

.pack-dot::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
  transform: scale(0);
  transition: transform 0.2s;
}

.pack-body {
  flex: 1;
  min-width: 0;
}

.pack-title {
  display: block;
  font-weight: 800;
  font-size: 15px;
}

.pack-sub {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
}

.pack-price {
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  color: var(--rose);
}

.pack-save {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  text-align: left;
}

.pack.is-on {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.pack.is-on .pack-dot {
  border-color: var(--rose);
}

.pack.is-on .pack-dot::after {
  transform: scale(1);
}

.pack-tag {
  position: absolute;
  top: -9px;
  inset-inline-start: 13px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}

.field {
  margin-bottom: 11px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-mute);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(226, 75, 147, 0.13);
}

.field textarea {
  resize: vertical;
  min-height: 60px;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #E5484D;
}

.err {
  display: none;
  font-size: 12px;
  color: #E5484D;
  margin-top: 5px;
  font-weight: 600;
}

.field.invalid .err {
  display: block;
}

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 13px 0;
  border-radius: var(--radius);
  background: var(--rose-soft);
  border: 1px dashed var(--rose-2);
}

.total-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 700;
  line-height: 1.35;
}

.total-label em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-mute);
}

.total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--rose-deep);
  white-space: nowrap;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-note svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.done {
  text-align: center;
  padding: 26px 16px;
}

.done-ico {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 185, 138, 0.12);
  border: 2px solid var(--ok);
  color: var(--ok);
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.done-ico svg {
  width: 32px;
  height: 32px;
}

@keyframes popIn {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.done h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.done p {
  color: var(--text-dim);
  font-size: 14.5px;
}

.hidden {
  display: none !important;
}

/* ---------------------------------------------------------
   15. Warnings (from the real label)
   --------------------------------------------------------- */
.warn {
  background: #FFF9F0;
  border: 1px solid #F1E1C4;
  border-radius: var(--radius);
  padding: 16px 17px;
}

.warn-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14.5px;
  color: #9A6B12;
  margin-bottom: 8px;
}

.warn-head svg {
  width: 18px;
  height: 18px;
}

.warn ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.warn li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.warn li::before {
  content: '';
  position: absolute;
  inset-inline-start: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------------------------------------------------------
   16. FAQ
   --------------------------------------------------------- */
.faq {
  display: grid;
  gap: 9px;
}

.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.qa summary {
  padding: 14px 15px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--rose);
  border-block-end: 2px solid var(--rose);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.qa[open] summary::after {
  transform: rotate(-135deg);
}

.qa-body {
  padding: 0 15px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   17. Footer
   --------------------------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 30px 18px calc(84px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.footer .brand {
  justify-content: center;
  margin-bottom: 10px;
}

.footer p {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
}

.footer .disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-mute);
  max-width: 40ch;
  margin-inline: auto;
}

/* ---------------------------------------------------------
   18. Sticky dock
   --------------------------------------------------------- */
.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 35;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock.up {
  transform: translateY(0);
}

.dock-price {
  flex-shrink: 0;
  line-height: 1.2;
}

.dock-price b {
  font-size: 19px;
  font-weight: 800;
  color: var(--rose);
}

.dock-price span {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-mute);
}

.dock .btn {
  padding: 13px 18px;
  font-size: 15px;
}

/* ---------------------------------------------------------
   19. Scroll reveal
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.seen {
  opacity: 1;
  transform: none;
}

.reveal-group.seen > * {
  animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.reveal-group.seen > *:nth-child(1) { animation-delay: 0.04s; }
.reveal-group.seen > *:nth-child(2) { animation-delay: 0.10s; }
.reveal-group.seen > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-group.seen > *:nth-child(4) { animation-delay: 0.22s; }
.reveal-group.seen > *:nth-child(5) { animation-delay: 0.28s; }
.reveal-group.seen > *:nth-child(6) { animation-delay: 0.34s; }
.reveal-group.seen > *:nth-child(7) { animation-delay: 0.40s; }
.reveal-group.seen > *:nth-child(8) { animation-delay: 0.46s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
