@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/proximanova_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/proximanova_regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/proximanova_regular.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/proximanova_regular.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato Local";
  src: url("../assets/fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-grey: #343a40;
  --brand-blue: #4d94ff;
  --navy: #0f2740;
  --ink: #1c2430;
  --muted: #5f6b7a;
  --line: #e6e9ee;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --white: #ffffff;
  --accent: #4d94ff;
  --accent-dark: #3b7de0;
  --accent-soft: rgba(77, 148, 255, 0.1);
  --shadow: none;
  --radius: 4px;
  --radius-sm: 3px;
  /* Proxima Nova sitewide; sizes follow common web type scale (16px base) */
  --font: "Proxima Nova", "Lato Local", "Segoe UI", system-ui, sans-serif;
  --font-display: "Proxima Nova", "Lato Local", "Segoe UI", system-ui, sans-serif;
  --fs-body: 1rem; /* 16px */
  --fs-small: 0.875rem; /* 14px meta / captions */
  --fs-nav: 1rem;
  --fs-h1: clamp(2rem, 4vw, 3rem); /* 32px – 48px */
  --fs-h2: clamp(1.25rem, 2.6vw, 1.875rem); /* 20px – 30px */
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem); /* 20px – 24px */
  --lh-body: 1.6;
  --header-h: 72px;
  --sidebar-w: 25%;
  --loader-min-h: 280px;
}

html[data-theme="dark"] {
  --navy: #e8eef6;
  --ink: #e6edf5;
  --muted: #9aa8b8;
  --line: #2a3544;
  --line-soft: #3d4a5c;
  --paper: #121820;
  --surface: #1a2230;
  --surface-2: #222c3b;
  --white: #1a2230;
  --accent-soft: rgba(77, 148, 255, 0.16);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --offer-media-bg: #333a47;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  font-size: 100%; /* 16px browser default → rem baseline */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--ink);
  background: #ffffff;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.25;
}

p {
  line-height: var(--lh-body);
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

/* Header — scrolls with page (not sticky) */
.site-header {
  position: relative;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(52, 58, 64, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.brand-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-card {
  color: var(--brand-grey);
}

.brand-offs {
  color: var(--brand-blue);
}

.nav-desktop {
  display: none;
  gap: 0.2rem;
}

.nav-desktop a {
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  font-weight: 550;
  font-size: var(--fs-nav);
  color: var(--muted);
  transition: color 0.15s ease;
  position: relative;
}

.nav-desktop a:hover {
  color: var(--ink);
  background: transparent;
}

.nav-desktop a.is-active {
  background: transparent;
  color: var(--ink);
  font-weight: 650;
}

.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--brand-blue);
}

.header-cta {
  white-space: nowrap;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(52, 58, 64, 0.1);
  background: rgba(248, 250, 252, 0.9);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: rgba(52, 58, 64, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: #fff;
  color: rgba(52, 58, 64, 0.7);
  border-color: rgba(52, 58, 64, 0.16);
}

.theme-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.theme-icon-moon {
  display: block;
}

.theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(40, 48, 64, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 246, 0.45);
}

html[data-theme="dark"] .theme-toggle:hover {
  color: rgba(232, 238, 246, 0.85);
  background: rgba(40, 48, 64, 0.85);
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(52, 58, 64, 0.18);
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  justify-self: start;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--brand-grey);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 1rem 1rem;
  border-top: 1px solid rgba(52, 58, 64, 0.12);
  background: #fff;
}

.nav-mobile:not([hidden]) {
  display: flex;
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile a {
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--brand-grey);
}

.nav-mobile a.is-active {
  background: var(--accent-soft);
  color: var(--brand-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: none;
}

.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.site-header .header-cta {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: none;
}

.site-header .header-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-soft {
  background: #dfe7f1;
  color: var(--navy);
  border: 1px solid rgba(15, 39, 64, 0.14);
  box-shadow: 0 4px 14px rgba(15, 39, 64, 0.1);
}

.btn-soft:hover {
  border-color: rgba(15, 39, 64, 0.22);
  box-shadow: 0 6px 18px rgba(15, 39, 64, 0.14);
}

.hero-cta .btn-soft {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(77, 148, 255, 0.45);
  box-shadow: 0 6px 18px rgba(77, 148, 255, 0.18);
}

.hero-cta .btn-soft:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 22px rgba(77, 148, 255, 0.24);
}

.btn-ghost-action {
  background: var(--paper);
  border-color: var(--line);
  color: var(--navy);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  text-decoration: underline;
}

/* Views */
.view[hidden] {
  display: none !important;
}

.view.is-active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero — light promo layout */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 4rem;
  background: linear-gradient(180deg, #eef5fc 0%, var(--paper) 70%);
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(43, 152, 240, 0.1);
}

.rings {
  display: none;
}

.blob-a {
  width: 260px;
  height: 260px;
  left: -90px;
  top: 20px;
}

.blob-b {
  width: 180px;
  height: 180px;
  left: 8%;
  bottom: -40px;
  background: rgba(43, 152, 240, 0.07);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

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

.hero-lede {
  margin: 0.95rem 0 0;
  max-width: 42ch;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-visual,
.download-visual {
  position: relative;
  min-height: 300px;
}

.hero-visual {
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  max-width: 100%;
}

.hero-promo {
  width: min(420px, 100%);
  margin: 0 auto;
  max-width: 100%;
}

.hero-promo-image {
  display: block;
  width: 100%;
  height: auto;
}

.download-visual {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.download-section .download-visual {
  overflow: visible;
  min-height: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.phone-shot {
  width: min(280px, 78%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 39, 64, 0.22);
  border: 3px solid #e8eef5;
  background: #0b1f33;
}

.phone-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-shot.phone-shot-slideshow {
  border: none;
  border-radius: 3px;
  background: transparent;
  box-shadow: 0 20px 44px rgba(15, 39, 64, 0.18);
  overflow: hidden;
}

.phone-shot-slideshow {
  position: relative;
}

.phone-slide-sizer {
  width: 100%;
  height: auto;
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.phone-slide-track {
  position: absolute;
  inset: 0;
}

.phone-slide-track img {
  position: absolute;
  top: 0;
  left: -2px;
  width: calc(100% + 4px);
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: translateX(28%) scale(0.98);
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease;
  z-index: 0;
}

.phone-slide-track img.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.phone-slide-track img.is-leaving {
  opacity: 0;
  transform: translateX(-18%) scale(0.99);
  z-index: 1;
  transition:
    transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .phone-slide-track img {
    transition: none;
    transform: none;
  }

  .phone-slide-track img.is-active {
    opacity: 1;
  }

  .phone-slide-track img:not(.is-active) {
    opacity: 0;
  }
}

/* Overlapped angled app screenshots */
.shot-fan {
  position: relative;
  width: min(400px, 100%);
  height: min(280px, 58vw);
  margin: 1.25rem auto 2rem;
  padding-inline: 0.5rem;
  padding-bottom: 0.5rem;
}

.shot-card {
  position: absolute;
  margin: 0;
  width: min(112px, 26%);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 39, 64, 0.2);
  transform-origin: center bottom;
}

.shot-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 28, 0) 0%,
    rgba(8, 16, 28, 0.22) 45%,
    rgba(8, 16, 28, 0.48) 100%
  );
  z-index: 1;
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.shot-card-a {
  left: 0%;
  top: 12%;
  z-index: 1;
  transform: rotate(-16deg) translateY(10px);
}

.shot-card-b {
  left: 0%;
  top: 5%;
  z-index: 2;
  transform: rotate(-8deg) translateY(4px);
}

.shot-card-c {
  left: 24%;
  top: 2%;
  z-index: 3;
  transform: rotate(-1deg);
}

.shot-card-d {
  left: 48%;
  top: 4%;
  z-index: 4;
  transform: rotate(7deg) translateY(4px);
}

.shot-card-e {
  left: 72%;
  top: 10%;
  z-index: 5;
  transform: rotate(15deg) translateY(10px);
}

@media (prefers-reduced-motion: no-preference) {
  .shot-card-a {
    animation: shotFloatA 7s ease-in-out infinite;
  }
  .shot-card-b {
    animation: shotFloatB 8s ease-in-out infinite;
  }
  .shot-card-c {
    animation: shotFloatC 7.5s ease-in-out infinite;
  }
  .shot-card-d {
    animation: shotFloatD 8.5s ease-in-out infinite;
  }
  .shot-card-e {
    animation: shotFloatE 7.8s ease-in-out infinite;
  }
}

@keyframes shotFloatA {
  0%,
  100% {
    transform: rotate(-16deg) translateY(10px);
  }
  50% {
    transform: rotate(-16deg) translateY(2px);
  }
}

@keyframes shotFloatB {
  0%,
  100% {
    transform: rotate(-8deg) translateY(4px);
  }
  50% {
    transform: rotate(-8deg) translateY(-4px);
  }
}

@keyframes shotFloatC {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(-1deg) translateY(-6px);
  }
}

@keyframes shotFloatD {
  0%,
  100% {
    transform: rotate(7deg) translateY(4px);
  }
  50% {
    transform: rotate(7deg) translateY(-2px);
  }
}

@keyframes shotFloatE {
  0%,
  100% {
    transform: rotate(15deg) translateY(10px);
  }
  50% {
    transform: rotate(15deg) translateY(2px);
  }
}

/* Hero promo visual (static image) */
.hero-stage,
.hero-card-stack {
  display: none;
}

.hero-live-card {
  --orbit-r: 205px;
  position: absolute;
  left: 68%;
  top: 50%;
  width: min(170px, 40vw);
  aspect-ratio: 1.586 / 1;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 14px 24px rgba(15, 39, 64, 0.26));
  transform-origin: center center;
}

