/*
 * Fintech Trust, on the web.
 *
 * The same palette the app uses (Docs/DESIGN_SYSTEM.md) so the site and the
 * product look like one thing: cool off-white page, white cards, deep navy ink,
 * one electric indigo that means "act".
 *
 * No framework and no build step. This is five pages of mostly text — a CSS
 * pipeline would be more machinery than content, and machinery rots. Plain CSS
 * with custom properties does everything needed here and will still work in
 * five years.
 */

:root {
  --primary: #635bff;
  --primary-deep: #4f46e5;
  --primary-soft: #ebeaff;
  --base: #f6f9fc;
  --surface: #ffffff;
  --fill: #eff3f9;
  --text-primary: #1a1f36;
  --text-secondary: #5a6485;
  --text-tertiary: #8a93ad;
  --separator: #e4e9f2;
  --green-ink: #12805c;
  --green-fill: #d9f0e7;

  --radius-card: 20px;
  --radius-control: 12px;
  --shadow-low: 0 4px 12px rgba(26, 31, 54, 0.06);
  --shadow-card: 0 8px 20px rgba(26, 31, 54, 0.08);

  --page: min(1120px, calc(100% - 2.5rem));
}

@media (prefers-color-scheme: dark) {
  :root {
    --base: #0b0d10;
    --surface: #151a21;
    --fill: #191f27;
    --primary: #7a73ff;
    --primary-soft: #20203c;
    --text-primary: #e9eef5;
    --text-secondary: #9aa6ba;
    --text-tertiary: #6f7c92;
    --separator: #242c38;
    --green-ink: #4bc08c;
    --green-fill: #0f2c22;
    --shadow-low: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.35);
  }
}

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

body {
  margin: 0;
  background: var(--base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-secondary); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: var(--page); margin-inline: auto; }

/* Header ------------------------------------------------------------------ */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--separator);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 680;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
}

nav.site { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
nav.site a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
nav.site a:hover, nav.site a[aria-current='page'] { color: var(--text-primary); text-decoration: none; }
/* `nav.site a` outranks `.btn-primary`, which quietly turned the header CTA's
   label grey-on-indigo. Restated at matching specificity rather than reordered,
   because reordering would break again the next time a nav rule is added. */
nav.site a.btn-primary, nav.site a.btn-primary:hover { color: #fff; }

@media (max-width: 720px) {
  nav.site { gap: 1rem; }
  nav.site .hide-sm { display: none; }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-low); }
.btn-primary:hover { background: var(--primary-deep); }

.btn-quiet {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--separator);
}

/* Sections ---------------------------------------------------------------- */

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.hero { padding-top: clamp(3rem, 9vw, 6rem); }
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 34rem;
  color: var(--text-secondary);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--separator);
  font-size: 0.92rem; color: var(--text-tertiary);
}
.trust span { display: flex; align-items: center; gap: 0.45rem; }

/* Cards ------------------------------------------------------------------- */

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  box-shadow: var(--shadow-low);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.icon-tile {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  font-size: 20px;
}

/* Pricing ----------------------------------------------------------------- */

.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-card); }
.price {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0.6rem 0 0.2rem;
}
.price small { font-size: 0.95rem; font-weight: 500; color: var(--text-tertiary); }
.tier-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
}
ul.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
ul.checks li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.4rem 0; color: var(--text-secondary); font-size: 0.97rem;
}
ul.checks li::before {
  content: '✓';
  color: var(--green-ink);
  font-weight: 700;
  flex: none;
}
.price-card .btn { margin-top: auto; }

/* Misc -------------------------------------------------------------------- */

.note {
  background: var(--fill);
  border-radius: var(--radius-control);
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.faq { border-top: 1px solid var(--separator); }
.faq details { border-bottom: 1px solid var(--separator); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text-primary);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-tertiary); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.8rem 0 0; }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-band p { max-width: 34rem; margin-inline: auto; }

footer.site {
  border-top: 1px solid var(--separator);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--text-tertiary);
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
footer.site a { color: var(--text-secondary); }
footer.site nav { display: flex; flex-direction: column; gap: 0.5rem; }
footer.site .legal { margin-top: 2rem; }
