*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: #f6efe4;
  background: #0c0b09;
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.5;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:root {
  --gold: #d4b07a;
  --gold-2: #f3e2b8;
  --ink: #f6efe4;
  --muted: #b7aa98;
  --line: rgba(212, 176, 122, 0.22);
  --panel: #141210;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--gold);
  color: #0c0b09;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.promo {
  margin: 0;
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top));
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-2);
  background: #090807;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-bar,
.header-tools,
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-bar {
  min-height: 64px;
  justify-content: space-between;
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.04em;
  min-width: 0;
}

.logo small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold-2);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-2);
}

.lang {
  position: relative;
}

.lang-btn,
.btn {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 16px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}

.btn-gold {
  background: var(--gold);
  color: #16120c;
  border-color: var(--gold);
}

.btn-ghost {
  color: var(--gold-2);
}

a.header-cta {
  display: none;
  max-width: 18ch;
  padding-inline: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  width: min(70vw, 220px);
  max-height: 280px;
  overflow: auto;
  background: #161410;
  border: 1px solid var(--line);
  z-index: 30;
}

.lang-menu li {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
}

.lang-menu li[aria-selected="true"],
.lang-menu li:hover,
.lang-menu li:focus-visible {
  background: rgba(212, 176, 122, 0.12);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(720px 320px at 88% 20%, rgba(212, 176, 122, 0.16), transparent 62%),
    #0c0b09;
}

.hero-inner {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px 0 32px;
}

.hero-stage {
  display: none;
  position: relative;
  width: 100%;
  height: 260px;
  pointer-events: none;
}

.foil-float {
  position: absolute;
  width: 78%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.foil-float-0 {
  inset-inline-start: 18%;
  top: 0;
  transform: rotate(-8deg);
}

.foil-float-1 {
  inset-inline-start: 28%;
  top: 18%;
  transform: rotate(4deg);
}

.foil-float-2 {
  inset-inline-start: 8%;
  top: 36%;
  transform: rotate(-2deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 6.4vw, 64px);
  line-height: 1.12;
  max-width: min(16ch, 100%);
  overflow-wrap: anywhere;
}

.lead,
.section-lead {
  color: var(--muted);
  max-width: 56ch;
}

.math {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-top: 22px;
  font-family: Georgia, serif;
  font-size: clamp(22px, 4vw, 34px);
}

.math em {
  font-style: normal;
  color: var(--gold);
}

.math strong {
  color: var(--gold-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust {
  border-block: 1px solid var(--line);
  background: #100e0c;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 0;
}

.trust-n {
  margin: 0;
  color: var(--gold-2);
  font-size: 22px;
}

.trust-t {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rates,
.how,
.versus,
.desk,
.faq {
  padding: 64px 0;
}

.rates-layout {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.card-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.foil-card {
  text-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  padding: 10px;
  cursor: pointer;
  min-width: 0;
}

.foil-card.is-on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.foil-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.foil-meta em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.estimator {
  border: 1px solid var(--line);
  background: #141210;
  padding: 22px;
}

.est-brand {
  font-size: 28px;
  font-family: Georgia, serif;
  margin: 0 0 16px;
}

.est-rate {
  margin: 8px 0 0;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--gold-2);
}

.field,
.desk-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #0c0b09;
  color: var(--ink);
  padding: 10px 12px;
  width: 100%;
  font-size: 16px;
}

.conds {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.conds label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.conds label.is-on {
  border-color: var(--gold);
  color: var(--gold-2);
}

.est-range {
  font-size: 22px;
  font-family: Georgia, serif;
}

.est-note,
.form-hint,
.legal {
  color: var(--muted);
  font-size: 13px;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps span {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 12px;
}

.payouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.payouts li,
.vs-grid li {
  border: 1px solid var(--line);
  padding: 12px 14px;
  min-width: 0;
}

.pay-title {
  margin-top: 36px;
}

.vs-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.vs-grid article {
  background: #141210;
  border: 1px solid var(--gold);
  padding: 20px;
  min-width: 0;
}

.vs-grid article.is-mute {
  border-color: var(--line);
  opacity: 0.78;
}

.vs-grid ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.desk {
  background: #100e0c;
  border-block: 1px solid var(--line);
}

.desk-form {
  display: grid;
  gap: 4px;
}

.desk-form .full {
  grid-column: 1 / -1;
}

.form-error {
  color: #f0b7a8;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .trust-row,
  .payouts {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-wall {
    grid-template-columns: repeat(4, 1fr);
  }

  .rates-layout,
  .desk-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .vs-grid,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .estimator {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .desk-form {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    padding: 36px 0 40px;
  }

  .hero-stage {
    display: block;
    height: 280px;
  }
}

@media (min-width: 1100px) {
  a.header-cta {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .nav.is-open {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #100e0c;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .foil-float {
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}
