/* Simpyl account portal. Brand v1: Poster Yellow #FFD21F, Wall Black #100F0D, White. Archivo. Square corners.
   Never yellow on white: on white surfaces the accents are Wall Black; yellow only as a fill behind black text or as
   text on black. Every tappable thing is at least 44 x 44 px. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --y: #FFD21F; --k: #100F0D; --w: #FFFFFF;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4.5vw, 64px);
  --ring: var(--k);
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; } /* the top bar scrolls with the page; this keeps a focused field off the very edge */
/* receipt status + its short reason (refunds, Being checked) */
.rcpt-st { display: block; font-weight: 700; }
.rcpt-why { display: block; font-size: 0.9375rem; }
#pw-toggle[aria-pressed="true"] { background: var(--k); color: var(--w); border-color: var(--k); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--k); background: var(--y); min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; letter-spacing: -.015em; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 16px 0 6px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--k); color: var(--y); padding: 12px 16px; min-height: 44px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
h1:focus-visible, h1:focus, [tabindex="-1"]:focus { outline: none; }
.small { font-size: 15px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Header */
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px var(--pad); border-bottom: 2px solid var(--k); background: var(--y); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.tabs { display: flex; gap: 0; border: 2px solid var(--k); }
.tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 112px; padding: 0 18px; font-weight: 700; text-decoration: none; background: var(--y); color: var(--k); }
.tab + .tab { border-left: 2px solid var(--k); }
.tab[aria-current="page"] { background: var(--k); color: var(--y); }
.tab[aria-current="page"]:focus-visible { outline-offset: 2px; }
.tab:hover { text-decoration: underline; }

/* Page */
.page { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--pad) 48px; }
.view > h1 { margin: 4px 0 24px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } .card-wide { grid-column: 1 / -1; } }
.card { background: var(--w); color: var(--k); border: 2px solid var(--k); padding: clamp(18px, 3vw, 32px); min-width: 0; }
.card-dark { background: var(--k); color: var(--w); --ring: var(--y); }
.card-dark .label { color: var(--y); }
.big { font-size: clamp(48px, 8vw, 88px); font-weight: 900; letter-spacing: -.02em; line-height: 1; margin: 4px 0 12px; }
.row, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.slot[aria-busy="true"] > * { visibility: hidden; }
.slot[aria-busy="true"] { min-height: 64px; background: repeating-linear-gradient(0deg, transparent 0 20px, rgba(16,15,13,.08) 20px 40px); }
.card-dark .slot[aria-busy="true"] { background: repeating-linear-gradient(0deg, transparent 0 20px, rgba(255,255,255,.08) 20px 40px); }
.empty { font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 44px; padding: 0 22px; font: inherit; font-weight: 800; font-size: 17px; border: 2px solid var(--k); cursor: pointer; text-decoration: none; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn-main { background: var(--y); color: var(--k); border-color: var(--y); }
.btn-main:hover { text-decoration: underline; }
.btn-dark { background: var(--k); color: var(--y); }
.btn-dark:hover { text-decoration: underline; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { text-decoration: underline; }
.btn[disabled] { cursor: not-allowed; background: var(--w); color: var(--k); border: 2px dashed var(--k); text-decoration: none; }
.card-dark .btn[disabled] { background: var(--k); color: var(--w); border-color: var(--w); }
.top .btn-line { background: var(--y); }
.signin .btn-main { border-color: var(--k); }

/* Sign-in */
.signin { display: flex; justify-content: center; padding-top: clamp(8px, 4vh, 48px); }
.sheet { width: 100%; max-width: 460px; background: var(--w); border: 2px solid var(--k); padding: clamp(20px, 5vw, 40px); }
.sheet .symbol { width: 56px; height: 56px; margin-bottom: 16px; }
.sheet h1 { font-size: clamp(30px, 6vw, 40px); margin-bottom: 16px; }
.notice-inline { font-weight: 700; border-left: 6px solid var(--k); padding: 6px 12px; }
.notice-inline:empty { display: none; }

/* Fields */
.field { margin: 0 0 18px; }
.field label, .amounts legend { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-size: 15px; margin: 0 0 6px; font-weight: 400; }
input[type="email"], input[type="password"], input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--k); background: var(--w); border: 2px solid var(--k); }
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }
.has-err input, .has-err textarea { border-width: 4px; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.count { font-size: 14px; margin: 4px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.count.over { font-weight: 800; text-decoration: underline; }
.err { font-weight: 700; margin: 6px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.err::before, .mark { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--k); color: var(--w); font-weight: 900; font-size: 14px; }
.mark { display: inline-flex; }
.err-box { border: 2px solid var(--k); padding: 10px 12px; margin: 0 0 16px; background: var(--w); color: var(--k); }

/* Notices */
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px var(--pad); font-weight: 700; }
.notice-offline { background: var(--k); color: var(--w); --ring: var(--y); }
.notice-error { background: var(--w); color: var(--k); border-bottom: 2px solid var(--k); }
.page .notice { padding: 12px 16px; border: 2px solid var(--k); margin-bottom: 20px; }
.notice-ok { background: var(--w); }
.notice-warn { background: var(--w); color: var(--k); border-left-width: 10px !important; }
.slot .notice-warn { border: 2px solid var(--k); padding: 12px 16px; margin: 0 0 16px; }
#conflict { display: block; }
#conflict .field { margin-top: 12px; }

/* Account */
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 12px; border-top: 2px solid var(--k); padding-top: 10px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rlink { display: grid; gap: 4px; padding: 16px; min-height: 44px; border: 2px solid var(--k); text-decoration: none; }
.rlink:hover .rname { text-decoration: underline; }
.rname { font-size: 20px; font-weight: 800; }
.rtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; background: var(--k); color: var(--w); font-size: 14px; font-weight: 700; }
.chip-line { background: var(--w); color: var(--k); border: 2px solid var(--k); }
.chip:empty { display: none; }