.hero-live-card-face {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hero-live-card-face:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.hero-live-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 12px;
  pointer-events: none;
}

/*
  C arc on left of orbit center.
  Central 3 (b/c/d) nudged further left via extra translateX.
*/
.hero-live-card-a {
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-42deg) translateY(calc(-1 * var(--orbit-r))) rotate(42deg) rotate(-24deg);
  animation: heroCardA 7.5s ease-in-out infinite;
}

.hero-live-card-b {
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-68deg) translateY(calc(-1 * var(--orbit-r))) rotate(68deg) rotate(-12deg) translateX(-28px);
  animation: heroCardB 8s ease-in-out infinite;
}

.hero-live-card-c {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-94deg) translateY(calc(-1 * var(--orbit-r))) rotate(94deg) rotate(0deg) translateX(-40px);
  animation: heroCardC 7.2s ease-in-out infinite;
}

.hero-live-card-d {
  z-index: 4;
  transform: translate(-50%, -50%) rotate(-120deg) translateY(calc(-1 * var(--orbit-r))) rotate(120deg) rotate(12deg) translateX(-28px);
  animation: heroCardD 7.8s ease-in-out infinite;
}

.hero-live-card-e {
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-146deg) translateY(calc(-1 * var(--orbit-r))) rotate(146deg) rotate(24deg);
  animation: heroCardE 8.2s ease-in-out infinite;
}

.hero-offer-chip {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  width: max-content;
  max-width: 86%;
  margin-inline: auto;
  padding: 0.22rem 0.42rem 0.22rem 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 230, 240, 0.95);
  box-shadow: 0 6px 14px rgba(15, 39, 64, 0.16);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  animation: floatIconA 5.8s ease-in-out infinite;
}

.hero-live-card-b .hero-offer-chip {
  animation: floatIconB 6.4s ease-in-out infinite;
}

.hero-live-card-c .hero-offer-chip {
  animation: floatIconC 6.8s ease-in-out infinite 0.15s;
}

.hero-live-card-d .hero-offer-chip {
  animation: floatIconA 6.1s ease-in-out infinite 0.25s;
}

.hero-live-card-e .hero-offer-chip {
  animation: floatIconB 7s ease-in-out infinite 0.1s;
}

.hero-offer-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  background: #f3f7fb;
  flex-shrink: 0;
  padding: 2px;
}

.hero-offer-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hero-offer-chip:hover {
  border-color: rgba(43, 152, 240, 0.45);
  box-shadow: 0 8px 18px rgba(43, 152, 240, 0.16);
}

.hero-offer-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes heroCardA {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-42deg) translateY(calc(-1 * var(--orbit-r))) rotate(42deg) rotate(-24deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-42deg) translateY(calc(-1 * var(--orbit-r) - 6px)) rotate(42deg) rotate(-22deg);
  }
}

@keyframes heroCardB {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-68deg) translateY(calc(-1 * var(--orbit-r))) rotate(68deg) rotate(-12deg) translateX(-28px);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-68deg) translateY(calc(-1 * var(--orbit-r) - 6px)) rotate(68deg) rotate(-10deg) translateX(-28px);
  }
}

@keyframes heroCardC {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-94deg) translateY(calc(-1 * var(--orbit-r))) rotate(94deg) rotate(0deg) translateX(-40px);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-94deg) translateY(calc(-1 * var(--orbit-r) - 7px)) rotate(94deg) rotate(2deg) translateX(-40px);
  }
}

@keyframes heroCardD {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-120deg) translateY(calc(-1 * var(--orbit-r))) rotate(120deg) rotate(12deg) translateX(-28px);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-120deg) translateY(calc(-1 * var(--orbit-r) - 6px)) rotate(120deg) rotate(14deg) translateX(-28px);
  }
}

@keyframes heroCardE {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-146deg) translateY(calc(-1 * var(--orbit-r))) rotate(146deg) rotate(24deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-146deg) translateY(calc(-1 * var(--orbit-r) - 6px)) rotate(146deg) rotate(22deg);
  }
}

@keyframes floatIconA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatIconB {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-3deg);
  }
}

@keyframes floatIconC {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-card-a,
  .hero-live-card-b,
  .hero-live-card-c,
  .hero-live-card-d,
  .hero-live-card-e,
  .hero-offer-chip {
    animation: none !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.65s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.2s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-tight {
  padding-top: 1rem;
}

.section-alt {
  background: var(--paper);
  border-block: none;
}

.home-band-muted {
  background: #eef5fc;
  border-block: none;
}

.home-band-white {
  background: #ffffff;
  border-block: none;
}

.view-home > .home-band-muted + .home-band-white,
.view-home > .home-band-white + .home-band-muted,
.view-home > .hero + .home-band-white {
  border-top-color: transparent;
}

.download-section.home-band-white,
.download-section.home-band-muted,
.download-section {
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2,
.page-hero h1,
.contact-aside h2,
.download-copy h2,
.get-app-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head p,
.page-hero p,
.contact-aside p,
.download-copy p,
.get-app-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 52ch;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.page-hero {
  padding: 1.1rem 0 0.5rem;
}

.page-hero-cards {
  padding-bottom: 0;
}

.view:not(.view-home).is-active > .page-hero:first-child,
.view:not(.view-home).is-active > .shell.page-hero:first-child {
  padding-top: 1.1rem;
}

.page-hero h1 {
  font-size: var(--fs-h1);
}

.section-categories {
  padding-top: 0.85rem;
  padding-bottom: 1.25rem;
}

.category-tabs {
  padding-bottom: 0.15rem;
}

.category-results {
  padding-top: 0.35rem;
  padding-bottom: 1.5rem;
}

.community-tabs {
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.community-feed.section-tight {
  padding-top: 0.85rem;
  padding-bottom: 2.5rem;
}

#view-community,
#view-news {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
}

#community-list-panel,
#news-list-panel {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-h));
}

#community-list-panel[hidden],
#news-list-panel[hidden],
#community-detail-panel[hidden],
#news-detail-panel[hidden] {
  display: none !important;
}

#community-detail-panel,
#news-detail-panel {
  flex: 1 0 auto;
  min-height: calc(100dvh - var(--header-h));
}

#view-community .community-feed,
#view-news .community-feed {
  flex: 1 0 auto;
  min-height: min(52vh, 420px);
}

.toolbar {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  outline: none;
  font-weight: 500;
}

.search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 0.55rem 0.15rem;
  margin-right: 1rem;
  font-weight: 550;
  font-size: var(--fs-small);
  cursor: pointer;
}

.chip.is-active {
  background: transparent;
  border-bottom-color: var(--brand-blue);
  color: var(--ink);
  font-weight: 650;
}

.results-meta {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.listing-label {
  color: var(--ink);
  font-weight: 700;
}

.listing-count {
  color: var(--muted);
  font-weight: 600;
}

/* Features */
.features-section .section-head {
  margin-bottom: 1.75rem;
}

.feature-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  background: #f4f8fc;
  border: none;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:last-child {
  border-bottom: none;
}

.feature:hover {
  background: #eef5fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 39, 64, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: none;
  margin-bottom: 0.25rem;
  padding: 0;
}

.feature-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 42ch;
}

