/* MaxDuit — Official site */
:root {
  --navy-950: #06122e;
  --navy-900: #0a1f4d;
  --navy-800: #12306e;
  --navy-700: #1a4494;
  --navy-100: #e8eef9;
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #f4f7fc;
  --white: #ffffff;
  --gold: #f5c542;
  --gold-deep: #e8a317;
  --mint: #16a34a;
  --mint-soft: #dcfce7;
  --sky: #2563eb;
  --sky-soft: #dbeafe;
  --amber-soft: #fef3c7;
  --radius: 1.25rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body[data-site-lang="zh"] {
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    var(--font-body),
    system-ui,
    sans-serif;
}

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

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

button,
a,
.calc-range,
.lang-switch-btn,
.menu-toggle,
.footer-copy {
  touch-action: manipulation;
}

ul,
ol {
  list-style: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-sizing: border-box;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-right, 0px)) 0 max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), -webkit-backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(6, 18, 46, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  z-index: 2;
}

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lang-switch {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  z-index: 2;
}

.lang-switch-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  min-height: 2.1rem;
  min-width: 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch-btn.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--navy-950);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  z-index: 2;
}

.legal-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.legal-hero-top .lang-switch {
  background: rgba(255, 255, 255, 0.12);
}

.cancel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cancel-top .cancel-brand {
  margin-bottom: 0;
}

.cancel-top .lang-switch {
  background: rgba(10, 31, 77, 0.08);
  border-color: rgba(10, 31, 77, 0.12);
}

.cancel-top .lang-switch-btn {
  color: rgba(15, 23, 42, 0.65);
}

.cancel-top .lang-switch-btn.is-active {
  color: var(--navy-950);
}

body[data-site-lang="zh"] {
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    var(--font-body);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-950) !important;
  font-weight: 600 !important;
}

.nav-cta-icon {
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #ffd666;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 18, 46, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem;
}

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

.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.mobile-nav-play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
    margin-left: clamp(2.25rem, 4.5vw, 3.75rem);
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.25rem)
    max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 42%, var(--navy-800) 100%);
  color: var(--white);
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hero-glow--1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-glow--2 {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: 10%;
  left: -12%;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-confetti .piece {
  position: absolute;
  top: -12%;
  left: var(--x, 50%);
  width: var(--w, 8px);
  height: var(--h, 12px);
  background: var(--c, #f5c542);
  opacity: 0;
  border-radius: var(--r, 2px);
  animation: confetti-fall var(--dur, 7s) var(--delay, 0s) linear infinite;
  will-change: transform, opacity;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.35);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c, #f5c542) 35%, transparent);
}

.hero-confetti .piece.is-circle {
  border-radius: 50%;
}

.hero-confetti .piece.is-petal {
  border-radius: 50% 0 50% 50%;
  transform-origin: center;
}

.hero-confetti .piece.is-ribbon {
  width: var(--w, 4px);
  height: var(--h, 14px);
  border-radius: 999px;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.85);
  }
  8% {
    opacity: var(--o, 0.85);
  }
  70% {
    opacity: var(--o, 0.85);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 40px), 115vh, 0) rotate(var(--rot, 520deg)) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-24px, 18px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  padding-bottom: 2.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1rem;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-lede {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 30rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-950);
  box-shadow: 0 10px 28px rgba(245, 197, 66, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(245, 197, 66, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0.25rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.25rem;
  pointer-events: none;
  isolation: isolate;
}

.coin-field {
  position: absolute;
  inset: -6% -14% -2%;
  z-index: 0;
  perspective: 600px;
}

.coin {
  position: absolute;
  display: block;
  width: var(--size, 2.5rem);
  height: var(--size, 2.5rem);
  filter: drop-shadow(0 6px 12px rgba(212, 146, 10, 0.45));
  animation: coin-drift var(--dur, 5.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.92;
  will-change: transform;
  transform-origin: center;
}

.coin svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: coin-flip var(--spin, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.coin--1 {
  --size: 3.1rem;
  --dur: 5.2s;
  --spin: 11s;
  --delay: 0s;
  top: 8%;
  left: 2%;
}

.coin--2 {
  --size: 2.2rem;
  --dur: 6.4s;
  --spin: 8s;
  --delay: -1.2s;
  top: 22%;
  right: 0%;
}

.coin--3 {
  --size: 2.75rem;
  --dur: 5.8s;
  --spin: 10s;
  --delay: -2.4s;
  top: 48%;
  left: -2%;
}

.coin--4 {
  --size: 1.85rem;
  --dur: 4.8s;
  --spin: 7s;
  --delay: -0.8s;
  top: 58%;
  right: 4%;
}

.coin--5 {
  --size: 2.45rem;
  --dur: 6.8s;
  --spin: 12s;
  --delay: -3.1s;
  bottom: 14%;
  left: 8%;
}

.coin--6 {
  --size: 1.65rem;
  --dur: 5s;
  --spin: 6.5s;
  --delay: -1.8s;
  bottom: 22%;
  right: -2%;
  opacity: 0.78;
}

.coin-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #f5c542 55%, transparent 70%);
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.85);
  animation: sparkle 2.8s ease-in-out infinite;
}

.coin-spark--1 {
  top: 18%;
  left: 18%;
  animation-delay: 0s;
}

.coin-spark--2 {
  top: 42%;
  right: 16%;
  width: 5px;
  height: 5px;
  animation-delay: -1s;
}

.coin-spark--3 {
  bottom: 28%;
  left: 22%;
  width: 4px;
  height: 4px;
  animation-delay: -1.8s;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(70vw, 268px);
  margin-inline: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.42));
  pointer-events: auto;
}

