:root {
  color-scheme: light;
  --ink: #13201c;
  --muted: #66746f;
  --line: #dce4e0;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --green: #156f52;
  --green-soft: #dff2e9;
  --lime: #c9f45d;
  --amber: #a45d00;
  --amber-soft: #fff0d8;
  --red: #a83b33;
  --red-soft: #fbe5e2;
  --blue: #365da8;
  --blue-soft: #e4ecfb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, #e1f4e9 0, transparent 30rem),
    var(--canvas);
}

a {
  color: inherit;
}

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

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #10251e;
  background: var(--lime);
  font-weight: 850;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgb(19 32 28 / 8%);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.demo-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 65%);
  font-size: 12px;
  font-weight: 750;
}

.hero {
  min-height: 345px;
  padding: 62px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 60px;
  align-items: center;
  border-radius: 32px;
  color: white;
  background:
    linear-gradient(135deg, rgb(24 101 75 / 98%), rgb(10 50 38 / 98%)),
    var(--green);
  box-shadow: 0 24px 70px rgb(18 54 43 / 16%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 76%);
  font-size: 18px;
  line-height: 1.55;
}

.hero-total {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 22px;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(8px);
}

.hero-total span,
.hero-total small,
.hero-total strong {
  display: block;
}

.hero-total span {
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
}

.hero-total strong {
  margin: 8px 0;
  color: var(--lime);
  font-size: 54px;
  letter-spacing: -0.06em;
}

.hero-total small {
  color: rgb(255 255 255 / 60%);
}

.steps {
  width: calc(100% - 52px);
  margin: -24px auto 62px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgb(25 61 49 / 10%);
}

.steps div {
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 8px;
  align-items: center;
}

.steps div + div {
  border-left: 1px solid var(--line);
}

