/* PaySimati public site. One stylesheet; nothing loads from another site.
   Mobile first; wider layouts from 720px and 960px.
   The page is laid out like a receipt: the label on the left, the substance on the right.
   The clipped top-left corner is the logo plate's own shape and the only ornament.
   Orange (--spark) marks things; it never sits behind text. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/Inter-latin.woff2") format("woff2"); }

:root {
  --paper: #F4F1FB; --panel: #FFFFFF; --ink: #221A45; --brand: #352D76; --muted: #5F5782;
  --rule: #DAD3EC; --tint: #E9E4F7; --spark: #EF6427; --on-brand: #FFFFFF;
  --plate: #3B2A6F; --on-plate: #FFFFFF; --shade: rgba(59, 42, 111, 0.13);
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #12101F; --panel: #1C1830; --ink: #ECE9F5; --brand: #CDBFF7; --muted: #A7A2BB;
    --rule: #3A3357; --tint: #262043; --on-brand: #191431; --plate: #2B2254; --on-plate: #F3F0FF;
    --shade: rgba(0, 0, 0, 0.5); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
/* Figures line up in columns. Only where they are figures: Inter's tabular set also widens the
   hyphen, which spoils ordinary prose ("one-time", "PSP-004/26"). */
.fees td, .rows dd, .price, .amount input { font-variant-numeric: tabular-nums; }
h1, h2 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; color: var(--brand); font-weight: 700; }
b { font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
br.wide { display: none; }

/* Skip link: hidden until focused. */
.skip { position: absolute; left: 8px; top: -64px; z-index: 2; padding: 12px 16px; border-radius: 0 8px 8px 8px;
  background: var(--plate); color: var(--on-plate); font-weight: 600; }
.skip:focus { top: 8px; }

/* Prototype ribbon: present only while rate-card.json says the figures are provisional. */
.proto { margin: 0; padding: 8px var(--gutter); background: var(--tint); color: var(--muted);
  font-size: 13px; text-align: center; }

/* Header: mark and name left; two links and, from 600px, the app button right. */
.head { display: flex; align-items: center; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 7.3px; min-height: 48px; color: var(--brand);
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
/* The name is the brand guide's own lettering (Rajdhani Bold outlines), drawn through a mask so it takes
   the theme's colour. Sizes keep the guide's lockup: the name's box is 1.042 of the mark's height. */
.brand .word { display: block; width: 111.6px; height: 31.3px; overflow: hidden; color: transparent; white-space: nowrap;
  background: var(--brand); -webkit-mask: url(/icons/wordmark.svg) no-repeat center / contain;
  mask: url(/icons/wordmark.svg) no-repeat center / contain; }
@supports not ((mask: url(a.svg)) or (-webkit-mask: url(a.svg))) {
  .brand .word { width: auto; height: auto; color: inherit; background: none; }
}
.mark-a { fill: var(--spark); }
.mark-b { fill: var(--brand); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; padding: 0 11px;
  color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--spark); }
/* 360px phones: three links and the name must fit on one line. */
@media (max-width: 400px) {
  .brand { gap: 7px; font-size: 20px; }
  .brand svg { width: 27px; height: 27px; }
  .brand .word { width: 100.4px; height: 28.1px; }
  .nav a:not(.btn) { padding: 0 8px; }
}
@media (max-width: 340px) {
  .brand { font-size: 18px; }
  .brand svg { width: 24px; height: 24px; }
  .brand .word { width: 89.2px; height: 25px; }
  .nav a:not(.btn) { padding: 0 6px; font-size: 14px; }
}
.nav .wide-only { display: none; }
@media (min-width: 600px) { .nav .wide-only { display: inline-flex; margin-left: 10px; } }

/* Buttons take the logo plate's clipped corner. Drawn with a gradient, not clip-path, so the
   focus ring is not cut off. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 0 10px 10px 10px; color: var(--on-brand); font-weight: 600; text-decoration: none;
  background: linear-gradient(135deg, transparent 8px, var(--brand) 8.7px); }
.btn:hover { filter: brightness(1.12); }
.btn.quiet { color: var(--brand); background: linear-gradient(135deg, transparent 8px, var(--tint) 8.7px); }
.btn-s { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* A link that goes somewhere: the up-and-right corner of the logo mark, in orange. */
.more { display: inline-block; padding: 11px 0; font-weight: 600; }
.more::after { content: ""; display: inline-block; width: 0.44em; height: 0.44em; margin-left: 0.34em;
  border-top: 2px solid var(--spark); border-right: 2px solid var(--spark); position: relative; top: -0.2em; }

/* Hero: the claim on the left, the proof (a live receipt) on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 64px; }
h1 { font-size: clamp(60px, 17vw, 96px); line-height: 0.92; letter-spacing: -0.05em; }
.stop { color: var(--spark); }
.lede { margin: 26px 0 0; max-width: 24em; font-size: clamp(19px, 2.3vw, 22px); line-height: 1.42; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin: 28px 0 20px; }
.licence { margin: 0; color: var(--muted); font-size: 14px; }
.licence a { color: inherit; }
@media (min-width: 960px) {
  br.wide { display: inline; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: center;
    padding-top: 64px; padding-bottom: 104px; }
  .hero h1 { font-size: clamp(120px, 13vw, 156px); }
}

/* The receipt: what the app shows before a payment. The wrapper carries the shadow, because a
   clipped element cannot. */
.plate-wrap { filter: drop-shadow(0 0 1px var(--muted)) drop-shadow(0 18px 36px var(--shade)); max-width: 460px; }
.plate { padding: 30px 24px 22px; border-radius: 0 14px 14px 14px; background: var(--panel);
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px); }
.seg { margin: 0 0 20px; padding: 3px; gap: 2px; border: 0; border-radius: 9px; background: var(--tint); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 7px;
  color: var(--muted); font-size: 15px; font-weight: 600; }