html[data-theme="dark"] .feature {
  background: rgba(34, 44, 59, 0.65);
  border: none;
}

html[data-theme="dark"] .feature:hover {
  background: rgba(34, 44, 59, 0.9);
  border: none;
}

html[data-theme="dark"] .feature-icon {
  background: var(--surface);
  border: none;
}

/* Banners — photo-only continuous film reel */
.banner-carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.banner-track {
  display: flex;
  gap: 0.85rem;
  overflow: hidden;
  padding: 0.15rem 0 0.5rem;
}

.banner-track.is-marquee {
  overflow: hidden;
}

.banner-marquee {
  display: flex;
  width: max-content;
  animation: bannerReel 55s linear infinite;
  will-change: transform;
}

.banner-marquee-group {
  display: flex;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

.banner-carousel:hover .banner-marquee {
  animation-play-state: paused;
}

.banner-slide {
  position: relative;
  flex: 0 0 min(78vw, 420px);
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8eef5;
}

.banner-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes bannerReel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-marquee {
    animation: none;
  }

  .banner-track.is-marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }
}

/* Offer tiles — white card, faded % pattern, large platform logo */
.offer-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.offer-tile,
.card-tile,
.community-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  padding: 0;
  width: 100%;
  color: inherit;
  font: inherit;
}

.offer-tile {
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 118px;
  height: auto;
  align-self: start;
}

.offer-tile:hover,
.card-tile:hover,
.community-item:hover {
  transform: none;
  box-shadow: none;
  background: var(--surface-2);
}

.offer-media {
  position: relative;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.offer-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/icons/bg_pattern.png") center / 42px repeat;
  opacity: 0.28;
}

.offer-platform-logo {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.offer-body,
.card-body {
  padding: 0.95rem 1rem 1.05rem;
}

.offer-platform-name {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.offer-body h3,
.card-body h3,
.community-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.meta-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.offer-body .offer-subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.tag-muted {
  background: #d9e3ef;
  color: #4d6278;
}

/* Credit card tiles — compact image inside card */
.card-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  margin-top: 0;
  padding: 0 0 1rem;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.card-best-label {
  position: relative;
  z-index: 2;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.card-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0.75rem 0.25rem;
  background: transparent;
}

#home-cards .card-media {
  padding-top: 1.15rem;
}

#home-cards .card-tile {
  padding-bottom: 0.25rem;
}

#home-cards .card-body {
  padding-bottom: 0.35rem;
}

#home-cards .card-body .tag {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.card-media img {
  width: auto;
  max-width: 86%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(15, 39, 64, 0.14));
}

.card-body {
  padding: 0.45rem 1rem 1rem;
}

.card-body h3 {
  font-size: 0.95rem;
}

.card-bank-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bank-mini {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Legacy category image tiles removed — using chip tabs */

/* Download */
.download-section {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(43, 152, 240, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(43, 152, 240, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f8fc 0%, #eaf2fa 100%);
  border-block: 1px solid var(--line);
}

.download-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 0.5rem;
}

.download-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.download-points {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.download-points li {
  position: relative;
  padding-left: 1.35rem;
  color: #3d536a;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.download-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.store-row-center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

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

/* Download section — app screenshot showcase */
.app-showcase {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

.app-showcase-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-showcase-orb-a {
  width: min(360px, 88%);
  height: min(360px, 88%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 148, 255, 0.22) 0%, rgba(77, 148, 255, 0) 68%);
}

.app-showcase-orb-b {
  display: none;
}

.app-showcase-stack {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.65rem, 2.2vw, 1.15rem);
}

.app-showcase-phone {
  position: relative;
  flex: 0 0 auto;
  width: min(128px, 20vw);
  margin: 0;
  opacity: 1;
  transform: none;
  transition: transform 0.2s ease;
}

.app-showcase-phone.is-featured {
  width: min(148px, 23vw);
}

.app-showcase-frame {
  position: relative;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.app-showcase-frame::before {
  display: none;
}

.app-showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
  border: 1px solid rgba(15, 39, 64, 0.12);
  box-shadow:
    0 12px 28px rgba(15, 39, 64, 0.14),
    0 4px 10px rgba(15, 39, 64, 0.08);
  background: #fff;
}

.app-showcase-phone.is-featured .app-showcase-frame img {
  border-color: rgba(77, 148, 255, 0.28);
  box-shadow:
    0 16px 36px rgba(15, 39, 64, 0.18),
    0 6px 14px rgba(77, 148, 255, 0.14);
}

html[data-theme="dark"] .app-showcase-frame img {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1a2230;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .app-showcase-phone.is-featured .app-showcase-frame img {
  border-color: rgba(77, 148, 255, 0.38);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 6px 14px rgba(77, 148, 255, 0.16);
}

.app-showcase-phone.is-pos-1,
.app-showcase-phone.is-pos-4 {
  transform: translateY(6px);
}

html[data-theme="dark"] .app-showcase-frame {
  border: none;
  box-shadow: none;
  background: transparent;
}

@media (min-width: 720px) {
  .app-showcase-phone {
    width: min(138px, 17%);
  }

  .app-showcase-phone.is-featured {
    width: min(162px, 20%);
  }
}

@media (max-width: 719px) {
  .app-showcase {
    padding: 0.35rem 0 0;
  }

  .app-showcase-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    align-items: end;
    padding: 0.25rem 0;
  }

  .app-showcase-phone,
  .app-showcase-phone.is-featured {
    width: 100%;
    max-width: 76px;
    justify-self: center;
    transform: none;
  }

  .app-showcase-phone.is-featured {
    max-width: 84px;
  }

  .app-showcase-frame img {
    box-shadow:
      0 6px 16px rgba(15, 39, 64, 0.12),
      0 2px 6px rgba(15, 39, 64, 0.07);
  }

  .app-showcase-phone.is-featured .app-showcase-frame img {
    box-shadow:
      0 8px 20px rgba(15, 39, 64, 0.15),
      0 3px 8px rgba(77, 148, 255, 0.12);
  }
}

@media (hover: hover) {
  .app-showcase-phone:hover .app-showcase-frame img {
    border-color: rgba(77, 148, 255, 0.35);
    box-shadow:
      0 16px 34px rgba(15, 39, 64, 0.18),
      0 6px 14px rgba(77, 148, 255, 0.14);
  }

  .app-showcase-phone:hover {
    transform: translateY(-3px);
  }

  .app-showcase-phone.is-pos-1:hover,
  .app-showcase-phone.is-pos-4:hover {
    transform: translateY(3px);
  }
}

.store-btn {
  min-width: 168px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  display: grid;
}

.store-label {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 500;
}

.store-name {
  font-weight: 800;
  font-size: 1.05rem;
}

/* Card detail */
.detail-top {
  padding: 1.25rem 0 0.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: none;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.35rem 0;
}

.back-icon {
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 0.1rem;
}

.card-detail-hero {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 1rem;
  align-items: center;
}

.card-detail-hero img.card-art {
  width: auto;
  max-width: min(280px, 100%);
  max-height: 168px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  display: block;
}

.card-detail-copy {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
}

.card-detail-hero h1 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.card-detail-hero .meta-line {
  font-size: var(--fs-body);
}

.detail-section {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.detail-section h2 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2a3f56;
}

.detail-section p,
.detail-body {
  margin: 0;
  white-space: pre-wrap;
  color: #3d536a;
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.5;
}

.detail-link {
  color: #4d7eb8;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(77, 126, 184, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.detail-link:hover {
  color: #3a6aa0;
  text-decoration-color: rgba(58, 106, 160, 0.55);
}

/* Community */
.community-list {
  display: grid;
  gap: 0.85rem;
}

.community-item {
  padding: 1.15rem 1.2rem;
}

.community-item .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.community-detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.community-detail-card h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2a3f56;
  line-height: 1.35;
}

.community-detail-card .meta-line {
  font-size: 0.8rem;
}

.community-detail-card .body {
  margin-top: 0.75rem;
  white-space: pre-wrap;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3d536a;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.comments-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.75rem 1.15rem;
}

.comments-block h2 {
  margin: 0 0 0.85rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1b;
}

.comment-tree {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comment {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 0.55rem;
  padding: 0.35rem 0.2rem 0.15rem;
  position: relative;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #d7e3ef;
  color: #1a1a1b;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-main {
  min-width: 0;
  padding-bottom: 0.35rem;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.4rem;
  line-height: 1.2;
}

.comment .author {
  font-weight: 700;
  font-size: 0.8rem;
  color: #1a1a1b;
}

.comment-dot,
.comment-time {
  font-size: 0.72rem;
  color: #787c7e;
  font-weight: 500;
}

.comment .content {
  margin-top: 0.2rem;
  font-weight: 400;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #222222;
}

.comment-actions {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: none;
  background: transparent;
  color: #787c7e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 28px;
}

.comment-action:hover {
  background: #f2f4f5;
  color: #1a1a1b;
}

.comment-action svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.comment-score {
  min-width: 0.7rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-branch {
  margin: 0;
  padding: 0 0 0 0.35rem;
  border-left: 2px solid #edeff1;
  margin-left: 0.55rem;
}

.comment-branch .comment {
  padding-left: 0.55rem;
}

.comment-branch .comment-branch {
  margin-left: 0.85rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.45rem 1.35rem;
  display: grid;
  gap: 0.95rem;
  box-shadow: 0 10px 28px rgba(15, 39, 64, 0.05);
}

.contact-form-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-form-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form-row {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: #f7fafc;
  outline: none;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 0.15rem;
}

.contact-form-actions .btn {
  min-width: 148px;
}

.contact-form-actions .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
  min-width: 12rem;
}

.contact-form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-form-status.is-success {
  background: #eaf7ef;
  color: #1b6b3a;
  border: 1px solid #c6e6d1;
}

.contact-form-status.is-error {
  background: #fdf0f0;
  color: #9b2c2c;
  border: 1px solid #f0c2c2;
}

.contact-aside {
  display: grid;
  gap: 0.9rem;
}

.contact-aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.2rem;
}

.contact-aside-card h2,
.contact-aside-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.contact-aside-card h3 {
  font-size: 0.98rem;
}

.contact-aside-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.contact-aside-muted {
  background: #f5f9fc;
}

.contact-email-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-email-pill:hover {
  filter: brightness(0.97);
}

.contact-tips {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 500;
}

.contact-tips li + li {
  margin-top: 0.35rem;
}

.aside-apps {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.aside-apps h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

/* States */
.state-loading,
.state-empty,
.state-error {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.state-error {
  color: #9b2c2c;
  border-color: #f0c2c2;
  background: #fff5f5;
}

/* Modal */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100% - 2rem));
  width: 100%;
}

.modal::backdrop {
  background: rgba(15, 39, 64, 0.45);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  max-height: min(85vh, 720px);
  overflow: auto;
}

.get-app-panel {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
}

.get-app-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 1px solid #d7dee6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  color: #5a6570;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(15, 39, 64, 0.08);
}

