/* Tokyyy landing — dark redesign (Figma: tokyyy-website-v2, Jul 2026) */

/* Inter, self-hosted (GDPR: no visitor IPs to Google). Variable font, one
   file per script subset covers weights 400-900. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  /* Backgrounds: --bg for nav/hero and alternating sections, --bg-deep for the
     others — the design alternates two near-blacks down the page. */
  --bg: #0e0f15;
  --bg-deep: #09090e;
  --surface: #16171f;
  --surface-tint: #1b1826; /* purple-tinted strip (NFC sourcing note) */
  --field: #13141b;
  --border: #303040;
  --accent: #7d5cff;
  --accent-text: #7a59ff; /* eyebrow/link purple on dark */
  --text: #f6f7fc;
  --muted: #b2b8cc;
  --radius-btn: 16px;
  --radius-card: 24px;
  --radius-band: 28px;
  --max: 1296px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

img {
  max-width: 100%;
}

/* ---------- Shared section furniture ---------- */

section {
  padding: 80px 0;
  /* Anchor jumps land below the 76px sticky header. */
  scroll-margin-top: 76px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.eyebrow {
  color: var(--accent-text);
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.875rem); /* → 46px */
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.13;
  margin: 0;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem); /* → 20px */
  line-height: 1.5;
  max-width: 760px;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  background: var(--field);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------- Boot loader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  transition: opacity 0.45s ease;
}

.preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

.preloader-slogan {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.preloader.is-logo .preloader-slogan {
  opacity: 0;
  transform: translateY(-14px);
}

/* Masked line: the inner span slides up into view inside a clipped wrapper. */
.preloader-line {
  display: block;
  overflow: hidden;
}

.preloader-line > span {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text);
  transform: translateY(110%);
  animation: preloader-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  /* Held until JS confirms Inter is loaded — prevents the fallback-font
     weight flash (FOUT) on the very first paint. */
  animation-play-state: paused;
}

.preloader.fonts-in .preloader-line > span {
  animation-play-state: running;
}

.preloader-line--accent > span {
  color: var(--accent-text);
  animation-delay: 0.22s;
}

@keyframes preloader-reveal {
  to {
    transform: translateY(0);
  }
}

/* Logo enters with the same masked dive-up as the slogan lines: clipped
   wrapper, inner element slides from below the clip edge into view. */
.preloader-logo-mask {
  grid-area: 1 / 1;
  display: block;
  overflow: hidden;
  padding: 4px; /* keep the wordmark's edges clear of the clip */
}

.preloader-logo {
  display: block;
  width: 110px; /* matches header/footer wordmark size */
  height: auto;
  transform: translateY(115%);
}

.preloader.is-logo .preloader-logo {
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion: no show, straight to content. */
@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(14, 15, 21, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid rgba(48, 48, 64, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand img {
  max-width: 110px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-text);
}

.nav-links .btn {
  padding: 12px 20px;
}

.nav-links .btn:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  /* Bottom = standard section padding, separating the stats band below. */
  padding: 72px 0 80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Hard 50/50 split (gap subtracted from each side) — the image's large
   intrinsic width must never squeeze the copy column. */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 calc(50% - 24px);
}

.hero-eyebrow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  /* Uppercase text carries no descenders: kill the inherited line-height and
     bias the padding 1px downward so the caps sit optically centered. */
  line-height: 1;
  padding: 9px 12px 8px;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem); /* → 64px */
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.hero-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3125rem); /* → 21px */
  line-height: 1.52;
  color: var(--text);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media {
  flex: 0 0 calc(50% - 24px);
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Proof stats band ---------- */

.proof-stats {
  /* Standard section gap below the purple band before the about section. */
  padding: 0 0 80px;
}

.stats-band {
  background: var(--accent);
  border-radius: var(--radius-band);
  padding: 40px 72px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 32px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.625rem); /* → 42px */
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}

/* ---------- About (Built by event people) ---------- */

.about {
  background: var(--bg-deep);
}

.about .section-head {
  margin-bottom: 0;
}

.about .section-sub {
  max-width: 820px;
}

/* ---------- Why events choose tokens ---------- */

.why {
  background: var(--bg-deep);
}

/* The numbered-card grid is shared with How it works (.steps/.step), but here
   cards follow the section head directly, so no full-bleed margin quirk. */
.why .steps {
  margin-top: 0;
}

/* ---------- How it works ---------- */

.how {
  background: var(--bg);
}

