/**
 * Axiant Resources IPO — main.css
 * Design tokens + base resets + layout utilities + components + responsive.
 */

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {

  /* ---- Brand colours ---- */
  --color-navy:           #0D2340;
  --color-navy-dark:      #0A1B33;
  --color-gold:           #D4AF37;
  --color-gold-dark:      #B08D1E;

  /* ---- Surfaces ---- */
  --color-bg-white:       #ffffff;
  --color-bg-off-white:   #F7F8FA;
  --color-bg-dark:        #0D2340;

  /* ---- Text ---- */
  --color-text-default:   #2A2F36;
  --color-text-heading:   #0D2340;
  --color-text-hero:      #ffffff;
  --color-text-light:     #C3CBD8;
  --color-text-body:      #4A535E;
  --color-text-card:      #5A636E;
  --color-text-dimmer:    #5A636E;   /* alias used in highlight body */
  --color-text-muted:     #7E8DA3;
  --color-text-mid:       #9AA3AE;
  --color-text-footer:    #9AA8BC;
  --color-footer:         #9AA8BC;   /* alias */
  --color-text-footer-body: #8492A6;
  --color-text-disclaimer: #73819A;
  --color-text-copyright: #5E6D85;
  --color-nav-link:       #E8ECF3;

  /* ---- Borders ---- */
  --color-border:         #E7EAEE;
  --color-border-light:   #EAECEF;
  --color-border-gold:    rgba(212, 175, 55, 0.25);
  --color-border-gold-hero: rgba(212, 175, 55, 0.2);
  --color-border-gold-badge: rgba(212, 175, 55, 0.4);
  --color-border-footer:  rgba(255, 255, 255, 0.08);
  --color-divider:        #E5E8EC;

  /* ---- Typography ---- */
  --font-display:     'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 700; /* was 800 — all heavy text now 700 */

  --fs-h1:            50px;
  --fs-h1-md:         40px;
  --fs-h1-sm:         31px;
  --fs-h2:            34px;
  --fs-h2-cta:        33px;
  --fs-h3:            18px;
  --fs-body-hero:     18px;
  --fs-body:          16px;
  --fs-body-cta:      16.5px;
  --fs-card:          14.5px;
  --fs-stat-large:    28px;   /* About stats — key metric numbers */
  --fs-stat-snapshot: 28px;   /* Offer snapshot — key metric numbers (match About) */
  --fs-stat-card:     23px;
  --fs-label:         12.5px;
  --fs-label-sm:      11.5px;
  --fs-label-xs:      11px;
  --fs-nav:           13.5px;
  --fs-cta-primary:   15px;
  --fs-cta-lg:        16px;
  --fs-meta:          12px;
  --fs-meta-cta:      12.5px;

  --lh-tight:        1.06;
  --lh-heading:      1.16;
  --lh-heading-alt:  1.18;
  --lh-card-title:   1.28;
  --lh-body:         1.6;
  --lh-body-relaxed: 1.68;
  --lh-card:         1.6;
  --lh-disclaimer:   1.7;

  --ls-tight:         -0.01em;
  --ls-wide:          0.02em;
  --ls-label:         0.04em;
  --ls-stat-label:    0.1em;
  --ls-section-label: 0.14em;
  --ls-badge:         0.08em;
  --ls-badge-text:    0.14em;
  --ls-card-num:      0.05em;

  /* ---- Spacing ---- */
  --container-max:    1440px;
  --container-px:     32px;
  --container-px-md:  24px;
  --container-px-sm:  18px;

  --section-py:        84px;
  --section-py-hero:   80px;
  --section-pt-hero:   72px;
  --section-py-cta:    72px;
  --section-pt-footer: 100px;
  --section-pb-footer: 40px;

  --gap-cards:  24px;
  --gap-hero:   56px;
  --gap-about:  60px;
  --section-heading-mb: 52px;

  /* ---- Radius ---- */
  --radius-sm:    4px;
  --radius-md:    5px;
  --radius-card:  8px;
  --radius-stats: 7px;
  --radius-pill:  100px;
  --radius-badge: 3px;

  /* ---- Shadows ---- */
  --shadow-hero-image:  0 30px 70px rgba(0, 0, 0, 0.40);
  --shadow-about-image: 0 18px 44px rgba(13, 35, 64, 0.12);
  --shadow-stats-card:  0 16px 40px rgba(0, 0, 0, 0.28);
  --shadow-card-hover:  0 18px 40px rgba(13, 35, 64, 0.10);
  --shadow-cta:         0  8px 24px rgba(212, 175, 55, 0.22);
  --shadow-cta-lg:      0 10px 30px rgba(212, 175, 55, 0.25);

  --transition-card:  box-shadow 0.2s ease, transform 0.2s ease;
  --z-header: 50;

  /* Sticky-nav height (logo 56 + 14px padding top/bottom). */
  --header-h: 84px;
  /* Nav background — 91% opaque navy so a hint of the hero image shows through. */
  --color-header-bg: color-mix(in srgb, var(--color-navy) 91%, transparent);

  --gradient-hero:     radial-gradient(120% 90% at 80% 0%, rgba(212,175,55,0.10) 0%, rgba(13,35,64,0) 55%);
  --gradient-cta-band: radial-gradient(100% 140% at 50% 0%, rgba(212,175,55,0.12) 0%, rgba(13,35,64,0) 60%);
  /* Hero legibility overlay: navy holds to ~25%, then fades out to the right. */
  --gradient-hero-overlay: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-navy) 86%, transparent) 0%,
    color-mix(in srgb, var(--color-navy) 81%, transparent) 25%,
    color-mix(in srgb, var(--color-navy) 40%, transparent) 62%,
    color-mix(in srgb, var(--color-navy) 0%, transparent) 100%
  );
}