.phone-frame {
  border-radius: 1.45rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: #0b1a3a;
  position: relative;
  height: 0;
  padding-bottom: 177.78%; /* 1024 / 576 fallback */
  aspect-ratio: 576 / 1024;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.28);
}

@supports (aspect-ratio: 1 / 1) {
  .phone-frame {
    height: auto;
    padding-bottom: 0;
  }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: translateX(10%) scale(1.02);
  transition:
    opacity 0.55s var(--ease),
    transform 0.65s var(--ease);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.hero-slide.is-exit {
  opacity: 0;
  transform: translateX(-8%) scale(0.985);
  z-index: 0;
}

.hero-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 18, 46, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

.hero-slide-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-slide-dot.is-active {
  width: 1.2rem;
  background: var(--gold);
}

.hero-slide-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

@keyframes coin-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  50% {
    transform: translate3d(6px, -16px, 0) rotate(8deg);
  }
}

@keyframes coin-flip {
  0%,
  100% {
    transform: scaleX(1) rotate(0deg);
  }
  25% {
    transform: scaleX(0.28) rotate(-10deg);
  }
  50% {
    transform: scaleX(1) rotate(0deg);
  }
  75% {
    transform: scaleX(0.28) rotate(10deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-bottom: 0;
    gap: 1.5rem;
  }

  .hero-content {
    padding-bottom: 3.5rem;
    padding-top: 2rem;
  }

  .hero-visual {
    align-self: center;
    justify-content: center;
    margin: 0;
    padding: 1.25rem 2.5vw 1.25rem 0;
  }

  .phone {
    width: min(30vw, 310px);
  }

  .hero-slide-dots {
    bottom: 0.85rem;
  }

  .coin-field {
    inset: -8% -18% -4%;
  }

  .coin--1 {
    --size: 3.6rem;
  }

  .coin--2 {
    --size: 2.5rem;
  }

  .coin--3 {
    --size: 3.1rem;
  }

  .coin--5 {
    --size: 2.8rem;
  }
}

/* Sections shared */
.section-inner {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.75rem;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.65);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--navy-950);
}

