/* Hardware Wallet PH — site.css (1st-proposal redesign)
   Tokens, base, and components shared by every page. */

:root {
  --navy: #0d1969;
  --navy-deep: #09134f;
  --blue: #2866d9;
  --blue-hover: #124bb3;
  --yellow: #ffe161;
  --yellow-hover: #ffd633;
  --yellow-ink: #614f00;
  --gold: #ffb600;
  --swoosh: #fdc25c;
  --tint: #eff6ff;
  --tint-line: #dbe9ff;
  --mist: #f5f7fa;
  --line: #e2e8f0;
  --ink: #232323;
  --muted: #64748b;
  --body: #475569;
  --on-navy: #d3dcf3;
  --on-navy-dim: #c3cdea;

  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 32px);
  --section: clamp(48px, 7vw, 88px);

  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* pre-reveal translateX(36px) elements must not widen the page on mobile (iOS ignores body overflow-x) */
main {
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--navy);
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-pill);
}
.skip-link:focus {
  top: 12px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.section--mist {
  background: var(--mist);
}
.section--navy {
  background: var(--navy);
  background-image: radial-gradient(700px 400px at 10% 0, rgba(255, 182, 0, 0.16), rgba(255, 182, 0, 0) 65%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--sm {
  min-height: 48px;
  padding: 13px 20px;
  font-size: 15px;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.btn-yellow:hover {
  background: var(--yellow-hover);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background: var(--blue-hover);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-deep);
}
.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: #cbd5e1;
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--tint);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn svg {
  flex: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--blue);
  font-weight: 700;
}
.link-arrow:hover {
  text-decoration: underline;
}
.inlink {
  color: var(--blue);
  font-weight: 700;
}
.inlink:hover {
  text-decoration: underline;
}

/* ---------- Hero + header ---------- */
.hero {
  position: relative;
  background: var(--navy);
  background-image: radial-gradient(900px 520px at 85% 8%, rgba(255, 182, 0, 0.22), rgba(255, 182, 0, 0) 62%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  color: #fff;
}
.hero__swoosh {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(70px, 10vw, 140px);
  display: block;
  pointer-events: none;
}
.hero__body {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(110px, 14vw, 170px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero__copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--on-navy);
  max-width: 540px;
}
.hero__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.hero__badge span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__sellers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: #b9c5e8;
}
.hero__sellers b {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.hero__sellers span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.hero__media {
  flex: 1 1 380px;
  min-width: 0;
  position: relative;
  padding: 0 0 36px;
}
.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  max-height: 560px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 105, 0.3);
}
.hero__float {
  position: absolute;
  left: -16px;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 44px rgba(13, 25, 105, 0.35);
}
.hero__float i {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__float strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--navy);
  line-height: 1.2;
}
.hero__float small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* Compact hero for inner pages */
.hero--page .hero__body {
  display: block;
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(100px, 12vw, 150px);
}
.hero--page .hero__copy {
  max-width: 820px;
  gap: 18px;
}
.hero--page h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero--article h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.08;
}
.hero--page .hero__lead {
  max-width: 600px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}
.eyebrow--plain::before {
  display: none;
}
.hero .eyebrow,
.section--navy .eyebrow,
.bento--navy .eyebrow {
  color: var(--swoosh);
}