.steps span {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.steps strong {
  font-size: 13px;
}

.steps small {
  color: var(--muted);
}

.section-heading,
.panel-heading,
.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

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

.mini-totals {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.mini-totals strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.subscription-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgb(24 54 44 / 6%);
}

.subscription-card {
  min-height: 276px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.subscription-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgb(24 54 44 / 11%);
}

.card-top {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #9caaa5;
  box-shadow: 0 0 0 4px #edf0ef;
}

.status-paid .status-dot,
.status-succeeded .status-dot,
.status-succeeded.status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.status-no_activity .status-dot,
.status-trial .status-dot,
.status-paused .status-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.status-collection_failed .status-dot,
.status-failed .status-dot,
.status-reversed .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.status-collection_pending .status-dot,
.status-pending .status-dot,
.status-initiated .status-dot,
.status-scheduled .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.arrow {
  margin-left: auto;
  color: var(--ink);
  font-size: 18px;
}

.subscription-card h3 {
  margin: 26px 0 10px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.subscription-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card-amount {
  margin-top: auto;
}

.card-amount strong,
.card-amount small {
  display: block;
}

.card-amount strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.card-amount small {
  margin-top: 4px;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  display: grid;
  gap: 6px;
  border: 1px dashed #b9c5c0;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.lower-grid {
  margin: 58px 0;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
}

.panel {
  padding: 28px;
}

.timeline {
  margin-top: 28px;
}

.timeline-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.timeline-row > span {
  font-weight: 750;
}

.timeline-row small {
  color: var(--muted);
  text-align: right;
}

.timeline-track {
  display: flex;
  gap: 7px;
}

.timeline-track i {
  width: 30px;
  height: 9px;
  border-radius: 999px;
  background: #dfe5e2;
}

.timeline-track .paid {
  background: var(--green);
}

.timeline-track .waived {
  background: #8ea4cf;
}

.job-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.job-status {
  margin: 24px 0 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.job-rule {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.job-rule span {
  color: var(--muted);
}

.breadcrumb {
  margin: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb a,
.external-link {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.breadcrumb button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.detail-hero {
  min-height: 220px;
  padding: 42px;
  margin-bottom: 20px;
  border-radius: 26px;
  background: #e5f2ea;
}

.detail-hero h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 48px;
}

.price-lockup {
  text-align: right;
}

.price-lockup strong,
.price-lockup span {
  display: block;
}

.price-lockup strong {
  font-size: 56px;
  letter-spacing: -0.06em;
}

.price-lockup span {
  color: var(--muted);
}

.month-list {
  margin-top: 25px;
}

.month-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 180px 1fr 150px;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.month-decision,
.month-money {
  display: grid;
  gap: 7px;
}

.month-decision small,
.month-money small {
  color: var(--muted);
}

.month-money {
  text-align: right;
}

.month-money a {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.status-badge.status-paid,
.status-badge.status-succeeded {
  border-color: #b8dfce;
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.status-no_activity,
.status-badge.status-trial,
.status-badge.status-paused {
  border-color: #cbd7ef;
  color: var(--blue);
  background: var(--blue-soft);
}

.status-badge.status-collection_failed,
.status-badge.status-failed,
.status-badge.status-reversed {
  border-color: #edc5c0;
  color: var(--red);
  background: var(--red-soft);
}

.status-badge.status-collection_pending,
.status-badge.status-created,
.status-badge.status-initiated,
.status-badge.status-scheduled {
  border-color: #eed3aa;
  color: var(--amber);
  background: var(--amber-soft);
}

.invoice-sheet {
  max-width: 920px;
  margin: 0 auto 70px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 70px rgb(24 54 44 / 10%);
}

.invoice-demo-banner {
  padding: 10px;
  color: #624300;
  background: #fff4c4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
}

.invoice-header,
.invoice-parties,
.invoice-meta,
.invoice-lines,
.invoice-total,
.collection-timeline {
  margin-inline: 48px;
}

.invoice-header {
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.invoice-title {
  text-align: right;
}

.invoice-title p {
  margin-bottom: 4px;
  color: var(--muted);
}

.invoice-title h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.invoice-parties {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.invoice-parties div {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.invoice-parties strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.invoice-parties small {
  color: var(--muted);
}

.invoice-meta {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-radius: 12px;
  background: var(--canvas);
}

.invoice-meta span,
.invoice-meta strong {
  display: block;
  font-size: 12px;
}

.invoice-meta span {
  margin-bottom: 5px;
  color: var(--muted);
}

.invoice-lines {
  width: calc(100% - 96px);
  margin-top: 40px;
  border-collapse: collapse;
}

.invoice-lines th,
.invoice-lines td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: right;
}

.invoice-lines th:first-child,
.invoice-lines td:first-child {
  text-align: left;
}

.invoice-lines th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.invoice-total {
  width: 320px;
  padding: 32px 0 42px;
  margin-left: auto;
}

.invoice-total div {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
}

.invoice-total .grand-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 20px;
}

.invoice-total small {
  color: var(--muted);
}

.collection-timeline {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.collection-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 14px;
  align-items: center;
}

.collection-row div {
  display: grid;
  gap: 3px;
}

.collection-row small {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

footer {
  padding: 30px 0 50px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .hero,
  .lower-grid {
    grid-template-columns: 1fr;
  }

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

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

  .steps div:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 34px 26px;
    gap: 30px;
  }

  h1 {
    font-size: 42px;
  }

  .steps {
    width: calc(100% - 12px);
    grid-template-columns: 1fr;
  }

  .steps div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .subscription-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .detail-hero,
  .invoice-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-lockup,
  .invoice-title {
    text-align: left;
  }

  .timeline-row,
  .month-row {
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-row small,
  .month-money {
    text-align: left;
  }

  .invoice-header,
  .invoice-parties,
  .invoice-meta,
  .invoice-lines,
  .invoice-total,
  .collection-timeline {
    margin-inline: 24px;
  }

  .invoice-parties,
  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .invoice-lines {
    width: calc(100% - 48px);
  }

  .invoice-total {
    width: auto;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  footer,
  .no-print {
    display: none;
  }

  main {
    width: 100%;
  }

  .invoice-sheet {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
