/* Cheesecake — payments brand with a light dessert nod
   System fonts only; no external CDNs. Fast, accessible, responsive. */

:root {
  --cream: #faf7f2;
  --cream-deep: #f3ebe0;
  --ink: #1a1614;
  --ink-soft: #4a433c;
  --muted: #7a7268;
  --line: #e6ddd0;
  --card: #ffffff;
  --accent: #c45c26;          /* burnt caramel */
  --accent-hover: #a84a1c;
  --accent-soft: #f5e6dc;
  --berry: #6b3a4a;           /* subtle cheesecake berry note */
  --radius: 14px;
  --shadow: 0 12px 40px rgba(26, 22, 20, 0.06);
  --max: 1080px;
  --prose: 40rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(196, 92, 38, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.btn:focus-visible,
.nav-cta:focus-visible {
  border-radius: 999px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50% 50% 45% 55%;
  background:
    radial-gradient(circle at 35% 30%, #fff8ef 0 28%, transparent 30%),
    linear-gradient(160deg, #f0d9b8 0%, #e8c9a0 45%, #d4a574 100%);
  box-shadow: inset 0 -3px 0 rgba(107, 58, 74, 0.18);
  flex-shrink: 0;
}
.logo-mark.small { width: 1.1rem; height: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem !important;
}
.nav-cta:hover { background: var(--berry); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, var(--cream-deep), transparent 50%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 3.25rem 0 2.5rem;
}

.hero-inner { max-width: 42rem; }

.prose-narrow { max-width: 40rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 1rem;
}

.eyebrow.light { color: #f0d9c8; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.page-hero .lede { margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.pedigree {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 28rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--cream-deep);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 750;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-lede.light { color: rgba(250, 247, 242, 0.85); }
.section-lede strong { color: var(--ink); font-weight: 650; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.card-accent {
  border-color: #e8c9b0;
  background: linear-gradient(165deg, #fff 0%, var(--accent-soft) 140%);
}

.card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.clean-list li { margin-bottom: 0.45rem; }
.clean-list li:last-child { margin-bottom: 0; }

.prose-list {
  margin: 0 0 1.25rem;
}

.note {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.pillar-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* How it works — steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Team */
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow);
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--berry);
  background: var(--accent-soft);
  border: 1px solid #e8c9b0;
  margin-bottom: 0.9rem;
}

.team-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.role {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Prose (about / legal) */
.prose {
  max-width: var(--prose);
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.prose p strong {
  color: var(--ink);
}

.legal-banner {
  background: var(--accent-soft);
  border: 1px solid #e8c9b0;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--ink) !important;
  font-size: 0.98rem;
  margin-bottom: 1.75rem !important;
}

/* CTA */
.cta-section {
  background:
    linear-gradient(145deg, #2a1f1c 0%, #3d2a28 50%, var(--berry) 140%);
  color: var(--cream);
  text-align: center;
}

.cta-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.cta-section h2 { color: #fff; }

.mailto-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.55);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.7);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.footer-brand p,
.footer-meta p {
  margin: 0 0 0.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a {
  color: rgba(250, 247, 242, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--cream);
}

.footer-meta { text-align: right; }

/* Responsive */
@media (max-width: 900px) {
  .pillars,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 640px) {
  .split,
  .pillars,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3rem 0 2.5rem; }

  .footer-meta { text-align: left; }

  .footer-inner {
    flex-direction: column;
  }
}

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