/* Sticky header (opt-in via .site-header--sticky): transparent over the hero at the top, solid once scrolled, slides away on scroll down and back on scroll up (assets/js/site.js). The hero reserves its height below. */
.hero:has(> .site-header--sticky) {
  padding-top: var(--header-h, 76px);
}
.site-header {
  container-type: inline-size;
  position: relative;
  z-index: 20;
}
.site-header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header--sticky.is-stuck {
  background: rgba(9, 19, 79, 0.92);
  box-shadow: 0 6px 24px rgba(9, 19, 79, 0.28);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header--sticky.is-stuck {
    background: rgba(9, 19, 79, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}
.site-header--sticky.is-stuck .site-header__bar {
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header--sticky.is-stuck .nav-panel {
  margin-bottom: 12px;
}
.site-header--sticky.is-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}
.site-header--sticky.is-hidden:focus-within {
  transform: none;
}
.site-header__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-header__logo img {
  height: 44px;
  width: auto;
}
.nav-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nav-pill a,
.nav-panel a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.nav-pill a:not(.btn) {
  padding: 10px 18px;
  opacity: 0.9;
}
.nav-pill a:not(.btn):hover,
.nav-pill a[aria-current='page'],
.nav-panel a:not(.btn):hover,
.nav-panel a[aria-current='page'] {
  color: var(--yellow);
  opacity: 1;
}
.nav-pill .btn {
  min-height: 0;
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--yellow-ink);
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.18);
}
.nav-burger .i-close,
.nav-burger[aria-expanded='true'] .i-open {
  display: none;
}
.nav-burger[aria-expanded='true'] .i-close {
  display: block;
}
.nav-panel {
  display: none;
  margin: 12px var(--gutter) 0;
  padding: 8px;
  border-radius: 24px;
  background: rgba(9, 19, 79, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-panel a:not(.btn) {
  display: block;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}
.nav-panel a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-panel .btn {
  display: flex;
  margin-top: 8px;
  min-height: 48px;
  font-size: 15px;
  color: var(--yellow-ink);
}
.nav-panel.is-open {
  display: block;
}
@container (max-width: 760px) {
  .nav-pill {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .site-header__bar {
    padding-top: 14px;
  }
  .site-header__logo img {
    height: 32px;
  }
}
@media (max-width: 760px) {
  .hero:has(> .site-header--sticky) {
    padding-top: var(--header-h, 58px);
  }
  /* fallback for browsers without container queries */
  .no-cq .nav-pill {
    display: none;
  }
  .no-cq .nav-burger {
    display: flex;
  }
}

/* ---------- Cards / bento ---------- */
.stack {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.bento {
  min-width: 0;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s;
}
.bento:hover {
  transform: translateY(-3px);
}
.bento h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bento--navy {
  background: var(--navy);
  color: #fff;
}
.bento--navy h2,
.bento--navy h3 {
  color: #fff;
}
.bento--navy p {
  color: var(--on-navy);
  line-height: 1.7;
}
.bento--gold {
  background: var(--gold);
  color: var(--navy);
  justify-content: space-between;
}
.bento--gold p {
  color: #3d2f00;
  line-height: 1.65;
  font-size: 16px;
}
.bento--gold p a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}
.bento--gold h3 {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.bento__img {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(13, 25, 105, 0.15);
  background: #fff;
}
.bento__img img {
  width: 100%;
  height: auto;
}
.bento--gold .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.bento--mist,
.bento--tint {
  border-radius: var(--r-lg);
  padding: 28px;
  gap: 12px;
}
.bento--mist {
  background: var(--mist);
  border: 1px solid var(--line);
}
.bento--tint {
  background: var(--tint);
  border: 1px solid var(--tint-line);
}
.bento--mist h3,
.bento--tint h3 {
  font-weight: 700;
  font-size: 22px;
}
.bento--mist p,
.bento--tint p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento--tint .icon-tile {
  border-color: var(--tint-line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.h2 {
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section--navy .h2 {
  color: #fff;
}

.verify-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.verify-grid figure {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
}
.verify-grid img {
  width: 100%;
  height: auto;
}
.verify-grid--one figure {
  flex: 0 1 720px;
  margin-inline: auto;
}

/* Product cards */
.grid-prod {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid-prod--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid-prod--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card-prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-prod[hidden] {
  display: none;
}
.card-prod:hover {
  box-shadow: 0 18px 44px rgba(13, 25, 105, 0.16);
  transform: translateY(-4px);
}
.card-prod__img {
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eef1f6;
}
.grid-prod--3 .card-prod__img {
  aspect-ratio: 4 / 3;
}
.card-prod__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-prod__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  justify-content: space-between;
}
.card-prod h3 {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}
.grid-prod--3 .card-prod h3 {
  font-size: 20px;
}
.card-prod__actions {
  display: flex;
  gap: 10px;
}
.card-prod__actions .btn {
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
}
.card-prod__actions .btn-yellow {
  flex: 1;
}

/* Brand filter bar */
.filter-bar {
  position: sticky;
  top: var(--hdr-off, 0px); /* sits below the sticky header while it is showing (set in site.js) */
  transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 15;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filter-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chips {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  white-space: nowrap;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.chip:hover {
  border-color: var(--navy);
}
.chip[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.filter-count {
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

/* FAQ (native details) */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.split__lead {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split__main {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  min-height: 64px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--navy);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--blue);
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--navy);
}
.faq[open] summary::after {
  content: '\2212';
}
.faq__a {
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}

/* CTA band */
.cta {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: var(--section);
}
.cta__band {
  background: var(--yellow);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta__band > div:first-child {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta__band h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.cta__band p {
  font-size: 17px;
  line-height: 1.55;
  color: #3d3200;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
}
.site-footer__brand {
  flex: 1 1 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__brand img {
  height: 48px;
  width: auto;
  align-self: flex-start;
}
.site-footer__brand p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-navy-dim);
}
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.site-footer__col h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--swoosh);
  margin-bottom: 4px;
}
.site-footer__col a {
  opacity: 0.8;
  padding: 10px 0;
  margin: -4px 0;
}
.site-footer__col a:hover {
  color: var(--yellow);
  opacity: 1;
}
.site-footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.site-footer__copy {
  font-size: 14px;
  color: var(--on-navy-dim);
}

/* ---------- Blog + articles ---------- */
.grid-posts {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 18px 44px rgba(13, 25, 105, 0.16);
  transform: translateY(-4px);
}
.post-card__img {
  aspect-ratio: 3 / 2;
  background: var(--mist);
  border-bottom: 1px solid #eef1f6;
  overflow: hidden;
}
.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.post-card time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-card h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.post-card .link-arrow {
  margin-top: auto;
}
.post-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card {
  position: relative;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter);
  font-size: 18px;
  line-height: 1.75;
  color: #2b3340;
}
.article > * + * {
  margin-top: 1.1em;
}
.article h2,
.article h3,
.article h4 {
  margin-top: 1.8em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.article h2 {
  font-size: 32px;
}
.article h3 {
  font-size: 26px;
}
.article h4 {
  font-size: 22px;
}
.article a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article ol,
.article ul {
  padding-left: 1.3em;
}
.article li + li {
  margin-top: 0.4em;
}
.article figure {
  margin: 2em 0;
}
.article figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.article figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  color: var(--on-navy);
}
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 94vh;
}
.lightbox::backdrop {
  background: rgba(9, 19, 79, 0.86);
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  margin: 0 auto;
  border-radius: var(--r-md);
}

/* ---------- Product detail pages ---------- */
.pdp-hero__img {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.pdp-hero__img img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}
.pill-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero__note {
  font-size: 14px;
  color: #b9c5e8;
  max-width: 540px;
}
.hero__note a {
  color: var(--yellow);
  text-decoration: underline;
}
.pdp-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pdp-grid .bento--mist h3,
.pdp-grid .bento--tint h3 {
  font-size: 20px;
}
.pdp-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}
.specs {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 0;
}
.specs > div {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.specs dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
}
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.steps li::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.steps h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.steps p {
  font-size: 16px;
  color: var(--body);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 520px;
}
.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
}
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare tbody th {
  font-weight: 700;
  color: var(--navy);
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checklist li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1969' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.notice {
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}
.notice strong {
  color: var(--navy);
}
.source-note {
  font-size: 14px;
  color: var(--muted);
}
.source-note a {
  color: var(--blue);
  font-weight: 700;
}

/* ---------- 404 ---------- */
.nf {
  text-align: center;
}
.nf .hero__copy {
  align-items: center;
  margin: 0 auto;
}
.nf .hero__lead {
  margin: 0 auto;
}
.nf .btn-row {
  justify-content: center;
}
.nf__code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(88px, 18vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--gold);
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* ---------- Reveal variants + stagger ---------- */
.js .reveal {
  transition-delay: var(--d, 0ms);
}
.js .reveal:where(.reveal--left) {
  transform: translateX(-36px);
}
.js .reveal:where(.reveal--right) {
  transform: translateX(36px);
}
.js .reveal:where(.reveal--scale) {
  transform: scale(0.94);
}

/* ---------- Intro loader (all pages; html.loading set by inline head script) ---------- */
html.loading,
html.loading body {
  overflow: hidden;
}
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  transition: opacity 0.5s ease;
}
html.loading .loader,
.loader.is-out {
  display: flex;
}
.loader.is-out {
  opacity: 0;
  pointer-events: none;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loader__stage {
  position: relative;
  width: 120px;
  height: 180px;
  animation: hwLogoIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.loader__rocket {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.5, 0, 0.9, 0.45);
}
.loader__rocket-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: hwShake 0.3s linear infinite;
}
.loader__flame {
  filter: drop-shadow(0 0 7px rgba(255, 182, 0, 0.75));
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: hwFlame 0.28s ease-in-out infinite;
}
.loader__streak {
  position: absolute;
  top: 0;
  width: 3px;
  height: 30px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0;
  animation: hwStreak 0.8s linear infinite;
}
.loader__streak.st1 {
  left: -22px;
  animation-delay: 0s;
}
.loader__streak.st2 {
  left: -40px;
  height: 18px;
  animation-delay: 0.35s;
}
.loader__streak.st3 {
  right: -22px;
  animation-delay: 0.2s;
}
.loader__streak.st4 {
  right: -40px;
  height: 18px;
  animation-delay: 0.6s;
}
/* glow, stars and exhaust puffs */
.loader__glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 182, 0, 0.3), rgba(255, 182, 0, 0.08) 60%, rgba(255, 182, 0, 0));
  animation: hwGlow 2.2s ease-in-out infinite;
}
.loader__star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: hwTwinkle 1.8s ease-in-out infinite;
}
.loader__star.s1 { left: -70px; top: 18px; }
.loader__star.s2 { left: 176px; top: 40px; background: var(--navy); width: 4px; height: 4px; animation-delay: 0.5s; }
.loader__star.s3 { left: -48px; top: 118px; background: var(--navy); width: 4px; height: 4px; animation-delay: 1s; }
.loader__star.s4 { left: 160px; top: 128px; animation-delay: 0.3s; }
.loader__star.s5 { left: -96px; top: 74px; width: 8px; height: 8px; animation-delay: 0.8s; }
.loader__star.s6 { left: 204px; top: 88px; width: 8px; height: 8px; animation-delay: 1.3s; }
.loader__puff {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(13, 25, 105, 0.12);
  opacity: 0;
  animation: hwPuff 1.2s ease-out infinite;
}
.loader__puff.pf2 { animation-delay: 0.4s; margin-left: -22px; }
.loader__puff.pf3 { animation-delay: 0.8s; margin-left: 2px; }
.loader.is-launch .loader__rocket {
  transform: translateY(-130vh);
}
.loader.is-launch .loader__flame {
  animation: hwFlameBoost 0.2s ease-in-out infinite;
}
/* wordmark as a single-color navy silhouette of the brand logo */
.loader__logo {
  width: min(210px, 56vw);
  aspect-ratio: 1448 / 323;
  margin-top: 44px;
  background: var(--navy);
  -webkit-mask: url('../images/cryptoking2024-logo.webp') center / contain no-repeat;
  mask: url('../images/cryptoking2024-logo.webp') center / contain no-repeat;
  animation: hwLogoIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.loader__track {
  width: min(210px, 56vw);
  height: 6px;
  margin-top: 20px;
  border-radius: 3px;
  background: rgba(13, 25, 105, 0.1);
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.loader__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffb600, #ffd24d);
  transform: scaleX(0.06);
  transform-origin: left;
  transition: transform 2s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
}
.loader__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: hwBarShine 1.1s ease-in-out infinite;
}
.loader.is-launch .loader__logo {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.loader.is-launch .loader__track {
  opacity: 0;
}

/* ---------- Home motion (scoped to html.hw, which only Home sets: no JS / reduced motion = static) ---------- */
html.hw .hero {
  overflow-x: clip;
}
html.hw .hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 4%;
  width: 52%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 182, 0, 0.2), rgba(255, 182, 0, 0));
  pointer-events: none;
  animation: hwBreathe 9s ease-in-out infinite;
}
html.hw .h-item {
  opacity: 0;
}
html.hw-go .h-item {
  animation: hwFadeUp 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0ms);
}
html.hw .hero__media {
  opacity: 0;
}
html.hw-go .hero__media {
  animation: hwPhotoIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}
