/* ==========================================================================
   Clinistro landing page
   Brand tokens are sampled from the app theme (lib/app/theme.dart):
   seed #16A8C7 → #7FC56B, ink #1E2C35, dark gradient #0E7E96 → #4E9E4E,
   stadium-shaped buttons (radius 999), cards at 16px radius.
   ========================================================================== */

/* ---------- Font: IBM Plex Sans Arabic (OFL) — one family for AR + EN ---- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-teal: #16a8c7;
  --brand-green: #7fc56b;
  --brand-teal-deep: #0e7e96;
  --brand-green-deep: #4e9e4e;
  --brand-ink: #1e2c35;
  --brand-gradient: linear-gradient(135deg, #16a8c7 0%, #7fc56b 100%);

  --bs-body-font-family: "IBM Plex Sans Arabic", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

/* ---------- Color modes (Bootstrap 5.3) ---------------------------------- */
[data-bs-theme="light"] {
  color-scheme: light;
  --lp-bg: #eef3f5;
  --lp-bg-2: #e6eef1;
  --lp-surface: #ffffff;
  --lp-surface-2: #f6fafb;
  --lp-text: #1e2c35;
  --lp-muted: #5b6b73;
  --lp-border: #dde7ea;
  --lp-shadow: 0 10px 30px rgba(30, 44, 53, 0.08);
  --lp-shadow-lg: 0 24px 60px rgba(30, 44, 53, 0.14);
  --lp-accent: #0f7f97;
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --lp-bg: #0c0f11;
  --lp-bg-2: #101416;
  --lp-surface: #171b1e;
  --lp-surface-2: #1d2226;
  --lp-text: #e8eef0;
  --lp-muted: #9aa8ae;
  --lp-border: #272d31;
  --lp-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --lp-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --lp-accent: #45c6e4;
}

/* ---------- Base --------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3 {
  letter-spacing: 0;
}

a {
  color: var(--lp-accent);
  text-decoration: none;
}
a:hover {
  color: var(--brand-teal-deep);
}
[data-bs-theme="dark"] a:hover {
  color: #7ad9f0;
}

.text-muted-2 {
  color: var(--lp-muted) !important;
}

/* ---------- Accessibility ------------------------------------------------- */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 1100;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--lp-shadow-lg);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Never hide the browser's own focus ring on mouse clicks. */
:focus:not(:focus-visible) {
  outline: none;
}

.brand-gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons: stadium shaped, like the app ------------------------ */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-brand {
  border: 0;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 8px 22px rgba(22, 168, 199, 0.32);
}
.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  filter: saturate(1.1) brightness(1.03);
  transform: translateY(-1px);
}
[data-bs-theme="dark"] .btn-brand {
  background: linear-gradient(135deg, var(--brand-teal-deep), var(--brand-green-deep));
  box-shadow: 0 8px 22px rgba(14, 126, 150, 0.4);
}

.btn-ghost-brand {
  border: 1px solid var(--lp-border);
  color: var(--lp-text);
  background: var(--lp-surface);
}
.btn-ghost-brand:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-deep);
}