.section-title--light {
  color: var(--white);
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.calc-apr-statement {
  max-width: 34rem;
  margin: -1.5rem 0 2.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-800);
}

.section-lede--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Loan calculator */
.calculator {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(245, 197, 66, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(30, 58, 95, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
}

.calc-panel {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px -24px rgba(15, 35, 65, 0.35);
}

@media (min-width: 800px) {
  .calc-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    gap: 2rem;
  }
}

.calc-controls {
  display: grid;
  gap: 1.15rem;
  padding-block: 0.25rem;
}

.calc-field {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 35, 65, 0.06);
}

.calc-field-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.calc-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-950);
}

.calc-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  flex-shrink: 0;
}

.calc-field-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.calc-field-icon--amount {
  background: var(--mint-soft);
  color: var(--mint);
}

.calc-field-icon--tenure {
  background: var(--sky-soft);
  color: var(--sky);
}

.calc-field-top strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.08);
  box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04);
}

.calc-slider {
  position: relative;
  padding: 0.45rem 0.15rem 0.2rem;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.55rem;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--navy-800) 0%,
    var(--gold) var(--progress, 50%),
    #dbe3f0 var(--progress, 50%),
    #dbe3f0 100%
  );
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-runnable-track {
  height: 0.55rem;
  border-radius: 999px;
  background: transparent;
}

.calc-range::-moz-range-track {
  height: 0.55rem;
  border-radius: 999px;
  background: #dbe3f0;
  border: none;
}

.calc-range::-moz-range-progress {
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold));
  border: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: calc((0.55rem - 1.55rem) / 2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f8fafc 100%);
  border: 3px solid var(--navy-900);
  box-shadow:
    0 0 0 4px rgba(245, 197, 66, 0.28),
    0 6px 14px rgba(6, 18, 46, 0.22);
  cursor: grab;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.calc-range::-moz-range-thumb {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--navy-900);
  box-shadow:
    0 0 0 4px rgba(245, 197, 66, 0.28),
    0 6px 14px rgba(6, 18, 46, 0.22);
  cursor: grab;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.calc-range:hover::-webkit-slider-thumb,
.calc-range:active::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow:
    0 0 0 5px rgba(245, 197, 66, 0.38),
    0 8px 18px rgba(6, 18, 46, 0.28);
}

.calc-range:hover::-moz-range-thumb,
.calc-range:active::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow:
    0 0 0 5px rgba(245, 197, 66, 0.38),
    0 8px 18px rgba(6, 18, 46, 0.28);
}

.calc-range:active::-webkit-slider-thumb,
.calc-range:active::-moz-range-thumb {
  cursor: grabbing;
}

.calc-range:focus-visible {
  outline: none;
}

.calc-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 5px rgba(245, 197, 66, 0.45),
    0 0 0 8px rgba(18, 48, 110, 0.18),
    0 8px 18px rgba(6, 18, 46, 0.28);
}

.calc-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 5px rgba(245, 197, 66, 0.45),
    0 0 0 8px rgba(18, 48, 110, 0.18),
    0 8px 18px rgba(6, 18, 46, 0.28);
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-inline: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, #1a3a5c 100%);
  color: var(--white);
}

.calc-rate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-rate--apr {
  margin-top: -0.35rem;
}

.calc-rate strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.calc-rate--apr strong {
  font-size: 1rem;
  text-align: right;
}

.calc-summary {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.calc-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc-summary dt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.calc-summary dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.calc-summary div:last-child dd {
  color: var(--gold);
}

.calc-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.calc-cta {
  margin-top: auto;
  justify-content: center;
  text-align: center;
}

.calc-example {
  margin: 1.5rem 0 0;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border-radius: 1.15rem;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.08);
  box-shadow: 0 16px 36px -28px rgba(6, 18, 46, 0.4);
}

.calc-example h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  margin-bottom: 0.55rem;
}

.calc-example > p:first-of-type {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.calc-example-steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0;
}

