/* Adapted from Brclio Design System landing and app templates. */
:root {
  --_brclio-ds: "brclio-v1";
  --blue: #2b7fd8;
  --blue-deep: #1e5ba8;
  --yellow: #f4d758;
  --yellow-soft: #fff3cd;
  --red: #e84a5f;
  --cream: #fefcf6;
  --cream-dark: #faf6eb;
  --ink: #1a1a2e;
  --ink-light: #4a4a5a;
  --ink-faint: #767681;
  --dark-panel: #151821;
  --border: rgba(26, 26, 46, .12);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--ink); }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(100%, 1248px); margin-inline: auto; padding-inline: clamp(24px, 5vw, 64px); }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 16px; padding: 10px 18px; color: var(--cream); background: var(--blue-deep); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; color: var(--blue-deep); white-space: nowrap; }
.wordmark > span:first-child { font: italic 700 2rem/1 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.wordmark-pay { color: var(--ink); font: 500 .8rem/1 var(--sans); letter-spacing: .04em; border-left: 1px solid var(--border); padding-left: 12px; }
.quiet-link { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 500; padding-block: 4px; }
.quiet-link:hover { box-shadow: inset 0 -7px var(--yellow); }
.label-caps { font-size: .66rem; font-weight: 600; letter-spacing: .14em; line-height: 1.6; }
.hero { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); min-height: calc(100svh - 100px); padding-block: clamp(50px, 9vh, 110px) clamp(90px, 12vh, 150px); }
.hero-text > .label-caps { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); }
.small-star { color: var(--red); font-size: 1.15rem; line-height: 1; }
.hero h1 { font: 900 clamp(2.6rem, 4.5vw, 4.6rem)/1.38 var(--serif); letter-spacing: -.045em; margin-block: 25px 24px; }
.highlight { background: linear-gradient(transparent 65%, var(--yellow) 65%, var(--yellow) 91%, transparent 91%); padding-right: .05em; }
.hero-description { color: var(--ink-light); font-size: .94rem; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; border-radius: 8px; font-size: .88rem; font-weight: 600; text-align: center; line-height: 1.5; transition: background .16s, transform .16s, border-color .16s; }
.button-primary { background: var(--blue-deep); color: var(--cream); }
.button-primary:hover:not(:disabled) { background: #174e93; transform: translateY(-2px); }
.button-primary:active:not(:disabled) { transform: translateY(0); }
.hero-note { font-size: .73rem; color: var(--ink-faint); }
.service-state { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; color: var(--ink-faint); margin-top: 19px; }
.service-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.service-state[data-state="live"] { color: var(--blue-deep); }
.service-state[data-state="live"]::before { background: var(--blue); }
.platform-line { display: flex; gap: 24px; margin-top: 48px; font-size: .7rem; color: var(--ink-faint); letter-spacing: .02em; }
.platform-line span { display: inline-flex; align-items: center; gap: 8px; }
.platform-line span::before { content: ""; width: 4px; height: 4px; background: var(--blue); border-radius: 50%; }
.hero-visual { position: relative; padding-block: 28px; padding-inline: 5px; }
.visual-caption { display: block; margin: 0 0 16px 16px; color: var(--blue-deep); font: italic 1rem/1.2 Georgia, serif; transform: rotate(-4deg); }
.connection-sheet { position: relative; transform: rotate(3deg); background: var(--cream-dark); border: 1px solid rgba(30, 91, 168, .2); border-radius: 4px; box-shadow: 12px 15px 0 rgba(43, 127, 216, .06); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 25px 22px; border-bottom: 1px solid var(--border); }
.sheet-symbol { width: 40px; height: 40px; display: grid; place-items: center; background: var(--yellow); color: var(--blue-deep); border-radius: 50%; font: italic 700 1.6rem/1 Georgia, serif; padding-right: 3px; }
.sheet-top .label-caps { flex: 1; font-size: .61rem; letter-spacing: .16em; color: var(--ink-faint); }
.sheet-mark { font-size: 1.4rem; color: var(--blue-deep); }
.connection-row { display: flex; align-items: center; gap: 18px; padding: 28px 25px; border-bottom: 1px dashed rgba(26, 26, 46, .2); }
.row-number { font: italic 1.25rem/1 Georgia, serif; color: var(--blue); }
.connection-row > div { flex: 1; }
.row-caption { display: block; font-size: .5rem; letter-spacing: .095em; color: var(--ink-faint); margin-bottom: 6px; }
.connection-row strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.row-icon { font-size: 1.2rem; width: 30px; height: 30px; display: grid; place-items: center; color: var(--blue-deep); }
.connection-row-pay { background: var(--blue-deep); color: var(--cream); border-bottom-color: transparent; }
.connection-row-pay .row-caption, .connection-row-pay .row-number { color: #d1e2f5; }
.connection-row-pay .row-icon { background: var(--cream); color: var(--blue-deep); border-radius: 5px; font-size: 1.05rem; font-weight: 700; }
.sheet-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 20px 25px; font-size: .56rem; color: var(--ink-faint); }
.sheet-bottom > span:first-child { font: italic .9rem/1.2 Georgia, serif; color: var(--blue-deep); }
.visual-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--red); top: 68px; right: -5px; }
.visual-doodle { color: var(--blue); position: absolute; left: -48px; bottom: -23px; transform: rotate(12deg); }
.flow-section { background: var(--cream-dark); padding-block: clamp(80px, 10vw, 130px); border-block: 1px solid rgba(26, 26, 46, .06); }
.flow-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 9vw, 120px); align-items: start; }
.section-number { display: block; font: italic .87rem/1.5 Georgia, serif; color: var(--blue-deep); margin-bottom: 22px; }
.section-header h2 { font: 700 clamp(1.8rem, 2.8vw, 2.6rem)/1.5 var(--serif); letter-spacing: -.03em; }
.section-header p { color: var(--ink-light); font-size: .87rem; max-width: 300px; margin-top: 22px; }
.flow-list { list-style: none; }
.flow-list li { display: flex; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--border); }
.flow-list li:first-child { padding-top: 4px; }
.flow-list li:last-child { border-bottom: none; padding-bottom: 0; }
.step-index { font: italic 1.1rem/1.5 Georgia, serif; color: var(--blue); padding-top: 2px; }
.flow-list h3 { font: 700 1.1rem/1.5 var(--serif); margin-bottom: 9px; }
.flow-list p { font-size: .84rem; color: var(--ink-light); line-height: 1.9; }
.developer-section { background: var(--dark-panel); color: var(--cream); padding-block: clamp(72px, 9vw, 120px); }
.developer-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(44px, 10vw, 140px); }
.developer-section .label-caps { color: var(--yellow); margin-bottom: 23px; }
.developer-section h2 { font: 700 clamp(1.9rem, 3.2vw, 3rem)/1.5 var(--serif); letter-spacing: -.03em; }
.developer-copy p { color: #c1c2c9; font-size: .9rem; line-height: 1.95; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; color: var(--yellow); border-bottom: 1px solid rgba(244, 215, 88, .4); padding-block: 14px 8px; margin-top: 16px; font-size: .86rem; }
.text-link:hover { border-bottom-color: var(--yellow); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 44px; }
.wordmark-small > span:first-child { font-size: 1.55rem; }
.site-footer p { color: var(--ink-faint); font-size: .7rem; margin-top: 9px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 24px; color: var(--ink-faint); font-size: .66rem; }
.footer-meta a:hover { text-decoration: underline; text-underline-offset: 5px; }
.design-credit { flex-basis: 100%; text-align: right; font-size: .58rem; }

/* Hosted checkout: the app template's compact layout and immediate UI. */
.checkout-page { min-height: 100svh; display: flex; flex-direction: column; }
.app-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid var(--border); }
.app-header-inner { height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.checkout-header-note { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: .7rem; }
.app-content { width: min(100%, 980px); margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 48px) 32px; flex: 1; }
.checkout-intro { margin-bottom: 26px; }
.checkout-intro .label-caps { color: var(--blue-deep); font-size: .6rem; margin-bottom: 10px; }
.checkout-intro h1 { font: 700 1.2rem/1.5 var(--serif); margin-bottom: 6px; }
.checkout-intro > p:last-child { font-size: .8rem; color: var(--ink-faint); }
.checkout-panel { display: grid; grid-template-columns: 1.1fr 1fr; background: #fffcf3; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.order-summary { min-width: 0; padding: clamp(28px, 4vw, 42px); }
.payment-side { min-width: 0; padding: clamp(28px, 4vw, 42px); background: var(--cream-dark); border-left: 1px solid var(--border); }
.merchant-line { display: flex; align-items: center; gap: 9px; color: var(--ink-light); font-size: .76rem; overflow-wrap: anywhere; }
.merchant-avatar { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font: italic 700 1rem/1 Georgia, serif; color: var(--blue-deep); background: var(--yellow); padding-right: 2px; }
.order-subject { font: 700 1.15rem/1.65 var(--serif); overflow-wrap: anywhere; margin-top: 22px; }
.amount-label { font-size: .69rem; color: var(--ink-faint); margin-top: 32px; }
.order-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; color: var(--blue-deep); font: 500 clamp(2.3rem, 4.5vw, 3.45rem)/1.35 Georgia, serif; letter-spacing: -.04em; overflow-wrap: anywhere; margin-top: 3px; }
.currency-symbol { font-size: 1.25rem; letter-spacing: 0; }
.currency-code { font: 500 .64rem/1.5 var(--sans); letter-spacing: .04em; margin-left: 2px; color: var(--ink-faint); }
.order-facts { margin-top: 34px; padding-top: 24px; border-top: 1px dashed var(--border); }
.order-facts > div + div { margin-top: 20px; }
.order-facts dt { color: var(--ink-faint); font-size: .68rem; margin-bottom: 5px; }
.order-facts dd { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px 9px; font-size: .76rem; overflow-wrap: anywhere; }
.order-facts dd > span { max-width: 100%; }
.copy-button { background: transparent; border: 0; font-size: .66rem; line-height: 1.9; color: var(--blue-deep); padding-inline: 2px; flex-shrink: 0; }
.copy-button:hover { box-shadow: inset 0 -6px var(--yellow); }
.copy-feedback { font-size: .66rem; color: var(--blue-deep); min-height: 1.6em; margin-top: 8px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 600; padding: 4px 9px; border-radius: 4px; color: var(--blue-deep); background: rgba(43, 127, 216, .09); }
.status-badge::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.status-badge[data-state="PAID"] { background: rgba(244, 215, 88, .38); color: #6c5500; }
.status-badge[data-state="CLOSED"], .status-badge[data-state="error"] { background: rgba(232, 74, 95, .08); color: #ac2940; }
.payment-status h2 { font: 700 1.1rem/1.5 var(--serif); margin-top: 17px; }
.payment-status p { color: var(--ink-light); font-size: .76rem; line-height: 1.9; margin-top: 9px; overflow-wrap: anywhere; }
.channel-options { border: 0; margin-top: 26px; }
.channel-options legend { font-size: .68rem; color: var(--ink-faint); padding: 0; margin-bottom: 10px; }
.channel-option { display: flex; align-items: center; gap: 11px; padding-block: 8px; cursor: pointer; }
.channel-option input { width: 15px; height: 15px; accent-color: var(--blue-deep); flex-shrink: 0; cursor: pointer; }
.channel-option strong { font-size: .75rem; font-weight: 500; display: block; }
.channel-option small { display: block; font-size: .63rem; color: var(--ink-faint); margin-top: 1px; }
.pay-button { width: 100%; margin-top: 20px; font-size: .8rem; }
.checkout-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 14px; }
.checkout-actions:empty { margin-top: 0; }
.button-secondary { color: var(--blue-deep); background: transparent; border-color: rgba(30, 91, 168, .24); font-size: .75rem; min-height: 42px; padding: 10px 14px; }
.button-secondary:hover:not(:disabled) { background: rgba(43, 127, 216, .05); border-color: var(--blue-deep); }
.return-link { display: inline-flex; justify-content: center; align-items: center; gap: 12px; font-size: .74rem; color: var(--blue-deep); padding-block: 6px; overflow-wrap: anywhere; }
.return-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.poll-note { font-size: .62rem; color: var(--ink-faint); margin-top: 20px; line-height: 1.8; }
.checkout-help { font-size: .7rem; line-height: 1.9; color: var(--ink-faint); max-width: 650px; margin: 19px auto 0; padding-inline: 3px; }
.checkout-footer { padding: 26px 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: .62rem; color: var(--ink-faint); }
.footer-divider { opacity: .5; }
.notice { border-radius: 7px; padding: 13px 16px; font-size: .76rem; line-height: 1.9; margin-bottom: 16px; overflow-wrap: anywhere; }
.notice-warning { background: var(--yellow-soft); color: #6d590d; }
.notice-warning strong, .notice-warning span { display: block; }
.notice-warning strong { font-size: .78rem; }
.notice-error { background: #f9e9e7; color: #9e2f40; }
.order-loading { min-height: 310px; }
.loading-line { background: rgba(26, 26, 46, .06); border-radius: 3px; height: 14px; margin-block: 5px 24px; }
.loading-short { width: 38%; }
.loading-long { width: 78%; margin-top: 32px; height: 23px; }
.loading-amount { width: 52%; height: 53px; margin-top: 45px; }
.order-loading p { font-size: .72rem; color: var(--ink-faint); margin-top: 44px; }
.order-unavailable { font: 700 1.1rem/1.7 var(--serif); color: var(--ink-light); padding-block: 30px; }
.order-empty { display: flex; min-height: 240px; flex-direction: column; justify-content: center; align-items: flex-start; }
.order-empty p { font: 700 1.1rem/1.7 var(--serif); margin-top: 20px; }
.order-empty > span:last-child { font-size: .74rem; line-height: 1.9; color: var(--ink-faint); margin-top: 10px; }

@media (min-width: 1600px) { .hero { min-height: 800px; } }
@media (max-width: 900px) {
  .site-header { height: 82px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 50px; padding-block: 55px 100px; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
  .hero-text { max-width: 590px; }
  .hero-visual { width: min(100%, 400px); justify-self: end; margin-right: 10px; }
  .flow-layout, .developer-layout { grid-template-columns: 1fr; gap: 42px; }
  .flow-list { max-width: 650px; }
  .section-header p { max-width: 480px; }
  .developer-copy { max-width: 580px; }
  .site-footer { align-items: flex-start; }
  .footer-meta { max-width: 230px; }
  .checkout-panel { grid-template-columns: 1fr 1fr; }
  .payment-side, .order-summary { padding: 30px 26px; }
}
@media (max-width: 600px) {
  .container { padding-inline: 24px; }
  .site-header { height: 76px; }
  .wordmark > span:first-child { font-size: 1.7rem; }
  .wordmark-pay { font-size: .7rem; }
  .quiet-link { font-size: .7rem; gap: 7px; }
  .hero { padding-top: 40px; gap: 40px; }
  .hero h1 { font-size: clamp(2.15rem, 8vw, 3rem); line-height: 1.45; margin-block: 22px; }
  .hero-description { font-size: .85rem; }
  .desktop-break { display: none; }
  .hero-actions { gap: 14px; margin-top: 25px; align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .hero-note { font-size: .67rem; }
  .platform-line { margin-top: 31px; }
  .hero-visual { width: min(100% - 12px, 360px); margin-right: 6px; padding-top: 15px; }
  .sheet-top { padding: 20px; }
  .connection-row { gap: 15px; padding: 23px 20px; }
  .connection-row strong { font-size: .98rem; }
  .visual-doodle { left: -14px; bottom: -27px; width: 80px; }
  .section-header h2, .developer-section h2 { font-size: 1.9rem; }
  .flow-list li { gap: 18px; }
  .flow-list p { font-size: .82rem; }
  .site-footer { flex-direction: column; gap: 22px; padding-block: 32px; }
  .footer-meta { justify-content: flex-start; max-width: none; }
  .design-credit { text-align: left; }
  .app-header-inner { height: 65px; gap: 15px; padding-inline: 20px; }
  .checkout-header-note { font-size: .61rem; gap: 5px; }
  .checkout-header-note svg { width: 13px; }
  .app-content { padding-top: 29px; padding-inline: 18px; }
  .checkout-panel { grid-template-columns: 1fr; }
  .payment-side { border-left: 0; border-top: 1px solid var(--border); }
  .order-summary, .payment-side { padding: 27px 25px; }
  .order-subject { margin-top: 17px; }
  .amount-label { margin-top: 24px; }
  .order-amount { font-size: 2.8rem; }
  .order-facts { margin-top: 24px; padding-top: 20px; }
  .order-facts > div + div { margin-top: 15px; }
  .order-loading { min-height: 260px; }
  .checkout-help { margin-top: 16px; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
