:root {
  color-scheme: light dark;
  --bg: #dce1f2;
  --surface: #eff2fc;
  --sunken: #e3e8f7;
  --text: #1f1f25;
  --muted: #4d4d79;
  --accent: #505a8e;
  --accent-text: #fff;
  /* The CTA matches the app's dark-mode secondary button in both themes, so
     the web funnel and the app read as one product: DarkModeTheme.secondary
     with secondaryBtnText as the label — the pairing the app itself uses
     (lib/flutter_flow/flutter_flow_theme.dart).
     --accent stays slate for links and text, which this fill cannot serve. */
  --button: #a398e2;
  --button-text: #1c1b1e;
  --line: #c2cae5;
  --ok: #087966;
  --error: #a32626;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d2a;
    --surface: #262638;
    --sunken: #1a1a26;
    --text: #e1e1e1;
    --muted: #a4a4cf;
    --accent: #a398e2;
    --accent-text: #1c1b1e;
    --line: #46466a;
    --ok: #44ccc1;
    --error: #ff8a8a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 72px; }
.wide { width: min(920px, calc(100% - 40px)); }
.brand { display: block; width: auto; height: 40px; margin-bottom: 42px; }
.brand-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-light { display: none; }
  .brand-dark { display: block; }
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; }
h1 { margin: 0 0 18px; font-size: clamp(32px, 5.4vw, 46px); }
h2 { margin: 0 0 18px; font-size: clamp(27px, 5vw, 36px); }
h3 { margin: 0 0 8px; font-size: 20px; }
p { margin: 0 0 18px; }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(18px, 2.6vw, 21px); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.promise { max-width: 700px; margin: 26px 0 30px; font-size: clamp(19px, 2.6vw, 24px); font-weight: 400; line-height: 1.45; }

/* Hero mirrors the marketing site: centered, anchored on the brand lockup. */
.hero { padding: 8px 0 64px; text-align: center; }
.hero .brand { margin: 0 auto 26px; height: 52px; }
.hero .promise {
  /* Wide enough to hold the offer on two lines rather than three; the
     percentage-based .wrap still narrows it on smaller screens. */
  max-width: 880px;
  margin: 24px auto 30px;
}
.section { padding: 0 0 72px; }
.section.ruled { padding-top: 72px; border-top: 1px solid var(--line); }
/* A trailing paragraph or list carries its own bottom margin, which would
   stack on the section padding and make some sections end looser than others. */
.section > :last-child,
.section > :last-child > :last-child { margin-bottom: 0; }
.prose { max-width: 700px; font-size: 16px; line-height: 1.6; }
.prose .emphasis { font-size: 18px; }

/* The offer restated compactly. A sunken panel gives it weight without adding
   a new colour or a card the rest of the page doesn't use. */
.earn-callout {
  max-width: 700px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sunken);
}
.earn-callout .emphasis { font-size: 19px; line-height: 1.5; }
.earn-callout p:last-child { margin-bottom: 0; color: var(--muted); }

/* Secondary by design: the terms matter, but they are the last thing to read. */
.fine-print h2 { font-size: clamp(22px, 3.4vw, 27px); }
.fine-print .terms-list { color: var(--muted); font-size: 15px; }
.fine-print .terms-list strong { color: var(--text); }

/* Three columns of numbered steps — no card chrome. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 100%; }
.step { margin: 0; }
.step-number {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid var(--button);
  border-radius: 9px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.large { min-height: 48px; padding: 13px 28px; font-size: 17px; }
.button.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
/* An inline-flex button sits in the text flow, and `p` carries a bottom margin
   only — so prose following a button would otherwise butt against its border. */
#copy-referral-link { margin-bottom: 20px; }
.button:disabled { cursor: wait; opacity: .6; }
/* An inline, collapsed summary of Stripe's restricted-business list, so the
   partner can check it without leaving the consent step. */
.restricted-summary {
  margin: -6px 0 22px;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.restricted-summary > summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.restricted-summary > summary::-webkit-details-marker { display: none; }
/* inline-block collapses the trailing space in `content`, so the marker needs
   its own gap — without it the triangle sits flush against the first glyph. */
.restricted-summary > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform .12s ease-out;
}
.restricted-summary[open] > summary::before { content: "▾"; }
.restricted-summary p { margin: 12px 0 0; max-width: 62ch; }
.restricted-summary strong { color: var(--text); }
.restricted-summary-note { font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .restricted-summary > summary::before { transition: none; }
}

/* A quiet account label under the payout-setup heading — it names whose
   account this is without restating the heading. */
.account-label {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

/* The referral link reads as a settled fact, not an empty field awaiting input. */
.referral-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 22px;
}
.referral-preview-label {
  width: 100%;
  font-weight: 700;
}
.referral-preview-url {
  color: var(--text);
  font: 16px/1.5 ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.referral-preview-slug { color: var(--text); font-weight: 700; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.terms-list { padding-left: 22px; font-size: 16px; line-height: 1.6; }
.terms-list li { margin-bottom: 14px; }
.terms-list li:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.form-card { padding: clamp(22px, 5vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.field { margin-bottom: 22px; }
label, legend { display: block; margin-bottom: 7px; font-weight: 700; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="email"], input[type="url"] {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--sunken); color: var(--text); font: inherit;
}

/* Floating labels: the label rests inside the field and lifts once it is
   focused or filled. Inputs carry placeholder=" " so :placeholder-shown
   reports emptiness — including autofill, which fires no input event. */
.floating { position: relative; }
.floating input { min-height: 56px; padding: 22px 12px 8px; }
.floating label {
  position: absolute;
  top: 17px;
  left: 13px;
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .13s ease-out, color .13s ease-out;
}
.floating input:focus + label,
.floating input:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(.78);
}
.floating input:focus + label { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .floating label { transition: none; }
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; }
.error { min-height: 1.6em; margin-top: 14px; color: var(--error); font-weight: 650; }
.result { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); }
/* The confirmation tick on the application success panel. (The partner kit
   carries its own copy — that page is self-contained and loads no stylesheet.) */
.status-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  color: var(--surface);
  font-size: 12px;
  font-weight: 800;
}
/* It sits alone above the heading here, so it carries its own spacing. */
#application-success > .status-mark { margin-bottom: 12px; }
.success-link { display: block; margin: 12px 0 20px; font: 700 clamp(18px, 4vw, 24px)/1.35 ui-monospace, monospace; overflow-wrap: anywhere; }
.closing { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding-top: 8px; }
.contact { margin: 0; color: var(--muted); font-size: 16px; }
.footer { padding-top: 38px; color: var(--muted); font-size: 15px; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .wrap, .wide { width: min(100% - 28px, 780px); padding-top: 24px; }
  .brand { margin-bottom: 32px; height: 36px; }
  .hero { padding-bottom: 52px; }
  .hero .brand { margin-bottom: 22px; height: 44px; }
  .section { padding-bottom: 56px; }
  .section.ruled { padding-top: 56px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps p { max-width: none; }
  .closing { gap: 16px; }
  .contact { width: 100%; }
  .button { width: 100%; }
}