html.hw-go .hero__photo {
  animation: hwBob 7s ease-in-out 1.6s infinite;
}
html.hw .hero__float {
  opacity: 0;
}
html.hw-go .hero__float {
  animation: hwPop 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.95s both, hwBob 6s ease-in-out 2s infinite reverse;
}
html.hw .hero h1 em {
  position: relative;
  white-space: nowrap;
}
html.hw .hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.1em;
  border-radius: 0.1em;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
html.hw-go .hero h1 em::after {
  animation: hwSweep 0.8s cubic-bezier(0.6, 0, 0.2, 1) 1s forwards;
}
html.hw .hero__swoosh {
  opacity: 0;
}
html.hw-go .hero__swoosh {
  animation: hwRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

/* micro-interactions */
html.hw .btn-yellow svg {
  transition: transform 0.2s;
}
html.hw .btn-yellow:hover svg {
  transform: translateX(4px);
}
html.hw .nav-pill a:not(.btn) {
  position: relative;
}
html.hw .nav-pill a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  border-radius: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
html.hw .nav-pill a:not(.btn):hover::after,
html.hw .nav-pill a[aria-current='page']::after {
  transform: scaleX(1);
}
html.hw .grid-prod--3 .card-prod__img,
html.hw .grid-prod--4 .card-prod__img {
  overflow: hidden;
}
html.hw .grid-prod--3 .card-prod__img img,
html.hw .grid-prod--4 .card-prod__img img {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.hw .grid-prod--3 .card-prod:hover .card-prod__img img,
html.hw .grid-prod--4 .card-prod:hover .card-prod__img img {
  transform: scale(1.06);
}
html.hw .cta__band {
  position: relative;
  overflow: hidden;
}
html.hw .cta__band::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
html.hw .cta__band.is-in::after {
  animation: hwShine 1.3s ease-in-out 0.5s 1 both;
}
@supports selector(::details-content) {
  html.hw {
    interpolate-size: allow-keywords;
  }
  html.hw .faq::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 0.35s ease, opacity 0.35s ease, content-visibility 0.35s allow-discrete;
  }
  html.hw .faq[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@keyframes hwFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hwPhotoIn {
  from {
    opacity: 0;
    transform: translateX(48px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hwPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes hwRise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hwBob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes hwSweep {
  to {
    transform: scaleX(1);
  }
}
@keyframes hwBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
@keyframes hwShine {
  from {
    transform: translateX(-120%) skewX(-20deg);
  }
  to {
    transform: translateX(420%) skewX(-20deg);
  }
}
@keyframes hwGlow {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
@keyframes hwTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}
@keyframes hwPuff {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(90px) scale(2.4);
    opacity: 0;
  }
}
@keyframes hwBarShine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}
@keyframes hwShake {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  25% {
    transform: translate(-0.8px, 0.6px) rotate(-0.6deg);
  }
  50% {
    transform: translate(0.6px, -0.6px) rotate(0.5deg);
  }
  75% {
    transform: translate(0.8px, 0.5px) rotate(-0.4deg);
  }
  100% {
    transform: translate(0, 0) rotate(0);
  }
}
@keyframes hwFlame {
  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }
  50% {
    transform: scaleY(1.3) scaleX(0.9);
  }
}
@keyframes hwFlameBoost {
  0%,
  100% {
    transform: scaleY(1.9) scaleX(1);
  }
  50% {
    transform: scaleY(2.4) scaleX(0.85);
  }
}
@keyframes hwStreak {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  20% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(130px);
    opacity: 0;
  }
}
@keyframes hwLogoIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
