/* Page-specific styling for the Crypto IRA Parent Hub page only. Relies on
   design-tokens.css (tokens + universal atoms) and crypto-ira-shared.css (video-card,
   cta-band) — both must be enqueued first. Rebuilt 2026-08-25 from a new Figma frame
   (866:18969, "Crypto IRA Overview Page - Design - Desktop - 3", file
   5S7hrSIjknlmP4u8FGRMbY) — see docs/roadmap.md and docs/history/crypto-ira-parent-hub.md
   for what changed and why. All classes carry the crypto-ira- prefix; see
   crypto-ira-shared.css for why. */

/* Hero: dark trading-platform photo background (faded top/bottom via gradient overlays,
   not the shared flat navy/glow default), two link-cards routing to the two children,
   and a stats row. No mobile frame was provided for this revision (see figma-handoff-
   guidelines.md) — responsive rules below are built by best judgment, reusing this
   family's established stacking patterns, not from a real mobile mockup. */
/* 172deg #002F5F -> #002244 behind the hero artwork (Harshal, QA 10/15). */
.crypto-ira-hero.crypto-ira-hub-hero {
  background: linear-gradient(172deg, #002F5F 0%, #002244 100%);
}

.crypto-ira-hub-hero .crypto-ira-hero__overlay {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* This selector's specificity (two classes) beats crypto-ira-shared.css's own
   max-width:992px mobile-nav-clearance rule (padding-top:120px, one class) regardless
   of load order, silently re-breaking that clearance on this page — same bug class as
   the 2026-08-03 production regression on this exact selector. Reassert it here. */
@media (max-width: 992px) {
  .crypto-ira-hub-hero .crypto-ira-hero__overlay { padding-top: 120px; }
}

/* Artwork sits at the bottom of the hero on desktop and mobile (Harshal, round 4, 2026-11-11),
   rather than covering it. */
.crypto-ira-hub-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Hero artwork (Harshal, QA 10/15) replaces the trading-platform photo: transparent wave art over
   the section's 172deg gradient, at most 1440px wide and centred, with the gradient running on
   either side beyond that. The two black fade overlays and the 0.8 opacity were there to darken
   the photo; the new art carries its own fades, so they came out with it. Re-exported by Harshal
   2026-11-11: 2000px desktop (the 2x source, 1440 derived from it) and an 804px mobile file. */
.crypto-ira-hub-hero__bg picture {
  display: block;
  width: 100%;
  max-width: 1440px;
}

.crypto-ira-hub-hero__bg img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile art at most 402px wide (Harshal, round 4): the 804px file at 2x. */
@media (max-width: 640px) {
  .crypto-ira-hub-hero__bg picture { max-width: 402px; }
}

/* Above 1440 the cover crop leaves hard vertical edges where the capped artwork meets the gradient
   (seen at 1920 on staging, 2026-10-19). Fade 160px at each side into it (Jonathan chose this over
   lifting the cap). Not applied at 1440 and below, where the artwork reaches the viewport edges. */
@media (min-width: 1441px) {
  .crypto-ira-hub-hero__bg picture {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
  }
}

.crypto-ira-hub-hero .crypto-ira-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  text-align: center;
}

.crypto-ira-hub-hero .crypto-ira-hero__title {
  font-size: 48px;
  line-height: 56px;
}

/* "Your Choice." starts its own line (Harshal QA, 2026-09-02). display:block on the
   <strong> that already wraps that phrase, rather than a max-width: the break point is
   then fixed by the markup instead of depending on font metrics, so it survives webfont
   swap and the 32px mobile size below without drifting to a different word. */
.crypto-ira-hub-hero .crypto-ira-hero__title strong {
  font-weight: 800;
  display: block;
}

.crypto-ira-hub-hero .crypto-ira-hero__subhead {
  font-size: 20px;
  line-height: 30px;
  color: #FFFFFF;
  max-width: 640px;
}

/* Round 4 (Harshal, 2026-11-11): the two cards' container is at most 900px. */
.crypto-ira-hub-hero__cards {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 32px auto 0;
}

.crypto-ira-hub-hero__card {
  position: relative;
  overflow: hidden;
  flex: 1 1 0;
  /* Right padding = 8px arrow inset + 40px arrow + 8px gap, so the arrow keeps 8px clear of the
     text beside it (Harshal round 4: arrow margin-left 8px, margin-bottom 8px). */
  padding: 20px 56px 20px 130px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* #B5EBFF at 50/255 alpha (Harshal, round 4, 2026-11-11: #b5ebff50). Supersedes the solid
     #B5EBFF of QA 10/15 (Jonathan, 2026-10-19). Background blur 4 is his "standard background
     blur" value. */
  border: 1px solid #B5EBFF50;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, rgba(0, 90, 172, 0.25) 0%, rgba(0, 30, 61, 0.25) 100%);
  box-shadow: 0 4px 16px rgba(47, 47, 47, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* The border holds its resting colour on hover, so the lift is the only hover cue (Jonathan,
   2026-10-19). */
.crypto-ira-hub-hero__card:hover {
  transform: translateY(-2px);
}

/* Card geometry re-matched to Figma 1096:544 (Harshal, QA 10/15): graphic offsets and the chart's
   0.4 opacity, a #3B7CCB divider 72px tall at y:31, a 12px badge-to-title gap, a 276px title,
   and the arrow 8px from the bottom (round 4 moved it from 24px to 8px from the right).
   Border: see the card rule below.
   Decorative graphic bleeding off the card's left edge, clipped by the card's own
   overflow:hidden. Card 1's asset (radar-graphic) already bakes in its own radial-
   gradient wash; card 2 layers a separate radial-gradient (--chart modifier, matching
   the Figma fill exactly) behind its line-art image since that asset has no wash of
   its own. */
.crypto-ira-hub-hero__card-graphic {
  position: absolute;
  z-index: 0;
  top: -8px;
  left: -102px;
  width: 192px;
  height: 150px;
  pointer-events: none;
}

.crypto-ira-hub-hero__card-graphic--chart {
  display: block;
  top: -20px;
  left: -110px;
  width: 221px;
  height: 177px;
  opacity: 0.4;
  background: radial-gradient(circle at 60% 50%, rgba(59, 124, 203, 0.15) 0%, rgba(59, 124, 203, 0) 70%);
}

.crypto-ira-hub-hero__card-graphic--chart img {
  width: 100%;
  height: 100%;
}

.crypto-ira-hub-hero__card-divider {
  position: absolute;
  z-index: 0;
  top: 31px;
  left: 94px;
  width: 1px;
  height: 72px;
  background: #3B7CCB;
  pointer-events: none;
}

.crypto-ira-hub-hero__card-arrow {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.crypto-ira-hub-hero__card-arrow img {
  width: 24px;
  height: 24px;
}

.crypto-ira-hub-hero__card-badge {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2083em;
  text-transform: uppercase;
  color: #67ACFF;
  margin: 0 0 12px;
}

.crypto-ira-hub-hero__card-title {
  position: relative;
  z-index: 1;
  max-width: 276px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #FFFFFF;
  margin: 0;
}

.crypto-ira-hub-hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* 32px/48px per Harshal QA 2026-09-02, breaking after "Why Crypto". Same technique as
   the h1 above: the second line is its own block-level <span> in the markup, because
   font-size alone can't produce the break here — this element is flex: 0 0 auto, so it
   sizes to its content and never wraps on its own. */
.crypto-ira-hub-hero__stats-label {
  flex: 0 0 auto;
  font-size: 32px;
  line-height: 48px;
  font-weight: 300;
  color: #FFFFFF;
  text-align: left;
}

.crypto-ira-hub-hero__stats-label span {
  display: block;
}

.crypto-ira-hub-hero__stat {
  flex: 1 1 0;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.crypto-ira-hub-hero__stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.crypto-ira-hub-hero__stat-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.crypto-ira-hub-hero__stat-desc {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.crypto-ira-hub-hero__stat-logo {
  height: 24px;
  width: auto;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .crypto-ira-hub-hero__cards { flex-direction: column; }
  .crypto-ira-hub-hero__stats { flex-direction: column; align-items: stretch; gap: 24px; }
  .crypto-ira-hub-hero__stat { border-left: none; padding-left: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .crypto-ira-hub-hero__stats-label { border-top: none; padding-top: 0; }
}

/* Mobile hero title size now comes from the family-wide mobile type scale in
   crypto-ira-shared.css (Harshal, QA Phase 2, 2026-10-12); the 32px/36px that sat here is gone. */
@media (max-width: 640px) {
  .crypto-ira-hub-hero__card { padding: 20px 56px 20px 24px; }
  .crypto-ira-hub-hero__card-graphic,
  .crypto-ira-hub-hero__card-divider { display: none; }
}

/* Accent color: this page's mockup uses blue (#3B7CCB) throughout — eyebrows, buttons,
   video play button — instead of the shared family's orange. Scoped as page-only
   overrides, so Algorithmic's orange scheme is untouched (this file only loads on this
   page). */
.crypto-ira-eyebrow {
  color: #3B7CCB;
}

/* Eyebrows on dark backgrounds take #7CB0EF (Harshal, QA Phase 2, 2026-10-12): #3B7CCB on the
   dark hero is 3.1 to 3.9:1 contrast, under the 4.5:1 that 12px text needs. Video Overview and
   Security & Custody moved from #67ACFF to match (Harshal, 2026-10-13), at every width. */
.crypto-ira-hub-hero .crypto-ira-eyebrow {
  color: #7CB0EF;
}

.crypto-ira-btn-primary,
.crypto-ira-btn-secondary {
  border-color: #3B7CCB;
}

.crypto-ira-btn-primary {
  background: #3B7CCB;
}

.crypto-ira-btn-primary:hover {
  background: var(--color-bg-white);
  color: #3B7CCB;
  border-color: #3B7CCB;
}

.crypto-ira-btn-secondary {
  color: #3B7CCB;
}

.crypto-ira-btn-secondary:hover {
  background: #3B7CCB;
  color: var(--color-bg-white);
  border-color: #3B7CCB;
}

/* CTA band button sits on a white section background here (unlike Self-Guided's navy
   CTA band), so the shared ghost-hover-on-navy override doesn't apply — the base
   .crypto-ira-btn-primary:hover rule above is correct as-is. */

/* Was rendering on the default white section background — matches the family's
   video-overview/security navy-gradient tone (see Security & Custody below) but the
   background/text-color overrides that make that actually happen were never added. */
/* Angle corrected 165deg -> 136deg to the exact gradient Harshal specified (QA
   2026-09-02). Security & Custody below now matches it (Harshal, 2026-10-13). */
.crypto-ira-video-overview {
  background: linear-gradient(136deg, #002F5F 0%, #002244 100%);
}

.crypto-ira-video-overview .crypto-ira-eyebrow {
  color: #7CB0EF;
}

.crypto-ira-video-overview h2.crypto-ira-section-heading {
  color: #FFFFFF;
}

.crypto-ira-video-overview .crypto-ira-section-body {
  color: rgba(255, 255, 255, 0.8);
}

/* The .crypto-ira-video-card__play blue-accent override that sat here was removed 2026-09-09
   with the play button itself (Harshal QA) — the whole card is the click target now. */

.crypto-ira-hub-video-overview__cta {
  text-align: center;
  margin-top: 32px;
}

/* "Two Approaches" comparison cards — simplified from the previous revision: no card
   media/logo image in this mockup, just badge + heading + subtitle + body + checklist. */
.crypto-ira-approach-cards {
  display: flex;
  gap: 24px;
  margin-top: 56px;
}

.crypto-ira-approach-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.crypto-ira-approach-card__badge {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1071em;
  text-transform: uppercase;
  color: #3B7CCB;
  margin: 0 0 16px;
}

.crypto-ira-approach-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 33.6px;
  color: var(--color-navy);
  margin: 0;
}

.crypto-ira-approach-card__subtitle {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--color-meta);
  margin: 4px 0 0;
}

.crypto-ira-approach-card__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-title);
  margin: 16px 0 24px;
}

/* Divider sits above the bullets rather than below them (Harshal QA, 2026-09-02). The
   body copy above already carries a 24px bottom margin, so padding-top matches it and
   the rule ends up evenly spaced on both sides. */
.crypto-ira-approach-card .crypto-ira-checklist {
  flex: 1 1 auto;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.crypto-ira-approach-card .crypto-ira-checklist__item img {
  width: 16px;
  height: 16px;
}

.crypto-ira-approach-card .crypto-ira-checklist__item span {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-title);
}

.crypto-ira-approach-card__cta {
  display: block;
  width: 100%;
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: 0.0714em;
  text-align: center;
}

@media (max-width: 1024px) {
  .crypto-ira-approach-cards { flex-direction: column; }
}

/* "What Is a Crypto IRA" — F6F6F6 band, 3x2 stat-card grid (value + label, divider,
   title, description) replacing the previous numbered-feature strip. */
.crypto-ira-what-is {
  background: #F6F6F6;
}

.crypto-ira-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.crypto-ira-stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stat above label, stacked, rather than the two sharing one row (Harshal QA,
   2026-09-02). Stacking also gives the stat the card's full width, which is what lets
   the longer values ("SOC 2 Type II", "2 Crypto IRAs") hold one line without a
   white-space override. The extra bottom margin is his "more spacing between the
   stat/label group and the body copy" — 12px here plus the card's own 12px gap. */
.crypto-ira-stat-card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.crypto-ira-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #3B7CCB;
}

/* All-caps per Harshal QA 2026-09-02. text-align:right is gone with the side-by-side
   row it existed for — the label now sits under the stat, left-aligned with it. */
.crypto-ira-stat-card__value-label {
  font-size: 14px;
  color: var(--color-meta);
  text-transform: uppercase;
  letter-spacing: 0.0714em;
}

.crypto-ira-stat-card__divider {
  display: block;
  height: 1px;
  background: #EEEEEE;
}

.crypto-ira-stat-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 8px 0 0;
}

.crypto-ira-stat-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-meta);
  margin: 0;
}

