/* Renzo Payments. Tokens match the Renzo Skills site. */
:root {
  --ghost: #f7f7fb;
  --midnight: #1e1e2e;
  --midnight-deep: #15151f;
  --teal: #00c9a7;
  --teal-text: #00705c;
  --amber: #f59e0b;
  --amber-strong: #d97706;
  --violet: #7c3aed;
  --steel: #374151;
  --on-dark: #f7f7fb;
  --on-dark-muted: #b4b8cb;
  --line: #e4e4ee;
  --danger: #b42318;
  --gradient: linear-gradient(135deg, #00c9a7, #7c3aed);

  --radius-btn: 8px;
  --radius-card: 16px;
  --radius-chip: 12px;
  --radius-pill: 100px;

  /* Depth: base → elevated → floating, tinted with midnight/violet */
  --shadow-elevated: 0 1px 2px rgba(30, 30, 46, .06), 0 4px 20px rgba(30, 30, 46, .08);
  --shadow-floating: 0 1px 2px rgba(21, 21, 31, .2), 0 12px 32px rgba(21, 21, 31, .28), 0 40px 80px -20px rgba(124, 58, 237, .35);
  --shadow-amber: 0 1px 2px rgba(138, 90, 6, .25), 0 8px 24px -6px rgba(245, 158, 11, .55);

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Spacing tokens */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ghost);
  color: var(--midnight);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Trebuchet MS", Nunito, sans-serif; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 640px) { .wrap { padding: 0 var(--s5); } }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 50; background: var(--amber); color: var(--midnight); padding: var(--s2) var(--s4); border-radius: var(--radius-btn); font-weight: 700; }
.skip-link:focus { top: var(--s3); }

/* Header */
.site-header { background: var(--midnight-deep); position: relative; z-index: 10; }
.gradient-rule { height: 3px; background: var(--gradient); }
.logo-link { display: inline-flex; align-items: center; gap: var(--s3); color: var(--on-dark-muted); text-decoration: none; border-radius: 6px; transition: opacity .2s var(--ease-out); }
.logo-link:hover { opacity: .85; }
.logo-link:active { opacity: .7; }
.logo-tag { font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-left: var(--s3); border-left: 1px solid rgba(180, 184, 203, .3); line-height: 1.2; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pill); font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 13px; font-weight: 700; padding: 6px 12px; line-height: 1.2; }
.chip-secure { color: var(--teal); background: rgba(0, 201, 167, .1); border: 1px solid rgba(0, 201, 167, .35); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--midnight); color: var(--on-dark); isolation: isolate; }
.hero-glow {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 45%, rgba(124, 58, 237, .38), transparent 70%),
    radial-gradient(45% 40% at 10% 0%, rgba(0, 201, 167, .2), transparent 70%),
    radial-gradient(40% 50% at 50% 110%, rgba(0, 201, 167, .12), transparent 70%),
    linear-gradient(180deg, #1b1b2a 0%, var(--midnight) 60%);
}
.grain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .07; mix-blend-mode: overlay; pointer-events: none; }

.eyebrow { font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.eyebrow-light { color: var(--teal-text); }

.quote { margin: var(--s6) 0 0; padding: var(--s5); border-radius: var(--radius-card); background: rgba(247, 247, 251, .04); border: 1px solid rgba(247, 247, 251, .08); max-width: 520px; backdrop-filter: blur(6px); }
.quote-mark { display: block; margin-bottom: var(--s3); }
.quote blockquote { margin: 0; font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 19px; line-height: 1.5; font-style: italic; color: var(--on-dark); letter-spacing: -.01em; }
.quote figcaption { margin-top: var(--s3); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.quote figcaption::before { content: "— "; }

.hero-title { margin-top: var(--s6); font-size: clamp(38px, 7vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; max-width: 620px; text-wrap: balance; }
.hero-copy { margin-top: var(--s5); font-size: 18px; color: var(--on-dark-muted); max-width: 540px; }

.trust-list { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s4); max-width: 540px; }
.trust-list li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 16px; color: var(--on-dark-muted); line-height: 1.55; }
.trust-list strong { color: var(--on-dark); font-weight: 700; }
.trust-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--teal); background: rgba(0, 201, 167, .12); border: 1px solid rgba(0, 201, 167, .25); }

/* Payment card (floating layer) */
.pay-card { position: relative; background: #fff; color: var(--midnight); border-radius: 20px; padding: var(--s5); box-shadow: var(--shadow-floating); scroll-margin-top: var(--s5); }
@media (min-width: 640px) { .pay-card { padding: var(--s6); } }
.pay-card::before { content: ""; position: absolute; inset: 0 var(--s5) auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--gradient); }
.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.pay-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pay-steps { font-size: 13px; color: var(--steel); white-space: nowrap; }