@media (min-width: 800px) {
  .calc-example-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.calc-example-steps li {
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 35, 65, 0.06);
}

.calc-example-steps span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.4rem;
}

.calc-example-steps p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.calc-example-steps strong {
  color: var(--navy-950);
  font-weight: 700;
}

.calc-example-note {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.pay-methods {
  margin-top: 1.15rem;
  padding: clamp(1.25rem, 2.8vw, 1.6rem);
  border-radius: 1.15rem;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.08);
  box-shadow: 0 16px 36px -28px rgba(6, 18, 46, 0.4);
}

.pay-methods h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  margin-bottom: 0.4rem;
}

.pay-methods-lede {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0.95rem;
}

.pay-methods-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.pay-methods-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(15, 35, 65, 0.08);
  box-shadow: 0 4px 12px -8px rgba(6, 18, 46, 0.35);
}

.pay-methods-list img {
  display: block;
  height: 2.05rem;
  width: auto;
  max-width: 9.5rem;
}

/* Features */
.features {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.feature-list {
  display: grid;
  gap: 2.5rem;
}

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

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
}

.feature-icon--bolt {
  background: var(--amber-soft);
  color: #d97706;
}

.feature-icon--rate {
  background: var(--mint-soft);
  color: var(--mint);
}

.feature-icon--term {
  background: var(--sky-soft);
  color: var(--sky);
}

.product-params {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
}

@media (min-width: 700px) {
  .product-params {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.product-params li {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(10, 31, 77, 0.04);
  border: 1px solid rgba(10, 31, 77, 0.08);
}

.product-params span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.product-params strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1.25;
}

.use-cases {
  margin: 1.5rem 0 1.75rem;
}

.use-cases-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  margin-bottom: 0.35rem;
}

.use-cases-lede {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
  max-width: 36rem;
}

.use-case-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .use-case-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .use-case-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.use-case-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 35, 65, 0.07);
}

.use-case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  margin-bottom: 0.15rem;
  background: #1a4494;
  color: #ffffff;
}

.use-case-list li:nth-child(1) .use-case-icon {
  background: #2563eb;
  color: #ffffff;
}

.use-case-list li:nth-child(2) .use-case-icon {
  background: #ef4444;
  color: #ffffff;
}

.use-case-list li:nth-child(3) .use-case-icon {
  background: #f59e0b;
  color: #ffffff;
}

.use-case-list li:nth-child(4) .use-case-icon {
  background: #0ea5e9;
  color: #ffffff;
}

.use-case-list li:nth-child(5) .use-case-icon {
  background: #16a34a;
  color: #ffffff;
}

.use-case-list li:nth-child(6) .use-case-icon {
  background: #e8a317;
  color: #ffffff;
}

.use-case-list strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  line-height: 1.3;
}

.use-case-list p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.limit-line {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 31, 77, 0.1);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.limit-line strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-left: 0.35rem;
}

/* Prepare / loan process */
.prepare {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(245, 197, 66, 0.1), transparent),
    var(--paper);
}

.process-steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1040px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
  }
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: 1.15rem;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.07);
  box-shadow: 0 14px 32px -28px rgba(6, 18, 46, 0.45);
  min-height: 100%;
}

.process-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(18, 48, 110, 0.35);
}

.process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  margin-bottom: 0.15rem;
}

.process-step:nth-child(1) .process-icon {
  background: var(--sky-soft);
  color: var(--sky);
}

.process-step:nth-child(2) .process-icon {
  background: var(--mint-soft);
  color: var(--mint);
}

.process-step:nth-child(3) .process-icon {
  background: var(--amber-soft);
  color: #d97706;
}

.process-step:nth-child(4) .process-icon {
  background: var(--navy-100);
  color: var(--navy-700);
}

.process-step:nth-child(5) .process-icon {
  background: rgba(245, 197, 66, 0.22);
  color: #b45309;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy-950);
  padding-right: 1.5rem;
}