/* =====================================================================
   BASE RESETS
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--color-text-default);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  z-index: 9999; width: auto; height: auto;
  clip: auto; padding: 10px 16px;
  background: var(--color-gold); color: var(--color-navy);
  border-radius: var(--radius-sm); font-weight: var(--fw-bold);
}
.anchor-only { display: block; height: 0; }


/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.axiant-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-label--center { justify-content: center; margin-bottom: 16px; }
.section-label__rule { width: 30px; height: 1px; background: var(--color-gold); display: block; flex: none; }
.section-label__text {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-section-label);
  color: var(--color-gold-dark);
  text-transform: uppercase;
}


/* =====================================================================
   CTA BUTTONS
   ===================================================================== */
.axiant-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: var(--fw-semibold); /* all button labels are 600 */
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.axiant-cta:hover { transform: translateY(-1px); }

.axiant-cta--hero {
  font-size: var(--fs-cta-primary);
  padding: 12px 21px;
  box-shadow: var(--shadow-cta);
}
.axiant-cta--band {
  font-size: var(--fs-cta-lg);
  padding: 13px 26px;
  border-radius: 6px;
  box-shadow: var(--shadow-cta-lg);
  gap: 12px;
}
.axiant-cta--nav {
  font-size: var(--fs-cta-primary); /* match the larger (hero) button label */
  letter-spacing: var(--ls-label);
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  gap: 8px;
  white-space: nowrap;
}

/* Secondary (outline) — text + outline both use the hero body colour (currentColor) */
.axiant-cta--secondary {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid currentColor;
  font-size: var(--fs-cta-primary);
  font-weight: var(--fw-semibold);
  padding: 11px 20px;
  box-shadow: none;
}
.axiant-cta--secondary:hover { background: rgba(255, 255, 255, 0.10); color: var(--color-text-hero); }
/* Outline button at the small (nav) size — match the solid nav button's metrics. */
.axiant-cta--nav.axiant-cta--secondary { padding: 7px 14px; }
/* Dark tone — navy outline/text for light backgrounds (e.g. the About section). */
.axiant-cta--secondary-dark { color: var(--color-navy); }
.axiant-cta--secondary-dark:hover { background: rgba(13, 35, 64, 0.06); color: var(--color-navy); }
/* The header can't fit logo + both buttons on narrow screens — drop the
   presentation button there (it remains available in the About section). */
@media (max-width: 740px) {
  .site-header .axiant-cta--secondary { display: none; }
}



/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-gold);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28); }

.site-header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 56px; width: auto; transition: height 0.2s ease; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: var(--fs-nav);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  color: var(--color-nav-link);
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--color-gold); }