.btn-outline-brand {
  border: 1px solid var(--brand-teal);
  color: var(--brand-teal-deep);
  background: transparent;
}
.btn-outline-brand:hover {
  color: #fff;
  background: var(--brand-teal);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Navbar ------------------------------------------------------- */
/* `overflow-x: clip` is deliberate: this bar is `position: fixed`, so any
   child that outgrows the viewport would otherwise widen the whole document
   and hand the visitor a horizontal scrollbar. `clip` (unlike `hidden`) keeps
   the vertical axis visible, so the open dropdown and its shadow are intact. */
.lp-navbar {
  background: color-mix(in srgb, var(--lp-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow-x: clip;
}
.lp-navbar.is-scrolled {
  border-color: var(--lp-border);
  box-shadow: var(--lp-shadow);
}
/* The source logo isn't square — contain it in a fixed box so the navbar
   and footer stay optically aligned at any logo ratio. */
.navbar-brand img,
.lp-footer img {
  width: auto;
  height: 30px;
  object-fit: contain;
  object-position: center;
}
.navbar-brand img {
  height: 32px;
}

.lp-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}
.lp-navbar .nav-link {
  color: var(--lp-muted);
  font-weight: 500;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.lp-navbar .nav-link:hover,
.lp-navbar .nav-link.active {
  color: var(--lp-text);
  background: var(--lp-surface-2);
}
.lp-navbar .nav-link.active {
  font-weight: 600;
}
/* The navbar toggler inherits Bootstrap's padding/box-shadow; the shared
   .icon-btn circle should win so it matches the theme button beside it. */
.lp-navbar .navbar-toggler {
  padding: 0;
  box-shadow: none;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  color: var(--lp-text);
  font-size: 1.05rem;
  line-height: 1;
}
.icon-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-deep);
}
/* Language pill: "EN" and "العربية" have very different widths, so let it
   size to its text while staying visually the same height as the icon button. */
.lang-pill {
  font-weight: 600;
  font-size: 0.9rem;
  width: auto;
  min-width: 42px;
  padding: 0.4rem 0.9rem;
}

/* On 320-360px screens the brand word plus the three 42px controls leave no
   slack at all, so trim the controls a little to guarantee the bar fits. */
@media (max-width: 359.98px) {
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  .lang-pill {
    min-width: 38px;
    padding: 0.4rem 0.65rem;
  }
  .lp-navbar .navbar-brand {
    font-size: 1.1rem;
  }
  .lp-navbar .navbar-brand img {
    height: 28px;
  }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(22, 168, 199, 0.18), transparent 60%),
    radial-gradient(900px 480px at 95% 10%, rgba(127, 197, 107, 0.16), transparent 60%),
    var(--lp-bg);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.15;
}
.hero .lead {
  color: var(--lp-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}
.hero-badges .badge {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55em 0.95em;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  color: var(--lp-text);
  border-radius: 999px;
}
.hero-badges .badge i {
  color: var(--brand-teal);
  margin-inline-end: 0.35rem;
}

/* Browser mockup around the desktop screenshot */
.browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: var(--lp-surface-2);
  border-bottom: 1px solid var(--lp-border);
}
.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lp-border);
}
.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar .url {
  flex: 1;
  margin-inline-start: 0.6rem;
  font-size: 0.76rem;
  color: var(--lp-muted);
  background: var(--lp-bg);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Cards -------------------------------------------------------- */
.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow);
  height: 100%;
  padding: 1.4rem 1.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lp-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-teal) 45%, var(--lp-border));
  box-shadow: var(--lp-shadow-lg);
}
.lp-card .lp-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--brand-teal-deep);
  background: color-mix(in srgb, var(--brand-teal) 16%, transparent);
  margin-bottom: 0.9rem;
}
.lp-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}
.lp-card p {
  color: var(--lp-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Section headings -------------------------------------------- */
.section {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  /* Keep the anchored heading clear of the fixed navbar. */
  scroll-margin-top: 76px;
}
.section-alt {
  background: var(--lp-bg-2);
}

/* The hosted offering sits on a soft brand tint so it reads as a distinct
   service tier without resorting to a loud full-bleed gradient. */
.section-cloud {
  background:
    radial-gradient(900px 420px at 12% 0%,
      color-mix(in srgb, var(--brand-teal) 10%, transparent), transparent 62%),
    radial-gradient(760px 400px at 92% 100%,
      color-mix(in srgb, var(--brand-green) 12%, transparent), transparent 62%),
    var(--lp-bg-2);
  border-block: 1px solid var(--lp-border);
}
.section-cloud .lp-card.is-cloud {
  border-color: color-mix(in srgb, var(--brand-teal) 32%, var(--lp-border));
}
.section-cloud .lp-card.is-cloud:hover {
  border-color: color-mix(in srgb, var(--brand-teal) 60%, var(--lp-border));
}
.section-cloud .lp-icon {
  background: color-mix(in srgb, var(--brand-teal) 20%, transparent);
}

.cloud-cta {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--lp-shadow);
}
.cloud-cta h2 { color: var(--lp-text); }
.cloud-cta p { color: var(--lp-muted); }
.cloud-cta .btn { flex: 0 0 auto; }

/* Slim cross-link at the end of the features grid: points at the hosted
   offering without competing with the section's own cards. */
.cloud-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 68ch;
  margin-inline: auto;
  padding: 0.95rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 28%, var(--lp-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-teal) 7%, transparent);
  color: var(--lp-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.cloud-strip i {
  color: var(--brand-teal);
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.cloud-strip a {
  color: var(--lp-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cloud-strip a:hover { color: var(--brand-teal-deep); }

/* A pill can only stay a pill while it fits; below that, fall back to a
   block so the link never gets clipped. */
@media (max-width: 575.98px) {
  .cloud-strip { border-radius: 18px; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal-deep);
  background: color-mix(in srgb, var(--brand-teal) 14%, transparent);
  border-radius: 999px;
  padding: 0.4em 0.95em;
  margin-bottom: 0.9rem;
}
[data-bs-theme="dark"] .eyebrow {
  color: #7ad9f0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.section-sub {
  color: var(--lp-muted);
  max-width: 62ch;
}

/* ---------- Stats strip -------------------------------------------------- */
.stat {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  height: 100%;
}
.stat .num {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat .lbl {
  color: var(--lp-muted);
  font-size: 0.88rem;
}

/* ---------- Phone screenshots -------------------------------------------
   All ten captures are exactly 1080x2400, so the frame is pinned to that
   aspect ratio: every tile is then pixel-identical in size and the grid
   aligns on both axes regardless of caption length. */
.phone {
  position: relative;
  display: block;
  aspect-ratio: 1080 / 2400;
  border-radius: 30px;
  padding: 8px;
  background: #0f1214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--lp-shadow-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(30, 44, 53, 0.22);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 23px;
  background: #fff;
}

/* Captions are bottom-aligned and given room for two lines, so a long
   label never pushes its tile out of line with the rest of the row. */
.shot-caption {
  margin: 0.8rem 0 0;
  min-height: 2.9em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
  color: var(--lp-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Ten screenshots. A plain grid (rather than 12-column rows) lets the last
   row fill completely at every breakpoint instead of leaving a ragged gap. */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  align-items: start;
}
.shot-grid-item {
  width: 100%;
  max-width: 250px;
  min-width: 0;
  justify-self: center;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .shot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Below this width five columns squeeze the captions too hard. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .shot-grid { gap: 1.5rem 0.9rem; }
  .shot-caption { font-size: 0.85rem; }
}

.shot-link {
  display: flex;
  flex-direction: column;
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  color: inherit;
  text-align: inherit;
  border-radius: 30px;
}
.shot-link:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 6px;
  border-radius: 30px;
}

/* Modal with the full-size screenshot */
.modal-content {
  background: var(--lp-surface);
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
}
.modal-backdrop.show {
  opacity: 0.7;
}
/* Tall phone screenshots must never overflow the dialog. */
.modal-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  display: block;
  margin-inline: auto;
}

/* ---------- Download cards ---------------------------------------------- */
.dl-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--lp-shadow);
}
.dl-card .os {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Equal icon gutters across cards so headings line up down the column. */
  min-height: 2.1rem;
}
.dl-card .os i {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brand-teal);
  flex: 0 0 auto;
}
.dl-card h3 {
  /* min-width: 0 lets a long platform name shrink inside the .os flex row
     instead of forcing the card wider. */
  min-width: 0;
  font-size: 1.1rem;
  margin: 0;
}
.dl-card .meta {
  color: var(--lp-muted);
  font-size: 0.86rem;
}
.dl-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Tick list in the dark-mode section. */
.check-list li {
  color: var(--lp-muted);
}
.lp-check {
  color: var(--lp-accent);
  flex: 0 0 auto;
  line-height: 1.55;
}
.dl-card.is-primary {
  border-color: color-mix(in srgb, var(--brand-teal) 55%, var(--lp-border));
}

/* ---------- FAQ ---------------------------------------------------------- */
.accordion-item {
  background: var(--lp-surface);
  border-color: var(--lp-border);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--lp-border);
}
.accordion-button {
  background: transparent;
  color: var(--lp-text);
  font-weight: 600;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--brand-teal) 10%, var(--lp-surface));
  color: var(--lp-text);
}
.accordion-button::after {
  background: none;
  content: "\2b";
  font-family: "bootstrap-icons";
  font-size: 1.1rem;
  color: var(--brand-teal);
}
.accordion-button:not(.collapsed)::after {
  content: "\2d";
}
.accordion-body {
  color: var(--lp-muted);
}