.seg input:checked + span { background: var(--brand); color: var(--on-brand); }
.seg input:focus-visible + span { outline: 3px solid var(--spark); outline-offset: 2px; }
.plate-title { margin: 0 0 6px; color: var(--brand); font-size: 18px; font-weight: 600; }
.plate-title select { width: 100%; min-width: 0; min-height: 44px; padding: 0 10px; border: 0; border-radius: 7px;
  background: var(--tint); color: var(--brand); font: inherit; font-weight: 600; }
.plate-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.rows { margin: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px;
  padding: 12px 0; border-top: 1px solid var(--rule); }
.row dt { color: var(--muted); white-space: nowrap; }
.row dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; white-space: nowrap; }
.row.total { border-top: 2px solid var(--brand); padding-top: 14px; }
.row.total dt { color: var(--ink); font-weight: 600; }
.row.total dd { color: var(--brand); font-size: clamp(22px, 6.4vw, 26px); letter-spacing: -0.025em; line-height: 1.1; }
.cur { color: var(--muted); font-size: 0.72em; font-weight: 500; letter-spacing: 0.04em; }
.sub { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
/* The one figure you can change carries the orange line. */
.amount input { width: 9.5ch; min-height: 40px; padding: 2px 0; border: 0; border-radius: 0;
  border-bottom: 2px solid var(--spark); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; text-align: right; }
.amount input[readonly] { border-bottom-color: transparent; }

/* Bands: every section after the hero. Label left, substance right, a hairline above. */
/* minmax(0, 1fr): a wide child (a table, a long link) must not widen the page on a phone. */
.band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 44px; padding-bottom: 52px;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; }
.band > h2 { font-size: clamp(30px, 6.4vw, 40px); line-height: 1.08; letter-spacing: -0.035em; }
@media (min-width: 960px) {
  .band { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-top: 72px; padding-bottom: 84px; }
  .band > h2 { position: sticky; top: 28px; align-self: start; }
}
.note { margin: 16px 0 0; max-width: 40em; color: var(--muted); font-size: 15px; }
.note + p:not(.note), .fees ~ p:not(.note) { margin-top: 10px; }
.lede-s { font-size: 20px; margin-bottom: 22px; }
.prose p { max-width: 34em; font-size: 19px; line-height: 1.5; }
.sub-h { margin: 40px 0 16px; font-size: 20px; letter-spacing: -0.01em; }

