/* Integration-only adjustments; original FastPay styling is in style.css. */
[hidden] { display: none !important; }
body.landing .bg-glow,body.landing .kicker-dot,body.landing .live-dot,body.landing .payment-event { animation: none !important; }
body.landing .hero-visual canvas { display: none; }
body.landing .console-shell { animation: none; }
body.landing .pricing-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
body.landing .card-price .btn { margin-top: auto; }
body.landing .card-price { display: flex; flex-direction: column; }
body.landing .demo-hint a { color: var(--brand); display: block; margin-top: 5px; }
body.landing .pricing-error { grid-column: 1 / -1; text-align: center; }
.legal-draft { padding: 18px; border: 1px solid #e9d4a2; border-radius: 12px; background: #fff9e8; margin-top: 24px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


body.landing *,body.landing *::before,body.landing *::after { animation: none !important; }

/* The original entrance animation supplied these final states. Keep the hero
   visible without animation, including reduced-motion and JavaScript-free visits. */
body.landing .badge-live,
body.landing .hero-title .line,
body.landing .hero-lead,
body.landing .hero-cta,
body.landing .hero-trust,
body.landing .hero-visual {
  opacity: 1;
  transform: none;
}

/* Customer-facing payment illustration. Isolated from dashboard and demo styles. */
body.landing .hero-visual.payment-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 0; padding: 30px; gap: 20px; border-radius: 24px;
  background: #f3f4f6; perspective: none; overflow: visible;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24262a;
}
body.landing .payment-preview::before,
body.landing .payment-preview::after { display: none; }
.payment-preview-caption { font-size: 12px; font-weight: 400; color: #737780; }
.payment-receipt {
  width: 100%; max-width: 370px; padding: 24px 28px; border-radius: 16px;
  background: #fff; box-shadow: 0 8px 24px -14px rgba(35,42,55,.18);
}
.payment-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.payment-receipt-brand { font-size: 19px; font-weight: 650; letter-spacing: -.7px; }
.payment-receipt-brand > span { color: #315bd2; }
.payment-receipt-example { font-size: 11px; color: #737780; }
.payment-receipt-summary { padding: 26px 0 25px; text-align: center; }
.payment-receipt-check {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 50%; background: #edf4ef; color: #4c765a;
}
.payment-receipt-check svg { display: block; width: 24px; height: 24px; }
body.landing .payment-receipt-title { margin: 0; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; color: #4f6255; }
.payment-receipt-amount { margin: 10px 0 8px; font-size: clamp(36px, 3.3vw, 44px); line-height: 1.15; font-weight: 550; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; }
.payment-receipt-amount > span { font-weight: 400; color: #6b7078; }
.payment-receipt-note { margin: 0; font-size: 12px; line-height: 1.5; color: #737780; }
.payment-receipt-details { margin: 0; padding: 20px 0; display: grid; gap: 14px; border-top: 1px solid #eceef0; }
.payment-receipt-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font-size: 12px; line-height: 1.5; }
.payment-receipt-details dt { color: #737780; }
.payment-receipt-details dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.payment-receipt-footer { display: flex; align-items: baseline; gap: 9px; padding-top: 17px; border-top: 1px solid #eceef0; }
.payment-receipt-footer > span { color: #557761; font-size: 12px; }
.payment-receipt-footer p { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 500; }
.payment-receipt-footer p > span { display: block; margin-top: 3px; font-size: 11px; color: #737780; font-weight: 400; }
body.landing .payment-preview-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; color: #555e6d; text-decoration: none; transition: color .2s ease; }
body.landing .payment-preview-link:hover { color: #1d49ff; }
@media (max-width: 480px) {
  body.landing .hero-visual.payment-preview { padding: 23px 16px; border-radius: 18px; gap: 18px; }
  .payment-receipt { padding: 22px 20px; }
}


/* Product capabilities use open rows rather than nested mock interface cards. */
body.landing #features { background: #fff; padding: 64px 0; }
body.landing #features .section-head { text-align: left; margin: 0 0 32px; max-width: none; }
body.landing #features .kicker { display: block; margin: 0 0 16px; padding: 0; background: none; border: 0; font-size: 12px; color: #68707c; text-transform: none; letter-spacing: 0; }
body.landing #features .section-head h2 { margin: 0; font: 550 clamp(30px,3.3vw,44px)/1.18 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -1.2px; color: #202631; }
body.landing #features .features-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 56px; }
body.landing #features .card-feature,
body.landing #features .card-feature:nth-child(-n+2) { display: block; grid-column: auto; min-width: 0; min-height: 0; margin: 0; padding: 26px 0; background: #fff; border: 0; border-top: 1px solid #e5e7eb; border-radius: 0; box-shadow: none; transform: none; }
body.landing #features .card-feature::before { display: none; }
body.landing #features .card-feature:hover { transform: none; box-shadow: none; border-color: #e5e7eb; }
body.landing #features .card-feature h3,
body.landing #features .card-feature:nth-child(-n+2) h3 { margin: 0 0 10px; font: 550 20px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -.4px; color: #202631; }
body.landing #features .card-feature p { margin: 0; font-size: 14px; line-height: 1.65; color: #68707c; }
@media(max-width:760px) {
  body.landing #features .features-grid { grid-template-columns: minmax(0,1fr); }
}

/* Real payment test launcher. The payment and refund flow stays on /try. */
body.landing #demo {
  padding: 72px 0 76px; background: #fff; color: #27292d; scroll-margin-top: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#demo .demo-heading { margin: 0 0 40px; text-align: left; }
#demo .demo-eyebrow { display: block; margin-bottom: 17px; font-size: 12px; color: #747982; }
#demo .demo-heading h2 { margin: 0 0 20px; font: 550 clamp(34px,3.7vw,48px)/1.12 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -1.6px; color: #27292d; }
#demo .demo-heading p { margin: 0; font-size: 15px; line-height: 1.65; color: #707680; }
#demo .demo-workspace { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); border: 1px solid #e5e7eb; border-radius: 20px; overflow: hidden; }
#demo .demo-entry { padding: 38px 40px; background: #fff; }
#demo .demo-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#demo .demo-entry-heading h3 { margin: 0; font-size: 22px; font-weight: 550; letter-spacing: -.5px; }
#demo .demo-entry-heading > span { font-size: 11px; color: #707680; background: #f3f4f6; padding: 5px 8px; border-radius: 5px; }
#demo .demo-launch-list { display: grid; gap: 0; margin: 20px 0 24px; padding: 0; list-style: none; }
#demo .demo-launch-list li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; padding: 13px 0; border-top: 1px solid #eceef1; }
#demo .demo-launch-list li:last-child { border-bottom: 1px solid #eceef1; }
#demo .demo-launch-list li > span { color: #315bd2; font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
#demo .demo-launch-list strong { color: #34383f; font-size: 13px; font-weight: 550; line-height: 1.4; }
#demo .demo-run-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 48px; padding: 12px 17px; margin-top: 5px; background: #30343b; border: 1px solid #30343b; border-radius: 8px; color: #fff; font: 500 14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer; text-decoration: none; transition: background .2s,transform .2s; }
#demo .demo-run-button:hover { background: #474c54; }
#demo .demo-run-button:active { transform: translateY(1px); }
#demo .demo-safety-note { margin: 17px 0 0; color: #777d87; font-size: 11px; line-height: 1.6; }
#demo .demo-preview-panel { padding: 25px 40px 21px; background: #f3f4f6; display: flex; flex-direction: column; align-items: center; min-width: 0; }
#demo .demo-preview-caption { width: 100%; max-width: 360px; display: flex; justify-content: space-between; gap: 15px; margin-bottom: 17px; color: #737780; font-size: 11px; }
#demo .demo-invoice { padding: 23px 25px; width: 100%; max-width: 360px; background: #fff; border-radius: 14px; box-shadow: 0 8px 20px -13px #252b3b20; }
#demo .demo-invoice-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 10px; color: #737780; }
#demo .demo-invoice-head > span:first-child { color: #292d33; font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
#demo .demo-brand-dot { color: #315bd2; }
#demo .demo-invoice-symbol { width: 38px; height: 38px; margin: 22px auto 12px; border-radius: 50%; display: grid; place-items: center; color: #727c8c; background: #f2f4f7; }
#demo .demo-invoice-symbol svg { width: 22px; height: 22px; }
#demo .demo-invoice-tick { display: none; }
#demo [data-state="paid"] .demo-invoice-paper { display: none; }
#demo [data-state="paid"] .demo-invoice-tick { display: block; }
#demo [data-state="paid"] .demo-invoice-symbol { color: #557961; background: #edf4ef; }
#demo #demo-preview-title { margin: 0; text-align: center; font-size: 13px; line-height: 1.4; font-weight: 500; color: #666f7b; min-height: 19px; }
#demo [data-state="paid"] #demo-preview-title { color: #557961; }
#demo .demo-invoice-amount { margin: 9px 0 7px; font-size: 36px; letter-spacing: -1.2px; line-height: 1.2; font-weight: 550; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#demo .demo-invoice-order { margin: 0; font-size: 12px; line-height: 1.5; color: #777d87; text-align: center; overflow-wrap: anywhere; }
#demo .demo-invoice-details { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid #eceef1; display: grid; gap: 11px; font-size: 11px; }
#demo .demo-invoice-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
#demo .demo-invoice-details dt { color: #737780; }
#demo .demo-invoice-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
#demo .demo-confirmation { display: flex; gap: 7px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #eceef1; font-size: 10px; line-height: 1.5; color: #557961; }
@media (max-width: 800px) {
  #demo .demo-entry { padding: 28px; } #demo .demo-preview-panel { padding: 25px 24px; }
}
@media (max-width: 640px) {
  body.landing #demo { padding: 56px 0; }
  #demo .demo-heading { margin-bottom: 29px; }
  #demo .demo-heading p { font-size: 14px; }
  #demo .demo-desktop-break { display: none; }
  #demo .demo-workspace { grid-template-columns: minmax(0,1fr); border-radius: 16px; }
  #demo .demo-entry { padding: 25px 22px; }
  #demo .demo-preview-panel { padding: 25px 22px; }
}


/* Compact onboarding. */
body.landing #how {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #27292d; background: #fff; scroll-margin-top: 72px;
}
body.landing #how { background: #fff; padding: 68px 0; }
#how .setup-layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 85px; align-items: start; }
#how .setup-heading { padding-top: 7px; }
#how .setup-eyebrow { display: block; margin-bottom: 19px; color: #767d87; font-size: 12px; }
#how .setup-heading h2 { margin: 0 0 22px; font: 550 clamp(34px,3.7vw,48px)/1.12 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -1.6px; color: #27292d; text-wrap: balance; }
#how .setup-start { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 46px; padding: 12px 18px; border-radius: 7px; background: #30343b; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .2s, transform .2s; }
#how .setup-start:hover { background: #474c54; }
#how .setup-start:active { transform: translateY(1px); }
#how .setup-login { display: block; margin-top: 16px; font-size: 11px; color: #737a85; line-height: 1.5; }
#how .setup-login a { color: #414b5c; text-decoration: underline; text-underline-offset: 3px; }
#how .setup-login a:hover { color: #1d49ff; }
#how .setup-steps { list-style: none; margin: 0; padding: 0; }
#how .setup-steps li { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 23px; padding: 0 0 35px; }
#how .setup-steps li:last-child { padding-bottom: 0; }
#how .setup-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 47px; bottom: 9px; width: 1px; background: #dce0e5; }
#how .setup-index { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dde1e6; border-radius: 50%; background: #fff; color: #6e7785; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
#how .setup-steps h3 { margin: 5px 0 10px; font: 550 20px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #30343b; letter-spacing: -.4px; }
#how .setup-steps p { margin: 0; max-width: 410px; font-size: 14px; line-height: 1.65; color: #707680; }
@media (max-width: 1000px) {
  #how .setup-layout { gap: 40px; }
}
@media (max-width: 700px) {
  body.landing #how { padding: 56px 0; }
  #how .setup-layout { grid-template-columns: minmax(0,1fr); gap: 42px; }
  #how .setup-heading { padding: 0; }
  #how .setup-heading h2 { max-width: 430px; }
}
@media (max-width: 440px) {
  #how .setup-steps li { gap: 17px; }
}