/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 84vh, 840px);
  background: var(--color-navy);
  /* Pull the section up under the sticky nav so the image runs behind it. */
  margin-top: calc(-1 * var(--header-h));
}
/* Layer 1: full-bleed image (<picture> wrapper + <img>) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Layer 2: gradient overlay (multiply blend for a richer, image-aware darken) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-hero-overlay);
  mix-blend-mode: multiply;
}
/* Layer 3: content */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
}
.hero__text { max-width: 620px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border-gold-badge);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 14px;
  margin-bottom: 26px;
}
.hero__badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: var(--fs-label-xs);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-badge);
  padding: 3px 8px;
  border-radius: var(--radius-badge);
}
.hero__badge-text {
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-badge-text);
  color: var(--color-gold);
  text-transform: uppercase;
}

.hero__heading {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-hero);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__body {
  font-size: var(--fs-body-hero);
  line-height: var(--lh-body);
  color: var(--color-text-light);
  max-width: 530px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__disclaimer {
  font-size: var(--fs-meta);
  color: var(--color-text-light);
  margin-top: 22px;
  letter-spacing: var(--ls-wide);
}


/* =====================================================================
   OFFER SNAPSHOT
   ===================================================================== */
.snapshot { background: var(--color-bg-off-white); border-bottom: 1px solid var(--color-border-light); }
.snapshot__grid { display: grid; grid-template-columns: repeat(var(--snapshot-cols, 4), 1fr); }
.snapshot__cell { padding: 30px 24px; border-right: 1px solid var(--color-border-light); }
.snapshot__cell:last-child { border-right: 0; }
.snapshot__label {
  font-size: var(--fs-label-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-stat-label);
  color: var(--color-text-mid);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.snapshot__value {
  font-size: var(--fs-stat-snapshot);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  line-height: 1.08;
}
.snapshot__note { font-size: 12.5px; color: var(--color-text-card); margin-top: 5px; }


/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--color-bg-white); }
.about__grid {
  padding-top: 100px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: var(--gap-about);
  align-items: stretch; /* image column tracks the text column height */
}
/* Centre the copy vertically so the space above and below it is always equal,
   whatever the image height. */
.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 28px;
}
.about__image {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-about-image);
  min-height: 300px; /* floor so very short copy doesn't squash it */
}
/* Absolute fill so the image takes the grid-cell (text) height, then crops. */
.about__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__heading {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  margin-bottom: 20px;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.about__body {
  font-size: var(--fs-body);
  line-height: var(--lh-body-relaxed);
  color: var(--color-text-body);
}
.about__body p { margin: 0 0 18px; }
.about__body p:last-child { margin-bottom: 0; }
.about__stats { margin-top: 30px; display: flex; gap: 40px; flex-wrap: wrap; }
.about__cta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.about__stat-value {
  font-size: var(--fs-stat-large);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  line-height: 1;
}
.about__stat-label { font-size: 13px; color: var(--color-text-card); margin-top: 6px; letter-spacing: var(--ls-wide); }


/* =====================================================================
   HIGHLIGHTS
   ===================================================================== */
.highlights { background: var(--color-bg-off-white); }
.highlights .axiant-container { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.highlights__head { text-align: center; max-width: 640px; margin: 0 auto var(--section-heading-mb); }
.highlights__heading {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading-alt);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.highlights__grid { display: grid; grid-template-columns: repeat(var(--hl-cols, 4), 1fr); gap: var(--gap-cards); }

.highlight-card {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-card);
  padding: 30px 26px 32px;
  background: var(--color-bg-white);
  transition: var(--transition-card);
}
.highlight-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.highlight-card__number {
  font-size: 13px;
  font-weight: var(--fw-extrabold);
  color: var(--color-gold);
  letter-spacing: var(--ls-card-num);
  margin-bottom: 16px;
}
.highlight-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  line-height: var(--lh-card-title);
  margin-bottom: 11px;
}
.highlight-card__body {
  font-size: var(--fs-card);
  line-height: var(--lh-card);
  color: var(--color-text-dimmer);
}


