:root {
  --bg-start: #f7f2e9;
  --bg-end: #eaf3fb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --ink: #1f2433;
  --muted: #717787;
  --border: rgba(255, 255, 255, 0.58);
  --sunrise: #f78f4f;
  --seafoam: #54bdc4;
  --sky: #5e87ed;
  --shadow: rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 12%, rgba(247, 143, 79, 0.26), transparent 0 22rem),
    radial-gradient(circle at 8% 84%, rgba(84, 189, 196, 0.20), transparent 0 19rem),
    linear-gradient(135deg, #fbf5eb, #eef6fc 58%, #f9f6ef);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 34px var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 0 5px rgba(94, 135, 237, 0.08);
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.hero,
.section {
  margin-bottom: 24px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(247, 143, 79, 0.08), rgba(84, 189, 196, 0.05), var(--panel-strong));
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: 0 22px 38px var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 36px;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 78% 28%, rgba(247, 143, 79, 0.12), transparent 0 18rem),
    linear-gradient(135deg, rgba(247, 143, 79, 0.08), rgba(84, 189, 196, 0.04), rgba(255, 255, 255, 0.92));
}

.hero-copy {
  position: relative;
  max-width: 620px;
}

.hero-copy::after {
  content: "Receivables";
  position: absolute;
  right: -56px;
  top: 12px;
  color: rgba(31, 36, 51, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--sunrise);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.legal-hero h1 {
  margin: 18px 0 12px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3rem, 5.6vw, 5.3rem);
  max-width: 9ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-text,
.section-heading p,
.legal-hero p,
.legal-card p,
.legal-card li,
.feature-card p,
.template-card p,
.privacy-panel p,
.site-footer p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 140ms ease, opacity 140ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--sunrise);
}

.button-secondary {
  color: var(--sky);
  background: rgba(94, 135, 237, 0.12);
}

.button-store {
  position: relative;
  min-width: 168px;
  justify-content: flex-start;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.06);
}

.button-store::before {
  display: inline-flex;
  margin-right: 12px;
  font-size: 1rem;
}

.button-store-apple {
  color: #fff;
  background: linear-gradient(135deg, #1f2433, #39405a);
}

.button-store-apple::before {
  content: "";
}

.button-store-google {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.button-store-google::before {
  content: "▶";
  color: var(--sunrise);
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
}

.hero-points li {
  position: relative;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunrise), var(--seafoam));
}

.hero-note {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  max-width: 33rem;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 36, 51, 0.12);
}

.hero-note strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.hero-note span {
  color: var(--muted);
  line-height: 1.65;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-stage {
  position: relative;
  width: min(100%, 500px);
  min-height: 520px;
  padding: 26px;
}

.stage-backdrop {
  position: absolute;
  inset: 28px 18px 24px 34px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(31, 36, 51, 0.96), rgba(42, 49, 72, 0.92));
  box-shadow: 0 34px 66px rgba(17, 24, 39, 0.22);
}

.stage-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 48px, 48px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55));
}

.stage-orbit {
  position: absolute;
  right: 6px;
  top: 8px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 2px dashed rgba(247, 143, 79, 0.32);
  opacity: 0.75;
  transform: rotate(-14deg);
}

.stage-orbit::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 172px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sunrise);
  box-shadow: 0 0 0 10px rgba(247, 143, 79, 0.16);
}

.stage-badge {
  position: absolute;
  right: 28px;
  top: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--seafoam);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-ticket {
  position: absolute;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 38px rgba(17, 24, 39, 0.16);
}

.ticket-primary {
  left: 0;
  top: 62px;
  width: 352px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(247, 143, 79, 0.18), rgba(84, 189, 196, 0.10), rgba(255, 255, 255, 0.96));
  transform: rotate(-6deg);
}

.ticket-primary h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ticket-primary p,
.ticket-secondary p,
.ticket-accent p,
.mini-metrics span,
.amount-row span {
  color: var(--muted);
}

.ticket-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-status,
.ticket-index {
  color: var(--seafoam);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-value {
  display: block;
  margin-top: 20px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.mini-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--sunrise);
  font-size: 0.82rem;
  font-weight: 700;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.mini-metrics div,
.feature-card,
.template-card,
.privacy-panel div {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.mini-metrics strong,
.amount-row strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.ticket-secondary {
  right: 0;
  top: 212px;
  width: 298px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(7deg);
}

.ticket-secondary h3,
.ticket-accent h3 {
  margin: 14px 0 4px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.ticket-accent {
  left: 110px;
  bottom: 18px;
  width: 272px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, rgba(41, 49, 70, 0.98), rgba(31, 36, 51, 0.96));
  transform: rotate(-2deg);
}

.ticket-accent p,
.ticket-accent .amount-row span {
  color: rgba(255, 255, 255, 0.72);
}

.ticket-accent .amount-row strong {
  color: #fff;
}

.stage-caption {
  position: absolute;
  right: 28px;
  top: 74px;
  display: grid;
  gap: 8px;
  width: 148px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.chip-orange {
  color: var(--sunrise);
  background: rgba(247, 143, 79, 0.15);
}

.chip-teal {
  color: var(--seafoam);
  background: rgba(84, 189, 196, 0.16);
}

.amount-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.feature-grid,
.template-grid,
.privacy-panel {
  display: grid;
  gap: 16px;
}

.section-dark {
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 92% 12%, rgba(247, 143, 79, 0.20), transparent 0 18rem),
    linear-gradient(160deg, #1d2231, #29324b 56%, #20283a);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .section-heading p,
.section-dark .feature-card p,
.section-dark .feature-ribbon span {
  color: rgba(255, 255, 255, 0.68);
}

.section-dark .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--seafoam);
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.template-grid {
  grid-template-columns: repeat(4, 1fr);
}

.privacy-panel {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card h3,
.template-card h3,
.privacy-panel h3,
.legal-card h2 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feature-ribbon span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.inline-links a {
  color: var(--sky);
  font-weight: 700;
}

.legal-shell .site-header {
  margin-bottom: 18px;
}

.legal-main {
  display: grid;
  gap: 20px;
}

.legal-hero,
.legal-card {
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: 0 22px 38px var(--shadow);
}

.legal-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 12px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

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

  .privacy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

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

  .hero,
  .section,
  .legal-hero,
  .legal-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  .feature-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    aspect-ratio: 0.9;
  }

  .hero-stage {
    width: 100%;
    min-height: 480px;
  }

  .hero-copy::after {
    display: none;
  }

  .ticket-primary {
    width: min(320px, calc(100% - 88px));
  }

  .ticket-secondary {
    width: min(280px, calc(100% - 56px));
  }

  .ticket-accent {
    left: 48px;
    width: min(260px, calc(100% - 92px));
  }

  .stage-caption {
    right: 18px;
    top: 62px;
    width: 122px;
  }
}