.modal-close:hover {
  color: #2a323a;
  background: #fff;
  border-color: #c5ced8;
}

.modal-close-icon {
  position: relative;
  width: 12px;
  height: 12px;
  display: block;
}

.modal-close-icon::before,
.modal-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.modal-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-hero {
  border-radius: 14px;
  overflow: hidden;
  background: #f3f5f8;
  margin-bottom: 1rem;
  min-height: 140px;
  display: grid;
  place-items: center;
  position: relative;
}

.modal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/icons/bg_pattern.png") center / 42px repeat;
  opacity: 0.28;
}

.modal-hero img {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.modal-panel h2 {
  margin: 0 1.5rem 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  color: var(--navy);
}

.modal-panel .detail-text {
  margin-top: 1rem;
  white-space: pre-wrap;
  font-weight: 500;
}

.offer-more-line {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}

.offer-more-line .text-link {
  margin-left: 0.25rem;
  font-size: inherit;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.modal-actions .btn {
  width: 100%;
}

/* Footer */
.site-footer {
  margin-top: 0;
  background: #151a21;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.75rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}

.footer-brand-col {
  max-width: 22rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.footer-brand-link .brand-text {
  font-size: 1.25rem;
}

.footer-brand-link .brand-card {
  color: #d7dde5;
}

.footer-brand-link .brand-offs {
  color: var(--brand-blue);
}

.footer-tagline {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  max-width: 28ch;
}

.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.footer-col a:hover {
  color: #fff;
}

.footer-store-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.15rem;
  max-width: 168px;
}

.footer-store-row .store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
}

.footer-store-row .store-badge img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0 1.35rem;
}

.footer-copy {
  margin: 0 auto;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  line-height: 1.5;
  max-width: none;
}

@media (min-width: 720px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .brand {
    justify-self: start;
  }

  .nav-desktop {
    display: flex;
    justify-content: center;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }

  .hero-grid,
  .download-block,
  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .download-visual {
    justify-content: center;
    padding-inline: 1.5rem;
  }

  .download-visual .shot-fan {
    margin-inline: auto;
  }

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

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

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

  .banner-slide {
    flex-basis: min(52vw, 460px);
  }

  .card-detail-hero {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    align-items: center;
  }

  .phone-shot {
    width: min(300px, 70%);
  }

  .footer-grid {
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .footer-download {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-slide {
    flex-basis: min(38vw, 520px);
  }

  .offer-tile {
    grid-template-columns: 132px 1fr;
  }

  .offer-platform-logo {
    width: 84px;
    height: 84px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.2fr;
  }

  .footer-download {
    grid-column: auto;
  }
}

@media (max-width: 719px) {
  .shell {
    width: min(1120px, calc(100% - 2rem));
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-cta {
    padding-inline: 0.8rem;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-visual {
    min-height: auto;
    width: 100%;
    margin-inline: auto;
    padding-inline: 0;
    overflow: hidden;
  }

  .hero-promo {
    width: min(100%, 340px);
  }

  .hero-live-card {
    --orbit-r: 0px;
    left: 50%;
    top: 0;
    width: min(156px, 48%);
  }

  .hero-live-card-a,
  .hero-live-card-b,
  .hero-live-card-c,
  .hero-live-card-d,
  .hero-live-card-e {
    animation: none;
  }

  /* Compact C kept fully on-screen for mobile */
  .hero-live-card-a {
    top: 0%;
    transform: translate(calc(-50% + 48px), 0) rotate(-18deg);
  }

  .hero-live-card-b {
    top: 17%;
    transform: translate(calc(-50% + 6px), 0) rotate(-9deg) translateX(-14px);
  }

  .hero-live-card-c {
    top: 34%;
    transform: translate(calc(-50% - 40px), 0) rotate(0deg);
  }

  .hero-live-card-d {
    top: 51%;
    transform: translate(calc(-50% + 6px), 0) rotate(9deg) translateX(-14px);
  }

  .hero-live-card-e {
    top: 68%;
    transform: translate(calc(-50% + 48px), 0) rotate(18deg);
  }

  .hero-offer-chip {
    max-width: 92%;
    padding: 0.16rem 0.32rem 0.16rem 0.16rem;
    font-size: 0.44rem;
    gap: 0.2rem;
    top: 7%;
  }

  .hero-offer-chip img {
    width: 18px;
    height: 18px;
  }

  .offer-tile {
    grid-template-columns: 96px 1fr;
  }

  .offer-platform-logo {
    width: 64px;
    height: 64px;
  }

  .download-block {
    gap: 1.5rem;
  }

  .phone-shot {
    width: min(240px, 70%);
  }

  .shot-fan {
    width: min(340px, 100%);
    height: min(230px, 62vw);
    margin: 1rem auto 0.5rem;
  }

  .shot-card {
    width: min(88px, 24%);
    border-radius: 12px;
  }

  .download-visual {
    min-height: 220px;
    padding-top: 1.15rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
  }

  .download-section .download-visual {
    min-height: auto;
  }

  .card-media img {
    max-height: 78px;
  }

  /* Footer link columns side-by-side on mobile */
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 0.65rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-download {
    grid-column: 1 / -1;
  }

  .footer-col h3 {
    font-size: 0.82rem;
  }

  .footer-col a {
    font-size: 0.82rem;
  }

  .footer-store-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-width: none;
    gap: 0.55rem 0.75rem;
  }

  .footer-store-row .store-badge {
    width: auto;
  }

  .footer-store-row .store-badge img {
    height: 36px;
  }

  .download-section .store-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- Content + sidebar layouts ---------- */
.content-with-sidebar {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.sidebar-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.95rem 1rem 0.85rem;
}

.sidebar-panel h2 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.sidebar-list li {
  margin: 0;
}

.sidebar-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.4rem;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: var(--accent-soft);
  color: var(--brand-blue);
}

.sidebar-link .sidebar-link-title {
  display: block;
}

.sidebar-link .sidebar-link-meta,
.sidebar-link .sidebar-meta,
.sidebar-link .sidebar-count {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.sidebar-link .sidebar-count {
  display: inline;
  margin-top: 0;
  margin-left: 0.2rem;
}

.sidebar-list .state-loading,
.sidebar-list .state-empty {
  padding: 0.35rem 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.sidebar-list .state-loading-block,
.sidebar-panel .state-loading-block,
.chip-row .state-loading-block {
  min-height: 0;
  padding: 0.55rem 0.25rem;
  border: none;
  background: transparent;
  gap: 0.45rem;
}

.sidebar-list .state-loading-block::before,
.sidebar-panel .state-loading-block::before,
.chip-row .state-loading-block::before {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.85rem 0 0.35rem;
}

.breadcrumb a {
  color: var(--brand-blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: var(--muted);
  opacity: 0.7;
}

.crumb-current {
  color: var(--ink);
  max-width: min(52ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-detail-layout {
  padding-bottom: 2rem;
}

.section-categories {
  padding-top: 0;
  padding-bottom: 1rem;
}

/* Dark theme surface overrides */
html[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #182131 0%, var(--paper) 70%);
}

.hero-copy h1,
.section-head h2,
.page-hero h1,
.contact-aside h2,
.download-copy h2,
.get-app-panel h2,
.card-detail-hero h1,
.detail-section h2,
.community-detail-card h1 {
  color: var(--ink);
}

html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .home-band-muted {
  background: var(--paper);
  border-block: none;
}

html[data-theme="dark"] .home-band-white {
  background: var(--surface);
  border-block: none;
}

html[data-theme="dark"] .download-section.home-band-white,
html[data-theme="dark"] .download-section.home-band-muted {
  border-block: 1px solid var(--line);
}

.feature,
.offer-tile,
.card-tile,
.community-item,
.community-detail-card,
.contact-form,
.contact-aside-card,
.modal-panel {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  border-radius: var(--radius);
}

.features-section .feature {
  background: #f4f8fc;
  border: none;
  border-radius: 14px;
}

.features-section .feature:hover {
  background: #eef5fc;
  border: none;
}

html[data-theme="dark"] .features-section .feature {
  background: rgba(34, 44, 59, 0.65);
  border: none;
}

html[data-theme="dark"] .features-section .feature:hover {
  background: rgba(34, 44, 59, 0.9);
  border: none;
}

.card-detail-copy,
.detail-section,
.content-sidebar .sidebar-panel {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.chip {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.chip.is-active {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--brand-blue);
  color: var(--ink);
}

.search-field input,
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .search-field input,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: var(--surface-2);
}

html[data-theme="dark"] .contact-aside-muted {
  background: rgba(34, 44, 59, 0.55);
}

html[data-theme="dark"] .contact-form-status.is-success {
  background: rgba(34, 120, 70, 0.2);
  border-color: rgba(80, 160, 110, 0.35);
  color: #9fdfb4;
}

html[data-theme="dark"] .contact-form-status.is-error {
  background: rgba(140, 50, 50, 0.25);
  border-color: rgba(180, 90, 90, 0.4);
  color: #f0b4b4;
}

.btn-soft {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid rgba(15, 39, 64, 0.14);
  box-shadow: 0 4px 14px rgba(15, 39, 64, 0.1);
}

.btn-ghost-action {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.meta-line,
.offer-body .offer-subtitle,
.detail-section p,
.detail-body,
.download-points li,
.banner-copy p {
  color: var(--muted);
}

.tag {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

html[data-theme="dark"] .tag {
  color: #9ec5ff;
}

.tag-muted {
  background: #d9e3ef;
  color: #4d6278;
}

html[data-theme="dark"] .tag-muted {
  background: #2a3544;
  color: #9aa8b8;
}

.card-best-label {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

html[data-theme="dark"] .card-best-label {
  color: #9ec5ff;
}

.card-media {
  background: transparent;
  padding: 0.35rem 0.75rem 0.25rem;
}

html[data-theme="dark"] .card-media {
  background: transparent;
}

.download-section {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(77, 148, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(77, 148, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f8fc 0%, #eaf2fa 100%);
  border-block-color: var(--line);
}

html[data-theme="dark"] .download-section {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(77, 148, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(77, 148, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #161d2a 0%, #121820 100%);
}

.site-footer {
  background: #151a21;
}

html[data-theme="dark"] .site-footer {
  background: #0c1017;
}

.hero-offer-chip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(220, 230, 240, 0.95);
}

html[data-theme="dark"] .hero-offer-chip {
  background: rgba(26, 34, 48, 0.96);
  border-color: rgba(42, 53, 68, 0.95);
  color: #e8eef5;
}

html[data-theme="dark"] .hero-offer-chip img {
  background: #1a2230;
}

/* Offers list (one-by-one) */
.offer-list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.offer-grid,
.card-grid {
  align-content: start;
}

.offer-list .offer-tile {
  grid-template-columns: 96px 1fr;
  min-height: 96px;
  height: auto;
  align-self: start;
  border-radius: var(--radius);
}

.offer-list .offer-platform-logo {
  width: 58px;
  height: 58px;
}

/* Loading blocks */
.state-loading,
.state-empty,
.state-error {
  color: var(--muted);
  font-weight: 600;
}

.state-loading-block,
.state-message-block {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.state-loading-block {
  min-height: var(--loader-min-h);
}

.state-message-block {
  min-height: 0;
}

.state-loading.state-loading-block::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--brand-blue);
  animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, var(--sidebar-w));
    gap: 1.75rem;
  }

  .offer-search-row,
  .card-search-row {
    display: block;
    margin-top: 1.1rem;
  }

  .offer-filters-toggle,
  .offers-filters-slot,
  .card-filters-toggle,
  .cards-filters-slot {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .content-sidebar {
    order: -1;
  }

  #view-offers .content-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }

  #view-offers .content-main {
    order: 0;
    width: 100%;
  }

  #view-offers .content-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-self: stretch;
  }

  #view-offers #offers-by-bank-panel,
  #view-offers .sidebar-ad-slot,
  #view-offers .sidebar-ad-slot .ad-slot-sidebar {
    width: 100%;
  }

  #view-offers #offers-by-bank-panel .bank-offer-grid,
  #view-offers #offers-by-bank-panel .bank-offer-card {
    width: 100%;
  }

  #view-offers .offers-filters-sidebar-slot {
    display: none;
  }

  #view-offers #offers-by-bank-panel {
    order: 0;
  }

  #view-offers .sidebar-ad-slot {
    order: 1;
    margin-bottom: 0;
  }

  #view-offers .offer-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 1.1rem;
  }

  #view-offers .offer-search-field {
    flex: 1;
    min-width: 0;
    margin-top: 0;
  }

  #view-offers .offer-filters-toggle {
    flex-shrink: 0;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--muted);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  #view-offers .offer-filters-toggle:hover,
  #view-offers .offer-filters-toggle.is-active {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: var(--accent-soft);
  }

  #view-offers .offers-filters-slot {
    margin-top: 0.75rem;
    width: 100%;
  }

  #view-offers .offers-filters-slot:not([hidden]) #offer-filters-panel {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0;
  }

  #view-offers .offers-filters-slot #offer-filters-panel .filters-head {
    margin-bottom: 0.65rem;
  }

  #view-offers .offers-filters-slot #offer-filters-panel .filter-group {
    margin-bottom: 0.85rem;
  }

  #view-offers .offers-filters-slot #offer-filters-panel .filter-group:last-child {
    margin-bottom: 0;
  }

  #view-offers .offers-filters-slot #filter-offer-kinds-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #view-offers .offers-filters-slot #filter-offer-kinds-list li {
    flex: 0 0 auto;
    margin: 0;
  }

  #view-offers .offers-filters-slot #filter-offer-kinds-list .filter-check {
    white-space: nowrap;
    font-size: 0.84rem;
  }

  #view-offers .offers-filters-slot #filter-offer-categories-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #view-offers .offers-filters-slot #filter-offer-categories-list li {
    flex: 0 0 auto;
    margin: 0;
  }

  #view-offers .offers-filters-slot #filter-offer-categories-list .filter-check {
    white-space: nowrap;
  }

  #view-cards .content-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }

  #view-cards .content-main {
    order: 0;
    width: 100%;
  }

  #view-cards .content-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-self: stretch;
  }

  #view-cards .cards-filters-sidebar-slot {
    display: none;
  }

  #view-cards .content-sidebar .sidebar-panel,
  #view-cards .content-sidebar .sidebar-ads,
  #view-cards .content-sidebar .ad-slot-sidebar {
    width: 100%;
  }

  #view-cards .card-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 1.1rem;
  }

  #view-cards .card-search-field-inline {
    flex: 1;
    min-width: 0;
    margin-top: 0;
  }

  #view-cards .card-filters-toggle {
    flex-shrink: 0;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--muted);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  #view-cards .card-filters-toggle:hover,
  #view-cards .card-filters-toggle.is-active {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: var(--accent-soft);
  }

  #view-cards .cards-filters-slot {
    margin-top: 0.75rem;
    width: 100%;
  }

  #view-cards .cards-filters-slot:not([hidden]) #card-filters-panel {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  #view-cards .cards-filters-slot .filter-group-fees {
    order: 0;
  }

  #view-cards .cards-filters-slot .filter-group-banks {
    order: 1;
  }

  #view-cards .cards-filters-slot .filter-group-categories {
    order: 2;
  }

  #view-cards .cards-filters-slot #card-filters-panel .filters-head {
    margin-bottom: 0.65rem;
  }

  #view-cards .cards-filters-slot #card-filters-panel .filter-group {
    margin-bottom: 0.85rem;
  }

  #view-cards .cards-filters-slot #card-filters-panel .filter-group:last-child {
    margin-bottom: 0;
  }

  #view-cards .cards-filters-slot #filter-fees-list,
  #view-cards .cards-filters-slot #filter-banks-list,
  #view-cards .cards-filters-slot #filter-categories-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #view-cards .cards-filters-slot #filter-fees-list li,
  #view-cards .cards-filters-slot #filter-banks-list li,
  #view-cards .cards-filters-slot #filter-categories-list li {
    flex: 0 0 auto;
    margin: 0;
  }

  #view-cards .cards-filters-slot #filter-fees-list .filter-check,
  #view-cards .cards-filters-slot #filter-banks-list .filter-check,
  #view-cards .cards-filters-slot #filter-categories-list .filter-check {
    white-space: nowrap;
    font-size: 0.84rem;
  }

  #view-cards .cards-filters-slot .filter-more,
  #view-cards .cards-filters-slot .filter-hint {
    margin-top: 0.45rem;
  }

  #community-detail-panel .community-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }

  #community-detail-panel .community-detail-layout .content-main {
    order: 0;
    width: 100%;
  }

  #community-detail-panel .community-detail-layout .content-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-self: stretch;
  }

  #community-detail-panel .content-sidebar .sidebar-panel,
  #community-detail-panel .content-sidebar .sidebar-ads,
  #community-detail-panel .content-sidebar .ad-slot-sidebar {
    width: 100%;
  }
}

