/* URN: component:xaf-reserve-landing:compare-economics:economicsSections:frontend:presentation */
:root {
  color-scheme: light;
  --ink: #15191f;
  --muted: #5f6b7a;
  --line: #d9e0e7;
  --paper: #f6f7f8;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #124f4a;
  --gold: #9a6b12;
  --clay: #9f4f31;
  --blue: #1f5f99;
  --shadow: 0 18px 60px rgba(24, 35, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(21, 25, 31, 0.08);
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 78px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(15, 118, 110, 0.07), rgba(31, 95, 153, 0.06)),
    var(--paper);
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: #334155;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--teal-dark);
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal-dark);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal-dark);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0;
}

.comparison-output,
.comparison-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.proof-strip div {
  padding: 14px 0 0;
  border-top: 2px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  font-weight: 780;
}

.reserve-visual {
  min-width: 0;
}

.market-card {
  max-width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(21, 25, 31, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.market-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
}

.market-row.top {
  background: var(--blue);
}

.market-row.bottom {
  background: var(--teal-dark);
}

.flow-line {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--line);
}

.reserve-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.stack-layer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
}

.stack-layer.senior {
  min-height: 120px;
  background: var(--teal);
}

.stack-layer.liquidity {
  min-height: 82px;
  background: var(--gold);
}

.stack-layer.issuer {
  min-height: 64px;
  background: var(--clay);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(21, 25, 31, 0.08);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 72px);
}

.section-copy {
  color: #334155;
  font-size: 20px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p {
  color: #334155;
  font-size: 18px;
}

.comparison-section {
  background: #ffffff;
}

.comparison-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.comparison-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.comparison-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.comparison-output {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.comparison-output div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.comparison-output span,
.comparison-output p {
  color: var(--muted);
}

.comparison-output strong {
  text-align: right;
}

.economics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.economics-grid article,
.cards article {
  padding: 18px 0 0;
  border-top: 2px solid var(--line);
}

.metric {
  display: block;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: 42px;
  font-weight: 820;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3f1;
  color: var(--teal-dark);
}

tr:last-child td {
  border-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.waitlist {
  background: #e9f0ee;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #b8c5ce;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid #b8c5ce;
  border-radius: 8px;
}

legend {
  padding: 0 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
}

.risk-checks {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
}

.risk-checks label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  font-weight: 520;
}

.consent-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 520;
}

.comparison-disclaimer {
  margin: 4px 0 0;
  font-size: 13px;
}

details.assumptions,
details.more-questions {
  grid-column: 1 / -1;
  margin: 0;
}

details.assumptions > summary,
details.more-questions > summary {
  width: max-content;
  padding: 4px 0;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
}

details.assumptions > summary::-webkit-details-marker,
details.more-questions > summary::-webkit-details-marker {
  display: none;
}

details.assumptions > summary::before,
details.more-questions > summary::before {
  content: "+ ";
  font-weight: 760;
}

details[open].assumptions > summary::before,
details[open].more-questions > summary::before {
  content: "\2013 ";
}

.assumptions-grid,
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.signup-form button {
  align-self: end;
}

.form-note {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: #d6dde5;
  font-size: 14px;
}

footer p {
  max-width: 940px;
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .economics-grid,
  .comparison-tool,
  .comparison-form,
  .assumptions-grid,
  .more-grid,
  .signup-form {
    grid-template-columns: 1fr;
  }

  .hero {
    overflow: hidden;
  }

  .proof-strip,
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    max-width: 100vw;
  }

  .hero-copy,
  .hero-copy > * {
    max-width: 340px;
  }

  h1 {
    width: 320px;
    max-width: 100%;
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: normal;
  }

  .lead {
    width: 320px;
    max-width: 100%;
    font-size: 17px;
  }

  .reserve-visual,
  .market-card {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .stack-layer,
  .market-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
