/* Posy. White ground, grey cards, black type and buttons, lime only in small details; baskets drawn as pies after M1. */
:root {
  --bg: #fbfbfa; --s1: #f2f2f0; --s2: #ebebe8; --s3: #e3e3df; --s4: #d9d9d4;
  --line: #e6e6e2; --line2: #d4d4cf;
  --ink: #121212; --dim: #67676b; --faint: #9e9ea2;
  --acc: #121212; --acc2: #2b2b2d; --acc-dk: #eef8de; --lime: #9fdc3c; --lime-dk: #4d7a0f;
  --up: #17a05d; --dn: #e5484d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 "Inter Tight", system-ui, sans-serif; letter-spacing: -.005em; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
.up { color: var(--up); } .dn { color: var(--dn); } .dim { color: var(--dim); } .faint { color: var(--faint); } .acc { color: var(--acc); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn.a { background: var(--acc); color: #fff; }
.btn.a:hover { background: var(--acc2); }
.btn.g { background: var(--s3); }
.btn.g:hover { background: var(--s4); }
.btn.o { border-color: var(--line2); }
.btn.o:hover { border-color: #bdbdb7; background: var(--s1); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }

/* nav: brand left, pill links centred, action right */
.nav { position: sticky; top: 0; z-index: 30; padding: 14px 0; background: linear-gradient(var(--bg) 40%, rgba(251, 251, 250, 0)); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.035em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.pills { display: flex; gap: 2px; background: rgba(242, 242, 240, .9); border: 1px solid var(--line); border-radius: 999px; padding: 4px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pills a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--dim); }
.pills a:hover { color: var(--ink); }
.pills a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nav .r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.netpill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--dim); }
.netpill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* hero: text over a large petal ring */
.hero { position: relative; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #ffffff 0%, #f6f6f4 55%, #ececea 100%); }
.hero .ring { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-50%, -50%); opacity: .55; pointer-events: none; }
.hero .ring svg { width: 100%; height: 100%; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero .ring svg { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 44% at 50% 50%, rgba(251, 251, 250, .95), rgba(251, 251, 250, .7) 70%, rgba(251, 251, 250, 0)); pointer-events: none; }
.hero .in { position: relative; z-index: 2; text-align: center; padding: 150px 24px 150px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-weight: 500; font-size: clamp(44px, 6.8vw, 92px); line-height: .98; letter-spacing: -.055em; max-width: 11em; }
.hero p { margin-top: 26px; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--dim); }
.hero .cta { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.ca { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; height: 42px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 13px; cursor: pointer; max-width: 100%; }
.ca b { color: var(--lime-dk); }
.ca span { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

.sec { padding: 112px 0 0; }
.hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h2 { font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.05em; max-width: 15em; }
.lead { margin-top: 14px; color: var(--dim); font-size: 17.5px; line-height: 1.6; max-width: 40em; }

/* basket cards */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.bc { background: var(--s1); border: 1px solid transparent; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 18px; transition: border-color .15s, transform .15s; }
.bc:hover { border-color: #cfcfca; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .06); }
.bc .top { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.bc .pie { width: 112px; height: 112px; }
.bc h3 { font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.bc .sym { color: var(--dim); font-size: 13px; margin-top: 2px; }
.bc .nav2 { font-size: 26px; font-weight: 500; letter-spacing: -.04em; margin-top: 10px; }
.bc .nav2 small { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.legend { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.legend div { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend span { color: var(--dim); }
.bc .btn { height: 42px; margin-top: auto; }
.empty { border: 1px dashed var(--line2); border-radius: 22px; padding: 56px 24px; text-align: center; color: var(--dim); grid-column: 1 / -1; }
.empty b { display: block; color: var(--ink); font-size: 21px; letter-spacing: -.03em; margin-bottom: 6px; }
.empty .btn { margin-top: 20px; }

/* worked example */
.ex { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; }
.ex .card { padding: 28px; }
.ex h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ex p { color: var(--dim); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.kv2 { margin-top: 18px; display: flex; flex-direction: column; }
.kv2 div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv2 span { color: var(--dim); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.big3 .card { padding: 26px; }
.big3 b { display: block; font-size: 40px; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; color: var(--ink); }
.big3 span { display: block; margin-top: 8px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }

/* coin list */
.clist { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; }
.cl img { width: 34px; height: 34px; border-radius: 50%; }
.cl b { display: block; font-weight: 600; }
.cl small { color: var(--dim); font-size: 13px; }
.cl .r { margin-left: auto; text-align: right; font-size: 14px; }

.faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.faq div { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.faq h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.faq p { margin-top: 8px; color: var(--dim); font-size: 14.5px; line-height: 1.6; }

.end { text-align: center; padding: 140px 24px; }
.end .h2 { margin: 0 auto; }
.end .btn { margin-top: 30px; }

footer { background: #000; color: #f2f2f0; }
footer .wrap { padding-top: 50px; padding-bottom: 56px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; font-size: 14px; }
footer p { color: #7d7d83; margin-top: 10px; }
footer h4 { font-size: 13px; color: #7d7d83; font-weight: 600; margin-bottom: 10px; }
footer .wrap > div > a:not(.brand) { display: block; color: #b4b4b9; padding: 3px 0; }
footer a:hover { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #121212; color: #fff; border: 1px solid #121212; padding: 12px 18px; border-radius: 999px; font-size: 14px; transition: .2s; z-index: 99; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #e5484d; border-color: #e5484d; color: #fff; }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- app */
.app main { padding: 26px 0 90px; }
.ptitle { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ptitle h1 { font-size: 40px; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
.ptitle p { color: var(--dim); margin-top: 6px; }
.chips { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line2); background: none; color: var(--dim); border-radius: 999px; padding: 8px 15px; font-size: 14px; cursor: pointer; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bgrid.app3 { margin-top: 22px; }

.bhead { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.bhead .pie { width: 220px; height: 220px; }
.bhead h1 { font-size: 40px; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: default; }
a.tag, button.tag { cursor: pointer; } a.tag:hover, button.tag:hover { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.kpis div { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpis small { display: block; color: var(--faint); font-size: 12.5px; }
.kpis b { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.03em; margin-top: 2px; }
.bgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-top: 28px; align-items: start; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12.5px; padding: 14px 20px; }
.tbl td { padding: 13px 20px; border-top: 1px solid var(--line); }
.tbl .r { text-align: right; }
.tbl .coin { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl .coin img { width: 26px; height: 26px; border-radius: 50%; }
.tbl .sw0 { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.wcell { width: 170px; }
.wb { position: relative; height: 6px; border-radius: 3px; background: var(--s3); margin-top: 6px; }
.wb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #a5a5a0, #121212); }
.wb u { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); opacity: .6; }
.panel { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sw { display: grid; grid-template-columns: 1fr 1fr; background: var(--s2); border-radius: 999px; padding: 4px; }
.sw button { border: 0; background: none; height: 38px; border-radius: 999px; color: var(--dim); font-weight: 600; cursor: pointer; font-size: 14px; }
.sw button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 7px; }
.inbox { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: var(--s2); border: 1px solid var(--line2); border-radius: 16px; }
.inbox:focus-within { border-color: var(--lime); }
.inbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.inbox span { color: var(--dim); font-weight: 600; }
.qk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qk button { height: 32px; border: 1px solid var(--line2); background: none; border-radius: 999px; color: var(--dim); font-size: 13px; cursor: pointer; }
.qk button:hover { color: var(--ink); }
.lines { background: var(--s2); border-radius: 16px; padding: 4px 16px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.lines div:last-child { border-bottom: 0; }
.lines span { color: var(--dim); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); cursor: pointer; }
.chk input { accent-color: var(--acc); width: 16px; height: 16px; }
.note { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.panel .btn { width: 100%; height: 52px; }

/* builder */
.build { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; margin-top: 26px; align-items: start; }
.pick { padding: 8px; }
.prow { display: grid; grid-template-columns: 34px 1fr 210px 64px 32px; gap: 12px; align-items: center; padding: 12px 12px; border-radius: 14px; }
.prow + .prow { border-top: 1px solid var(--line); border-radius: 0; }
.prow img { width: 34px; height: 34px; border-radius: 50%; }
.prow b { display: block; font-weight: 600; } .prow small { color: var(--dim); font-size: 12.5px; }
.prow input[type=range] { width: 100%; accent-color: var(--ink); }
.prow .w { text-align: right; font-weight: 600; }
.prow .x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: none; cursor: pointer; color: var(--dim); }
.prow .x:hover { color: var(--ink); border-color: #b0b0aa; }
.prow.off { opacity: .55; }
.prow.off .add { grid-column: 3 / 6; justify-self: end; }
.preview { padding: 22px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.preview .pie { width: 200px; height: 200px; align-self: center; }
.txt { height: 52px; width: 100%; background: var(--s2); border: 1px solid var(--line2); border-radius: 16px; padding: 0 16px; outline: 0; font-size: 16px; font-weight: 500; }
.txt:focus { border-color: var(--lime); }
.two { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }

@media (max-width: 960px) {
  .pills { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .hero .in { padding: 100px 18px 96px; }
  .hero .ring { width: 760px; height: 760px; }
  .bgrid, .ex, .big3, .clist, .faq, .kpis { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .sec { padding-top: 80px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 16px; }
  .bhead { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bhead .tags { justify-content: center; }
  .bgrid2, .build { grid-template-columns: 1fr; }
  .bgrid2 > *, .build > * { min-width: 0; }
  .bgrid2 .card { overflow-x: auto; }
  .wcell { width: 120px; }
  .tbl th, .tbl td { padding: 12px 12px; }
  .preview { position: static; }
  .prow { grid-template-columns: 30px 1fr 54px 30px; }
  .prow input[type=range] { grid-column: 1 / -1; grid-row: 2; }
  .hide-m { display: none; }
  .netpill { display: none; }
}