/* ---------- Website layout polish (less app-like) ---------- */
.shell {
  width: min(1180px, calc(100% - 3rem));
}

.view:not(.view-home) {
  background: #ffffff;
}

.view:not(.view-home) .page-hero,
.view:not(.view-home) .section,
.view:not(.view-home) .community-feed,
.view:not(.view-home) .content-with-sidebar {
  background: transparent;
}

html[data-theme="dark"] .view:not(.view-home) {
  background: var(--surface);
}

html[data-theme="dark"] .site-header {
  background: #1a2230;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.offer-list .offer-tile,
.offer-grid .offer-tile,
.card-grid .card-tile {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.offer-body h3,
.community-item h3,
.card-tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.community-item,
.community-detail-card,
.comments-block,
.card-detail-hero,
.detail-section,
.contact-form,
.contact-aside,
.modal-panel {
  border-radius: 0;
  box-shadow: none;
}

.community-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.community-detail-card,
.comments-block {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding-left: 0;
  padding-right: 0;
}

.card-detail-hero {
  background: transparent;
  border: none;
  border-bottom: none;
  padding: 0;
}

.card-detail-copy,
.detail-section {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
}

.card-detail-bank {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}

.community-detail-card h1,
.card-detail-hero h1,
.detail-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.btn {
  border-radius: 4px;
}

.btn-sm {
  border-radius: 4px;
}

.search-field input {
  border-radius: 4px;
}

.chip.is-active {
  background: transparent !important;
  border-color: transparent;
  border-bottom-color: var(--brand-blue) !important;
  color: var(--ink) !important;
}

.feature-row {
  gap: 1rem;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }

  .feature {
    padding: 1.45rem 1.35rem;
  }
}

@media (min-width: 1100px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-row .feature:nth-child(4),
  .feature-row .feature:nth-child(5) {
    grid-column: span 1;
  }
}

.hero-lede {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

.download-copy h2 {
  font-size: var(--fs-h1);
}

.offer-media {
  background: var(--surface-2);
  border-radius: 0;
}

.banner-slide {
  border-radius: 4px;
}

.state-loading-block,
.state-message-block {
  border-radius: 0;
  background: var(--surface-2);
}

.sidebar-link {
  border-radius: 0;
  padding-left: 0;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: transparent;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Site frame + AdSense rails ---------- */
.site-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
  position: relative;
}

.site-core {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-core > main {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

#main > .view.is-active {
  padding-top: 0;
}

.ad-rail {
  display: none;
  position: sticky;
  top: 12px;
  padding: 0.75rem 0.5rem;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 40;
}

.ad-slot {
  width: 160px;
  min-height: 600px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-ads {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  align-content: start;
}

.ad-slot-sidebar {
  width: 100%;
  min-height: 220px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
}

#offers-sidebar-ads .ad-slot-sidebar:last-child,
#cards-sidebar-ads .ad-slot-sidebar:last-child {
  min-height: 280px;
}

.ad-label {
  writing-mode: horizontal-tb;
  opacity: 0.7;
}

@media (min-width: 1280px) {
  .site-frame {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
  }

  .ad-rail {
    display: flex;
  }

  .shell {
    width: min(1100px, calc(100% - 2rem));
  }
}

@media (max-width: 719px) {
  .shell {
    width: min(1120px, calc(100% - 2rem));
  }

  .page-hero,
  .section,
  .community-feed,
  .detail-top {
    padding-inline: 0.15rem;
  }
}

/* Hot deals */
.hot-deals-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.hot-deal-tile {
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  overflow: hidden;
  border-bottom: none !important;
}

.hot-deal-tone-0 {
  background: #eef6ff !important;
}
.hot-deal-tone-1 {
  background: #f3faf3 !important;
}
.hot-deal-tone-2 {
  background: #fff7ef !important;
}
.hot-deal-tone-3 {
  background: #f7f3ff !important;
}

html[data-theme="dark"] .hot-deal-tone-0 {
  background: #1a2740 !important;
}
html[data-theme="dark"] .hot-deal-tone-1 {
  background: #1a2e24 !important;
}
html[data-theme="dark"] .hot-deal-tone-2 {
  background: #2e261a !important;
}
html[data-theme="dark"] .hot-deal-tone-3 {
  background: #241a2e !important;
}

@media (min-width: 720px) {
  .hot-deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card filters */
.filters-panel .filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.filters-panel .filters-head h2 {
  margin: 0;
  border: none;
  padding: 0;
}

.filters-clear {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--brand-blue);
}

.filter-group {
  margin-bottom: 1.1rem;
}

.filter-group-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-blue);
}

.filter-bank-ico,
.filter-cat-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.filter-more,
.sidebar-more {
  margin-top: 0.55rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--brand-blue);
}

