@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/images/fonts/dm-sans-normal-landing.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/images/fonts/dm-sans-italic-landing.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/images/fonts/playfair-display-normal-landing.woff2") format("woff2");
}

:root {
  --cream: #fde9c7;
  --cream-light: #fef4e2;
  --paper: #fffaf5;
  --surface: #ffffff;
  --ink: #2b2319;
  --ink-deep: #19140e;
  --muted: #6e6457;
  --gold: #9a711d;
  --gold-dark: #73510d;
  --gold-soft: #f7dca3;
  --gold-glow: rgba(154, 113, 29, 0.12);
  --peach: #ffbd94;
  --border: #eddcc0;
  --border-light: rgba(237, 220, 192, 0.6);
  --shadow-sm: 0 4px 12px rgba(84, 57, 23, 0.06);
  --shadow-md: 0 12px 32px rgba(84, 57, 23, 0.09);
  --shadow-lg: 0 24px 60px rgba(84, 57, 23, 0.14);
  --danger-bg: #fff1f0;
  --danger-border: #ffccc7;
  --danger-text: #cf1322;
  --success-bg: #f6ffed;
  --success-border: #b7eb8f;
  --success-text: #389e0d;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-text: #1d4ed8;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--sans);
}

button,
input,
textarea,
select {
  font-size: inherit;
}

button {
  color: inherit;
}

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