/* The price list. Three figure columns that hold their width; the label takes the rest. */
.fees { width: 100%; border-collapse: collapse; }
.fees th, .fees td { padding: 14px 0; border-top: 1px solid var(--rule); text-align: right; vertical-align: baseline; }
.fees thead th, .fees thead td { padding: 0 0 10px; border-top: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.fees th[scope="row"] { padding-right: 12px; font-weight: 400; text-align: left; }
.fees tbody td { width: 62px; font-weight: 600; }
.fees td.free { color: var(--brand); }
.fees tbody tr:first-child th, .fees tbody tr:first-child td { border-top: 2px solid var(--brand); }
.unit { color: var(--muted); font-size: 0.72em; letter-spacing: 0.04em; }
@media (min-width: 720px) { .fees tbody td { width: 112px; } }

/* Numbered steps. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 18px 0;
  border-top: 1px solid var(--rule); }
.steps li:first-child { padding-top: 0; border-top: 0; }
.steps li::before { content: counter(step); color: var(--brand); font-size: 34px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; }
.steps b { display: block; color: var(--brand); }
.steps div { max-width: 32em; }

/* Ledger rows: a name, then what it means. */
.ledger { margin: 0; }
.ledger > div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); }
.ledger > div:first-child { padding-top: 0; border-top: 0; }
.ledger dt { color: var(--brand); font-weight: 600; }
.ledger dd { margin: 0; max-width: 32em; }
.ledger dd b { display: block; color: var(--brand); }
.ledger dd .more { display: table; }
@media (min-width: 720px) { .ledger > div { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; } }
.doors > div { gap: 10px; }
.idtag { display: inline-block; padding: 5px 11px 5px 13px; border-radius: 0 7px 7px 7px; color: var(--brand);
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  background: linear-gradient(135deg, transparent 6px, var(--tint) 6.7px); }

/* Four facts, two by two. */
.facts { display: grid; gap: 26px; margin: 0 0 34px; }
.facts dt { margin-bottom: 4px; color: var(--brand); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.facts dd { margin: 0; max-width: 26em; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; gap: 34px 48px; } }

