/* ==========================================================================
   HyvastMP design system, v2
   Light-first. One brand colour (sky blue) used as big confident blocks,
   navy ink for type and primary actions, gold only for the credit coin.
   Shapes: pill buttons, 12px fields, 20px cards, 32px colour panels.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f3f8fc;
  --card: #ffffff;
  --inset: #f1f6fa;
  --hover: #e4edf5;
  --line: #e1e9f1;
  --line-strong: #c6d3e0;
  --text: #45566a;
  --strong: #0a1f33;
  --dim: #5a6b7e;
  --sky: #5cc8ff;
  --sky-deep: #2fb2f5;
  --navy: #0a1f33;
  --brand: #5cc8ff;
  --brand-hi: #86d7ff;
  --brand-ink: #06243b;
  --brand-fg: #0a6fc2;
  --brand-soft: #e4f5ff;
  --blue: #0a6fc2;
  --blue-soft: #e4f5ff;
  --green: #06704a;
  --green-soft: #e2f6ec;
  --red: #b32d2d;
  --red-soft: #fdeaea;
  --purple: #6b46d6;
  --purple-soft: #efeafc;
  --gold: #ffc533;
  --gold-soft: #fff5d6;
  --gold-fg: #8a5a00;
  --shadow: 0 30px 70px -30px rgba(10, 31, 51, .35), 0 8px 20px -12px rgba(10, 31, 51, .18);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --w: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #06131f;
  --bg-2: #0a1c2c;
  --card: #0e2436;
  --inset: #153049;
  --hover: #1c3d5b;
  --line: #1a3550;
  --line-strong: #2a4c6c;
  --text: #a6bbce;
  --strong: #f1f8fd;
  --dim: #6f879d;
  --brand-fg: #86d7ff;
  --brand-soft: rgba(92, 200, 255, .14);
  --blue: #86d7ff;
  --blue-soft: rgba(92, 200, 255, .14);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, .13);
  --red: #ff7a7a;
  --red-soft: rgba(255, 122, 122, .13);
  --purple: #b9a3ff;
  --purple-soft: rgba(185, 163, 255, .14);
  --gold-soft: rgba(255, 197, 51, .14);
  --gold-fg: #ffd466;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--strong); margin: 0; line-height: 1.1; }
h1, h2, .display { font-family: var(--display); font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { flex: none; display: block; }
svg.px { image-rendering: pixelated; shape-rendering: crispEdges; display: block; flex: none; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: .88em; }
.num { font-variant-numeric: tabular-nums; }
.strong { color: var(--strong); font-weight: 600; }
.dim { color: var(--dim); }
.brand-fg { color: var(--brand-fg); }
.green { color: var(--green); } .red { color: var(--red); } .blue { color: var(--blue); }
.link { color: var(--brand-fg); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 2.5px; }
.small { font-size: 14px; } .tiny { font-size: 12.5px; }
.center { text-align: center; }
.hide { display: none !important; }

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons: pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--inset); color: var(--strong); font-weight: 600; font-size: 15px;
  white-space: nowrap; transition: background .15s, transform .08s, box-shadow .15s, color .15s;
  user-select: none;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.975); }
.btn.brand { background: var(--sky); color: var(--brand-ink); font-weight: 700; }
.btn.brand:hover { background: var(--brand-hi); }
.btn.dark { background: var(--navy); color: #fff; font-weight: 700; }
.btn.dark:hover { background: #14324f; }
.btn.white { background: #fff; color: var(--navy); }
.btn.white:hover { background: #eef6fc; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--inset); }
.btn.outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.outline:hover { background: var(--inset); box-shadow: inset 0 0 0 1.5px var(--strong); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
.btn.icon { width: 44px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.card.pad-lg { padding: 30px; }
.card.flat { padding: 0; overflow: auto; }
.inset { background: var(--inset); border-radius: 14px; padding: 14px 16px; }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.card-title { font-size: 17px; font-weight: 700; color: var(--strong); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--inset); color: var(--text);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.pill.brand { background: var(--brand-soft); color: var(--brand-fg); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }
.pill.gold { background: var(--gold-soft); color: var(--gold-fg); }
.pill.lg { height: 30px; padding: 0 12px; font-size: 13.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }

.tile { border-radius: 14px; background: var(--inset); display: grid; place-items: center; flex: none; overflow: hidden; }
.tile svg { border-radius: inherit; }
.ico-box { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-fg); display: grid; place-items: center; flex: none; font-weight: 700; }
.ico-box.sm { width: 34px; height: 34px; border-radius: 10px; }
.ico-box.green { color: var(--green); background: var(--green-soft); }
.ico-box.blue { color: var(--blue); background: var(--blue-soft); }
.ico-box.red { color: var(--red); background: var(--red-soft); }
.ico-box.purple { color: var(--purple); background: var(--purple-soft); }

.coin { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--strong); font-variant-numeric: tabular-nums; }
.coin svg { flex: none; }

/* real payment logos always sit on white so every brand stays legible */
.logo-chip { background: #fff; border-radius: 10px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); flex: none; }
.logo-chip img { height: 20px; width: auto; max-width: 84px; object-fit: contain; }
.logo-chip.lg { height: 60px; padding: 0 22px; border-radius: 16px; }
.logo-chip.lg img { height: 28px; max-width: 120px; }
.logo-chip.lg img[alt=mastercard], .logo-chip.lg img[alt=jcb], .logo-chip.lg img[alt=bpi] { height: 38px; }
.logo-chip.lg img[alt=amex] { height: 34px; }
.logo-chip img[alt=mastercard], .logo-chip img[alt=jcb], .logo-chip img[alt=bpi] { height: 26px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--strong); }
.hint { font-size: 12.5px; color: var(--dim); }
.input, .select, textarea.input {
  height: 46px; width: 100%; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--card); border: 1.5px solid var(--line-strong); color: var(--strong); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 14px; resize: vertical; min-height: 84px; }