/* Wide two-column rows (hero, dark-mode section).
   Bootstrap's `.g-5` sets a 3rem gutter on *both* axes, but `.container`
   only carries .75rem of inline padding. Below 576px the container is
   100% wide, so a 3rem inline gutter left the row overhanging the viewport
   by 12px per side — which is what handed mobile visitors a small
   horizontal scrollbar. `.gy-5` keeps the roomy 3rem block gap, and this
   class owns the inline gutter on its own: 1.5rem, matching the container
   exactly, and only widened to 3rem from 576px up where the container has
   the slack to absorb the overhang. */
.lp-wide-gutter {
  --bs-gutter-x: 1.5rem;
}
@media (min-width: 576px) {
  .lp-wide-gutter {
    --bs-gutter-x: 3rem;
  }
}

/* ---------- CTA band ----------------------------------------------------- */
.cta-band {
  background: var(--brand-gradient);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  box-shadow: var(--lp-shadow-lg);
  position: relative;
  overflow: hidden;
}
[data-bs-theme="dark"] .cta-band {
  background: linear-gradient(135deg, var(--brand-teal-deep), var(--brand-green-deep));
}
.cta-band h2, .cta-band p {
  color: #fff;
}
/* Both CTA buttons carry an icon, so keep them the same weight and let the
   icon inherit the text colour (Bootstrap's .btn-light doesn't set one on
   the <i>, which left it dark on hover). */