.filter-hint {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: #fff4e8;
  color: #9a5b18;
  font-size: 0.8rem;
  font-weight: 600;
}

html[data-theme="dark"] .filter-hint {
  background: #3a2a18;
  color: #f0c090;
}

.sidebar-panel-plain {
  background: transparent !important;
  border: none !important;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-panel-plain > h2,
#cards-sidebar .sidebar-panel-plain > h2,
#offers-sidebar .sidebar-panel-plain > h2,
#card-detail-sidebar .sidebar-panel-plain > h2,
#community-detail-sidebar .sidebar-panel-plain > h2 {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border-bottom: none;
  border-radius: 6px;
  background: #e8f1ff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .sidebar-panel-plain > h2,
html[data-theme="dark"] #cards-sidebar .sidebar-panel-plain > h2,
html[data-theme="dark"] #offers-sidebar .sidebar-panel-plain > h2,
html[data-theme="dark"] #card-detail-sidebar .sidebar-panel-plain > h2,
html[data-theme="dark"] #community-detail-sidebar .sidebar-panel-plain > h2 {
  background: #1e2c44;
}

.search-hit,
mark.search-hit {
  background: #cfe2ff;
  color: inherit;
  padding: 0 0.12em;
  border-radius: 2px;
}

html[data-theme="dark"] .search-hit,
html[data-theme="dark"] mark.search-hit {
  background: #1e3a5f;
  color: #d6e8ff;
}

