/* PayMidWare public site. No external fonts, scripts or images: the content security policy only allows this origin. */
:root {
  --ink: #14213d;
  --muted: #5b6577;
  --line: #e3e7ee;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --brand: #2347d9;
  --brand-dark: #1a36a8;
  --accent: #0fa37f;
  --warn: #fff4d6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: #0f172a; color: #e5e9f5; padding: 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; }
:not(pre) > code { background: var(--soft); padding: .1em .4em; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.env-banner { background: var(--warn); text-align: center; padding: 6px 12px; font-size: .85rem; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:not(.btn):hover, .site-nav a.active { background: var(--soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); padding: 12px 20px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-ghost:hover { background: var(--soft); color: var(--brand-dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 72px 0 56px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.section { padding: 56px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.page-head { padding: 48px 0 8px; }
.page-head p.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--brand); box-shadow: 0 2px 12px rgba(35, 71, 217, .1); }
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.listing-logo { height: 48px; display: flex; align-items: center; margin-bottom: 10px; }
.listing-logo img { max-height: 40px; max-width: 140px; object-fit: contain; }
.listing-initial { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.tag { display: inline-block; background: var(--warn); border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.price-line { font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 26px; position: relative; margin-bottom: .45em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.plan .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; }
table.table { border-collapse: collapse; width: 100%; background: #fff; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.table th { background: var(--soft); font-size: .9rem; }

.callout { border-left: 4px solid var(--brand); background: var(--soft); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.callout.warn { border-color: #d49a00; background: var(--warn); }
.callout p:last-child { margin-bottom: 0; }

form.stack { max-width: 560px; }
.field { margin-bottom: 18px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
.field input:not([type="radio"]), .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #c6cdda; border-radius: 8px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(35, 71, 217, .35); outline-offset: 1px; }
.choice { display: block; font-weight: 400 !important; margin: 4px 0; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert.error { background: #fde8e8; border: 1px solid #f5b5b5; }
.alert.ok { background: #e6f7f1; border: 1px solid #a8dcc9; }

.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 36px 0; margin-top: 56px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; padding: 2px 0; }
.footer-grid a:hover { text-decoration: underline; }

.legal-doc { max-width: 760px; }
.legal-doc h2 { margin-top: 1.6em; }

.chat { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat[hidden], .chat-panel[hidden] { display: none; }
.chat-panel { width: min(360px, calc(100vw - 32px)); max-height: 70vh; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(20, 33, 61, .2); display: flex; flex-direction: column; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--brand); color: #fff; border-radius: var(--radius) var(--radius) 0 0; font-weight: 600; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-log { padding: 12px; overflow-y: auto; flex: 1; min-height: 160px; }
.chat-msg { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; max-width: 90%; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { background: var(--soft); }
.chat-msg.you { background: var(--brand); color: #fff; margin-left: auto; }
.chat-form { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 8px 10px; border: 1px solid #c6cdda; border-radius: 8px; font: inherit; min-width: 0; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: .75rem; color: var(--muted); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 36px; }
}

.section-gap { margin-top: 2em; }
.detail-logo { max-height: 64px; max-width: 200px; object-fit: contain; }

/* Body text written in the rich-text editor (already sanitized: headings, lists, quotes, tables, links). */
.rich h2 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.rich h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.rich h4 { font-size: 1rem; margin: 1.1em 0 .35em; }
.rich p, .rich ul, .rich ol, .rich blockquote, .rich table { margin: 0 0 1em; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich blockquote { border-left: 3px solid var(--line); padding: .1em 0 .1em 1em; color: var(--muted, #555); }
.rich table { border-collapse: collapse; width: 100%; background: #fff; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.rich th { background: var(--soft); }
.rich > :first-child { margin-top: 0; }