.anim-frame {
  max-width: 1120px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

/* Phones mockup renders small at 1120 — give it the full content width. */
.how .anim-frame {
  max-width: var(--max);
}

/* Full-bleed variant: canvas runs edge to edge of the viewport.
   (Doubled class keeps it ahead of the `.how .anim-frame` width rule.) */
.anim-frame.anim-frame--bleed {
  max-width: none;
  padding: 0;
  margin-bottom: 0;
}

.anim-frame mockup-player,
.anim-frame img {
  display: block;
  width: 100%;
}

/* Phone fallback for the mckp animations: hidden on desktop; on small
   screens the animation hides and the static square shows instead. */
.anim-frame .anim-mobile {
  display: none;
}

@media (max-width: 640px) {
  .anim-frame mockup-player {
    display: none;
  }

  .anim-frame .anim-mobile {
    display: block;
  }
}

.steps {
  list-style: none;
  margin: 40px auto 0;
  padding: 0 24px;
  max-width: 1176px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- NFC cards ---------- */

.nfc {
  background: var(--bg-deep);
}

.nfc-media {
  /* Full-bleed, edge to edge: wide shot on desktop, square variant on phones. */
  margin: 0 0 56px;
}

.nfc-media img {
  display: block;
  width: 100%;
  height: auto;
}

.sourcing {
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sourcing-text h3 {
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  margin: 0 0 6px;
}

.sourcing-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.sourcing .btn {
  flex: 0 0 auto;
  font-size: 0.875rem;
  padding: 13px 20px;
}

/* ---------- Dashboard ---------- */

.dashboard {
  background: var(--bg);
  padding-bottom: 0; /* full-bleed animation sits flush on the next section */
}

/* ---------- Features ---------- */

.features {
  background: var(--bg-deep);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Security ---------- */

.security {
  background: var(--bg);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Icon on top, then title and body (per the security redesign). */
.security-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
}

.security-card h3 {
  margin: 28px 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
}

.security-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.security-card-icon {
  display: block;
  height: 64px;
  width: auto;
}

/* Flat text badge (GDPR, 2FA) — fills the same 64px slot as the AWS logo so
   titles stay aligned across all three cards. */
.security-card-tag {
  display: flex;
  align-items: center;
  height: 64px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- CTA band (store badges) ---------- */

.cta-band-section {
  background: var(--bg-deep);
}

.cta-band {
  background: var(--accent);
  border-radius: var(--radius-band);
  padding: 55px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 650px;
}

.store-badges {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: nowrap; /* badges stay side by side, never stack */
  flex-shrink: 0;    /* the copy column yields, not the badges */
}

.store-badge {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

/* ---------- Final conversion CTA ---------- */

.final-cta {
  background: var(--bg);
  text-align: center;
}

.final-cta .section-head {
  margin-bottom: 28px;
}

/* Collapsible access-request form */
.access-form {
  overflow: hidden;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 0 24px;
  /* Sticky header is 76px: keep the form's top clear of it when scrolled to. */
  scroll-margin-top: 92px;
}

.access-form-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  text-align: left;
}

.access-form-inner h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  outline: none;
}

.access-form-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.access-form-fields {
  display: grid;
  gap: 16px;
}

.access-form-fields label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.access-form-fields label em {
  font-weight: 400;
  color: var(--muted);
}

.access-form-fields input,
.access-form-fields select,
.access-form-fields textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  width: 100%;
}

.access-form-fields select {
  appearance: none;
  -webkit-appearance: none;
  /* Chevron in the muted text color */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23b2b8cc' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.access-form-fields input:focus,
.access-form-fields select:focus,
.access-form-fields textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.access-form-fields textarea {
  resize: vertical;
}

.access-form-fields .btn {
  justify-self: start;
}

.access-form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Collapse entirely until the submit handler writes a message into it (the
   element stays in the DOM so the aria-live region is established upfront). */
.access-form-status:empty {
  display: none;
}

/* ---------- Inquiry page (request-account.html) ---------- */

.inquiry-page {
  padding: 64px 0 96px;
}

.inquiry-page .access-form {
  margin-top: 0;
}

/* ---------- About page (about.html) ---------- */

.about-hero {
  padding: 96px 0 80px;
  background: var(--bg-deep); /* matches footer/CTA — only the story differs */
}

.about-hero .section-head {
  margin-bottom: 0;
}

.about-hero h1 {
  /* Same voice as the section h2s, a notch larger for a page hero. */
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* About — our story: sticky intro column + narrative column */
.story {
  padding: 40px 0 96px;
  background: #0e0e15;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: start;
}

.story-aside {
  position: sticky;
  top: 108px; /* clears the sticky header */
}

.story-aside .eyebrow {
  margin-bottom: 14px;
}

.story-aside h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 22px;
}

.story-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.story-body p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin: 32px 0;
  padding: 30px 32px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-aside {
    position: static;
  }
}

/* About — closing CTA: same background as the footer so they read as one */
.about-cta {
  background: var(--bg-deep);
  text-align: center;
  padding: 88px 0 72px;
}

.about-cta .section-head {
  margin-bottom: 28px;
}

/* ---------- Demo page (schedule-demo.html) ---------- */

.demo-page {
  padding: 64px 0 96px;
}

.cal-placeholder {
  max-width: 920px;
  margin: 0 auto 48px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 48px 24px;
  text-align: center;
}

.cal-placeholder p {
  margin: 0 0 20px;
  color: var(--muted);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1176px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.info-card h3 em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.info-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: grid;
  gap: 8px;
}

.info-card li strong {
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--bg-deep);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand img {
  max-width: 110px;
  height: auto;
  align-self: flex-start;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-brand .footer-tag {
  font-weight: 600;
  color: var(--text);
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--accent-text);
}

.footer-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-text);
}

/* Legacy footer layout used by the legal pages (privacy-policy.html, support.html) */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-sm {
  font-weight: 800;
}

/* ---------- Legal / info pages ---------- */

.legal {
  max-width: 760px;
  padding: 56px 24px 72px;
}

.legal-back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.legal-back:hover {
  color: var(--text);
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

.legal p {
  color: var(--muted);
  margin: 0 0 12px;
}

.legal a {
  color: var(--accent-text);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-media {
    flex-basis: auto;
  }

  .hero-media {
    width: 100%;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 32px;
    justify-content: center;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 36px;
  }
}

@media (max-width: 760px) {
  section {
    padding: 56px 0;
  }

  .sourcing {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 20px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  /* Badges stack one per row on phones, each larger for tap targets. */
  .store-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .store-badge img {
    height: 48px; /* Ivan: smaller badges on narrow screens */
  }

  .hero {
    padding-top: 36px;
  }
}
