/* ============================================================
   Delegyn — marketing site styles
   Brand: nurse-led competency validation for IDD agencies
   ============================================================ */

:root {
  /* Brand palette (from build brief) */
  --purple:        #534AB7;
  --purple-light:  #7F77DD;
  --indigo:        #26215C;
  --indigo-2:      #221C52;
  --indigo-3:      #2E2868;
  --teal:          #27B488;
  --teal-deep:     #1D9E75;   /* accent / decorative (icons) — not for small text on light */
  --teal-ink:      #0F7351;   /* AA-safe teal for small text labels on white/lavender */
  --lavender:      #EEEDFE;
  --ink:           #2C2C2A;
  --surface:       #F1EFE8;
  --white:         #FFFFFF;

  /* Derived */
  --ink-soft:      #56555f;
  --line:          #e4e2f3;
  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1120px;
  --shadow-sm:     0 1px 2px rgba(38,33,92,.06), 0 6px 18px rgba(38,33,92,.06);
  --shadow-md:     0 10px 30px rgba(38,33,92,.12);
  --shadow-lg:     0 24px 60px rgba(20,16,48,.30);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------- Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; color: var(--indigo); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--purple); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --btn-bg: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: 0 8px 20px rgba(83,74,183,.32); }
.btn--primary:hover { background: #4840a6; }

.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.8); }

