/* Maslul · © 2026 Bar Lvovski */
:root {
  --bg: #F2F2F7;
  --bg2: #FFFFFF;
  --bg3: #F2F2F7;
  --fill: rgba(120, 120, 128, .12);
  --fill2: rgba(120, 120, 128, .08);
  --ink: #000;
  --ink2: rgba(60, 60, 67, .6);
  --ink3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .29);
  --sep-o: #C6C6C8;
  --acc: #248A3D;
  --acc-ink: #fff;
  --acc-soft: rgba(52, 199, 89, .14);
  --amber: #C93400;
  --amber-soft: rgba(255, 149, 0, .14);
  --red: #D70015;
  --bar: rgba(249, 249, 249, .8);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "IBM Plex Sans Hebrew", "Segoe UI", system-ui, sans-serif;
  --tabs-h: 0px;
  --side-w: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg2: #1C1C1E;
    --bg3: #2C2C2E;
    --fill: rgba(120, 120, 128, .32);
    --fill2: rgba(120, 120, 128, .2);
    --ink: #fff;
    --ink2: rgba(235, 235, 245, .6);
    --ink3: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .6);
    --sep-o: #38383A;
    --acc: #30D158;
    --acc-ink: #04200d;
    --acc-soft: rgba(48, 209, 88, .16);
    --amber: #FF9F0A;
    --amber-soft: rgba(255, 159, 10, .16);
    --red: #FF453A;
    --bar: rgba(22, 22, 23, .78);
    --shadow: none;
    color-scheme: dark;
  }
}
html.big { font-size: 112.5%; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 400 1.0625rem/1.47 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
main:focus, main:focus-visible { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.n { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
svg.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100dvh; }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom)); outline: none; }
main.wide { max-width: 980px; }
.boot { display: grid; place-items: center; min-height: 60dvh; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--fill); border-top-color: var(--ink2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* nav bar (iOS style: small title fades in once the large title scrolls away) */
.bar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); transition: background .2s, box-shadow .2s; }
.bar.solid { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 var(--sep); }
.bar-in { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 0 12px; }
.bar-lead { justify-self: start; display: flex; gap: 4px; }
.bar-trail { justify-self: end; display: flex; gap: 4px; }
.bar-title { font-weight: 600; font-size: 1.0625rem; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.bar.solid .bar-title { opacity: 1; }
.nb { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; color: var(--acc); font-size: 1.0625rem; border-radius: 10px; }
.nb:hover { background: var(--fill2); text-decoration: none; }
.nb svg.i { width: 1.4em; height: 1.4em; }
.nb .back { transform: scaleX(-1); }

.large { padding: 4px 4px 14px; }
.large h1 { font-size: 2.125rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.large p { color: var(--ink2); margin-top: 4px; font-size: 1rem; }

/* side bar on wide screens (iPadOS style) */
.side { display: none; }
@media (min-width: 960px) {
  :root { --side-w: 260px; }
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; width: var(--side-w); flex: none; padding: 18px 12px; background: var(--bg2); border-inline-end: .5px solid var(--sep); }
  @media (prefers-color-scheme: dark) { .side { background: #0B0B0C; } }
  .side-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); padding: 6px 10px 14px; }
  .side-brand:hover { text-decoration: none; }
  .side-brand img { border-radius: 8px; }
  .side-links { display: flex; flex-direction: column; gap: 2px; }
  .side-links a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; }
  .side-links a:hover { background: var(--fill2); text-decoration: none; }
  .side-links a[aria-current=page] { background: var(--acc); color: var(--acc-ink); }
  .side-links a svg.i { color: var(--acc); }
  .side-links a[aria-current=page] svg.i { color: inherit; }
  .side-foot { margin-top: auto; color: var(--ink2); font-size: .8125rem; padding: 0 10px; }
  .tabs { display: none !important; }
}

/* tab bar on phones */
.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--sep); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .6875rem; font-weight: 500; color: var(--ink2); padding: 2px 0; min-height: 44px; justify-content: center; }
.tabs a:hover { text-decoration: none; }
.tabs a svg.i { width: 26px; height: 26px; stroke-width: 1.7; }
.tabs a[aria-current=page] { color: var(--acc); }
.tabs a[aria-current=page] svg.i { stroke-width: 2.1; }
@media (max-width: 959px) { :root { --tabs-h: 58px; } }