@media (max-width: 1024px) {
  .crypto-ira-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .crypto-ira-stat-grid { grid-template-columns: 1fr; }
}

/* "Security & Custody" — new section, full navy background, 3-col bordered grid with
   an icon badge, matching the family's video-overview/security navy-gradient tone. */
.crypto-ira-security-custody {
  background: linear-gradient(136deg, #002F5F 0%, #002244 100%);
}

.crypto-ira-security-custody .crypto-ira-container {
  max-width: 880px;
  text-align: center;
}

.crypto-ira-security-custody .crypto-ira-eyebrow {
  color: #7CB0EF;
}

.crypto-ira-security-custody h2.crypto-ira-section-heading {
  color: #FFFFFF;
}

.crypto-ira-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--container-width);
  margin: 48px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crypto-ira-security-card {
  padding: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crypto-ira-security-card:last-child {
  border-right: none;
}

.crypto-ira-security-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: #3B7CCB;
  border: 1px solid rgba(59, 124, 203, 0.2);
  margin-bottom: 24px;
}

.crypto-ira-security-card__icon img {
  width: 24px;
  height: 24px;
}

.crypto-ira-security-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.crypto-ira-security-card__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

@media (max-width: 1024px) {
  .crypto-ira-security-grid { grid-template-columns: 1fr; border-top: none; }
  .crypto-ira-security-card { border-right: none; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .crypto-ira-security-card:first-child { border-top: none; }
}

/* CTA band — left-aligned content column + a photo filling the rest of the row, same
   structural pattern as the previous revision, now with an eyebrow above the heading. */
.crypto-ira-hub-cta-band__row {
  display: flex;
  align-items: center;
  gap: 64px;
  text-align: left;
}

.crypto-ira-hub-cta-band__content {
  flex: 1 1 480px;
}

.crypto-ira-eyebrow.crypto-ira-hub-cta-band__eyebrow {
  text-align: left;
}

.crypto-ira-hub-cta-band__content .crypto-ira-section-heading,
.crypto-ira-hub-cta-band__content .crypto-ira-section-body {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* White band with dark copy (Harshal, QA 10/15), over the shared navy cta-band colours. */
.crypto-ira-cta-band.crypto-ira-hub-cta-band {
  background: #FFFFFF;
}

.crypto-ira-eyebrow.crypto-ira-hub-cta-band__eyebrow {
  color: #3B7CCB;
}

.crypto-ira-hub-cta-band__content .crypto-ira-section-heading {
  color: #002F5F;
}

.crypto-ira-hub-cta-band__content .crypto-ira-section-body {
  color: #2C2D31;
}

.crypto-ira-hub-cta-band__media {
  flex: 1 1 480px;
  align-self: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.crypto-ira-hub-cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .crypto-ira-hub-cta-band__row { flex-direction: column; gap: 32px; }
  .crypto-ira-hub-cta-band__content { flex: 1 1 auto; }
  .crypto-ira-hub-cta-band__media { flex: 1 1 auto; width: 100%; min-height: 240px; order: -1; }
}