.input::placeholder { color: var(--dim); }
.input:focus, .select:focus { border-color: var(--sky-deep); box-shadow: 0 0 0 4px var(--brand-soft); }
.input:disabled { background: var(--inset); }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8a9b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input-wrap > .input { padding-left: 42px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 6px; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; cursor: pointer; display: grid; place-items: center; transition: .12s; }
.check input:checked { background: var(--sky-deep); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); flex: none; transition: .15s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--sky-deep); }
.switch[aria-checked="true"]::after { left: 21px; }

/* tabs: outlined pills, ink-filled when active */
.seg { display: inline-flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button, .seg a { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: .12s; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button:hover, .seg a:hover { color: var(--strong); box-shadow: inset 0 0 0 1.5px var(--strong); }
.seg .on, .seg .on:hover { background: var(--strong); color: var(--bg); box-shadow: none; }
.seg.on-card button { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- Header: floating bar ---------- */
#header { position: sticky; top: 0; z-index: 40; padding: 12px 12px 0; pointer-events: none; }
.hdr { height: 64px; display: flex; align-items: center; gap: 28px; max-width: 1280px; padding: 0 12px 0 20px; border-radius: 999px; pointer-events: auto;
  background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
#header.scrolled .hdr { border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 900; font-stretch: 88%; font-size: 22px; color: var(--strong); letter-spacing: -.03em; }
.logo { text-transform: lowercase; font-weight: 800; font-stretch: 100%; letter-spacing: -.045em; }
.logo i { font-style: normal; font-weight: 500; }
.logo svg { color: var(--strong); }
.nav { display: flex; gap: 2px; }
.nav a { height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; color: var(--text); transition: .12s; }
.nav a svg { display: none; }
.nav a:hover, .nav a.on { color: var(--strong); background: var(--inset); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bal { height: 44px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--inset); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--strong); transition: .12s; }
.bal:hover { background: var(--hover); }
.bal .add { width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--brand-ink); display: grid; place-items: center; }
.avatar-btn { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--inset); color: var(--dim); }
.avatar-btn:hover { background: var(--hover); }
.avatar-btn svg.px { border-radius: 50%; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--card); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); z-index: 50; animation: pop .14s ease-out; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--inset); color: var(--strong); }
.menu .who { padding: 8px 12px 10px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.burger { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- Footer: dark rounded block ---------- */
.footer { margin: 96px 12px 12px; background: var(--navy); color: #a9bdd0; border-radius: var(--r-lg); padding: 56px 0 64px; }
:root[data-theme="dark"] .footer { background: var(--bg-2); border: 1px solid var(--line); }
.footer .logo, .footer .logo svg { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #7f97ad; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: 15px; } .footer ul { list-style: none; padding: 0; margin: 0; }
.footer a:hover { color: #fff; }
.footer .fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #7f97ad; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.footer .pill { background: rgba(255,255,255,.08); color: #cfe0ee; }

/* ---------- Hero: full sky block with real product mockups ---------- */
.hero { margin: -76px 12px 0; padding: 150px 0 0; background: var(--sky); border-radius: var(--r-lg); color: #0f3350; text-align: center; position: relative; overflow: hidden; }
.hero > .container { position: relative; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .92; letter-spacing: -.04em; font-weight: 900; font-stretch: 82%; color: var(--navy); max-width: 1000px; margin: 0 auto; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 620px; margin: 26px auto 0; font-weight: 500; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 14.5px; font-weight: 600; }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }

.stage { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 20px; align-items: end; max-width: 1060px; margin: 56px auto 0; text-align: left; color: var(--text); }
.mock { background: var(--card); border-radius: 24px 24px 0 0; padding: 20px; box-shadow: var(--shadow); }
.mock.side { padding-bottom: 28px; }
.mock.l { transform: translateY(40px) rotate(-2.5deg); transform-origin: bottom right; }
.mock.r { transform: translateY(40px) rotate(2.5deg); transform-origin: bottom left; }
.mock .bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock .bar span { margin-left: 8px; font: 500 12px var(--mono); color: var(--dim); }
.mock .mh { font-size: 17px; font-weight: 700; color: var(--strong); }

.paygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.paycard { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, box-shadow .12s, background .12s; min-width: 0; }
button.paycard:hover { border-color: var(--line-strong); }
.paycard.on { border-color: var(--sky-deep); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.paycard .lg-row { height: 28px; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.paycard .lg-row span { background: #fff; border-radius: 6px; padding: 0 6px; display: inline-flex; align-items: center; height: 28px; }
.paycard .lg-row img { height: 19px; width: auto; max-width: 76px; object-fit: contain; }
.paycard .lg-row img[alt=bpi] { height: 24px; }
.paycard .lg-row span.mini { padding: 0 4px; } .paycard .lg-row span.mini img { height: 14px; max-width: 34px; }
.paycard .nm { font-size: 13.5px; font-weight: 600; color: var(--strong); line-height: 1.2; }
.paycard .pr { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: 18px; color: var(--brand-fg); letter-spacing: -.01em; line-height: 1.1; }
.paycard .sub { font-size: 12px; color: var(--dim); }

.rails { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }

/* ---------- Sections ---------- */
.section { margin-top: 112px; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.section-head p { font-size: 19px; margin-top: 18px; }

.panel { border-radius: var(--r-lg); padding: 56px; position: relative; overflow: hidden; }
.panel.sky { background: var(--sky); color: #0f3350; } .panel.sky h2, .panel.sky h3, .panel.sky .strong { color: var(--navy); }
.panel.navy { background: var(--navy); color: #a9bdd0; } .panel.navy h2, .panel.navy h3 { color: #fff; }
:root[data-theme="dark"] .panel.navy { background: var(--bg-2); border: 1px solid var(--line); }
.panel.soft { background: var(--bg-2); }
.panel.gold { background: var(--gold-soft); }
.panel.mint { background: var(--green-soft); }
.panel h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1; letter-spacing: -.03em; }
.panel h3 { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1.05; }
.panel.navy .ticks svg { color: var(--sky); } .panel.navy .ticks b { color: #fff; }
.panel .card { color: var(--text); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { padding: 36px; min-height: 340px; display: flex; flex-direction: column; }
.bento .w3 { grid-column: span 3; } .bento .w2 { grid-column: span 2; } .bento .w4 { grid-column: span 4; }
.bento .art { margin-top: auto; padding-top: 28px; }
.bento p { margin-top: 10px; max-width: 460px; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); text-align: left; color: var(--text); }
.calc > div { padding: 36px; }
.calc .res { background: var(--navy); color: #a9bdd0; display: flex; flex-direction: column; }
.calc .big { font-family: var(--display); font-stretch: 85%; font-weight: 900; font-size: clamp(44px, 5.4vw, 72px); color: var(--strong); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc .res .big { color: #fff; }
.calc-lines { display: flex; flex-direction: column; font-size: 15px; margin-top: 20px; }
.calc-lines .ln { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.calc-lines .ln > :last-child { color: #fff; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 14.5px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; transition: .12s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--strong); color: var(--strong); }
.chip.on { background: var(--strong); color: var(--bg); box-shadow: none; }
.chip img { height: 16px; width: auto; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { border-top: 2px solid var(--strong); padding-top: 18px; }
.step .n { font-family: var(--display); font-stretch: 82%; font-weight: 900; font-size: 64px; line-height: 1; color: var(--brand-fg); letter-spacing: -.04em; }
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { font-size: 15.5px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.feat h3 { font-size: 18px; margin: 0 0 8px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1; letter-spacing: -.03em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { color: var(--green); margin-top: 4px; }

.band { background: var(--bg-2); border-radius: var(--r-lg); padding: 56px; position: relative; overflow: hidden; }
.band.brand { background: var(--sky); color: #0f3350; }
.band.brand h2 { color: var(--navy); }
.band.brand .btn { background: var(--navy); color: #fff; }
.band.brand .btn.outline { background: #fff; color: var(--navy); box-shadow: none; }
.bigstat { font-family: var(--display); font-stretch: 82%; font-weight: 900; font-size: 64px; color: var(--strong); letter-spacing: -.04em; line-height: .95; }

details.faq { border-top: 1px solid var(--line-strong); padding: 0 4px; }
details.faq:last-of-type { border-bottom: 1px solid var(--line-strong); }
details.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-weight: 700; color: var(--strong); font-size: 19px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { transition: transform .15s; }
details.faq[open] summary svg { transform: rotate(180deg); }
details.faq p { padding: 0 0 24px; max-width: 700px; font-size: 16.5px; }

/* ---------- Marketplace ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: .98; letter-spacing: -.035em; }
.page-head p { font-size: 18px; }
.layout-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

.srv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.srv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.srv-card:hover { transform: translateY(-3px); border-color: var(--strong); }
.srv-card .banner { height: 84px; position: relative; }
.srv-card .banner .tile { position: absolute; left: 18px; bottom: -22px; width: 60px; height: 60px; border-radius: 16px; border: 3px solid var(--card); }
.srv-card .banner .on { position: absolute; right: 12px; top: 12px; background: #fff; color: #06704a; }
.srv-card .body { padding: 32px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.srv-card h2, .prod h2 { font-family: var(--font); font-stretch: 100%; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.srv-card h2 { font-size: 18px; }
.srv-card .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.verified { color: var(--sky-deep); display: inline-flex; }

.shop-banner { margin: -76px 12px 0; border-radius: var(--r-lg); height: 250px; }
.shop-head { display: flex; gap: 22px; align-items: flex-end; margin-top: -52px; padding-bottom: 26px; position: relative; }
.shop-head > .tile { border: 5px solid var(--bg); }
.shop-head h1 { font-size: clamp(30px, 3.6vw, 44px); display: flex; align-items: center; gap: 10px; letter-spacing: -.03em; }
.ip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--inset); font-family: var(--mono); font-size: 13.5px; color: var(--strong); }
.ip:hover { background: var(--hover); }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 14px; transition: transform .15s, box-shadow .15s, border-color .15s; text-align: left; }
.prod:hover { transform: translateY(-3px); border-color: var(--strong); }
.prod .art { aspect-ratio: 16 / 11; border-radius: 12px; display: grid; place-items: center; position: relative; }
.prod .art .pill { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; }
.prod > div:not(.art) { padding: 0 6px; }
.prod h2 { font-size: 17px; }
.prod p { font-size: 14px; min-height: 42px; }
.side-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.side-list li { display: flex; gap: 10px; align-items: flex-start; }
.side-list svg { margin-top: 3px; color: var(--brand-fg); }

.pack { background: var(--card); border-radius: var(--r); padding: 22px; text-align: left; position: relative; border: 1.5px solid var(--line); transition: .12s; display: flex; flex-direction: column; gap: 4px; }
.pack:hover { border-color: var(--line-strong); }
.pack.on { border-color: var(--sky-deep); background: var(--brand-soft); box-shadow: 0 0 0 4px var(--brand-soft); }
.pack .amt { font-family: var(--display); font-stretch: 85%; font-size: 38px; font-weight: 900; color: var(--strong); letter-spacing: -.03em; line-height: 1; }
.pack .tagline { position: absolute; top: -11px; right: 16px; background: var(--navy); color: #fff; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding: 12px 18px; white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--bg-2); }
.tbl .r { text-align: right; }
.tbl td.wrap { white-space: normal; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 14.5px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv > :last-child { color: var(--strong); font-weight: 600; text-align: right; }
.kv.total > * { font-size: 17px; font-weight: 700; color: var(--strong); }

/* ---------- Modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(6, 19, 31, .55); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px 24px; overflow-y: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 540px; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); animation: rise .22s cubic-bezier(.16, 1, .3, 1); }
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 6px; }
.modal-head h3 { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.modal-body { padding: 16px 24px 24px; }
.modal-foot { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-foot .btn.brand { flex: 1; height: 52px; font-size: 16px; }
.modal-foot .btn.ghost, .modal-foot a.btn { height: 52px; }
.overlay.drawer { justify-content: flex-end; padding: 12px; }
.overlay.drawer .modal { max-width: 520px; min-height: calc(100vh - 24px); animation: slide .22s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); color: #fff; font-weight: 600; font-size: 14.5px; padding: 12px 18px; border-radius: 999px; display: flex; gap: 9px; align-items: center; box-shadow: var(--shadow); animation: rise .2s; }
.toast svg { color: var(--sky); }

/* ---------- Checkout ---------- */
.co-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg-2); }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); width: 100%; text-align: left; transition: .12s; }
.method.on { border-color: var(--sky-deep); background: var(--brand-soft); }
.method .mk { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.method .t { font-weight: 600; color: var(--strong); font-size: 15px; line-height: 1.2; }
.packrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pack-opt { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: .12s; }
.pack-opt:hover:not([disabled]) { border-color: var(--line-strong); }
.pack-opt.on { border-color: var(--sky-deep); background: var(--brand-soft); }
.pack-opt[disabled] { opacity: .4; cursor: not-allowed; background: var(--inset); }
.notice { display: flex; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--text); font-size: 14px; line-height: 1.5; }
.notice svg { color: var(--brand-fg); margin-top: 2px; }
.notice.blue { background: var(--blue-soft); } .notice.blue svg { color: var(--blue); }
.notice.red { background: var(--red-soft); } .notice.red svg { color: var(--red); }
.notice.green { background: var(--green-soft); } .notice.green svg { color: var(--green); }
.gateway { border-radius: 20px; background: var(--bg-2); padding: 26px; text-align: center; }
.gateway .logo-chip { margin: 0 auto 14px; display: flex; width: fit-content; }
.qr { background: #fff; padding: 12px; border-radius: 16px; display: inline-block; border: 1px solid var(--line); }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 20px 36px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line-strong); }
.tl li:last-child::before { display: none; }
.tl .b { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--card); color: var(--dim); display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-strong); font-size: 12px; }
.tl li.done .b { background: var(--green); color: #fff; box-shadow: none; }
.tl li.done::before { background: var(--green); }
.tl li.red .b { background: var(--red); color: #fff; box-shadow: none; }
.tl li.amber .b { background: var(--navy); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .tl li.amber .b { background: var(--sky); color: var(--navy); }
.tl li.run .b { box-shadow: inset 0 0 0 2px var(--sky-deep); color: var(--sky-deep); }
.tl li.run .b svg { animation: spin 1s linear infinite; }
.tl li.wait { opacity: .45; }
.tl .tt { font-weight: 600; color: var(--strong); font-size: 15px; }
.tl .ts { font-size: 13.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.console { background: #071521; color: #c8d8e8; border-radius: 14px; padding: 16px; font: 12.5px/1.75 var(--mono); overflow-x: auto; white-space: pre-wrap; word-break: break-word; text-align: left; }
.console .t { color: #8ba3ba; } .console .ok { color: #3ddc97; } .console .am { color: #ffd466; } .console .rd { color: #ff8b8b; } .console .bl { color: #86d7ff; }
.success-ring { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 4px auto 16px; animation: rise .35s cubic-bezier(.16, 1, .3, 1); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 64px; max-width: 1280px; }
.dash-side { position: sticky; top: 100px; }
.dash-side .sv { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg-2); margin-bottom: 8px; }
.dash-side .lbl { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 18px 12px 6px; }
.dash-side a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--text); }
.dash-side a:hover { background: var(--inset); color: var(--strong); }
.dash-side a.on { background: var(--strong); color: var(--bg); }
.dash-side a .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-size: 40px; letter-spacing: -.03em; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stat .k { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat .v { font-family: var(--display); font-stretch: 85%; font-weight: 900; font-size: 36px; color: var(--strong); letter-spacing: -.03em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13.5px; margin-top: 8px; }
.stats > .stat:first-child { background: var(--sky); border-color: transparent; color: #0f3350; }
.stats > .stat:first-child .v, .stats > .stat:first-child .k { color: var(--navy); }
.stats > .stat:first-child .dim { color: #0f3350; }
.bar-track { height: 8px; border-radius: 99px; background: var(--inset); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 99px; background: var(--sky-deep); }
.chart rect.b { fill: var(--sky); transition: fill .1s; } .chart rect.b:hover { fill: var(--strong); }
.chart text { fill: var(--dim); font: 11px var(--mono); } .chart line { stroke: var(--line); }
.setting { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 0; }
.setting + .setting { border-top: 1px solid var(--line); }
.setting .t { font-weight: 600; color: var(--strong); }
.rule-top { border-top: 2px solid var(--strong); padding-top: 12px; }
.panel.navy .rule-top, .panel.sky .rule-top { border-color: currentColor; }
.swatch { border-radius: var(--r); padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.logo-stage { border-radius: var(--r); min-height: 220px; display: grid; place-items: center; padding: 32px; }
.logo-stage .logo { font-size: 44px; gap: 16px; }
.setting .t { font-weight: 600; color: var(--strong); }
.rule-top { border-top: 2px solid var(--strong); padding-top: 12px; }
.panel.navy .rule-top, .panel.sky .rule-top { border-color: currentColor; }
.swatch { border-radius: var(--r); padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.logo-stage { border-radius: var(--r); min-height: 220px; display: grid; place-items: center; padding: 32px; }
.logo-stage .logo { font-size: 44px; gap: 16px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 11px 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li + li { border-top: 1px solid var(--line); }
.ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--card); color: var(--dim); box-shadow: inset 0 0 0 2px var(--line-strong); }
.ck.done { background: var(--green); color: #fff; box-shadow: none; }

/* ---------- Docs / legal / auth ---------- */
.prose h2 { font-size: 28px; margin: 44px 0 14px; scroll-margin-top: 100px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; line-height: 1.7; max-width: 60ch; }
.prose p b { color: var(--strong); }
.prose ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; max-width: 58ch; }
.toc { position: sticky; top: 100px; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.toc a:hover { background: var(--inset); color: var(--strong); }
.auth-wrap { max-width: 460px; margin: 56px auto 0; padding: 0 16px; }
.role { flex: 1; padding: 16px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); text-align: left; }
.role.on { border-color: var(--sky-deep); background: var(--brand-soft); }
.proto { position: fixed; left: 16px; bottom: 16px; z-index: 30; }
.proto .pill { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.empty { padding: 56px 20px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-main { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .bento .w2, .bento .w3, .bento .w4 { grid-column: span 6; }
  .bento > * { min-height: 0; }
  .panel, .band { padding: 40px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 12px; right: 12px; top: 84px; background: var(--card); padding: 10px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: auto; }
  .burger { display: inline-flex; }
  .hdr { gap: 12px; }
  .layout-side, .dash { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dash-side { position: static; }
  .dash-side nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .dash-side .lbl, .dash-side .sv { display: none; }
  .dash-side a { flex: none; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-top: 80px; }
  .hide-sm { display: none !important; }
  .stage { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .mock.side { display: none; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .g2, .g3, .g4, .steps, .srv-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 120px; margin-left: 8px; margin-right: 8px; }
  .panel, .band { padding: 28px 22px; border-radius: 24px; }
  .bento > * { padding: 26px 22px; }
  .calc > div { padding: 22px; }
  .shop-head { flex-wrap: wrap; align-items: flex-start; }
  .hdr-right { gap: 6px; } .hdr-right.in .theme-btn { display: none; }
  .logo i { display: none; } .logo { font-size: 20px; gap: 8px; }
  .hdr { padding: 0 6px 0 12px; height: 58px; gap: 6px; }
  .avatar-btn { padding: 4px; } .avatar-btn .i { display: none; }
  .btn.icon.burger { width: 38px; }
  .tbl th, .tbl td { padding-left: 12px; padding-right: 12px; }
  .bal { height: 40px; } .bal .add { width: 28px; height: 28px; }
  .overlay { padding: 10px 8px; }
  .proto { display: none; }
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer { margin: 72px 8px 8px; }
  .dash-head h1 { font-size: 32px; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; } .modal-foot { padding: 0 18px 18px; }
}