/* ---------- building blocks ---------- */
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 8px; }
.sec-h h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.sec-h a, .sec-h button { font-size: 1rem; }
.cap { color: var(--ink2); font-size: .8125rem; text-transform: none; padding: 0 16px 6px; }
.foot-note { color: var(--ink2); font-size: .8125rem; padding: 8px 16px 0; line-height: 1.45; }

.card { background: var(--bg2); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.group { background: var(--bg2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; position: relative; color: var(--ink); background: none; border: 0; width: 100%; text-align: start; }
a.row:hover, button.row:hover { text-decoration: none; background: var(--fill2); }
.row + .row::before, .row + details::before, details + .row::before { content: ""; position: absolute; top: 0; inset-inline-start: 16px; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.row.ico + .row.ico::before { inset-inline-start: 58px; }
.row .grow { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 500; }
.row .s { display: block; color: var(--ink2); font-size: .875rem; margin-top: 1px; }
.row .v { color: var(--ink2); font-size: 1rem; }
.chev { color: var(--ink3); width: 14px; height: 14px; stroke-width: 2.4; transform: scaleX(-1); }
.badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.badge svg.i { width: 18px; height: 18px; stroke-width: 2; }
.b-green { background: #34C759; } .b-orange { background: #FF9500; } .b-blue { background: #5856D6; } .b-red { background: #FF3B30; }
.b-teal { background: #30B0C7; } .b-gray { background: #8E8E93; } .b-pink { background: #FF2D55; } .b-brown { background: #A2845E; } .b-indigo { background: #5E5CE6; } .b-yellow { background: #FFCC00; color: #3a2c00; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 1.0625rem; transition: transform .12s, opacity .2s; }
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn:active { transform: scale(.98); }
.btn.tint { background: var(--acc-soft); color: var(--acc); }
.btn.plain { background: var(--fill2); color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .9375rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg.i { width: 1.15em; height: 1.15em; }
.link { border: 0; background: none; color: var(--acc); padding: 0; font-size: inherit; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; min-height: 34px; padding: 0 14px; background: var(--bg2); color: var(--ink); font-size: .9375rem; font-weight: 500; box-shadow: var(--shadow); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--bg); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 7px; min-height: 32px; font-size: .875rem; font-weight: 500; color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--bg2); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed=true] { background: #636366; } }

.search { display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 10px; padding: 0 10px; min-height: 38px; color: var(--ink2); }
.search input { flex: 1; border: 0; background: none; outline: none; color: var(--ink); min-height: 38px; }
.search input::placeholder { color: var(--ink2); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .8125rem; color: var(--ink2); padding: 0 4px; }
.inp { width: 100%; border: 0; background: var(--bg2); border-radius: 12px; min-height: 48px; padding: 12px 14px; color: var(--ink); outline: none; box-shadow: inset 0 0 0 .5px var(--sep); }
.inp:focus { box-shadow: inset 0 0 0 2px var(--acc); }
textarea.inp { min-height: 140px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: 18px 21px, 13px 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.counter { font-size: .75rem; color: var(--ink2); text-align: end; padding: 0 4px; }
.err { color: var(--red); font-size: .875rem; min-height: 1em; }

.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 600; background: var(--fill2); color: var(--ink2); }
.pill.courier { background: var(--acc-soft); color: var(--acc); }
.pill.team { background: var(--ink); color: var(--bg); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px 20px; color: #fff; background: #0E1A12; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 14, 9, .92) 18%, rgba(6, 14, 9, .2) 70%, transparent); }
.hero .kick { font-size: .8125rem; font-weight: 600; color: #8FF0A9; letter-spacing: .01em; }
.hero h2 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }
.hero p { color: rgba(255, 255, 255, .78); font-size: .9375rem; max-width: 40ch; }
.hero .acts { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hero .btn.glass { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero .btn.solid { background: #fff; color: #0B1A10; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; color: var(--ink); text-align: center; font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.quick a:hover { text-decoration: none; background: var(--fill2); }
.quick .badge { width: 44px; height: 44px; border-radius: 12px; }
.quick .badge svg.i { width: 24px; height: 24px; }
@media (max-width: 380px) { .quick { grid-template-columns: repeat(2, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats div { padding: 14px 12px; text-align: center; }
.stats div + div { border-inline-start: .5px solid var(--sep); }
.stats b { display: block; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink2); font-size: .8125rem; }

.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 70%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.gcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 150px; color: var(--ink); }
.gcard:hover { text-decoration: none; transform: translateY(-1px); }
.gcard .badge { margin-bottom: 6px; }
.gcard b { font-size: 1.0625rem; line-height: 1.3; }
.gcard span { color: var(--ink2); font-size: .875rem; line-height: 1.4; }
.gcard .min { margin-top: auto; font-size: .75rem; color: var(--ink2); }

/* referral teaser on home */
.code-teaser { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--ink); }
.code-teaser:hover { text-decoration: none; }
.code-teaser .amt { font-size: 1.75rem; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; line-height: 1; }
.code-teaser .grow b { display: block; }
.code-teaser .grow span { color: var(--ink2); font-size: .875rem; }

/* ---------- forum ---------- */
.forum-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.topic { display: block; padding: 14px 16px; color: var(--ink); position: relative; }
.topic:hover { text-decoration: none; background: var(--fill2); }
.topic + .topic::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
.topic .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink2); font-size: .8125rem; }
.topic h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 3px 0 2px; }
.topic p { color: var(--ink2); font-size: .9375rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic .foot { display: flex; gap: 14px; color: var(--ink2); font-size: .8125rem; margin-top: 8px; }
.topic .foot span { display: inline-flex; align-items: center; gap: 4px; }
.topic .foot svg.i { width: 15px; height: 15px; }
.pin { color: var(--amber); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg.i { width: 44px; height: 44px; color: var(--ink3); stroke-width: 1.4; }
.empty b { color: var(--ink); font-size: 1.0625rem; }

.post { padding: 18px 16px; }
.post h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; margin: 6px 0 10px; }
.who { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .9375rem; flex: none; }
.who .nm { font-weight: 600; font-size: .9375rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who .tm { color: var(--ink2); font-size: .8125rem; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.post .body { margin-top: 12px; font-size: 1.0625rem; }
.acts-row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--fill2); color: var(--ink); border-radius: 999px; min-height: 34px; padding: 0 12px; font-size: .875rem; font-weight: 500; }
.act[aria-pressed=true] { background: var(--acc-soft); color: var(--acc); }
.act svg.i { width: 16px; height: 16px; }
.reply { padding: 14px 16px; position: relative; }
.reply + .reply::before { content: ""; position: absolute; top: 0; inset-inline: 60px 0; border-top: .5px solid var(--sep); }
.reply .body { margin-top: 6px; padding-inline-start: 44px; }
.reply .acts-row { padding-inline-start: 44px; margin-top: 8px; }
.reply.best { background: var(--acc-soft); }
.best-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-size: .8125rem; font-weight: 600; }

.composer { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 8px); margin-top: 14px; display: flex; gap: 8px; align-items: flex-end; padding: 8px; border-radius: 22px; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 .5px var(--sep), var(--shadow); }
.composer textarea { flex: 1; border: 0; background: var(--bg2); border-radius: 16px; padding: 9px 14px; min-height: 38px; max-height: 40dvh; resize: none; outline: none; line-height: 1.4; box-shadow: inset 0 0 0 .5px var(--sep); }
.send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.send svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.send[disabled] { background: var(--fill); color: var(--ink3); }

/* ---------- chat ---------- */
.chat-wrap { display: flex; flex-direction: column; min-height: calc(100dvh - 48px - var(--tabs-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px); }
.chat-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.chat-intro { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.chat-intro p { font-size: .9375rem; color: var(--ink2); }
.chat-intro b { color: var(--ink); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.day { text-align: center; color: var(--ink2); font-size: .75rem; font-weight: 600; margin: 12px 0 6px; }
.m { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.m.me { align-self: flex-end; align-items: flex-end; }
.m .from { font-size: .75rem; color: var(--ink2); padding: 6px 12px 2px; display: flex; gap: 6px; align-items: center; }
.bub { padding: 8px 13px; border-radius: 19px; background: var(--bg2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; box-shadow: var(--shadow); border: 0; text-align: start; color: var(--ink); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .bub { background: #26252A; } }
.m.me .bub { background: var(--acc); color: var(--acc-ink); }
.m.team .bub { box-shadow: inset 0 0 0 1.5px var(--ink); }
.m .at { font-size: .6875rem; color: var(--ink3); padding: 2px 10px 0; }
.chat-wrap .composer { margin-top: 8px; }

/* ---------- referral ---------- */
.ref { padding: 22px 18px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ref .lbl { color: var(--ink2); font-size: .875rem; font-weight: 500; }
.code { font: 700 2.25rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; direction: ltr; display: flex; gap: .35em; padding: 16px 20px; border-radius: 16px; background: var(--fill2); border: 0; color: var(--ink); user-select: all; }
.code span { display: inline-block; }
@media (max-width: 380px) { .code { font-size: 1.75rem; } }
.ref .acts { display: flex; gap: 10px; width: 100%; }
.ref .acts .btn { flex: 1; }
.bonus { display: grid; grid-template-columns: repeat(3, 1fr); }
.bonus div { padding: 16px 8px; text-align: center; }
.bonus div + div { border-inline-start: .5px solid var(--sep); }
.bonus b { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bonus span { color: var(--ink2); font-size: .8125rem; }
.steps { counter-reset: s; }
.steps .row { align-items: flex-start; }
.steps .row::after { counter-increment: s; content: counter(s); order: -1; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font-size: .8125rem; font-weight: 700; margin-top: 1px; }
.disclose { display: flex; gap: 10px; padding: 14px 16px; font-size: .875rem; color: var(--ink2); }
.disclose svg.i { color: var(--amber); margin-top: 2px; }

details.row { display: block; padding: 0; }
details > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 500; }
details > summary::-webkit-details-marker { display: none; }
details > summary .chev { margin-inline-start: auto; transform: rotate(-90deg); transition: transform .2s; }
details[open] > summary .chev { transform: rotate(90deg); }
details > div { padding: 0 16px 16px; color: var(--ink2); font-size: .9375rem; line-height: 1.55; }

/* ---------- tools ---------- */
.calc-out { display: grid; grid-template-columns: 1fr 1fr; }
.calc-out div { padding: 16px; }
.calc-out div:nth-child(even) { border-inline-start: .5px solid var(--sep); }
.calc-out div:nth-child(n+3) { border-top: .5px solid var(--sep); }
.calc-out b { display: block; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.calc-out span { color: var(--ink2); font-size: .8125rem; }
.calc-out .big b { color: var(--acc); }
.num-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px; position: relative; }
.num-row + .num-row::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
.num-row label { flex: 1; }
.num-row label small { display: block; color: var(--ink2); font-size: .75rem; }
.num-row input { width: 110px; border: 0; background: var(--fill2); border-radius: 9px; min-height: 36px; padding: 0 10px; text-align: center; direction: ltr; font-variant-numeric: tabular-nums; outline: none; }
.num-row input:focus { box-shadow: inset 0 0 0 2px var(--acc); }
.ring-wrap { display: flex; align-items: center; gap: 18px; padding: 18px 16px; }
.ring { width: 120px; height: 120px; flex: none; }
.ring circle { fill: none; stroke-width: 12; }
.ring .bgc { stroke: var(--fill); }
.ring .fg { stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.ring text { fill: var(--ink); font: 700 26px var(--font); }
.ring .sub { fill: var(--ink2); font: 500 11px var(--font); }
.ring-wrap .grow p { color: var(--ink2); font-size: .9375rem; }
.ring-wrap .grow b { color: var(--ink); }
.log-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.log-table th, .log-table td { padding: 10px 12px; text-align: start; border-top: .5px solid var(--sep); font-variant-numeric: tabular-nums; }
.log-table th { color: var(--ink2); font-weight: 500; font-size: .8125rem; border-top: 0; }
.log-table td button { border: 0; background: none; color: var(--red); min-height: 32px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; position: relative; cursor: pointer; }
.check + .check::before { content: ""; position: absolute; top: 0; inset-inline: 52px 0; border-top: .5px solid var(--sep); }
.check input { appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink3); flex: none; margin: 1px 0 0; display: grid; place-items: center; transition: background .15s; }
.check input:checked { background: var(--acc); border-color: var(--acc); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--acc-ink); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check span b { display: block; font-weight: 500; }
.check span small { color: var(--ink2); font-size: .875rem; }
.check input:checked + span b { color: var(--ink2); text-decoration: line-through; text-decoration-color: var(--ink3); }

/* ---------- guides ---------- */
.article { padding: 22px 20px; }
.article h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.article .lede { font-size: 1.1875rem; color: var(--ink2); margin-top: 10px; line-height: 1.45; }
.article h2 { font-size: 1.25rem; font-weight: 700; margin: 26px 0 8px; }
.article p { margin: 0 0 12px; line-height: 1.65; }
.article ul, .article ol { padding-inline-start: 22px; margin: 0 0 12px; line-height: 1.65; }
.article li { margin-bottom: 6px; }
.article .note { background: var(--fill2); border-radius: 12px; padding: 12px 14px; font-size: .9375rem; color: var(--ink2); margin: 16px 0; }
.article .src { font-size: .8125rem; color: var(--ink2); border-top: .5px solid var(--sep); padding-top: 12px; margin-top: 22px; }

/* ---------- sheets (iOS modal) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 41; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 640px; max-height: calc(100dvh - 40px - env(safe-area-inset-top)); display: flex; flex-direction: column; background: var(--bg); border-radius: 14px 14px 0 0; transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .9, .25, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
.sheet.on { transform: none; }
@media (min-width: 700px) { .sheet { bottom: auto; top: 50%; border-radius: 16px; transform: translateY(-46%) scale(.98); opacity: 0; transition: transform .3s, opacity .25s; } .sheet.on { transform: translateY(-50%); opacity: 1; } }
.sheet-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 54px; padding: 0 8px; border-bottom: .5px solid var(--sep); }
.sheet-h b { font-size: 1.0625rem; font-weight: 600; }
.sheet-h .nb:last-child { justify-self: end; font-weight: 600; }
.sheet-b { overflow-y: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--ink3); margin: 6px auto 0; }
@media (min-width: 700px) { .grab { display: none; } }

.asheet { position: fixed; z-index: 41; inset-inline: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 420px; display: flex; flex-direction: column; gap: 8px; transform: translateY(120%); transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
.asheet.on { transform: none; }
.asheet .group { border-radius: 14px; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
@media (prefers-color-scheme: light) { .asheet .group { background: rgba(255, 255, 255, .92); } }
.asheet .ttl { padding: 14px 16px 10px; text-align: center; color: var(--ink2); font-size: .8125rem; }
.asheet .row { justify-content: center; color: var(--acc); font-size: 1.125rem; min-height: 56px; }
.asheet .row.bad { color: var(--red); }
.asheet .cancel { font-weight: 600; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(30, 30, 32, .92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: opacity .2s, transform .25s; max-width: 90vw; text-align: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.disclaimer { margin-top: 34px; padding: 0 8px; color: var(--ink2); font-size: .75rem; line-height: 1.5; text-align: center; }
.disclaimer a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }

.view-in { animation: vin .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes vin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (hover: hover) { .gcard { transition: transform .2s; } }

/* ---------- start from zero ---------- */
.start-hero { padding: 6px 4px 18px; }
.start-hero .kick, .start-cta .kick { font-size: .8125rem; font-weight: 600; color: var(--acc); }
.start-hero h1 { font-size: 2.125rem; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; margin-top: 6px; }
.start-hero h1 em { font-style: normal; color: var(--acc); }
.start-hero p { color: var(--ink2); margin-top: 10px; max-width: 46ch; }
@media (min-width: 700px) { .start-hero h1 { font-size: 2.75rem; } }

.consult { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.consult-top { display: flex; align-items: center; gap: 12px; }
.consult-top b { display: block; font-size: 1.0625rem; }
.consult-top span:not(.av) { color: var(--ink2); font-size: .9375rem; }
.consult-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consult-acts .btn { padding: 0 12px; font-size: 1rem; }
@media (max-width: 400px) { .consult-acts { grid-template-columns: 1fr; } }
.consult.big { background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 13%, var(--bg2)), var(--bg2) 60%); }

.start-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 16%, var(--bg2)), var(--bg2) 70%); }
.start-cta:hover { text-decoration: none; }
.start-cta b { display: block; font-size: 1.1875rem; line-height: 1.3; margin: 2px 0 4px; letter-spacing: -.01em; }
.start-cta .grow > span:last-child { color: var(--ink2); font-size: .9375rem; }
.start-cta .go { width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.start-cta .go .chev { color: inherit; width: 16px; height: 16px; }

.fit-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 54px; position: relative; }
.fit-row + .fit-row::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
.seg.mini { flex: none; width: 128px; }
.seg.mini button { min-height: 30px; font-size: .8125rem; }
.seg.mini button[data-v="1"][aria-pressed=true] { background: var(--acc); color: var(--acc-ink); }
.ready { margin-top: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--acc-soft); box-shadow: none; }
.ready b { color: var(--acc); font-size: 1.0625rem; }
.ready span { color: var(--ink2); font-size: .9375rem; margin-bottom: 6px; }

.road { list-style: none; padding: 0; margin: 0; position: relative; }
.road li { position: relative; }
.road li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 30px; top: 46px; bottom: -6px; width: 2px; background: var(--acc-soft); }
.road a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; color: var(--ink); }
.road a:hover { background: var(--bg2); text-decoration: none; }
.road .dot { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bg2); color: var(--acc); font-weight: 700; box-shadow: inset 0 0 0 2px var(--acc), var(--shadow); position: relative; z-index: 1; }
.road b { display: block; font-weight: 600; }
.road .grow span { color: var(--ink2); font-size: .875rem; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat { border: 0; text-align: start; padding: 12px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-height: 96px; }
.cat:hover { filter: brightness(.98); }
.cat b { font-size: .9375rem; }
.cat span.n { color: var(--ink2); font-size: .75rem; min-height: 1em; }
.fit-row .grow { flex: 1; min-width: 0; }

/* ---------- accessibility ---------- */
.a11y-fab { position: fixed; z-index: 35; inset-inline-end: 14px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #0A58CA; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.a11y-fab svg { width: 26px; height: 26px; }
.row[role=switch] .sw { width: 51px; height: 31px; border-radius: 99px; background: var(--fill); position: relative; flex: none; transition: background .2s; }
.row[role=switch] .sw::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.row[role=switch][aria-checked=true] .sw { background: var(--acc); }
.row[role=switch][aria-checked=true] .sw::after { transform: translateX(-20px); }
[dir=ltr] .row[role=switch][aria-checked=true] .sw::after { transform: translateX(20px); }
html.a11y-contrast { --ink2: rgba(0, 0, 0, .85); --ink3: rgba(0, 0, 0, .6); --sep: rgba(0, 0, 0, .55); --acc: #0B5D1E; --bg: #fff; --fill: rgba(0, 0, 0, .14); }
@media (prefers-color-scheme: dark) { html.a11y-contrast { --ink2: rgba(255, 255, 255, .92); --ink3: rgba(255, 255, 255, .7); --sep: rgba(255, 255, 255, .55); --acc: #4BFF7A; --bg: #000; --bg2: #121212; } }
html.a11y-contrast .card, html.a11y-contrast .group { box-shadow: 0 0 0 1.5px var(--sep); }
html.a11y-links a:not(.btn):not(.row):not(.topic):not(.gcard):not(.card) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links a.row, html.a11y-links a.topic, html.a11y-links a.card, html.a11y-links a.btn { outline: 2px dashed var(--acc); outline-offset: -3px; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea { font-family: Arial, "IBM Plex Sans Hebrew", sans-serif !important; letter-spacing: .01em; }
html.a11y-spacing body { line-height: 1.85; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing .body { line-height: 1.9 !important; word-spacing: .12em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body.has-composer .a11y-fab { bottom: calc(var(--tabs-h) + 92px + env(safe-area-inset-bottom)); }