/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { background: var(--color-bg-white); border-top: 1px solid var(--color-border-light); }
.cta-band__inner { padding-top: var(--section-py-cta); padding-bottom: var(--section-py-cta); text-align: center; }
.cta-band__logo { height: 84px; width: auto; margin: 0 auto 26px; }
.cta-band__heading {
  font-size: var(--fs-h2-cta);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  line-height: var(--lh-heading-alt);
  margin-bottom: 16px;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.cta-band__body {
  font-size: var(--fs-body-cta);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  max-width: 940px;
  margin: 0 auto 32px;
}
.cta-band .axiant-cta { margin-inline: auto; }
.cta-band__meta { font-size: var(--fs-meta-cta); color: var(--color-text-muted); margin-top: 20px; }


/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--color-navy-dark); color: var(--color-footer); }
.site-footer .axiant-container { padding-top: var(--section-pt-footer); padding-bottom: var(--section-pb-footer); }
.site-footer__top {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--color-border-footer);
}
/* Logo with the company/address block beside it (not stacked). */
.site-footer__company { display: flex; align-items: flex-start; gap: 48px; }
.site-footer__logo { height: 56px; width: auto; flex: none; }
.site-footer__company-info { font-size: 13px; line-height: 1.6; color: var(--color-text-footer-body); }
.site-footer__company-info p { margin: 0; }
.site-footer__company-name { font-weight: var(--fw-semibold); color: var(--color-text-footer); }
.site-footer__company-address { margin-top: 8px; }
.site-footer__company-meta { margin-top: 8px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
}
.site-footer__copyright { font-size: var(--fs-meta); color: var(--color-text-copyright); }


/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .axiant-container { padding-inline: var(--container-px-md); }

  /* Snapshot strip runs full-bleed so the cell dividers reach the screen edge
     (cell content keeps its own padding). */
  .snapshot .axiant-container { padding-inline: 0; }

  .nav-links { display: none; }

  /* Fill the viewport on load (svh = stable small-viewport height so nothing
     hides behind browser UI). Pad the top by the nav height and let the
     flex align-items:center sit the content midway between nav and bottom. */
  .hero { min-height: 100vh; min-height: 100svh; padding-top: var(--header-h); }
  .hero__inner { padding-top: 0; padding-bottom: 0; }
  .hero__heading { font-size: var(--fs-h1-md); }
  /* Narrower viewports: strengthen the overlay so text stays legible over the image. */
  .hero__overlay {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--color-navy) 92%, transparent) 0%,
      color-mix(in srgb, var(--color-navy) 70%, transparent) 60%,
      color-mix(in srgb, var(--color-navy) 45%, transparent) 100%
    );
  }

  /* Stacked layout: flexbox column (WebKit reorders flex items reliably;
     grid `order` is flaky in Safari). Text first, image below. */
  /* Shrink the logo (and so the sticky nav) once scrolled, freeing screen space. */
  .site-header.is-scrolled .site-header__logo img { height: 45px; }

  .about__grid { display: flex; flex-direction: column; gap: 40px; }
  .about__content { padding-block: 0; order: 1; }
  .about__image { order: 2; min-height: 0; aspect-ratio: 4 / 3; }

  .highlights__grid { grid-template-columns: repeat(2, 1fr); }

  .site-footer__company { flex-direction: column; gap: 22px; }
}

@media (max-width: 600px) {
  .axiant-container { padding-inline: var(--container-px-sm); }

  .hero__heading { font-size: 34px; line-height: 1.1; }
  .hero__body { font-size: 16px; line-height: 27px; }
  /* Scale the eyebrow badge right down on phones (was reading too large). */
  .hero__badge { padding: 5px 12px 5px 9px; gap: 8px; margin-bottom: 18px; }
  .hero__badge-tag { font-size: 10.5px; padding: 2px 6px; }
  .hero__badge-text { font-size: 11px; letter-spacing: 0.08em; }
  /* Stack the CTAs, left-aligned, at their natural width (never full-bleed). */
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .axiant-cta { width: auto; }
  /* Near-flat overlay on phones for full legibility across the width. */
  .hero__overlay { background: color-mix(in srgb, var(--color-navy) 80%, transparent); }

  .snapshot__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .snapshot__cell { padding: 24px; } /* even margins on all sides */
  .snapshot__cell:nth-child(2n) { border-right: 0; }
  .snapshot__cell:nth-child(-n+2) { border-bottom: 1px solid var(--color-border-light); }

  /* Consistent 80px module rhythm on phones: About top/bottom, footer top,
     and below the address block (above the divider) all match. */
  .about__grid { padding-top: 80px; padding-bottom: 80px; }
  .site-footer .axiant-container { padding-top: 80px; }
  .site-footer__top { padding-bottom: 80px; }
  .about__heading { font-size: 27px; }
  .about__stats { gap: 22px; }
  .about__stat-label { font-size: 12px; margin-top: 4px; }

  .highlights .axiant-container { padding-top: 56px; padding-bottom: 56px; }
  .highlights__grid { grid-template-columns: 1fr !important; }
  .highlights__heading { font-size: 27px; }

  .cta-band__inner { padding-top: 56px; padding-bottom: 56px; }
  .cta-band__heading { font-size: 27px; }

  .site-footer__bottom { flex-direction: column; gap: 18px; }
}

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