.eligibility {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(15, 35, 65, 0.08);
}

.eligibility-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-950);
  margin-bottom: 0.55rem;
}

.eligibility-lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.eligibility-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
  padding: 0;
}

@media (min-width: 640px) {
  .eligibility-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .eligibility-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.eligibility-list li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: 1.1rem;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.07);
  box-shadow: 0 14px 32px -28px rgba(6, 18, 46, 0.4);
}

.eligibility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  margin-bottom: 0.15rem;
}

.eligibility-list li:nth-child(1) .eligibility-icon {
  background: var(--sky-soft);
  color: var(--sky);
}

.eligibility-list li:nth-child(2) .eligibility-icon {
  background: var(--mint-soft);
  color: var(--mint);
}

.eligibility-list li:nth-child(3) .eligibility-icon {
  background: var(--amber-soft);
  color: #d97706;
}

.eligibility-list li:nth-child(4) .eligibility-icon {
  background: rgba(245, 197, 66, 0.22);
  color: #b45309;
}

.eligibility-list strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  line-height: 1.3;
}

.eligibility-list p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.eligibility-note {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(15, 35, 65, 0.62);
  max-width: 44rem;
  margin: 0;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Safety */
.safety {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: var(--white);
}

.safety-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 820px) {
  .safety-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
  }

  .safety .section-lede {
    margin-bottom: 0;
  }
}

.commitments {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  padding-left: 1.75rem;
}

.commitments::before {
  content: "";
  position: absolute;
  left: calc(0.75rem - 1px);
  top: calc(0.15rem + 0.55rem);
  bottom: calc(0.15rem + 0.55rem);
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--mint) 0 8px,
    transparent 8px 14px
  );
  opacity: 0.55;
}

.commitments li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 1.1rem;
  padding: 0.15rem 0 0.15rem 0.5rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.commitments li::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: 0 0 0 4px var(--white);
}

/* Legal & compliance */
.legal-compliance {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(245, 197, 66, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(37, 99, 235, 0.07), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
}

.legal-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 760px) {
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

.legal-block,
.legal-dispute {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 1.15rem;
  background: var(--white);
  border: 1px solid rgba(15, 35, 65, 0.08);
  box-shadow: 0 16px 36px -30px rgba(6, 18, 46, 0.45);
}

.legal-block h3,
.legal-dispute h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  margin-bottom: 0.3rem;
}

.legal-block-lede {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.legal-facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.legal-facts div {
  display: grid;
  gap: 0.2rem;
}

.legal-facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 35, 65, 0.55);
}

.legal-facts dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.45;
}

.legal-facts a {
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-sep {
  margin: 0 0.35rem;
  color: rgba(15, 35, 65, 0.35);
  font-weight: 400;
}

.legal-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.legal-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0;
}

.legal-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.22);
}

.legal-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover {
  color: var(--navy-950);
}

.legal-dispute {
  padding: 1.5rem 1.3rem 1.6rem;
}

.legal-steps {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 860px) {
  .legal-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.legal-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.legal-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.legal-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 0.35rem;
}

.legal-steps p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

/* Download */
.download {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.download-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(37, 99, 235, 0.45), transparent 55%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}

.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.download-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.download-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.download-panel .section-lede {
  margin-bottom: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  position: relative;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

a.store-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

a.store-badge:active {
  transform: scale(0.98);
}

.store-badge small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  line-height: 1.2;
}

.store-badge strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.store-badge em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--gold);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

/* Responsible */
.responsible {
  position: relative;
  padding: clamp(2rem, 4.5vw, 3rem) 0;
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, rgba(245, 197, 66, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 100% at 100% 40%, rgba(37, 99, 235, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, #f7f9fc 100%);
}

.responsible::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 31, 77, 0.12), transparent);
}

.responsible-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 3.5vw, 2.15rem) clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid rgba(10, 31, 77, 0.08);
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(10, 31, 77, 0.06);
}