.card-feature-list li.is-search-match {
  background: #e8f1ff;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  margin-inline: -0.45rem;
}

html[data-theme="dark"] .card-feature-list li.is-search-match {
  background: #1e2c44;
}

.sidebar-list-sep li {
  border-bottom: 1px solid var(--line);
}

.sidebar-list-sep li:last-child {
  border-bottom: none;
}

.sidebar-list-sep .sidebar-link {
  padding: 0.65rem 0;
}

.card-search-field {
  display: block;
  margin-top: 1.1rem;
  max-width: 520px;
}

.card-search-field input {
  border-radius: 4px;
}

/* Credit card listing rows */
.card-listing {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.card-listing-item {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 1rem 1.15rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 39, 64, 0.04);
  cursor: pointer;
}

html[data-theme="dark"] .card-listing-item {
  background: var(--surface);
}

.card-listing-media {
  display: grid;
  place-items: center;
  align-content: start;
  min-height: 110px;
}

.card-listing-media img {
  width: auto;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(15, 39, 64, 0.12));
}

.card-listing-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.card-fee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.55rem;
}

.card-fee {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.card-fee-ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.card-fee-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.card-feature-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.card-feature-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-feature-ico {
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #9aa8b8;
  flex-shrink: 0;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #eef3f9;
  color: #2a3f56;
  font-size: 0.78rem;
  font-weight: 600;
}

html[data-theme="dark"] .card-pill {
  background: #243044;
  color: var(--ink);
}

.card-pill img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.card-listing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.card-listing-actions .text-link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--brand-blue);
}

.card-listing-bank {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .card-listing-item {
    grid-template-columns: 1fr;
  }

  .card-listing-media {
    min-height: 0;
  }

  .card-listing-media img {
    max-height: 88px;
  }
}

#card-detail-panel[hidden],
#cards-list-panel[hidden] {
  display: none !important;
}

.card-detail-summary {
  cursor: default;
  margin-bottom: 1.25rem;
}

.card-detail-summary .card-listing-actions {
  margin-top: 0.85rem;
  justify-content: flex-end;
}