/* The one filled plate on a page: the thing we most need read. */
.plate.solid { margin: 0 0 22px; padding: 32px 28px 28px 34px; background: var(--plate); color: var(--on-plate);
  font-size: clamp(21px, 3.3vw, 27px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }

/* Inner pages. */
.pagehead { padding-top: 36px; padding-bottom: 52px; }
.pagehead h1 { font-size: clamp(56px, 14vw, 104px); }
.plans { display: grid; }
.plan { padding: 22px 0; border-top: 1px solid var(--rule); }
.plan:first-child { padding-top: 0; border-top: 0; }
.plan h3 { font-size: 17px; font-weight: 600; }
.plan p:last-child { margin: 0; max-width: 22em; }
.price { margin: 6px 0 0; color: var(--brand); font-size: 46px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; }
.price .cur { font-size: 0.36em; letter-spacing: 0.04em; vertical-align: 0.9em; }
.per { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
@media (min-width: 720px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .plan, .plan:first-child { padding: 18px 0 0; border-top: 2px solid var(--brand); }
}
.limits, .wide-rows { max-width: 520px; }
.limits .row:first-child, .wide-rows .row:first-child { border-top: 2px solid var(--brand); }
.limits dt, .wide-rows dt { text-align: left; }
.wide-rows dd { white-space: normal; }

/* Footer. */
.foot { margin-top: 12px; padding: 48px 0 56px; color: var(--muted); font-size: 15px;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat 0 0 / 100% 1px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 28px; }
.foot-talk { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1.6fr 1.2fr 1fr 1.2fr; }
  .foot-talk { grid-column: auto; }
}
.foot-also { margin-bottom: 24px; }
.foot-h { margin-bottom: 6px; color: var(--brand); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 40px; }
.foot p a { display: inline-block; padding: 9px 0; }
.legal { max-width: 64em; font-size: 13px; line-height: 1.55; }

/* The second price table: fees with two parts (300 + 2.75%) need room, so on a phone each row
   stacks: the name on its own line, the three figures beneath it. */
.tab-h { margin: 44px 0 14px; font-size: 20px; letter-spacing: -0.01em; }
@media (max-width: 719px) {
  .fees.two, .fees.two thead, .fees.two tbody { display: block; }
  .fees.two tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fees.two thead td { display: none; }
  .fees.two th[scope="row"] { grid-column: 1 / -1; padding: 14px 0 0; }
  .fees.two tbody td { width: auto; padding: 4px 0 14px; border-top: 0; font-size: 15px; }
  .fees.two tbody tr:first-child td { border-top: 0; }
}
@media (min-width: 720px) { .fees.two tbody td { width: 150px; } }
.plate-note.warn { margin-top: 6px; color: var(--brand); font-weight: 600; }
.plate-note.warn:empty { display: none; }

/* Questions and answers: a ledger with the question above the answer. */
.ledger.qa > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.qa dt { font-size: 19px; letter-spacing: -0.01em; }

/* The three trust accounts. */
.banks { display: grid; gap: 24px; margin: 28px 0 0; }
.bank h3 { margin-bottom: 4px; font-size: 17px; font-weight: 600; }
.bank .row { display: block; }
.bank .row dd { margin: 2px 0 0; text-align: left; white-space: normal; }
@media (min-width: 720px) { .banks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* Legal documents: contents on the left, the document on the right, set for long reading. */
.toc { font-size: 15px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
@media (min-width: 520px) and (max-width: 959px) { .toc ol { columns: 2; column-gap: 28px; } }
@media (min-width: 960px) { .toc { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow: auto; } }
.doc { min-width: 0; max-width: 42em; overflow-wrap: anywhere; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; scroll-margin-top: 24px; }
.doc h3 { margin: 30px 0 10px; font-size: 19px; scroll-margin-top: 24px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .version { color: var(--muted); font-size: 15px; }
.doc .draft { padding: 16px 18px 16px 24px; border-radius: 0 10px 10px 10px; color: var(--brand); font-weight: 600;
  background: linear-gradient(135deg, transparent 10px, var(--tint) 10.7px); }
/* A point the lawyers or the CEO must still settle. It cannot be published: check.py stops it. */
/* App screens: real screenshots, framed like a phone. On a narrow screen the row scrolls sideways inside itself. */
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: min(64%, 240px); gap: 20px; overflow-x: auto;
  padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.phone { margin: 0; scroll-snap-align: start; }
.phone.solo { max-width: 240px; }
.phone img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 22px;
  background: var(--panel); box-shadow: 0 14px 30px var(--shade); }
.phone figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) { .phones { grid-auto-columns: minmax(0, 240px); overflow: visible; } }
/* The plan chooser: the plan that costs least is marked. */
.results-h { margin-top: 22px; }
.results .row dd { color: var(--muted); }
.results .row.best dt { color: var(--brand); font-weight: 600; }
.results .row.best dt::after { content: " \2713"; color: var(--spark); }
.results .row.best dd { color: var(--brand); font-weight: 700; }
/* Notices, and plain lists. */
.notice { max-width: 40em; padding: 22px 0; border-top: 1px solid var(--rule); }
.notice:first-of-type { border-top: 2px solid var(--brand); }
.notice h3 { margin: 4px 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.notice p { margin: 0 0 10px; }
.notice-date { color: var(--muted); font-size: 14px; }
p.draft { margin: 0 0 20px; padding: 14px 18px; border-radius: 0 10px 10px 10px; background: var(--tint);
  color: var(--brand); font-weight: 600; }
.plain { max-width: 40em; margin: 0; padding: 0; list-style: none; }
.plain li { padding: 12px 0; border-top: 1px solid var(--rule); }
.plain li:first-child { padding-top: 0; border-top: 0; }
mark.confirm { background: none; color: inherit; font-weight: 600; border-bottom: 2px dotted var(--spark); }
.scroll { margin: 0 0 16px; overflow-x: auto; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 14px 10px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc th { border-top: 0; color: var(--muted); font-weight: 600; }

/* Print: the terms and the price list on paper. Navigation and controls are left out; text is black on white. */
@media print {
  @page { margin: 18mm 16mm; }
  :root { --paper: #fff; --panel: #fff; --ink: #000; --brand: #000; --muted: #333; --rule: #999; --tint: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .skip, .proto, .nav, .toc, .seg, .foot-grid, .foot-also, .actions, .btn, .phones, .phone { display: none !important; }
  .head { min-height: 0; margin-bottom: 8mm; }
  .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  .band, .hero { display: block; padding: 0 0 6mm; border: 0; }
  .band > h2 { position: static; margin-bottom: 3mm; }
  h1, .pagehead h1 { font-size: 24pt; line-height: 1.1; letter-spacing: -0.02em; }
  h2 { font-size: 15pt; } h3 { font-size: 12pt; }
  h1, h2, h3 { break-after: avoid; }
  p, li, tr, .row, .notice { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .doc { max-width: none; }
  .plate-wrap { filter: none; max-width: none; }
  .plate { clip-path: none; border: 1pt solid #999; }
  .foot { margin-top: 6mm; padding: 4mm 0 0; border-top: 1pt solid #999; font-size: 9pt; }
}