.responsible-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--navy-900);
  background:
    radial-gradient(circle at 35% 30%, #ffe9a8, transparent 55%),
    linear-gradient(160deg, #f5c542, #e8a317);
  box-shadow:
    0 0 0 6px rgba(245, 197, 66, 0.18),
    0 10px 24px rgba(232, 163, 23, 0.28);
}

.responsible-text {
  margin: 0;
  max-width: none;
  color: var(--navy-950);
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
  font-weight: 500;
}

@media (max-width: 560px) {
  .responsible-notice {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2rem;
}

.footer-inner {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
  max-width: 100%;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-logo img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-tagline {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.footer-contact {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.45rem;
  max-width: 20rem;
}

.footer-contact p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  justify-content: flex-start;
}

.footer-contact-row p {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.footer-contact-value {
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.footer-copy {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.05rem;
  border: 0;
  border-radius: 0.45rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.footer-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.footer-copy:active {
  transform: scale(0.94);
}

.footer-copy .icon-check {
  display: none;
}

.footer-copy.is-copied {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

.footer-copy.is-copied .icon-copy {
  display: none;
}

.footer-copy.is-copied .icon-check {
  display: block;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-brand .copyright {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  opacity: 0.55;
  max-width: 16rem;
  line-height: 1.45;
}

.footer-company {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.footer-address {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 0.85rem;
  max-width: 22rem;
}

.footer-address span {
  display: inline;
  color: rgba(255, 255, 255, 0.52);
}

.footer-license {
  margin: 0 0 0.95rem;
  max-width: 22rem;
}

.footer-license p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 0.35rem;
}

.footer-license p:last-child {
  margin-bottom: 0;
}

.footer-license span {
  display: inline;
  color: rgba(255, 255, 255, 0.52);
}

.footer-office {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.footer-meta a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer-meta a:hover,
.footer-legal a:hover {
  color: var(--gold);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.55;
  max-width: 18rem;
}

/* Legal pages */
body.legal-page {
  background: var(--paper);
}

body.legal-page .site-footer {
  display: none;
  margin-top: 0;
}

@media (min-width: 760px) {
  body.legal-page .site-footer {
    display: block;
  }
}

.legal-hero {
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding-top: calc(clamp(2.75rem, 6vw, 4rem) + env(safe-area-inset-top, 0px));
  padding-bottom: 3rem;
  padding-left: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-right, 0px));
}

.legal-hero-inner {
  width: min(760px, 100%);
  margin-inline: auto;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal-brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.legal-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.legal-brand-tagline {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.legal-entity {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-company {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.4rem;
}

.legal-address {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0.45rem;
}

.legal-support {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

.legal-support a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.legal-support a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-support .legal-email {
  color: var(--gold);
  font-weight: 600;
}

.legal-email {
  cursor: text;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-hero .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.legal-content {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 5rem);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-content p.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  margin: 2.25rem 0 0.85rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  margin: 1.5rem 0 0.6rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-content p + p {
  margin-top: 0.85rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.legal-content a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal-content a:hover {
  color: var(--sky);
}

.legal-note {
  margin-top: 2.5rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(245, 197, 66, 0.12);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 31, 77, 0.12);
  font-size: 0.95rem;
}

body.privacy-page .legal-nav-links,
body.terms-page .legal-nav-links,
body.refund-page .legal-nav-links {
  display: none;
}

@media (min-width: 760px) {
  body.privacy-page .legal-nav-links,
  body.terms-page .legal-nav-links,
  body.refund-page .legal-nav-links {
    display: flex;
  }
}

.legal-nav-links a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
}

.legal-nav-links a:hover {
  color: var(--sky);
  text-decoration: underline;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-slide.is-active {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phone,
  .hero-glow,
  .coin,
  .coin svg,
  .coin-spark,
  .hero-confetti .piece {
    animation: none;
  }

  .hero-confetti {
    display: none;
  }
}