/* Receptionist editor */
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.back::before { content: "\2190"; margin-right: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; font-weight: 600; }
.state { display: inline-block; font-weight: 800; padding: 8px 12px; border: 2px solid var(--k); background: var(--w); margin-bottom: 20px; }
.state strong { display: inline-block; background: var(--k); color: var(--w); padding: 0 8px; margin-right: 8px; letter-spacing: .06em; }
.facts + .small { margin-top: 16px; }
#forgot { margin-top: 12px; }
#forgot a { display: inline-flex; align-items: center; min-height: 44px; }
.editor { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .editor { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 899px) { .editor > .card-dark { order: -1; } }
.readonly { white-space: normal; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.card-dark h3 { color: var(--y); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--k); vertical-align: top; }
.tbl th { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.tbl .num { text-align: right; }
.when-d, .when-t { white-space: nowrap; }
.tap { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; }
.slot-err { border: 2px solid var(--k); padding: 12px; margin-bottom: 12px; font-weight: 700; }
#rcpt-more, #act-more { margin-top: 16px; }
@media (max-width: 640px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 2px solid var(--k); padding: 8px 0; }
  .tbl td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl td::before { content: attr(data-label); font-weight: 700; text-align: left; }
  .tbl .num { text-align: right; }
  .when { text-align: right; }
  .when-t { display: block; }
}

/* Dialogs */
.dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 2px solid var(--k); padding: clamp(18px, 4vw, 32px); background: var(--w); color: var(--k); }
.dlg::backdrop { background: rgba(16, 15, 13, .7); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dlg h2 { margin: 0 0 12px; }
.compare { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 12px 0; }
.compare > div { border: 2px solid var(--k); padding: 12px; }
.compare h3 { margin-top: 0; }
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .dlg-sheet { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border: 0; }
}
.amounts { border: 0; padding: 0; margin: 0 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; appearance: none; border-radius: 0; }
.tile label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px; border: 2px solid var(--k); font-size: 22px; font-weight: 900; cursor: pointer; background: var(--w); }
.field-other { margin: 6px 0 0; }
/* Other amount: fixed $ prefix inside one bordered box; the ring wraps the box, $ is not part of the value or the name */
.amt-box { display: flex; align-items: stretch; max-width: 320px; min-height: 48px; background: var(--w); border: 2px solid var(--k); cursor: text; }
.amt-pre { display: flex; align-items: center; padding: 0 0 0 12px; font-size: 20px; font-weight: 700; color: var(--k); user-select: none; -webkit-user-select: none; }
.field-other .amt-box input[type="text"] { flex: 1; min-width: 0; min-height: 44px; border: 0; padding-left: 6px; font-size: 20px; font-weight: 700; background: transparent; }
.field-other .amt-box input:focus-visible { outline: none; }
.amt-box:focus-within { outline: 3px solid var(--k); outline-offset: 2px; }
.has-err .amt-box { border-width: 4px; }
.field-other .hint-under { margin: 6px 0 0; }
.tile input:checked + label { background: var(--k); color: var(--y); }
.tile input:checked + label::before { content: "\2713"; font-size: .8em; }
.tile input:focus-visible + label { outline: 3px solid var(--k); outline-offset: 2px; }
.money { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.money input { font-size: 20px; }
.estimate { font-weight: 800; min-height: 1.5em; }

/* Footer */
.foot { padding: 16px var(--pad) 24px; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 600; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding: 10px var(--pad); gap: 10px; }
  .brand img { height: 26px; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; min-width: 0; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#no-account { margin-top: 16px; }
/* Terms change line in Add Funds (Counsel's copy): Wall Black on white, a rule on the left, the link's hit area is 44px tall (vertical padding on an inline link, so the line spacing stays even) */
.terms-change { margin: 4px 0 12px; padding: 0 0 0 12px; border-left: 6px solid var(--k); color: var(--k); font-weight: 700; overflow-wrap: anywhere; }
.terms-link { display: inline; padding: 14px 0; color: var(--k); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.terms-link:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }
/* Close account (Josh, Oct 24 8:29 PM CT): danger treatment inside brand v1 only (Wall Black and white, no new colour):
   a black-and-white hazard band, a heavy left rule, "!" marks, and a solid Wall Black destructive button with white text
   (about 19:1 contrast). Square corners; every button is 48px tall. Never yellow on white. */
.card-danger { position: relative; border-left-width: 12px; padding-top: calc(clamp(18px, 3vw, 32px) + 12px); }
.card-danger::before, .dlg-danger::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--k) 0 10px, var(--w) 10px 20px); border-bottom: 2px solid var(--k); }
.card-danger h2, .danger-lead { display: flex; align-items: center; gap: 10px; }
.card-danger h2 .mark, .danger-lead .mark { width: 28px; height: 28px; font-size: 18px; }
.btn-danger { background: var(--k); color: var(--w); border-color: var(--k); }
.btn-danger:hover { text-decoration: underline; }
.btn-danger-line { background: var(--w); color: var(--k); border: 3px solid var(--k); }
.btn-danger-line:hover { background: var(--k); color: var(--w); text-decoration: underline; }
.dlg-danger { padding-top: calc(clamp(18px, 4vw, 32px) + 12px); } /* a modal <dialog> is position: fixed, so the band sits at its top */
.danger-lead { font-size: 20px; font-weight: 800; border-left: 6px solid var(--k); padding: 4px 0 4px 12px; margin: 0 0 12px; }
.danger-list { margin: 0 0 18px; padding-left: 22px; }
.danger-list li { margin: 0 0 8px; }
.close-ready { font-weight: 700; min-height: 1.5em; margin-top: 8px; }
.plain-list { margin: 0 0 20px; padding-left: 22px; }
.plain-list li { margin: 0 0 8px; }
#closed-view > h1 { margin: 4px 0 24px; }
.card-closed { max-width: 720px; }
/* Add Funds availability (GET /topup-options checkout_enabled): the off line. */
.funds-off { margin: 12px 0 0; font-weight: 700; }