.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand__icon { border-radius: 9px; }
.brand__word { font-size: 1.3rem; color: var(--indigo); letter-spacing: -.02em; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--indigo); font-weight: 550; font-size: .98rem; }
.nav__links a:not(.btn):hover { color: var(--purple); text-decoration: none; }
.nav__cta { color: #fff; }
.nav__cta:hover { color: #fff; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
}
.nav__toggle span { width: 24px; height: 2.5px; background: var(--indigo); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease; margin: 0 auto; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------- Shared section bits ----------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tint { background: var(--lavender); }
.section--dark .step:not(:last-child)::after { border-color: rgba(255,255,255,.7); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head--light h2 { color: #fff; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--purple); margin: 0 0 .9rem;
}
.eyebrow--teal { color: var(--teal-ink); }
.section--dark .eyebrow--teal { color: #4fdcae; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--indigo-3) 0%, var(--indigo) 55%, var(--indigo-2) 100%);
  color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__copy { max-width: 600px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #8fe9c8; }
.hero__sub { font-size: 1.2rem; color: #d6d2f0; max-width: 540px; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }

.hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__points li { display: inline-flex; align-items: center; gap: 9px; color: #e6e3f7; font-weight: 550; font-size: .98rem; }
.tick {
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); flex: none;
  position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px;
  border: solid var(--indigo); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Pulse rings background */
.pulse-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: grid; place-items: center; }
.pulse-bg svg { width: min(720px, 92vw); height: auto; }
.hero .pulse-bg { justify-items: end; }
.hero .pulse-bg svg { transform: translateX(18%); opacity: .9; }
.pulse-bg--soft { place-items: center; opacity: .8; }

/* Phone frame + screenshot placeholder */
.hero__visual { display: grid; place-items: center; position: relative; z-index: 2; }
.phone {
  position: relative; width: 252px;
  background: #0e0b24; border-radius: 34px; padding: 10px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.10);
}
.phone--hero { width: 270px; }
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 20px; background: #0e0b24; border-radius: 0 0 14px 14px; z-index: 3;
}
/* The image sets its own height (full screenshot, no crop); the frame wraps it + bezel. */
.phone__shot {
  width: 100%; border-radius: 26px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.phone__shot img { width: 100%; height: auto; display: block; }
/* Placeholders (unused now real screenshots are in) keep a fixed shape. */
.phone__shot--placeholder { aspect-ratio: 1080 / 2340; height: auto; }
.phone__shot--placeholder {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(127,119,221,.30), transparent 60%),
    linear-gradient(160deg, #322c6e, #241f56);
  color: #cfcaf0; padding: 18px; gap: 12px;
}
.phone__icon { opacity: .92; }
.phone__label { font-size: .9rem; font-weight: 600; line-height: 1.4; color: #d9d5f5; }

/* iPad / tablet frame (hero). Uniform bezel, no notch; the screenshot already
   includes the iOS status bar. */
.tablet {
  position: relative; width: min(390px, 82vw);
  background: #0e0b24; border-radius: 30px; padding: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.10);
}
/* The image sets its own height (full screenshot, no crop); the frame wraps it + bezel. */
.tablet__shot { width: 100%; border-radius: 18px; overflow: hidden; display: block; }
.tablet__shot img { width: 100%; height: auto; display: block; }

/* Floating "Verified" seal badge over the iPad's top-right corner */
.tablet__badge {
  position: absolute; top: -22px; right: -28px; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 16px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #2fc795, #1f9e76);
  color: #fff; font-weight: 700; font-size: 1.18rem; letter-spacing: .2px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 16px 32px rgba(31,158,118,.5), 0 3px 8px rgba(0,0,0,.25);
  transform: rotate(7deg);   /* resting tilt (used when reduced-motion disables the pop) */
  animation: badgePop .5s cubic-bezier(.2,.8,.2,1) .35s both;
}
.tablet__badge svg { width: 26px; height: 26px; flex: none; }
@keyframes badgePop {
  from { opacity: 0; transform: translateY(-12px) scale(.8) rotate(7deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tablet__badge { animation: none; }
}

/* ----------------------------- Problem ----------------------------- */
.problem { text-align: center; }
.problem .lead { margin: 0 auto; }

/* ----------------------------- How it works ----------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; box-shadow: var(--shadow-sm); position: relative;
  border-top: 3px solid var(--teal);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Progression arrows between cards (desktop) */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; right: -22px; z-index: 2;
  width: 13px; height: 13px;
  border-top: 2.5px solid var(--purple-light); border-right: 2.5px solid var(--purple-light);
  transform: rotate(45deg);
}
.step__top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.step__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(39,180,136,.12); color: var(--teal-deep);
}
.step__icon svg { width: 28px; height: 28px; }
.step:hover .step__icon { background: rgba(39,180,136,.2); }
.step__num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(150deg, var(--purple), var(--purple-light));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(83,74,183,.30);
}
.step p { margin: 0; color: var(--ink-soft); }

/* ----------------------------- Why (feature grid) ----------------------------- */
.grid { display: grid; gap: 26px; }
.grid--features { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(39,180,136,.12); color: var(--teal-deep); margin-bottom: 18px;
}
.card p { margin: 0; color: var(--ink-soft); }

/* ----------------------------- Dark sections ----------------------------- */
.section--dark {
  background: linear-gradient(165deg, var(--indigo-3) 0%, var(--indigo) 60%, var(--indigo-2) 100%);
  color: #e9e6f8; overflow: hidden;
}
.section--dark h2 { color: #fff; }
.section--dark p { color: #cdc8ea; }
.section--dark .container { position: relative; z-index: 2; }

/* ----------------------------- Screenshots showcase ----------------------------- */
.shots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; align-items: start;
}
.shot { margin: 0; display: grid; justify-items: center; gap: 16px; }
.shot .phone { width: 100%; max-width: 300px; }

/* Screenshot carousel */
.carousel { position: relative; }
.carousel__track {
  list-style: none; margin: 0; padding: 8px 4px 20px;
  display: flex; gap: 30px; align-items: center; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto; width: min(270px, 74vw); scroll-snap-align: center;
}
.carousel__item .shot .phone { max-width: 100%; }
/* ===== Exports — angled 3D product shot (copy left, tilted PDF right) ===== */
.exportfx {
  position: relative;
  overflow: hidden; /* clip the tilted/oversized doc so it can never cause horizontal page scroll */
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background: linear-gradient(160deg, #ffffff 0%, var(--lavender) 100%);
}

.exportfx__inner {
  display: grid;
  /* minmax(0, …) is critical: it lets the columns shrink so the intrinsic
     1236px image can never blow the grid out and force page scroll. */
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

/* ---- Copy column ---- */
.exportfx__copy {
  max-width: 46ch;
}
.exportfx__copy .eyebrow--teal {
  color: var(--teal-ink); /* teal eyebrow on a light surface */
}
.exportfx__copy h2 {
  margin: 0.5rem 0 0.9rem;
  color: var(--indigo);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.exportfx__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

/* ---- Document stage (3D context) ---- */
.exportfx__stage {
  position: relative;
  perspective: 1200px;
  perspective-origin: 70% 40%;
  display: flex;
  justify-content: center;
  min-width: 0; /* belt-and-suspenders against grid blow-out */
}

/* soft lavender depth glow behind the sheet */
.exportfx__stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 78%;
  height: 84%;
  top: 8%;
  right: 2%;
  background: radial-gradient(closest-side,
    rgba(127, 119, 221, 0.28),
    rgba(127, 119, 221, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
}

/* ---- The document ----
   Visible by default (no opacity:0 base) so it survives a JS failure.
   The dimmed/flatter "entrance" pose is applied only while [data-rise]
   has not yet received .is-visible — see the scripting-gated rule below. */
.exportfx__doc {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  transform-style: preserve-3d;
  /* resting (premium) tilt */
  transform: perspective(1200px) rotateY(-8deg) rotateZ(-2deg) scale(1);
  opacity: 1;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s ease;
  will-change: transform, opacity;
}

.exportfx__doc img {
  display: block;
  width: 100%;
  height: auto; /* preserve the 1236x1600 intrinsic ratio — never squash */
  border-radius: calc(var(--radius) * 0.55);
  background: #fff; /* in case the source PNG has transparent margins */
  box-shadow:
    0 2px 6px rgba(20, 16, 48, 0.10),     /* tight contact shadow */
    var(--shadow-lg),                      /* brand elevation */
    -28px 34px 80px rgba(38, 33, 92, 0.22); /* directional depth toward the tilt */
}

/* Entrance "from" pose — only when JS is available (so no-JS keeps the doc visible).
   The IntersectionObserver removes [data-rise]'s pre-reveal state by adding
   .is-visible, letting the doc settle into its resting transform above. */
@media (scripting: enabled) {
  .exportfx__doc[data-rise]:not(.is-visible) {
    transform: perspective(1200px) translateX(48px) rotateY(-16deg) rotateZ(-1deg) scale(0.97);
    opacity: 0;
  }
}

/* Explicit no-JS safety: force the resting, fully-visible state. */
@media (scripting: none) {
  .exportfx__doc {
    transform: perspective(1200px) rotateY(-8deg) rotateZ(-2deg);
    opacity: 1;
  }
}

/* ===== Responsive: stack at <=760px ===== */
@media (max-width: 760px) {
  .exportfx {
    padding: clamp(3rem, 12vw, 4.5rem) 0;
  }
  .exportfx__inner {
    grid-template-columns: 1fr; /* single column */
    gap: 2.25rem;
  }
  .exportfx__copy {
    max-width: none;
  }
  .exportfx__stage {
    perspective: none; /* flatten the 3D context so corners can't clip */
  }
  .exportfx__stage::before {
    width: 90%;
    height: 70%;
    top: 14%;
    right: 5%;
  }
  .exportfx__doc {
    width: min(100%, 24rem);
    margin: 0 auto;
    /* near-flat resting tilt so nothing clips or reads crooked */
    transform: rotate(1deg) scale(1);
  }
  .exportfx__doc img {
    box-shadow: 0 16px 40px rgba(20, 16, 48, 0.22); /* simpler, centered shadow */
  }
  @media (scripting: enabled) {
    .exportfx__doc[data-rise]:not(.is-visible) {
      transform: translateY(28px) rotate(0.5deg) scale(0.98);
      opacity: 0;
    }
  }
  @media (scripting: none) {
    .exportfx__doc {
      transform: rotate(1deg);
      opacity: 1;
    }
  }
}

/* ===== Reduced motion: no entrance animation; a static, slight tilt is fine ===== */
@media (prefers-reduced-motion: reduce) {
  .exportfx__doc,
  .exportfx__doc[data-rise]:not(.is-visible),
  .exportfx__doc.is-visible {
    transition: none;
    opacity: 1;
    transform: perspective(1200px) rotateY(-6deg) rotateZ(-1.5deg); /* static, no motion */
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .exportfx__doc,
  .exportfx__doc[data-rise]:not(.is-visible),
  .exportfx__doc.is-visible {
    transform: rotate(1deg); /* flat-ish, static, no motion */
  }
}

.carousel__btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  background: #fff; color: var(--indigo); box-shadow: var(--shadow-md);
  transition: transform .15s ease, background .15s ease;
}
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn:hover { background: var(--lavender); }
.carousel__btn:active { transform: translateY(-50%) scale(.94); }
.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__dots { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.30); transition: background .2s ease, transform .2s ease;
}
.carousel__dot[aria-selected="true"] { background: var(--teal); transform: scale(1.25); }
@media (max-width: 760px) {
  .carousel__btn { display: none; }   /* swipe on touch */
}
.shot figcaption { color: #d7d2f0; font-weight: 600; font-size: .98rem; text-align: center; max-width: 220px; }

/* ----------------------------- About / founder ----------------------------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.about__media { display: grid; justify-items: center; gap: 14px; }
.founder-photo {
  width: 240px; aspect-ratio: 1 / 1; border-radius: 22px;
  background: linear-gradient(160deg, var(--purple-light), var(--purple));
  display: grid; place-items: center; color: rgba(255,255,255,.92); font-weight: 650;
  box-shadow: var(--shadow-md); border: 6px solid #fff;
}
.creds {
  margin: 0; font-weight: 700; letter-spacing: .12em; font-size: .82rem;
  text-transform: uppercase; color: var(--purple);
}
.about__copy p { color: var(--ink-soft); font-size: 1.08rem; }

/* ----------------------------- Contact ----------------------------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__lead { font-size: 1.12rem; max-width: 440px; }
.contact__email { margin: .4rem 0 0; color: #d7d2f0; }
.contact__email a { color: #8fe9c8; font-weight: 650; }
.contact__email a:hover { color: #aef2d6; }
.contact__email--muted { color: #a9a3d0; font-size: .96rem; }
.contact__email--muted a { color: #b7e9d8; }

.form {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 650; color: var(--indigo); margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfbff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(127,119,221,.25);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { margin-top: 6px; }
.form__note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* ----------------------------- Footer ----------------------------- */
.footer { background: var(--indigo-2); color: #c9c4e6; padding: 56px 0 30px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer .brand__word { color: #fff; }
.footer__tag { margin: 12px 0 0; max-width: 320px; color: #aaa4cf; font-size: .98rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer__links a { color: #c9c4e6; font-weight: 550; }
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
  font-size: .88rem; color: #948dbd;
}
.footer__legal p { margin: 0; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .grid--features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
  .about__copy { max-width: 620px; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 12px 24px 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links a { padding: 12px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { margin-top: 8px; text-align: center; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__copy { max-width: 100%; margin: 0 auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__points { justify-content: center; }
  .hero .pulse-bg { justify-items: center; }
  .hero .pulse-bg svg { transform: none; }

  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step:not(:last-child)::after { display: none; }  /* no arrows when stacked */
}

@media (max-width: 460px) {
  .shots { grid-template-columns: 1fr; justify-items: center; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