.card-detail-bank-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.card-detail-bank-line .bank-mini {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.detail-section.detail-section-rich {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0;
  padding: 1.05rem 0 1.15rem !important;
  margin-bottom: 0;
}

.detail-section-rich h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.detail-section-tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.detail-section-tick::before {
  content: "✓";
}

.detail-ico-gift { background: #ffe8f0; color: #d4537e; }
.detail-ico-star { background: #fff3d6; color: #c48a12; }
.detail-ico-reward { background: #e6f7ef; color: #1f8a5b; }
.detail-ico-plus { background: #e8f1ff; color: #3b7ddd; }
.detail-ico-redeem { background: #f0e8ff; color: #7a4fd1; }
.detail-ico-flag { background: #ffe9dc; color: #d06a2b; }
.detail-ico-renew { background: #e8f6fb; color: #2a8fad; }
.detail-ico-lounge { background: #eceef8; color: #4a5aa8; }
.detail-ico-fuel { background: #fff0e4; color: #c45f12; }
.detail-ico-fee { background: #f2f4f7; color: #5a6a7a; }
.detail-ico-check { background: #e6f7ef; color: #1f8a5b; }
.detail-ico-doc { background: #eef1f6; color: #5a6a7a; }
.detail-ico-spark { background: #e8f1ff; color: #3b7ddd; }

.detail-feature-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.detail-feature-bullets li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.detail-bullet-tick {
  width: 6px;
  height: 6px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--brand-blue);
  opacity: 0.55;
  flex-shrink: 0;
}

.detail-bullets-gift .detail-bullet-tick { background: #d4537e; }
.detail-bullets-star .detail-bullet-tick { background: #c48a12; }
.detail-bullets-reward .detail-bullet-tick { background: #1f8a5b; }
.detail-bullets-plus .detail-bullet-tick { background: #3b7ddd; }
.detail-bullets-redeem .detail-bullet-tick { background: #7a4fd1; }
.detail-bullets-flag .detail-bullet-tick { background: #d06a2b; }
.detail-bullets-renew .detail-bullet-tick { background: #2a8fad; }
.detail-bullets-lounge .detail-bullet-tick { background: #4a5aa8; }
.detail-bullets-fuel .detail-bullet-tick { background: #c45f12; }
.detail-bullets-fee .detail-bullet-tick { background: #5a6a7a; }
.detail-bullets-check .detail-bullet-tick { background: #1f8a5b; }
.detail-bullets-doc .detail-bullet-tick { background: #5a6a7a; }
.detail-bullets-spark .detail-bullet-tick { background: #3b7ddd; }

html[data-theme="dark"] .detail-section-tick {
  background: #1e2c44;
}

html[data-theme="dark"] .detail-section-rich {
  border-bottom-color: var(--line);
}

/* ---------- Dark mode: loading, cards, offers, community ---------- */
html[data-theme="dark"] body {
  background: var(--paper);
}

html[data-theme="dark"] .state-loading,
html[data-theme="dark"] .state-empty {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}

html[data-theme="dark"] .state-error {
  background: rgba(140, 50, 50, 0.22);
  border-color: rgba(180, 90, 90, 0.35);
  color: #f0b4b4;
}

html[data-theme="dark"] .sidebar-list .state-loading,
html[data-theme="dark"] .sidebar-list .state-empty,
html[data-theme="dark"] .sidebar-list .state-error {
  background: transparent;
  border: none;
  padding: 0.35rem 0.2rem;
  text-align: left;
}

html[data-theme="dark"] #home-cards .state-loading,
html[data-theme="dark"] #home-cards .state-empty,
html[data-theme="dark"] #home-cards .state-error,
html[data-theme="dark"] .offer-grid .state-loading,
html[data-theme="dark"] .offer-grid .state-empty,
html[data-theme="dark"] .offer-grid .state-error,
html[data-theme="dark"] .community-list .state-loading,
html[data-theme="dark"] .community-list .state-empty,
html[data-theme="dark"] .community-list .state-error {
  background: var(--surface-2);
  border-color: var(--line);
}

html[data-theme="dark"] .card-grid .card-tile,
html[data-theme="dark"] #home-cards .card-tile {
  background: transparent;
  border-radius: 0;
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .card-grid .card-tile:hover,
html[data-theme="dark"] #home-cards .card-tile:hover {
  background: var(--surface-2);
}

html[data-theme="dark"] .card-media img {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

html[data-theme="dark"] .offer-media::before,
html[data-theme="dark"] .modal-hero::before {
  content: none;
  display: none;
}

html[data-theme="dark"] .offer-media,
html[data-theme="dark"] .modal-hero {
  background: var(--offer-media-bg);
}

html[data-theme="dark"] .hot-deal-tile .offer-media {
  background: var(--offer-media-bg);
}

html[data-theme="dark"] #view-community,
html[data-theme="dark"] #view-news,
html[data-theme="dark"] #community-detail-panel,
html[data-theme="dark"] #news-detail-panel {
  background: var(--surface);
  color: var(--ink);
}

html[data-theme="dark"] .community-item {
  background: transparent;
  border-bottom-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .community-item:hover {
  background: var(--surface-2);
}

html[data-theme="dark"] .community-detail-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

html[data-theme="dark"] .community-detail-card .body {
  color: var(--muted);
}

html[data-theme="dark"] .comments-block {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

html[data-theme="dark"] .comments-block h2 {
  color: var(--ink);
}

html[data-theme="dark"] .comment-avatar {
  background: #3a4555;
  color: var(--ink);
}

html[data-theme="dark"] .comment .author {
  color: var(--ink);
}

html[data-theme="dark"] .comment-dot,
html[data-theme="dark"] .comment-time,
html[data-theme="dark"] .comment-action {
  color: var(--muted);
}

html[data-theme="dark"] .comment .content {
  color: var(--ink);
}

html[data-theme="dark"] .comment-action:hover {
  background: var(--surface-2);
  color: var(--ink);
}

html[data-theme="dark"] .comment-branch {
  border-left-color: var(--line-soft);
}

html[data-theme="dark"] .modal-close {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}

html[data-theme="dark"] .modal-close:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-soft);
}

/* ── Hero showcase: card + overlaid offers ── */
.hero-showcase {
  width: min(360px, 100%);
  margin: 0 auto;
}

.hero-showcase-card {
  position: relative;
  width: 100%;
}

.hero-showcase-card > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(15, 39, 64, 0.16);
}

.hero-showcase-offers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-showcase-offer {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.14);
  backdrop-filter: blur(8px);
  cursor: pointer;
  width: max-content;
  max-width: min(260px, 88%);
  z-index: 2;
  appearance: none;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-showcase-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 39, 64, 0.18);
}

.hero-showcase-offer:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-showcase-offer img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.hero-showcase-offer span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #1c3550;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.hero-showcase-offer-1 {
  top: 10%;
  left: -6%;
}

.hero-showcase-offer-2 {
  top: 32%;
  right: -8%;
}

.hero-showcase-offer-3 {
  top: 54%;
  left: -4%;
}

.hero-showcase-offer-4 {
  top: 76%;
  right: -6%;
}

.hero-showcase-offers-only {
  display: grid;
  gap: 0.65rem;
  width: min(320px, 100%);
}

.hero-showcase-offers-only .hero-showcase-offer {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  max-width: 100%;
}

/* ── Feature grid (Built for card-smart living) ── */
.feature-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 39, 64, 0.08);
  box-shadow: 0 2px 10px rgba(15, 39, 64, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.08);
}

.feature-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.feature-card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink, #15263a);
}

.feature-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted, #5f7388);
}

.feature-tone-blue .feature-card-icon { background: rgba(77, 148, 255, 0.14); }
.feature-tone-indigo .feature-card-icon { background: rgba(99, 102, 241, 0.14); }
.feature-tone-teal .feature-card-icon { background: rgba(20, 184, 166, 0.14); }
.feature-tone-green .feature-card-icon { background: rgba(34, 197, 94, 0.14); }
.feature-tone-purple .feature-card-icon { background: rgba(168, 85, 247, 0.14); }

/* ── Top Credit Card Picks horizontal scroll ── */
.card-picks-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-picks-scroll::-webkit-scrollbar {
  height: 8px;
}

.card-picks-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 39, 64, 0.15);
  border-radius: 999px;
}

.card-pick {
  position: relative;
  flex: 0 0 min(320px, 86vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(15, 39, 64, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 39, 64, 0.06);
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
}

.card-pick-badge {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(77, 148, 255, 0.12);
  margin-bottom: 0.75rem;
}

.pick-badge-default,
.pick-badge-travel,
.pick-badge-shop,
.pick-badge-upi,
.pick-badge-cashback {
  display: none;
}

.card-pick-media {
  display: grid;
  place-items: center;
  min-height: 118px;
  margin-bottom: 0.85rem;
}

.card-pick-media img {
  max-width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.card-pick-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2740;
}

.card-pick-bank {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.card-pick-offers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.card-pick-offers-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-pick-rating {
  display: none;
}

.card-pick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.card-pick-stat-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.card-pick-stat-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f2740;
}

.card-pick-stat-reward {
  color: #0f2740;
}

.card-pick-highlight {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.card-pick-check {
  color: #059669;
  font-weight: 800;
  flex-shrink: 0;
}

.card-pick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.card-pick-review {
  align-self: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-outline {
  background: #fff;
  color: var(--primary, #4d94ff);
  border: 1.5px solid var(--primary, #4d94ff);
}

.btn-outline:hover {
  background: rgba(77, 148, 255, 0.08);
}

/* removed duplicate card-pick-bank / card-pick-review below */

.blog-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
}

.blog-card {
  flex: 0 0 min(320px, 86vw);
  scroll-snap-align: start;
}

.blog-card-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 39, 64, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 39, 64, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card-hit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 39, 64, 0.1);
}

.blog-card-media {
  width: 100%;
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  line-height: 0;
  background: transparent;
}

.blog-card-media img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.blog-card-media.is-placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  background: transparent;
}

.blog-card-media-fallback {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.blog-card-body {
  padding: 1rem 1rem 1.1rem;
}

.blog-card-date {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.blog-card-tag {
  display: none;
}

.blog-card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2740;
}

.blog-card-desc {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}

.blog-card-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary, #4d94ff);
}

.blog-section-foot {
  margin-top: 0.5rem;
}

/* ── Offers pagination + sidebar banks ── */
.offers-show-more-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.25rem;
}

.offers-show-more-btn {
  font-size: 0.95rem;
  font-weight: 700;
}

.sidebar-ad-slot {
  margin-bottom: 1rem;
}

.bank-offer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.bank-offer-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 64, 0.08);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 39, 64, 0.04);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bank-offer-card:hover,
.bank-offer-card.is-active {
  border-color: rgba(77, 148, 255, 0.45);
  background: rgba(77, 148, 255, 0.06);
  box-shadow: 0 6px 16px rgba(77, 148, 255, 0.12);
}

.bank-offer-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4f8fc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bank-offer-card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bank-offer-card-icon span {
  font-size: 0.95rem;
  font-weight: 800;
  color: #4d94ff;
}

.bank-offer-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.bank-offer-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f2740;
}

.bank-offer-card-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

/* ── Community / news images ── */
.community-item.has-media {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem;
  align-items: start;
  text-align: left;
}

.community-item-media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef4fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.community-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.community-item-date {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.community-detail-media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #eef4fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-height: 180px;
}

.community-detail-media img {
  width: 100%;
  height: auto;
  max-height: min(480px, 70vh);
  object-fit: contain;
  display: block;
}

/* ── Static app screenshots (no animation) ── */
.shot-fan-static {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.8vw, 0.9rem);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: auto;
  min-height: 250px;
  margin: 1.25rem auto 2rem;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.shot-fan-static .shot-card {
  position: relative;
  left: auto !important;
  top: auto !important;
  flex: 0 0 auto;
  animation: none !important;
}

.shot-fan-static .shot-card-a {
  display: none;
}

.shot-fan-static .shot-card-b {
  z-index: 1;
  transform: rotate(-11deg) translateY(10px);
}

.shot-fan-static .shot-card-c {
  z-index: 2;
  transform: rotate(-3deg) translateY(4px);
}

.shot-fan-static .shot-card-d {
  z-index: 3;
  transform: rotate(3deg) translateY(4px);
}

.shot-fan-static .shot-card-e {
  z-index: 4;
  transform: rotate(11deg) translateY(10px);
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-showcase-offer {
    max-width: min(220px, 90%);
  }

  .hero-showcase-offer span {
    font-size: 0.62rem;
  }

  .shot-fan-static {
    min-height: 210px;
    padding-inline: 0.5rem;
    gap: 0.35rem;
  }

  .shot-fan-static .shot-card {
    width: min(72px, 18vw);
  }

  .community-item.has-media {
    grid-template-columns: 88px 1fr;
  }
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .card-pick,
html[data-theme="dark"] .blog-card-hit,
html[data-theme="dark"] .bank-offer-card {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] .card-pick-body h3,
html[data-theme="dark"] .card-pick-stat-value,
html[data-theme="dark"] .blog-card-body h3,
html[data-theme="dark"] .bank-offer-card-name {
  color: var(--ink);
}

html[data-theme="dark"] .hero-showcase-offer {
  background: rgba(20, 30, 44, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .hero-showcase-offer span {
  color: var(--ink);
}

/* ── Legal pages ── */
.legal-doc {
  max-width: 720px;
  padding-bottom: 2.5rem;
}

.legal-meta {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.legal-intro {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
}

.legal-section {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 39, 64, 0.08);
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2740;
}

.legal-section p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-foot {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-legal-links {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}
