/* Splixpen — receipts, tear lines and coins. Cobalt, coin yellow, ink. */
:root {
  --cobalt: #2b3dff;
  --ink: #0d1033;
  --yellow: #ffc72c;
  --mint: #19c58b;
  --pink: #ff8db5;
  --sky: #8fd0ff;
  --tomato: #ff5b45;
  --lilac: #b9a6ff;
  --orange: #ff9f43;
  --lime: #c5e84b;

  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #0d1033;
  --muted: #565c80;
  --line: #dde0ef;
  --link: #2b3dff;
  --soft: #e6e9ff;
  --pos: #08855b;
  --neg: #cf3320;
  --pos-soft: #d8f6ea;
  --neg-soft: #ffe4df;
  --outline: #0d1033;
  --edge: #0d1033;

  --font-d: "Bricolage Grotesque Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Thai", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif;
  --font-b: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Thai", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090c27; --card: #131845; --text: #eef0ff; --muted: #a5abd6; --line: #272e69;
    --link: #9aa6ff; --soft: #1d2563; --pos: #3be0a6; --neg: #ff8a78; --pos-soft: #0e3a35; --neg-soft: #4a2230;
    --outline: #04051a; --edge: #7d86e0; color-scheme: dark;
  }
}

@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/assets/fonts/display-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/assets/fonts/display-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/assets/fonts/display-vi.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/mono-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-d); font-stretch: 75%; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw + .8rem, 3.6rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 750; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 10px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.inl { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 2px solid var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a:not(.btn), .nav summary { color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 650; font-size: .95rem; cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nav a:not(.btn):hover, .nav summary:hover, .dd[open] > summary { background: var(--soft); }
.nav summary::-webkit-details-marker { display: none; }
.dd { position: relative; }
.dd-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); border: 2px solid var(--edge); border-radius: 14px; box-shadow: 4px 4px 0 var(--edge); padding: 6px; display: grid; }
.dd-menu a { padding: 10px 12px; }
.langs { max-height: 70vh; overflow: auto; min-width: 200px; }
.langs a[aria-current="true"] { background: var(--yellow); color: var(--ink); }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 14px; font: inherit; font-weight: 750; text-decoration: none; border: 2px solid var(--outline); cursor: pointer; min-height: 48px; background: var(--card); color: var(--text); box-shadow: 0 4px 0 var(--outline); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-soft { background: var(--card); color: var(--text); }
.btn-danger { background: var(--neg-soft); color: var(--neg); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--soft); box-shadow: none; transform: none; }
.btn-sm { padding: 7px 14px; min-height: 40px; border-radius: 12px; font-size: .95rem; box-shadow: 0 3px 0 var(--outline); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }

/* ---------- hero ---------- */
.hero { background: var(--cobalt); color: #fff; position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(88px, 10vw, 140px); }
.hero::before { content: ""; position: absolute; width: min(60vw, 640px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); inset-inline-end: -16%; top: -34%; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 26px; background: var(--bg); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 26px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 26px 100%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.7rem, 6.6vw + .6rem, 6.4rem); line-height: .94; font-weight: 800; letter-spacing: -.025em; margin-bottom: .35em; overflow-wrap: anywhere; color: #fff; }
.hero .lead { color: #dfe3ff; font-size: 1.25rem; }
.hero .btn-ghost-w { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 4px 0 #fff; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-weight: 650; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg { width: 18px; height: 18px; color: var(--yellow); }

/* receipt demo */
.slot-wrap { position: relative; padding-top: 22px; max-width: 440px; width: 100%; margin-inline: auto; }
.slot { position: absolute; top: 0; inset-inline: -10px; height: 26px; background: #05061a; border-radius: 14px; z-index: 3; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.slot::after { content: ""; position: absolute; inset: 9px 14px; background: #000; border-radius: 6px; }
.paper-clip { overflow: hidden; padding: 0 12px 24px; margin-top: -3px; }
.receipt { background: #fcfcf8; color: var(--ink); font-family: var(--font-m); font-weight: 600; padding: 22px 20px 34px; position: relative; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; animation: print 1.5s steps(14, end) both; }
@keyframes print { from { transform: translateY(-102%); } to { transform: translateY(0); } }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px dashed var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.rc-head .logo { font-size: 1.3rem; color: var(--ink); }
.rc-head .logo svg { width: 28px; height: 28px; }
.rc-head small { font-size: .8rem; opacity: .7; }
.rc-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.rc-row label { font-size: .95rem; }
.receipt .rc-row input { width: 150px; font: inherit; font-size: 1.5rem; text-align: end; background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 4px 2px; color: var(--ink); min-height: 44px; }
.receipt .rc-row input:focus { outline: 0; box-shadow: none; background: var(--yellow); }
.rc-step { display: inline-flex; align-items: center; gap: 4px; }
.rc-step button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.rc-step button:active { transform: translateY(2px); }
.rc-step output { min-width: 40px; text-align: center; font-size: 1.5rem; }
.strips { display: grid; margin: 18px -6px 8px; }
.strip { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-top: 2px dashed rgba(13, 16, 51, .55); background: var(--c); transform: translateX(var(--dx, 0)) rotate(var(--rot, 0deg)); animation: drop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.strip:first-child { border-top: 0; }
.strip:nth-child(odd) { --dx: -3px; --rot: -.5deg; }
.strip:nth-child(even) { --dx: 4px; --rot: .45deg; }
.strip b { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.strip span { font-size: 1.35rem; text-align: end; font-variant-numeric: tabular-nums; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.rc-total { display: flex; justify-content: space-between; gap: 12px; border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 12px; font-size: .95rem; }
.rc-total output { font-size: 1.1rem; }

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 104px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 0; list-style: none; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 8%; top: 74px; border-top: 3px dashed var(--edge); opacity: .45; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; position: relative; }
.step-art { width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--edge); position: relative; margin-bottom: 18px; background: var(--c); color: var(--ink); }
.step-art svg { width: 88px; height: 88px; }
.step-art::after { content: counter(s); position: absolute; inset-inline-end: -6px; top: -6px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; }
.steps p { color: var(--muted); max-width: 30ch; }

.ink { background: var(--ink); color: #f1f2ff; }
.ink h2, .ink h3 { color: #fff; }
.feat-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
.settle-art { background: var(--yellow); border-radius: 28px; border: 2px solid #fff; padding: 24px; position: sticky; top: 100px; }
@media (max-width: 900px) { .settle-art { position: static; } }
.settle-art svg { width: 100%; height: auto; }
.feat-list { list-style: none; margin: 0; padding: 0; }
.feat-list li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 2px dashed rgba(255, 255, 255, .28); }
.feat-list li:first-child { border-top: 0; padding-top: 0; }
.feat-list .fi { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: var(--ink); }
.feat-list .fi svg { width: 28px; height: 28px; }
.feat-list h3 { margin: 0; }
.feat-list p { margin: 0; color: #c4c8f2; max-width: 52ch; }

.tickets { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.ticket { width: min(100%, 210px); background: var(--c); color: var(--ink); display: flex; flex-direction: column; transform: rotate(var(--rot, 0deg)); border-radius: 10px; }
.ticket .t-top { padding: 22px 20px 26px; display: grid; gap: 14px; }
.ticket .stub { position: relative; padding: 22px 20px 24px; border-top: 3px dashed rgba(13, 16, 51, .45); flex: 1; }
.ticket .stub::before, .ticket .stub::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.ticket .stub::before { inset-inline-start: -14px; }
.ticket .stub::after { inset-inline-end: -14px; }
.ticket:nth-child(1) { --rot: -2.5deg; } .ticket:nth-child(2) { --rot: 1.5deg; margin-top: 18px; } .ticket:nth-child(3) { --rot: -1deg; } .ticket:nth-child(4) { --rot: 2.5deg; margin-top: 14px; } .ticket:nth-child(5) { --rot: -1.5deg; }
.ticket svg { width: 54px; height: 54px; }
.ticket h3 { margin: 0; font-size: 1.8rem; }
.ticket p { margin: 0; font-size: .95rem; line-height: 1.4; }

.slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .slips { grid-template-columns: 1fr; } }
.slip { display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; align-items: center; padding: 22px; background: var(--card); border: 2px solid var(--edge); border-radius: 18px; text-decoration: none; color: var(--text); box-shadow: 0 6px 0 var(--edge); transition: transform .12s, box-shadow .12s; }
.slip:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge); }
.slip .coin { width: 76px; height: 76px; border-radius: 50%; background: var(--c); border: 2px solid var(--edge); display: grid; place-items: center; grid-row: span 2; }
.slip .coin svg { width: 36px; height: 36px; color: var(--ink); }
.slip h3 { margin: 0; align-self: end; }
.slip p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; align-self: start; }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-top: 2px solid var(--edge); }
.faq details:last-child { border-bottom: 2px solid var(--edge); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--font-d); font-stretch: 75%; font-weight: 750; font-size: 1.5rem; line-height: 1.1; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--edge); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 60ch; }

.closer { background: var(--yellow); color: var(--ink); position: relative; overflow: hidden; padding: clamp(56px, 8vw, 120px) 0; }
.closer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.closer h2 { margin: 0; font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 14ch; color: var(--ink); overflow-wrap: anywhere; }
.closer .coin-big { position: absolute; inset-inline-end: -4%; bottom: -30%; width: min(46vw, 520px); opacity: .9; transform: rotate(-12deg); }
.closer .btn { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--cobalt); border-color: var(--ink); }

.foot { background: var(--ink); color: #c9ccee; padding: 56px 0 64px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot .logo { color: #fff; }
.foot h3 { font-family: var(--font-b); font-stretch: 100%; font-size: .9rem; font-weight: 700; color: var(--yellow); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul.cols { grid-template-columns: repeat(2, 1fr); }
.foot a { color: #e8eaff; text-decoration: none; }
.foot a:hover { color: var(--yellow); text-decoration: underline; }
.foot .muted { color: #9ea3d4; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(28px, 4vw, 56px) 0 8px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.tool { background: var(--card); border: 2px solid var(--edge); border-radius: 24px; padding: clamp(18px, 3vw, 34px); box-shadow: 0 8px 0 var(--edge); display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin: 22px 0 44px; }
@media (max-width: 800px) { .tool { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .lbl { font-weight: 700; font-size: .92rem; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: inherit; min-height: 48px; }
input:focus, select:focus { outline: 0; border-color: var(--cobalt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 2px solid var(--edge); background: var(--card); font: inherit; font-weight: 700; cursor: pointer; color: var(--text); min-height: 42px; }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--edge); border-radius: 14px; overflow: hidden; background: var(--card); }
.stepper button { width: 50px; height: 48px; border: 0; background: var(--yellow); font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.stepper output { min-width: 54px; text-align: center; font-weight: 800; font-size: 1.15rem; font-family: var(--font-m); }
.result { background: #fcfcf8; color: var(--ink); padding: 24px 22px 34px; align-self: start; font-family: var(--font-m); font-weight: 600; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; box-shadow: inset 0 0 0 2px var(--ink); }
.result .big { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.result .lbl { opacity: .75; font-size: .85rem; }
.result dl { margin: 16px 0 0; display: grid; gap: 8px; }
.result dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 2px dashed var(--ink); padding-top: 8px; }
.result dd { margin: 0; }
.rows { display: grid; gap: 10px; margin-bottom: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 120px 44px; gap: 8px; }
.icon-btn { width: 44px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); cursor: pointer; color: var(--muted); display: grid; place-items: center; font-size: 1.2rem; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--neg); border-color: var(--neg); }
.seg { display: inline-flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 2px var(--ink); }
.cta-card { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 22px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; box-shadow: 0 6px 0 var(--ink); }
.cta-card p { margin: 0; font-weight: 700; font-size: 1.15rem; max-width: 46ch; }
.cta-card .btn { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--cobalt); }
.table-wrap { overflow-x: auto; border: 2px solid var(--edge); border-radius: 18px; background: var(--card); box-shadow: 0 6px 0 var(--edge); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 16px 20px; text-align: start; border-bottom: 2px dashed var(--line); }
th { font-size: .95rem; }
thead th { background: var(--ink); color: #fff; border: 0; font-family: var(--font-d); font-stretch: 75%; font-size: 1.2rem; }
thead th:nth-child(2) { color: var(--yellow); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.us { font-weight: 800; color: var(--pos); }
.legal h2 { margin-top: 1.6em; font-size: 1.8rem; }

/* auth */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 32px 0; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 2px solid var(--edge); border-radius: 26px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 8px 0 var(--edge); }
.auth-card .logo { margin-bottom: 18px; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem; }
.or::before, .or::after { content: ""; height: 2px; background: var(--line); flex: 1; }
.err { background: var(--neg-soft); color: var(--neg); border: 2px solid var(--neg); padding: 10px 14px; border-radius: 12px; font-weight: 650; margin-bottom: 14px; font-size: .95rem; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.switch { text-align: center; margin-top: 18px; color: var(--muted); }

/* app */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 1rem; flex: none; border: 2px solid var(--edge); font-family: var(--font-d); }
.av1 { background: var(--yellow); } .av2 { background: var(--mint); } .av3 { background: var(--pink); } .av4 { background: var(--sky); }
.appbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 26px 0 10px; }
.appbar h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 8px; margin: 16px 0 22px; overflow-x: auto; padding-bottom: 6px; }
.tabs button { border: 2px solid var(--edge); background: var(--card); padding: 9px 18px; font: inherit; font-weight: 700; color: var(--text); border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--cobalt); color: #fff; }
.panel { background: var(--card); border: 2px solid var(--edge); border-radius: 22px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 6px 0 var(--edge); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--soft); border-radius: 14px; padding: 14px 18px; }
.stat small { color: var(--muted); display: block; }
.stat strong { font-family: var(--font-m); font-size: 1.6rem; letter-spacing: -.02em; }
.exp { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 2px dashed var(--line); }
.exp:last-child { border: 0; }
.exp .t { flex: 1; min-width: 0; }
.exp .t b { display: block; overflow-wrap: anywhere; }
.exp .t small { color: var(--muted); }
.exp .acts { display: flex; gap: 4px; }
.amt { font-family: var(--font-m); font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--cobalt); }
.bal { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px 12px; align-items: center; padding: 10px 0; }
.bal .meter { grid-column: 2 / 4; height: 14px; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; border: 2px solid var(--edge); }
.bal .meter i { position: absolute; top: 0; bottom: 0; background: var(--mint); }
.bal.neg .meter i { background: var(--tomato); }
.pos-t { color: var(--pos); font-weight: 750; }
.neg-t { color: var(--neg); font-weight: 750; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--edge); border-radius: 16px; margin-bottom: 12px; background: var(--card); }
.pay svg { width: 22px; height: 22px; color: var(--cobalt); flex: none; }
.pay .t { flex: 1; font-weight: 700; }
.modal { position: fixed; inset: 0; background: rgba(8, 10, 40, .6); display: grid; place-items: center; z-index: 60; padding: 12px; }
.sheet { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--card); border: 2px solid var(--edge); border-radius: 24px; padding: 24px; box-shadow: 0 8px 0 var(--edge); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-h h2 { font-size: 2rem; margin: 0; }
.who { display: grid; gap: 8px; margin-top: 8px; }
.who label { display: grid; grid-template-columns: 24px 1fr 110px; gap: 10px; align-items: center; padding: 4px; }
.who input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--cobalt); }
.who input[type=number] { min-height: 40px; padding: 6px 10px; }
.new-people { display: grid; gap: 8px; margin-bottom: 10px; }
.rowp { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.share-box { display: grid; gap: 12px; }
.share-box code { display: block; padding: 12px; background: var(--soft); border-radius: 12px; overflow-wrap: anywhere; font-size: .85rem; font-family: var(--font-m); }
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: fit-content; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 80; border: 2px solid var(--yellow); }
.grp-list { display: grid; gap: 12px; margin-top: 14px; }
.grp { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px solid var(--edge); border-radius: 16px; text-decoration: none; color: var(--text); background: var(--card); box-shadow: 0 4px 0 var(--edge); }
.grp:hover { background: var(--soft); }
.grp b { flex: 1; overflow-wrap: anywhere; }
.grp small { color: var(--muted); }
.grp svg { width: 20px; height: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
[dir="rtl"] .grp svg, [dir="rtl"] .pay svg { transform: scaleX(-1); }
