/* PayLater Demo: a fictional provider site. Own brand colour on purpose, so the
   embedded assistant reads as a white-label product, not part of this site. */
:root {
  --brand: #5b21b6;
  --brand-dark: #4c1d95;
  --brand-soft: #f3efff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #fafaf9;
  --warn-bg: #fff7ed;
  --warn-ink: #9a3412;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.demo-ribbon {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 7px 16px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.brand-name span { color: var(--brand); }
nav { display: flex; gap: 4px; overflow-x: auto; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
nav a:hover { background: var(--bg); color: var(--ink); }
nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.hero { background: linear-gradient(180deg, var(--brand-soft), #fff); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-dark); background: #fff; border: 1px solid #ddd6fe; border-radius: 999px; padding: 4px 12px; }
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; margin: 16px 0; }
.page-title { font-size: 36px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 12px; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }
.btn-ghost:hover { background: var(--bg); }

.checkout {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 60px -30px rgba(91, 33, 182, .45);
}
.checkout h2 { font-size: 15px; margin: 0 0 16px; color: var(--muted); font-weight: 600; }
.item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item b { font-variant-numeric: tabular-nums; }
.plan { margin-top: 18px; background: var(--brand-soft); border-radius: 14px; padding: 16px; }
.plan-title { font-weight: 700; color: var(--brand-dark); }
.plan-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.plan-row b { display: block; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.plan-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

section.block { padding: 56px 0; border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.num { width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }

.content { padding: 48px 0 72px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 24px; }
table.fees { width: 100%; border-collapse: collapse; font-size: 15px; }
table.fees th, table.fees td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
table.fees th { font-size: 13px; color: var(--muted); font-weight: 600; }
table.fees td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.callout { background: var(--warn-bg); color: var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-top: 16px; }
.callout b { color: var(--warn-ink); }
.hint { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-top: 24px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.step .when { font-size: 13px; color: var(--muted); }
.step .amt { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  h1 { font-size: 34px; }
  .cards, .options { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .btn-ghost { margin: 8px 0 0; }
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