a,
button,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink-deep);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 250, 245, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-deep);
  font: 700 26px/1 var(--serif);
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.header-nav > a:not(.button),
.nav-text,
.nav-login {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.header-nav > a:not(.button):hover,
.nav-text:hover,
.nav-login:hover {
  color: var(--ink);
}

.nav-login {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.mobile-login {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  background: var(--ink-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--gold-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(115, 81, 13, 0.25);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--gold);
  background: #fff;
  color: var(--ink-deep);
}

.button-small {
  min-height: 44px;
  padding: 10px 20px;
}

.button-large {
  min-height: 54px;
  padding: 15px 28px;
}

.section {
  padding: 88px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 76px;
  border-bottom: 1px solid var(--border-light);
  background:
    radial-gradient(circle at 50% 15%, rgba(253, 233, 199, 0.72), transparent 470px),
    radial-gradient(circle at 50% 95%, rgba(255, 189, 148, 0.2), transparent 440px),
    linear-gradient(180deg, var(--cream-light), var(--paper));
  text-align: center;
}

.hero-centered {
  max-width: 900px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1,
.section-heading h2,
.earnings-copy h2,
.application-intro h2,
.privacy-main h1 {
  margin: 0;
  color: var(--ink-deep);
  font: 700 clamp(40px, 5.7vw, 64px)/1.12 var(--serif);
  letter-spacing: -0.04em;
}

.hero h1 span,
.earnings-copy h2 em,
.application-intro h2 em,
.privacy-main h1 em,
.auth-card h1 em {
  color: var(--gold-dark);
  font-style: normal;
}

.hero-subtitle {
  max-width: 670px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 850px;
  margin: 34px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  list-style: none;
  text-align: left;
}

.hero-benefit {
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 3px;
  padding: 15px 22px;
  border-right: 1px solid var(--border-light);
}

.hero-benefit:last-child {
  border-right: 0;
}

.hero-benefit strong {
  color: var(--gold-dark);
  font: 700 24px/1.12 var(--serif);
  letter-spacing: -0.02em;
}

.hero-benefit span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 28px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.earnings-copy h2,
.application-intro h2 {
  font-size: clamp(36px, 4.4vw, 49px);
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-steps {
  background: var(--paper);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
}

.step-card h3 {
  margin: 0 0 9px;
  color: var(--ink-deep);
  font: 700 22px/1.25 var(--serif);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section-earnings {
  background: var(--cream-light);
}

.earnings-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.earnings-copy .eyebrow,
.application-intro .eyebrow {
  justify-content: flex-start;
}

.earnings-copy h2 {
  margin-bottom: 18px;
}

.section-intro,
.application-intro > p:not(.eyebrow):not(.privacy-copy) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.example-note {
  margin: 21px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.example-note strong {
  color: var(--ink);
}

.calculator-card {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.calculator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  display: block;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.calculator-head h3 {
  margin: 8px 0 0;
  color: var(--ink-deep);
  font: 700 30px/1.2 var(--serif);
  letter-spacing: -0.025em;
}

.calculator-disclaimer {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.calculator-control {
  margin-top: 19px;
}

.calculator-control > label,
.plan-picker legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-row input[type="range"] {
  width: 100%;
  height: 5px;
  accent-color: var(--gold);
  cursor: pointer;
}

.slider-row output {
  min-width: 42px;
  color: var(--gold-dark);
  font: 700 22px/1 var(--serif);
  text-align: right;
}

.range-ends {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.plan-picker {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.plan-picker legend {
  margin-bottom: 9px;
}

.plan-choice {
  position: relative;
  flex: 1;
  cursor: pointer;
}

.plan-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.plan-choice span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.plan-choice small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.plan-choice input:checked + span {
  border-color: var(--gold);
  background: var(--cream-light);
  color: var(--ink-deep);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.plan-choice input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.vat-field {
  display: flex;
  width: 100%;
  max-width: 310px;
  align-items: center;
  gap: 9px;
}

.vat-field input {
  width: 92px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.vat-default {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
}

.months-control {
  margin-top: 20px;
}

.estimate-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 5px 18px;
  margin-top: 26px;
  padding: 19px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: var(--cream-light);
}

.estimate-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.estimate-result strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--ink-deep);
  font: 700 38px/1 var(--serif);
  letter-spacing: -0.035em;
}

.estimate-detail {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.calculator-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.section-application {
  background:
    radial-gradient(ellipse at 15% 5%, rgba(253, 233, 199, 0.72), transparent 36rem),
    var(--paper);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.application-intro {
  position: sticky;
  top: 110px;
}

.application-intro h2 {
  margin-bottom: 18px;
}

.privacy-copy {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.privacy-copy a,
.rules-list a,
.privacy-main a:not(.brand),
.auth-support a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(115, 81, 13, 0.4);
  text-underline-offset: 3px;
}

.application-form {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.required-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

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

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field-wide {
  grid-column: 1 / -1;
}

.application-business-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.application-business-fieldset legend {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.application-business-options {
  display: flex;
  gap: 10px;
}

.application-business-choice {
  position: relative;
  flex: 1;
  cursor: pointer;
}

fieldset.application-business-fieldset .application-business-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.application-business-choice span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.application-business-choice input:checked + span {
  border-color: var(--gold);
  background: var(--cream-light);
  color: var(--ink-deep);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.application-business-choice input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: 0;
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #968b7d;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(100%) !important;
  white-space: nowrap !important;
}

.turnstile-slot:empty {
  display: none;
}

.turnstile-slot {
  min-height: 0;
  margin-top: 16px;
}

.consent-stack {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
}

.check-field input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.check-field a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-message {
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--success-border);
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 14px;
  line-height: 1.55;
}

.form-message.is-error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.form-message.is-info {
  border-color: var(--border);
  background: var(--cream-light);
  color: var(--gold-dark);
}

.form-submit {
  width: 100%;
  margin-top: 22px;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.section-rules {
  background: var(--cream-light);
}

.rules-wrap {
  max-width: 900px;
}

.rules-list {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rules-list details + details {
  border-top: 1px solid var(--border-light);
}

.rules-list summary {
  position: relative;
  padding: 19px 54px 19px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink-deep);
  font: 700 18px/1.4 var(--serif);
}

.rules-list summary::-webkit-details-marker {
  display: none;
}

.rules-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--gold-dark);
  content: "+";
  font: 400 24px/1 var(--sans);
}

.rules-list details[open] summary::after {
  content: "−";
}

.rules-list details p {
  max-width: 810px;
  margin: 0;
  padding: 0 22px 21px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.rules-update {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.rules-update a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  background: var(--ink-deep);
  color: #f8f1e7;
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 24px;
}

.brand-footer {
  color: #fff;
  font-size: 23px;
}

.footer-inner > span,
.footer-links,
.footer-privacy-contact {
  color: #ded2bf;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.footer-links a:hover,
.footer-privacy-contact:hover {
  color: #fff;
}

/* Partner sign-in */
.partners-auth-page {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 75% 8%, rgba(255, 189, 148, 0.24), transparent 34rem),
    linear-gradient(145deg, var(--cream-light), var(--paper));
}

.partners-auth-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  border: 0;
  background: transparent;
}

.partners-auth-page .header-inner {
  min-height: 78px;
}

.auth-shell {
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  padding: 108px 20px 78px;
}

.auth-card {
  width: min(100%, 520px);
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.auth-card .eyebrow {
  margin-bottom: 12px;
}

.auth-card h1 {
  margin: 0;
  color: var(--ink-deep);
  font: 700 clamp(38px, 7vw, 50px)/1.1 var(--serif);
  letter-spacing: -0.04em;
}

.auth-copy {
  max-width: 390px;
  margin: 17px auto 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.google-button {
  width: 100%;
  min-height: 52px;
  gap: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.google-button:hover {
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.google-g {
  color: #4285f4;
  font: 700 17px Arial, sans-serif;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 26px 0 14px;
}

.auth-separator span {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.auth-separator small {
  color: var(--muted);
  font-size: 13px;
}

.magic-login-form {
  text-align: left;
}

.magic-login-form .field {
  font-size: 14px;
}

.magic-login-form .field input {
  min-height: 48px;
}

.magic-login-form .turnstile-slot {
  display: flex;
  min-height: 0;
  justify-content: center;
  margin-top: 15px;
}

.magic-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
}

.auth-access-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.access-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.auth-support {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-apply-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
}

.auth-footer {
  flex: 0 0 auto;
  padding: 17px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Partner dashboard */
.dashboard-page {
  min-height: 100dvh;
  background: var(--cream-light);
}

.dashboard-layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 260px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 25px 18px 18px;
  border-right: 1px solid var(--border);
  background: var(--paper);
}

.dashboard-sidebar .brand {
  padding: 0 9px 28px;
}

.sidebar-label {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.dashboard-nav {
  display: grid;
  gap: 5px;
}

.dashboard-nav a,
.dashboard-nav button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.dashboard-nav a:hover,
.dashboard-nav button:hover,
.dashboard-nav [aria-current="page"] {
  background: var(--cream-light);
  color: var(--ink-deep);
}

.nav-symbol {
  width: 22px;
  color: var(--gold-dark);
  font-size: 17px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
}

.sidebar-support {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 9px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.support-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.sidebar-support a {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.logout-link {
  display: flex;
  justify-content: space-between;
  padding: 14px 9px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-workspace {
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(22px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.topbar-kicker {
  display: block;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.topbar-user {
  display: block;
  margin-top: 3px;
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
}

.topbar-logout {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-main {
  max-width: 1480px;
  margin-inline: auto;
  padding: clamp(25px, 4vw, 48px);
}

.dashboard-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}

.dashboard-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 0;
  color: var(--ink-deep);
  font: 700 clamp(30px, 4vw, 42px)/1.15 var(--serif);
  letter-spacing: -0.035em;
}

.dashboard-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-button,
.dash-button-quiet,
.dash-button-danger {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink-deep);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.dash-button:hover {
  background: var(--gold-dark);
}

.dash-button-quiet {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.dash-button-quiet:hover {
  background: var(--cream-light);
}

.dash-button-danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.dash-button-danger:hover {
  background: #ffe4df;
}

.dash-button:disabled,
.dash-button-quiet:disabled,
.dash-button-danger:disabled {
  opacity: 0.55;
  cursor: wait;
}

.preview-banner,
.notice-banner {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--cream-light);
  color: var(--gold-dark);
  font-size: 14px;
  line-height: 1.55;
}

.notice-banner.error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.notice-banner.success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.stat-card {
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-value {
  display: block;
  margin-top: 11px;
  overflow-wrap: anywhere;
  color: var(--ink-deep);
  font: 700 clamp(22px, 2.6vw, 29px)/1.1 var(--serif);
  letter-spacing: -0.025em;
}

.stat-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-card + .dashboard-card {
  margin-top: 15px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.card-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font: 700 21px/1.25 var(--serif);
}

.card-heading > span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 13px;
  vertical-align: middle;
}

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

.data-table td strong {
  color: var(--ink);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-light);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.status-active,
.status-pill.status-paid,
.status-pill.status-approved {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-pill.status-pending,
.status-pill.status-held,
.status-pill.status-review {
  background: var(--cream-light);
  color: var(--gold-dark);
}

.status-pill.status-rejected,
.status-pill.status-suspended,
.status-pill.status-failed {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions .dash-button,
.table-actions .dash-button-quiet,
.table-actions .dash-button-danger {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.empty-state {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-deep);
  font: 700 22px/1.25 var(--serif);
}

.empty-state p {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.inline-field {
  display: grid;
  min-width: 170px;
  flex: 1;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.inline-field input,
.inline-field select,
.inline-field textarea,
.search-filter-row input,
.search-filter-row select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.inline-field textarea {
  min-height: 82px;
  resize: vertical;
}

.inline-field-wide {
  flex-basis: 100%;
}

.search-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.search-filter-row input {
  min-width: 170px;
  flex: 1;
}

.search-filter-row select {
  min-width: 150px;
}

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

.profile-form .inline-field.wide,
.profile-form .profile-actions,
.bank-box,
.settings-note {
  grid-column: 1 / -1;
}

.profile-form .profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 5px;
}

.bank-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream-light);
}

.bank-box-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.masked-bank {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.masked-bank strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.link-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-chip {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font: 12px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.copy-button {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.sales-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-state,
.error-state {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.loading-state {
  min-height: 45vh;
}

.loading-mark {
  color: var(--gold);
  font-size: 28px;
  animation: turn 2.8s linear infinite;
}

.loading-state p,
.error-state p {
  margin: 10px 0 0;
  font-size: 14px;
}

.error-state strong {
  color: var(--ink-deep);
  font: 700 25px/1.25 var(--serif);
}

.error-state .dash-button {
  margin-top: 16px;
}

.dashboard-mobile-nav {
  display: none;
}

.other-currency-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream-light);
}

.other-currency-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.other-currency-section .settings-note {
  margin-top: 10px;
}

.currency-balance-lines {
  min-width: 220px;
  color: var(--muted);
  font-size: 13px !important;
}

.currency-balance-lines small {
  color: var(--muted);
  font-size: 12px;
}

.bank-confirmation {
  grid-column: 1 / -1;
  margin-top: 3px;
}

.application-details summary,
.fx-conversion > summary {
  width: max-content;
  max-width: 100%;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.application-detail-list {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(160px, 1fr);
  gap: 6px 14px;
  margin: 13px 0 5px;
  white-space: normal;
}

.application-detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.application-detail-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.payout-reason {
  display: block;
  max-width: 320px;
  margin-top: 5px;
  color: #8a5f4c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.fx-conversion {
  margin-top: 9px;
}

.fx-conversion > summary {
  white-space: nowrap;
}

.fx-conversion[open] > summary {
  margin-bottom: 9px;
}

.fx-conversion-form {
  display: grid;
  width: min(390px, calc(100vw - 100px));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--cream-light);
  white-space: normal;
}

.fx-conversion-form .inline-field {
  min-width: 0;
}

.fx-preview {
  padding: 11px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.fx-confirmation {
  align-items: flex-start;
  font-size: 13px;
}

.fx-note {
  font-size: 12px;
  line-height: 1.55;
}

.fx-conversion-form .dash-button {
  width: 100%;
}

/* Privacy notice */
.privacy-main {
  max-width: 920px;
  padding-top: 58px;
  padding-bottom: 82px;
}

.privacy-main > .eyebrow {
  justify-content: flex-start;
  margin-bottom: 15px;
}

.privacy-main h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 54px);
}

.privacy-lede {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.privacy-section {
  margin-top: 35px;
  padding-top: 27px;
  border-top: 1px solid var(--border);
}

.privacy-section h2 {
  margin: 0 0 12px;
  color: var(--ink-deep);
  font: 700 25px/1.3 var(--serif);
}

.privacy-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.privacy-section code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--cream-light);
  color: var(--ink);
  font-size: 0.9em;
}

/* Responsive layouts */
@media (max-width: 980px) {
  .earnings-layout,
  .application-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
  }

  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    padding-inline: 14px;
  }

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

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .wrap {
    width: min(100% - 34px, 560px);
  }

  .header-inner {
    min-height: 68px;
  }

  .header-nav {
    display: none;
  }

  .mobile-login {
    display: inline-flex;
    padding-left: 0;
    border-left: 0;
  }

  .brand {
    font-size: 24px;
  }

  .section {
    padding: 67px 0;
  }

  .hero {
    padding: 66px 0 57px;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .hero-subtitle {
    margin-top: 17px;
    font-size: 16px;
  }

  .hero-benefit-strip {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  .hero-benefit {
    min-height: 0;
    grid-template-columns: minmax(100px, 0.65fr) 1fr;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .hero-benefit:last-child {
    border-bottom: 0;
  }

  .hero-benefit strong {
    font-size: 21px;
  }

  .hero-benefit span {
    font-size: 13px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 27px;
  }

  .step-card {
    min-height: 0;
    padding: 23px;
  }

  .step-number {
    margin-bottom: 14px;
  }

  .earnings-layout,
  .application-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .application-intro {
    position: static;
  }

  .calculator-card {
    padding: 23px 19px;
  }

  .calculator-head h3 {
    font-size: 27px;
  }

  .plan-picker {
    gap: 8px;
  }

  .plan-choice span {
    min-height: 48px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .plan-choice small {
    font-size: 12px;
  }

  .estimate-result {
    padding: 16px 14px;
  }

  .estimate-result strong {
    font-size: 32px;
  }

  .application-form {
    padding: 22px 17px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-heading {
    font-size: 11px;
  }

  .required-note {
    font-size: 11px;
  }

  .rules-list summary {
    padding: 17px 48px 17px 17px;
    font-size: 17px;
  }

  .rules-list summary::after {
    right: 17px;
  }

  .rules-list details p {
    padding-inline: 17px;
    font-size: 14px;
  }

  .footer-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px 18px;
    padding-block: 20px;
  }

  .footer-inner > span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 13px 18px;
    margin: 0;
  }

  .partners-auth-page .header-inner {
    min-height: 68px;
  }

  .partners-auth-page .header-inner .nav-text {
    font-size: 13px;
  }

  .auth-shell {
    padding: 96px 16px 72px;
  }

  .auth-card {
    padding: 33px 23px;
  }

  .auth-footer {
    padding: 14px;
  }

  .dashboard-layout {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    padding: 13px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-sidebar .brand {
    padding: 0 4px 13px;
    font-size: 23px;
  }

  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    gap: 5px;
    margin: 0 -2px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .dashboard-nav a,
  .dashboard-nav button {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .nav-symbol {
    width: auto;
  }

  .dashboard-topbar {
    min-height: 66px;
    padding-inline: 18px;
  }

  .topbar-kicker {
    font-size: 11px;
  }

  .topbar-user,
  .topbar-logout {
    font-size: 13px;
  }

  .dashboard-main {
    padding: 25px 16px 48px;
  }

  .dashboard-title-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 19px;
  }

  .dashboard-title {
    font-size: 33px;
  }

  .dashboard-subtitle {
    font-size: 13px;
  }

  .stat-grid {
    gap: 9px;
    margin-bottom: 14px;
  }

  .stat-card {
    min-height: 108px;
    padding: 13px;
  }

  .stat-label,
  .stat-note {
    font-size: 12px;
  }

  .stat-value {
    margin-top: 9px;
    font-size: 22px;
  }

  .dashboard-card {
    padding: 16px 13px;
  }

  .card-heading h2 {
    font-size: 19px;
  }

  .data-table th {
    padding: 10px 9px;
    font-size: 11px;
  }

  .data-table td {
    padding: 11px 9px;
    font-size: 12px;
  }

  .search-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-filter-row input,
  .search-filter-row select {
    width: 100%;
  }

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

  .profile-form .inline-field.wide,
  .profile-form .profile-actions,
  .bank-box,
  .settings-note {
    grid-column: 1;
  }

  .bank-box {
    grid-template-columns: 1fr;
  }

  .bank-box-title {
    grid-column: 1;
  }

  .profile-form .profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-field {
    min-width: 0;
  }

  .dashboard-title-row .dash-button {
    width: 100%;
  }

  .table-actions {
    flex-wrap: wrap;
  }

  .application-detail-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .fx-conversion-form {
    width: min(390px, calc(100vw - 72px));
  }

  .privacy-main {
    padding-top: 39px;
    padding-bottom: 56px;
  }

  .privacy-main h1 {
    font-size: clamp(36px, 9vw, 47px);
  }

  .privacy-section {
    margin-top: 28px;
    padding-top: 22px;
  }

  .privacy-section h2 {
    font-size: 22px;
  }

  .privacy-lede,
  .privacy-section p {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .hero-benefit {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .plan-picker {
    flex-direction: column;
  }

  .estimate-result {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .estimate-result strong {
    grid-column: 1;
    grid-row: auto;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