.cta-band .btn-light,
.cta-band .btn-outline-light {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-band .btn-light {
  background: #fff;
  color: var(--brand-teal-deep);
  border-color: #fff;
}
.cta-band .btn-light:hover,
.cta-band .btn-light:focus-visible {
  background: #eef7f7;
  color: var(--brand-teal-deep);
  border-color: #eef7f7;
}
.cta-band .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.cta-band .btn-outline-light:hover,
.cta-band .btn-outline-light:focus-visible {
  color: var(--brand-teal-deep);
  background: #fff;
  border-color: #fff;
}

/* ---------- Footer ------------------------------------------------------- */
.lp-footer {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-border);
  padding: 2.5rem 0 2rem;
  color: var(--lp-muted);
  font-size: 0.92rem;
}
.lp-footer a {
  color: var(--lp-muted);
}
.lp-footer a:hover {
  color: var(--brand-teal-deep);
}
.lp-footer .brand {
  color: var(--lp-text);
  font-weight: 700;
}

/* ---------- Reveal on scroll -------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Small screens ------------------------------------------------ */
@media (max-width: 575.98px) {
  .hero { padding-top: 2.25rem; }
  .btn { padding: 0.7rem 1.25rem; }
  /* Two narrow columns: pull the gap in so the phones keep their size. */
  .shot-grid { gap: 1.5rem 0.75rem; }
  .shot-caption { font-size: 0.85rem; min-height: 2.9em; }
}
