@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,650;9..144,800&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --ink: #171511;
  --muted: #695f51;
  --paper: #fff8ea;
  --paper-deep: #f0dfbd;
  --copper: #b6542f;
  --copper-dark: #833318;
  --olive: #536b3f;
  --mint: #c3e2b3;
  --cream: #fffdf7;
  --line: rgba(23, 21, 17, 0.14);
  --shadow: 0 28px 80px rgba(83, 52, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(195, 226, 179, 0.8), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(182, 84, 47, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--paper), #f8ead2 48%, #e7cf9d);
  font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
}

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

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--mint);
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--copper-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 52px;
  align-items: center;
  min-height: 650px;
  padding: 52px 0 80px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  position: absolute;
  inset: -34px auto auto -34px;
  z-index: -1;
  width: 150px;
  height: 150px;
  content: "";
  background: repeating-linear-gradient(
    -45deg,
    rgba(83, 107, 63, 0.18),
    rgba(83, 107, 63, 0.18) 8px,
    transparent 8px,
    transparent 18px
  );
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.065em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 10vw, 7.9rem);
  line-height: 0.82;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.prototype-note {
  max-width: 620px;
  padding: 14px 16px;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--copper-dark);
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid rgba(182, 84, 47, 0.24);
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--copper);
}

.button-secondary {
  background: rgba(255, 253, 247, 0.5);
}

.optimizer-card {
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(255, 248, 234, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(195, 226, 179, 0.8), transparent 14rem);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.card-header,
.merchant-row,
.path-list li,
.proof-strip,
.section-grid,
.trust-panel,
.footer {
  display: flex;
}

.card-header,
.path-list li {
  justify-content: space-between;
  gap: 18px;
}

.card-header {
  align-items: flex-start;
  padding-bottom: 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.card-header strong {
  color: var(--olive);
  font-size: 1.34rem;
}

.merchant-row {
  align-items: center;
  gap: 14px;
  padding: 24px 0;
}

.merchant-dot {
  width: 48px;
  height: 48px;
  background:
    linear-gradient(135deg, var(--copper), #efb36c);
  border-radius: 18px;
  box-shadow: inset 0 0 0 6px rgba(255, 253, 247, 0.36);
}

.merchant-name {
  margin-bottom: 3px;
  font-weight: 700;
}

.merchant-detail,
.fine-print {
  color: var(--muted);
}

.path-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.path-list li {
  padding: 16px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.path-list strong {
  color: var(--copper-dark);
}

.fine-print {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.proof-strip {
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  margin-bottom: 34px;
  background: rgba(23, 21, 17, 0.08);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.proof-strip span {
  padding: 10px 14px;
  background: rgba(255, 253, 247, 0.62);
  border-radius: 999px;
  font-weight: 700;
}

.rate-warning {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 44px;
  padding: 34px;
  margin-bottom: 92px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(23, 21, 17, 0.96), rgba(82, 41, 22, 0.94)),
    radial-gradient(circle at 80% 0%, rgba(195, 226, 179, 0.28), transparent 24rem);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.rate-warning .eyebrow,
.rate-warning p {
  color: var(--mint);
}

.warning-grid {
  display: grid;
  gap: 14px;
}

.warning-grid article {
  padding: 20px;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 22px;
}

.warning-grid p {
  margin-bottom: 0;
  line-height: 1.6;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  padding-bottom: 96px;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps article {
  padding: 24px;
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.steps p,
.trust-panel p,
.legal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.step-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--copper-dark);
  font-weight: 700;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 34px;
  margin-bottom: 80px;
  color: var(--cream);
  background:
    radial-gradient(circle at 10% 0%, rgba(195, 226, 179, 0.24), transparent 22rem),
    var(--ink);
  border-radius: 34px;
}

.trust-panel .eyebrow,
.trust-panel p {
  color: var(--mint);
}

.footer {
  width: min(1120px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 32px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-shell {
  min-height: calc(100vh - 76px);
}

.legal-card {
  max-width: 780px;
  padding: 40px;
  margin: 48px auto 80px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.legal-card h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.legal-card a {
  color: var(--copper-dark);
  font-weight: 700;
}

@media (max-width: 820px) {
  .page-shell,
  .footer {
    width: min(100% - 28px, 680px);
  }

  .nav,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .rate-warning,
  .section-grid,
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .optimizer-card {
    transform: none;
  }

  .proof-strip,
  .section-grid {
    margin-bottom: 64px;
    padding-bottom: 0;
  }

  .legal-card {
    padding: 28px;
  }
}