.field { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
.label { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 14px; font-weight: 700; color: var(--midnight); padding: 0; }
.step-no { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: var(--midnight); color: var(--on-dark); }
.hint { margin-top: var(--s2); font-size: 13px; line-height: 1.5; color: var(--steel); }

.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 16px; color: var(--midnight);
  background: var(--ghost); border: 1.5px solid var(--line); appearance: none;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.input::placeholder { color: #8b8fa3; }
.input:hover { border-color: #c9c9d9; }
.input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0, 201, 167, .15); }
.input:focus-visible { outline: none; }
.input:disabled { opacity: .6; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select.input { padding-right: 40px; cursor: pointer; }

.programme-fixed { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 48px; padding: 0 14px; border-radius: 10px; background: var(--ghost); border: 1.5px solid var(--line); font-weight: 700; }
.programme-fixed small { font-weight: 400; color: var(--steel); font-size: 13px; }

.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.stage-card { position: relative; cursor: pointer; display: block; }
.stage-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.stage-body {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border-radius: 12px; background: var(--ghost); border: 1.5px solid var(--line);
  transition: transform .35s var(--spring), border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.stage-name { font-size: 13px; font-weight: 700; color: var(--steel); line-height: 1.3; }
.stage-amount { font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stage-note { font-size: 12px; color: var(--steel); line-height: 1.4; }
.stage-card:hover .stage-body { transform: translateY(-2px); border-color: #c9c9d9; }
.stage-card:active .stage-body { transform: translateY(0) scale(.98); }
.stage-card input:checked + .stage-body { border-color: var(--teal); background: rgba(0, 201, 167, .08); }
.stage-card input:checked + .stage-body .stage-name { color: var(--teal-text); }
.stage-card input:focus-visible + .stage-body { outline: 3px solid var(--violet); outline-offset: 2px; }
.stage-card input:disabled + .stage-body { opacity: .45; cursor: not-allowed; transform: none; }

.summary { margin: 0 0 var(--s5); padding: var(--s4); border-radius: 12px; border: 1px dashed #d4d4e2; display: grid; gap: var(--s2); font-size: 15px; }
.summary > div { display: flex; justify-content: space-between; gap: var(--s3); }
.summary dt { color: var(--steel); }
.summary dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-today { padding-top: var(--s3); margin-top: var(--s1); border-top: 1px solid var(--line); }
.summary-today dt { color: var(--midnight); font-weight: 700; }
.summary-today dd { font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 22px; line-height: 1.2; }

.agree { display: flex; gap: var(--s3); align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--steel); margin-bottom: var(--s5); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-text); cursor: pointer; }
.agree a, .notice a { color: var(--teal-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.agree a:hover { color: var(--midnight); }

.notice { border-radius: 10px; padding: var(--s3) var(--s4); font-size: 14px; line-height: 1.5; margin-bottom: var(--s4); }
.notice-error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.notice-info { background: rgba(0, 201, 167, .08); color: var(--teal-text); border: 1px solid rgba(0, 201, 167, .3); font-weight: 700; }

.btn-pay {
  width: 100%; height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  border: 0; border-radius: var(--radius-btn); cursor: pointer; font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 17px; font-weight: 700;
  color: var(--midnight); background: var(--amber); box-shadow: var(--shadow-amber);
  transition: transform .35s var(--spring), opacity .2s var(--ease-out);
}
.btn-pay:hover { transform: translateY(-2px); }
.btn-pay:hover .btn-arrow { transform: translateX(3px); }
.btn-pay:active { transform: translateY(0) scale(.98); }
.btn-pay:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-pay[aria-busy="true"] { cursor: progress; }
.btn-arrow { transition: transform .35s var(--spring); }

.secure-note { margin-top: var(--s4); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--steel); }
.methods { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.methods li { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--steel); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--ghost); }

/* Sections (base layer) */
.section { padding: var(--s8) 0; }
@media (min-width: 1024px) { .section { padding: var(--s9) 0; } }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-top: var(--s3); font-size: clamp(28px, 4.5vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; max-width: 640px; }
.section-copy { margin-top: var(--s4); color: var(--steel); max-width: 600px; }

.steps { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; gap: var(--s4); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.step { background: #fff; border-radius: var(--radius-card); padding: var(--s5); box-shadow: var(--shadow-elevated); border: 1px solid rgba(30, 30, 46, .05); }
.step-index { display: inline-block; font-family: "Trebuchet MS", Nunito, sans-serif; font-weight: 700; font-size: 14px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-top: var(--s3); font-size: 20px; letter-spacing: -.02em; }
.step p { margin-top: var(--s2); color: var(--steel); font-size: 16px; line-height: 1.6; }

.table-card { margin-top: var(--s7); background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-elevated); border: 1px solid rgba(30, 30, 46, .06); overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
.price-table th { text-align: left; font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: var(--ghost); }
.price-table td { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-weight: 700; }
.price-table td:last-child { font-weight: 700; }
.price-table th:not(:first-child), .price-table td:not(:first-child) { text-align: right; }
.tag { display: inline-block; margin-left: var(--s2); padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.tag-rise { background: rgba(245, 158, 11, .14); color: #8a5a06; }
.tag-balance { background: rgba(124, 58, 237, .1); color: var(--violet); }
.price-table tbody tr { transition: background-color .2s var(--ease-out); }
.price-table tbody tr:hover { background: rgba(0, 201, 167, .04); }

.help-card { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s6); border-radius: 20px; color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; background: var(--midnight); box-shadow: var(--shadow-floating); }
.help-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(124, 58, 237, .4), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(0, 201, 167, .22), transparent 60%); }
@media (min-width: 768px) { .help-card { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--s7); } }
.help-title { font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.help-copy { margin-top: var(--s2); color: var(--on-dark-muted); max-width: 560px; }
.btn-ghost {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 52px; padding: 0 var(--s5); border-radius: var(--radius-btn);
  font-family: "Trebuchet MS", Nunito, sans-serif; font-weight: 700; color: var(--midnight); background: var(--on-dark); text-decoration: none;
  transition: transform .35s var(--spring), opacity .2s var(--ease-out);
}
.btn-ghost svg { transition: transform .35s var(--spring); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-ghost:active { transform: scale(.98); }

/* Footer */
.site-footer { background: var(--midnight-deep); color: var(--on-dark-muted); font-size: 15px; line-height: 1.6; }
.footer-lede { margin-top: var(--s4); max-width: 360px; }
.footer-stripe { margin-top: var(--s4); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--teal); }
.footer-head { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: var(--s3); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-list span { display: block; }
.footer-list a { color: var(--on-dark-muted); text-decoration: none; border-radius: 4px; transition: opacity .2s var(--ease-out); }
.footer-list a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-list a:active { opacity: .7; }
.footer-base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(180, 184, 203, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: 13px; }

/* Success page */
.result-card { max-width: 560px; margin: 0 auto; }
.result-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 201, 167, .14); color: var(--teal-text); border: 1px solid rgba(0, 201, 167, .35); }
.result-icon-wait { background: rgba(245, 158, 11, .14); color: #8a5a06; border-color: rgba(245, 158, 11, .4); }
.fade-up { animation: fade-up .6s var(--ease-out) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.chip { white-space: nowrap; }
@media (max-width: 420px) {
  .logo-tag { display: none; }
}

/* Deposit / balance modes */
.pay-lede { margin: calc(var(--s3) * -1) 0 var(--s5); font-size: 15px; line-height: 1.55; color: var(--steel); }
.places { margin-top: var(--s2); display: flex; align-items: center; gap: var(--s2); font-size: 14px; font-weight: 700; color: var(--teal-text); }
.places::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(0, 201, 167, .15); }
.places[data-state="low"] { color: #8a5a06; }
.places[data-state="low"]::before { box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.places[data-state="full"] { color: var(--danger); }
.places[data-state="full"]::before { box-shadow: 0 0 0 4px rgba(180, 35, 24, .15); }
.hold-note { margin-top: var(--s3); font-size: 13px; line-height: 1.5; color: var(--steel); text-align: center; }
/* In the deposit form, "Deposit today" leads the summary, so its divider sits below it. */
#mode-deposit .summary .summary-today { padding-top: 0; margin-top: 0; padding-bottom: var(--s3); margin-bottom: var(--s1); border-top: 0; border-bottom: 1px solid var(--line); }
.paid-tick { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 201, 167, .12); color: var(--teal-text); }

.returning { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 4px; transition: opacity .2s var(--ease-out); }
.link-btn:hover { color: var(--midnight); }
.link-btn:active { opacity: .7; }
.returning-form { margin-top: var(--s3); }
.returning-form .hint { margin: 0 0 var(--s3); }
.returning-form #returning-msg { margin: var(--s3) 0 0; }
.mt-0 { margin-top: 0; }
.btn-small {
  flex: none; height: 48px; padding: 0 var(--s5); border: 0; border-radius: var(--radius-btn); cursor: pointer;
  font-family: "Trebuchet MS", Nunito, sans-serif; font-weight: 700; font-size: 15px; color: var(--on-dark); background: var(--midnight);
  transition: transform .35s var(--spring), opacity .2s var(--ease-out);
}
.btn-small:hover { transform: translateY(-1px); }
.btn-small:active { transform: scale(.97); }
.btn-small:disabled { opacity: .6; cursor: progress; transform: none; }
.tag-full { background: rgba(180, 35, 24, .1); color: var(--danger); }
.tag-left { background: rgba(0, 201, 167, .12); color: var(--teal-text); margin-left: 0; }
.price-table tr.is-full td { color: #8b8fa3; }
.balance-box { margin-top: var(--s5); padding: var(--s4); border-radius: 12px; background: rgba(0, 201, 167, .07); border: 1px solid rgba(0, 201, 167, .3); font-size: 15px; line-height: 1.5; }
.balance-box .input { background: #fff; }
.quote-top { margin-top: 0; }

/* Paid-in-full celebration */
.done-badge { position: relative; width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--gradient); box-shadow: 0 12px 32px -8px rgba(124, 58, 237, .55), 0 6px 16px -6px rgba(0, 201, 167, .5); animation: pop .7s var(--spring) both; }
.done-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); animation: ring 1.8s var(--ease-out) .3s 2 both; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.done-title { margin-top: var(--s2); text-align: center; font-size: clamp(34px, 6vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; animation: fade-up .6s var(--ease-out) .15s both; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.done-copy { margin-top: var(--s4); text-align: center; color: var(--steel); animation: fade-up .6s var(--ease-out) .25s both; }
.done-copy strong { color: var(--midnight); }
.done-quote { margin-top: var(--s3); text-align: center; font-family: "Trebuchet MS", Nunito, sans-serif; font-style: italic; color: var(--steel); font-size: 15px; animation: fade-up .6s var(--ease-out) .35s both; }
.done-quote span { font-style: normal; font-weight: 700; color: var(--teal-text); }
.countdown { margin: var(--s5) auto 0; width: fit-content; display: flex; align-items: baseline; gap: var(--s3); padding: var(--s3) var(--s5); border-radius: var(--radius-pill); background: var(--midnight); color: var(--on-dark); box-shadow: var(--shadow-elevated); animation: fade-up .6s var(--ease-out) .45s both; }
.countdown-num { font-family: "Trebuchet MS", Nunito, sans-serif; font-size: 28px; font-weight: 700; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 14px; color: var(--on-dark-muted); }
.trail { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 12px; font-weight: 700; text-align: center; color: var(--steel); animation: fade-up .6s var(--ease-out) .55s both; }
.trail li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1.3; }
.trail li + li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--teal); z-index: 0; }
.trail li.is-next::before { background: linear-gradient(90deg, var(--teal), var(--line)); }
.trail-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #fff; }
.trail .is-done { color: var(--teal-text); }
.trail .is-next .trail-dot { background: #fff; border: 2px solid var(--violet); }
.trail .is-next { color: var(--violet); }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; opacity: 0; border-radius: 2px; animation: confetti-fall var(--d) cubic-bezier(.2, .6, .4, 1) var(--delay) forwards; }
@keyframes confetti-fall {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); }
}

/* Legal pages */
.chip-link { text-decoration: none; transition: opacity .2s var(--ease-out), transform .35s var(--spring); }
.chip-link:hover { transform: translateY(-1px); }
.chip-link:active { opacity: .7; transform: none; }
.legal-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--midnight); color: var(--on-dark); padding: var(--s8) 0 var(--s7); }
.legal-wrap { max-width: 800px; }
.legal-hero h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.legal-updated { margin-top: var(--s3); color: var(--on-dark-muted); font-size: 15px; }
.legal { position: relative; margin: calc(var(--s6) * -1) 0 var(--s8); padding: var(--s5); background: #fff; border-radius: 20px; box-shadow: var(--shadow-elevated); border: 1px solid rgba(30, 30, 46, .05); }
@media (min-width: 640px) { .legal { padding: var(--s7); } }
.legal-intro { font-size: 18px; color: var(--midnight); }
.legal-toc { margin: var(--s5) 0 0; padding: var(--s4) var(--s5) var(--s4) calc(var(--s5) + 18px); border-radius: 12px; background: var(--ghost); display: grid; gap: 4px; font-size: 15px; }
.legal-toc a, .legal a { color: var(--teal-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.legal-toc a:hover, .legal a:hover { color: var(--midnight); }
.legal-toc a:active, .legal a:active { opacity: .7; }
.legal section { margin-top: var(--s7); scroll-margin-top: var(--s5); }
.legal h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.legal p, .legal li { margin-top: var(--s3); color: var(--steel); }
.legal ul { margin: var(--s2) 0 0; padding-left: 20px; }
.legal li strong { color: var(--midnight); }
.legal-draft { margin-bottom: var(--s5); padding: var(--s3) var(--s4); border-radius: 10px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .45); color: #8a5a06; font-size: 15px; }
.legal h2 { font-weight: 700; }
.legal-toc { list-style: decimal; }
.legal-toc li::marker { color: var(--teal-text); font-weight: 700; }
.legal ul { list-style: disc; }
.legal ul li::marker { color: var(--teal); }
