/* TiwaPay for Business. Phone first: one column, big targets, works at 320px. */
:root {
  --ground: #f6f7f5;
  --surface: #ffffff;
  --ink: #16201c;
  --muted: #5b6862;
  --line: #dde3df;
  --accent: #0e5a4a;
  --accent-ink: #ffffff;
  --good: #1d6b3a;
  --good-ground: #e6f3ea;
  --bad: #9b2c1f;
  --bad-ground: #fbeae6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101614;
    --surface: #18201d;
    --ink: #e8eeeb;
    --muted: #9aa8a1;
    --line: #2a3531;
    --accent: #4fb89c;
    --accent-ink: #0b1210;
    --good: #7fd19a;
    --good-ground: #16301f;
    --bad: #f0a093;
    --bad-ground: #3a1d18;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.in { padding-bottom: 72px; }
a { color: var(--accent); }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.mark { font-weight: 700; letter-spacing: .01em; }
.mark .sub { font-weight: 400; color: var(--muted); }
.biz { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { color: var(--muted); }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 32px; display: grid; gap: 16px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 4px 0 0; text-wrap: balance; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0; }
.lead { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.stack { display: grid; gap: 10px; }
.inline { display: inline; }
label { font-weight: 600; }
input[type=tel], input[type=text] {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
input.code { letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; font-size: 1.5rem; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
button { font: inherit; cursor: pointer; }
.go {
  min-height: 52px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 1.05rem;
}
.quiet { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.link { border: 0; background: none; color: var(--accent); padding: 8px 0; text-decoration: underline; min-height: 44px; }
.notice { background: var(--good-ground); color: var(--good); padding: 12px 14px; border-radius: 10px; }
.problem { background: var(--bad-ground); color: var(--bad); padding: 12px 14px; border-radius: 10px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rows li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.what { font-weight: 600; }
.tag { font-size: .8rem; font-weight: 600; color: var(--good); background: var(--good-ground); padding: 2px 8px; border-radius: 999px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tab { flex: 1; text-align: center; padding: 14px 8px; min-height: 56px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tab.on { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
@media (min-width: 900px) {
  body.in { padding-bottom: 0; padding-left: 200px; }
  .tabs { top: 0; right: auto; width: 200px; flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding-top: 64px; }
  .tab { flex: 0; text-align: left; padding: 14px 20px; }
  .tab.on { box-shadow: inset 3px 0 0 var(--accent); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