/* =====================================================================
   PROSPECTUS DISCLAIMER GATE (modal)
   Scroll-to-read → "I agree" → download unlocks. Faded/locked until met.
   ===================================================================== */
body.pdisc-open { overflow: hidden; }

.pdisc {
  position: fixed;
  inset: 0;
  /* Track the VISIBLE viewport: with the mobile browser address bar shown,
     100vh overflows behind it — dvh resizes as the bar shows/hides. */
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pdisc[hidden] { display: none; }

.pdisc__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 51, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.pdisc__panel {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  color: var(--color-navy);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15), 0 24px 70px rgba(0, 0, 0, 0.35);
}
.pdisc__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--color-text-card);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.pdisc__close:hover { color: var(--color-navy); }

.pdisc__title { font-size: 20px; line-height: 27px; font-weight: var(--fw-extrabold); color: var(--color-navy); margin-bottom: 12px; }
.pdisc__intro { font-size: 13px; line-height: 19px; font-weight: var(--fw-semibold); color: var(--color-navy); }
.pdisc__intro p { margin: 0; }
.pdisc__intro p + p { margin-top: 10px; }

.pdisc__scroll {
  background: rgba(74, 83, 94, 0.05);
  color: var(--color-text-body);
  border-radius: var(--radius-card);
  padding: 18px;
  overflow-y: auto;
  overflow-anchor: none; /* don't let the browser restore scroll on re-open */
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 140px;
}
/* Suppress the UA focus ring from the programmatic focus on open;
   keep a visible outline for keyboard navigation. */
.pdisc__scroll:focus { outline: none; }
.pdisc__scroll:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.pdisc__body { font-size: 13px; line-height: 19px; }
.pdisc__body h3 { font-size: 16px; line-height: 24px; color: var(--color-navy); font-weight: var(--fw-semibold); margin: 20px 0 8px; }
.pdisc__body h3:first-child { margin-top: 0; }
.pdisc__body p { margin: 0 0 12px; }
.pdisc__body ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.pdisc__body li { margin-bottom: 6px; }

.pdisc__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
/* Locked until scrolled to the end of the notice. */
.pdisc__agree {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-cta-primary); /* match the modal button label (.axiant-cta--nav) */
  font-weight: var(--fw-semibold);
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  transition: opacity 0.25s ease;
}
.pdisc.is-scrolled-end .pdisc__agree { opacity: 1; pointer-events: auto; cursor: pointer; }
.pdisc__checkbox { width: 18px; height: 18px; accent-color: var(--color-gold); cursor: pointer; }

/* Locked until scrolled AND agreed. */
.pdisc__download { opacity: 0.4; pointer-events: none; transition: opacity 0.25s ease; }
.pdisc.is-agreed .pdisc__download { opacity: 1; pointer-events: auto; }

.pdisc__hint { width: 100%; text-align: right; font-size: 12px; color: var(--color-text-card); margin: -12px 0 0; }
.pdisc.is-scrolled-end .pdisc__hint { display: none; }

@media (max-width: 600px) {
  .pdisc { padding: 12px; }
  .pdisc__panel { padding: 22px; gap: 18px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  /* "I agree" + button share one row. */
  .pdisc__foot { justify-content: center; gap: 20px; flex-wrap: nowrap; }
  .pdisc__hint { text-align: center; }
}
