/* Linkito design system: editorial and calm. Serif display (Newsreader), sans UI (Geist), hairlines instead of
   shadows, monochrome primary buttons, green only for "yes / money / ours". Light and dark follow the OS. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f4f2ed; --text: #151513; --muted: #6d6c66; --faint: #9a9890;
  --border: rgba(20, 20, 15, .1); --border-strong: rgba(20, 20, 15, .2);
  --primary: #151513; --primary-ink: #fbfaf7;
  --accent: #1f7a52; --accent-ink: #ffffff; --accent-soft: #e5f1ea;
  --danger: #b3261e; --ok-bg: #e5f1ea; --err-bg: #fbe9e7; --warn: #a15c00;
  --radius: 12px; --radius-sm: 8px;
  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  body.app { --bg: #0b0b0a; --surface: #131312; --surface-2: #1a1a18; --text: #f3f2ee; --muted: #a3a29b; --faint: #75746e;
    --border: rgba(255, 255, 250, .1); --border-strong: rgba(255, 255, 250, .2);
    --primary: #f3f2ee; --primary-ink: #0b0b0a;
    --accent: #4fc08a; --accent-ink: #06150d; --accent-soft: #11261b;
    --danger: #ff8a80; --ok-bg: #11261b; --err-bg: #2d1715; --warn: #f0b35a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--sans); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
a:hover { text-decoration-color: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 450; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: 2.2rem; margin: .2em 0 .5em; } h2 { font-size: 1.5rem; margin: 1.4em 0 .6em; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
input, textarea, select { font: inherit; padding: .6em .75em; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); min-width: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { width: 100%; resize: vertical; }
label { display: grid; gap: .35em; font-size: .88rem; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .4em; }
.container { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }
.narrow { max-width: 460px; }
.nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 10px 20px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); flex-wrap: wrap; }
.nav nav { display: flex; gap: 1.1em; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.nav a { text-decoration: none; color: var(--muted); } .nav a:hover { color: var(--text); }
.nav a.btn { color: var(--primary-ink); }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; color: var(--text) !important; text-decoration: none; }
.brand i { font-style: normal; color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--primary); color: var(--primary-ink) !important; border: 1px solid var(--primary); border-radius: var(--radius-sm); padding: .6em 1.1em; font: inherit; font-weight: 550; font-size: .92rem; cursor: pointer; text-decoration: none; transition: opacity .15s, transform .15s; }
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text) !important; border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--text); opacity: 1; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }
.btn.small { padding: .38em .8em; font-size: .84rem; }
.btn.big { padding: .8em 1.4em; font-size: 1rem; }
.btn.disabled { opacity: .45; pointer-events: none; }
button.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
button.icon { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 2em; height: 2em; cursor: pointer; color: var(--text); }
button.icon:hover { border-color: var(--border-strong); }
button.icon.danger { color: var(--danger); }
.inline { display: inline; margin: 0; }
.row { display: flex; gap: .5em; align-items: center; }
.row.wrap { flex-wrap: wrap; } .grow { flex: 1; }
.row.wrap > input { flex: 1 1 180px; }
.stack { display: grid; gap: .85em; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.muted { color: var(--muted); } .small { font-size: .84rem; }
.pill { display: inline-block; padding: .2em .75em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; }
.flash { padding: .75em 1em; border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.flash.error { background: var(--err-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.upsell { border-style: dashed; }
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5em; }
.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 18em; margin: 0 auto .4em; }
.hero .row { justify-content: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin: 0 auto 1.4em; }
.lead.left { margin: 0 0 1em; text-align: left; }
.grid2, .grid3 { display: grid; gap: 12px; } .grid2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
@media (max-width: 800px) { .grid-dash { grid-template-columns: minmax(0, 1fr); } }
.link-item { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.link-item.inactive { opacity: .55; }
.plan.featured { border: 1px solid var(--text); }
.price { font-family: var(--serif); font-size: 2.2rem; font-weight: 450; margin: 0; letter-spacing: -.02em; } .price span { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.plan ul { padding-left: 1.2em; }
.prefix { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.prefix span { padding: 0 .2em 0 .75em; color: var(--muted); white-space: nowrap; font-size: .9rem; }
.prefix input { border: 0; flex: 1; padding-left: 0; }
.prefix:focus-within { border-color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table td, .table th { padding: .5em; border-bottom: 1px solid var(--border); text-align: left; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.truncate { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { color: var(--muted); font-size: .9rem; } .stat strong { display: block; font-size: 2rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.stack-bar { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.stack-bar i { display: block; width: 100%; }
.bar small { font-size: .65rem; color: var(--muted); }
.b-views { background: var(--accent); opacity: .45; } .b-clicks { background: var(--accent); }
.legend i { display: inline-block; width: .8em; height: .8em; border-radius: 2px; margin: 0 .2em 0 .8em; }

/* ---------- public bio page ---------- */
body.bio { --b-bg: #f7f7f5; --b-text: #1d1d1f; --b-btn: #fff; --b-btn-text: #1d1d1f; --b-border: #e4e4e0;
  background: var(--b-bg); color: var(--b-text); min-height: 100vh; }
body.theme-dark { --b-bg: #121214; --b-text: #f1f1f3; --b-btn: #222226; --b-btn-text: #f1f1f3; --b-border: #34343a; }
body.theme-sunset { --b-bg: linear-gradient(160deg, #ff9a6b, #c94b7d 60%, #5b2a86); --b-text: #fff; --b-btn: rgba(255,255,255,.92); --b-btn-text: #3b1d4a; --b-border: transparent; }
body.theme-mate { --b-bg: #e9efe6; --b-text: #23331f; --b-btn: #2f6b4f; --b-btn-text: #fff; --b-border: transparent; }
.bio-wrap { max-width: 560px; margin: 0 auto; padding: 48px 16px; }
.bio-head { text-align: center; }
.bio-head h1 { font-size: 1.5rem; margin: .4em 0 .2em; }
.bio-head p { margin: 0 auto; max-width: 30em; opacity: .85; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.avatar.initials { display: grid; place-items: center; margin: 0 auto; background: var(--b-btn); color: var(--b-btn-text); font-size: 2.4rem; font-weight: 700; border: 1px solid var(--b-border); }
.bio-links { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.bio-links a { display: block; text-align: center; padding: 16px; border-radius: 14px; background: var(--b-btn); color: var(--b-btn-text); border: 1px solid var(--b-border); text-decoration: none; font-weight: 600; transition: transform .1s; }
.bio-links a:hover { transform: translateY(-2px); }
.bio-links .empty { text-align: center; opacity: .7; }
.badge { text-align: center; font-size: .8rem; opacity: .7; }
.badge a { color: inherit; }

/* ---------- Linktree importer ---------- */
.lead.left { margin: 0 0 1em; text-align: left; }
.import-profile, .import-row { display: flex; gap: 12px; align-items: center; }
.import-row { cursor: pointer; }
.import-row input[type=checkbox] { width: 1.2em; height: 1.2em; }
.import-row .grow { min-width: 0; }
.avatar.sm { width: 56px; height: 56px; }

/* bio-page products (checkout) */
.bio-links.products { margin-bottom: 0; }
.bio-links .product { display: block; width: 100%; text-align: center; padding: 16px; border-radius: 14px; background: var(--b-btn); color: var(--b-btn-text); border: 2px solid var(--b-btn-text); font: inherit; cursor: pointer; transition: transform .1s; }
.bio-links .product:hover { transform: translateY(-2px); }
.product .p-title { display: block; font-weight: 700; }
.product .p-desc { display: block; font-size: .9rem; opacity: .8; margin-top: 4px; }
.product .p-price { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .95rem; }

.grid4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat small { display: block; margin-top: 4px; }
.stat.highlight { border-color: var(--accent); }
h2 .btn { margin-left: 8px; vertical-align: middle; }

/* sections: one panel per module (Ventas, Productos, Órdenes, admin blocks) */
.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 0 0 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6em; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section-head h2 { margin: 0; }
.stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.stat-box span { color: var(--muted); font-size: .9rem; }
.stat-box strong { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.stat-box small { display: block; margin-top: 4px; }
.stat-box.highlight { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.add-row { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px dashed var(--border); }
.list-item { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item.inactive { opacity: .55; }
.table-wrap { overflow-x: auto; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.nowrap { white-space: nowrap; }
/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .85em; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; background: var(--surface); }
.chip b { font-weight: 600; color: var(--muted); font-size: .8rem; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.active b { color: var(--accent-ink); }
.chip.empty { opacity: .5; }
/* status badges */
.status { white-space: nowrap; font-size: .9rem; }
.s-approved { color: var(--accent); font-weight: 600; }
.s-rejected, .s-cancelled, .s-error, .s-charged_back { color: var(--danger); }
.s-checkout, .s-created { color: var(--muted); }


/* ---------- marketing pages (home, comparar) ---------- */
.mk-main { max-width: none; padding: 0; overflow-x: clip; }
.mk-main > .flash { max-width: 720px; margin: 12px auto; }
.mk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mk-narrow { max-width: 760px; }
.mk-section { padding: 88px 0; border-top: 1px solid var(--border); }
.mk-eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mk-eyebrow b { color: var(--accent); font-weight: 600; }
.mk-h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin: .25em 0 .4em; max-width: 18em; }
.mk-h2.center, .mk-center { text-align: center; margin-inline: auto; }
.mk-lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 0 0 1.6em; }
.mk-center .mk-lead { margin-inline: auto; }
.mk-fine { font-size: .82rem; color: var(--faint); margin: .8em 0 0; }
.mk-fine a { color: var(--muted); }
.serif { font-family: var(--serif); }

/* hero */
.mk-hero { padding: 72px 0 80px; }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 880px) { .mk-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.mk-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; margin: .3em 0 .35em; }
.mk-hero h1 em { font-style: italic; color: var(--accent); }
.mk-hero .mk-lead { font-size: 1.2rem; }
.mk-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0 0; padding: 0; list-style: none; }
.mk-badges li { font-size: .8rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .3em .8em; }
.mk-badges li b { color: var(--text); font-weight: 600; }

/* claim / waitlist box */
.claim { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px 6px 6px 14px; max-width: 520px; }
.claim:focus-within { border-color: var(--accent); }
.claim input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55em .2em; outline: none; font-size: 1rem; }
.claim input:focus { outline: none; }
.claim .claim-prefix { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.claim .btn { white-space: nowrap; }
.mk-center .claim { margin-inline: auto; }
@media (max-width: 520px) { .claim { flex-wrap: wrap; padding: 10px; } .claim input { flex: 1 1 100%; padding-left: 6px; } .claim .claim-prefix { padding-left: 6px; } .claim .btn { flex: 1 1 100%; } }
.hp { position: absolute !important; left: -9999px; }

/* product mockup */
.mk-mock { position: relative; display: grid; place-items: center; min-height: 460px; }
.mk-phone { width: 272px; border-radius: 40px; background: #111; padding: 9px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset; }
.mk-screen { border-radius: 32px; padding: 30px 16px 20px; background: linear-gradient(165deg, #f6efe4, #efe2cf); color: #2a2118; display: grid; gap: 9px; text-align: center; }
.mk-avatar { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #2a2118; color: #f6efe4; font-family: var(--serif); font-size: 1.7rem; }
.mk-name { font-family: var(--serif); font-size: 1.25rem; } .mk-bio { font-size: .76rem; opacity: .7; margin-top: -6px; }
.mk-link { background: #fffaf2; border: 1px solid rgba(42,33,24,.12); border-radius: 12px; padding: 10px; font-weight: 600; font-size: .86rem; }
.mk-product { background: #2a2118; color: #f6efe4; border-radius: 14px; padding: 11px; display: grid; gap: 3px; text-align: left; }
.mk-product b { font-size: .88rem; } .mk-product span { font-size: .75rem; opacity: .75; }
.mk-product em { font-style: normal; margin-top: 6px; background: #009ee3; color: #fff; border-radius: 8px; padding: .45em; text-align: center; font-weight: 600; font-size: .8rem; }
.mk-tag { position: absolute; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: .55em .8em; font-size: .78rem; box-shadow: 0 16px 30px -18px rgba(0,0,0,.45); }
.mk-tag b { display: block; font-size: .95rem; font-family: var(--serif); font-weight: 500; }
.mk-tag.t1 { top: 30px; left: 0; } .mk-tag.t2 { bottom: 40px; right: 0; }
@media (max-width: 520px) { .mk-tag.t1 { left: 2%; } .mk-tag.t2 { right: 2%; } }
.mk-mock-note { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--faint); margin: 0; white-space: nowrap; }

/* fact strip */
.mk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .mk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-fact { padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: -1px; }
.mk-fact:last-child { border-right: 0; }
.mk-fact strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; }
.mk-fact span { font-size: .84rem; color: var(--muted); }

/* feature tour */
.mk-tour { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; }
.mk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.mk-card h3 { margin: 0; font-size: 1.05rem; } .mk-card p { margin: 0; color: var(--muted); }
.mk-card .mk-mini { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 12px; font-size: .82rem; color: var(--muted); display: grid; gap: 6px; }
.mk-mini .mk-bar { display: flex; justify-content: space-between; gap: 8px; }
.mk-mini .mk-bar i { flex: 1; align-self: center; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.mk-mini .mk-bar i::after { content: ""; position: absolute; inset: 0; width: var(--w, 50%); background: var(--accent); border-radius: 3px; }
.mk-mini code { font-size: .8rem; background: var(--surface-2); border-radius: 6px; padding: .2em .45em; }

/* comparison tables */
.mk-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.mk-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.mk-table th, .mk-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mk-table tr:last-child td { border-bottom: 0; }
.mk-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.mk-table td:first-child { color: var(--muted); width: 34%; }
.mk-table .ours { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--text); font-weight: 550; }
.mk-table thead .ours { color: var(--accent); }
.mk-table .more { position: relative; }
.mk-table .more::after { content: "hace más"; margin-left: .6em; font-size: .7rem; font-weight: 600; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: .05em .5em; white-space: nowrap; }
.mk-yes { color: var(--accent); font-weight: 600; } .mk-no { color: var(--faint); }

/* calculator */
.mk-calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 760px) { .mk-calc { grid-template-columns: minmax(0, 1fr); } }
.mk-calc-in { padding: 24px; border-right: 1px solid var(--border); display: grid; gap: 14px; align-content: start; }
.mk-calc-in output { font-family: var(--serif); font-size: 2.4rem; letter-spacing: -.02em; line-height: 1; }
.mk-calc-in input[type=range] { width: 100%; accent-color: var(--accent); padding: 0; border: 0; }
.mk-steps-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-steps-pick button { font: inherit; font-size: .82rem; border: 1px solid var(--border-strong); background: transparent; color: var(--text); border-radius: 999px; padding: .3em .8em; cursor: pointer; }
.mk-steps-pick button[aria-pressed=true] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.mk-calc-out { padding: 8px 0; }
.mk-calc-out .mk-table { min-width: 0; font-size: .9rem; } .mk-calc-out .mk-table td:first-child { width: auto; }
.mk-calc-out td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-verdict { margin: 0; padding: 14px 16px; border-top: 1px solid var(--border); font-size: .9rem; }

/* competitor cards */
.mk-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mk-cards .mk-card .mk-price { font-family: var(--serif); font-size: 1.35rem; margin: 4px 0; }

/* pricing */
.mk-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; margin: 0 auto 24px; }
.mk-toggle button { font: inherit; font-size: .85rem; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: .35em 1em; cursor: pointer; }
.mk-toggle button[aria-pressed=true] { background: var(--primary); color: var(--primary-ink); }
.mk-toggle small { color: var(--accent); font-weight: 600; margin-left: .3em; }
.mk-toggle button[aria-pressed=true] small { color: inherit; }
.mk-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 780px; margin: 0 auto; }
.mk-plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 6px; align-content: start; }
.mk-plan.featured { border-color: var(--text); }
.mk-plan h3 { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mk-plan .mk-amount { font-family: var(--serif); font-size: 2.6rem; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 0; }
.mk-plan .mk-amount small { font-family: var(--sans); font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.mk-plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: .5em; font-size: .93rem; }
.mk-plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .55em; }
[data-period=year] .only-month, [data-period=month] .only-year { display: none; }

/* founder */
.mk-founder { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 640px) { .mk-founder { grid-template-columns: minmax(0, 1fr); } }
.mk-founder-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; }
.mk-founder p { font-size: 1.05rem; margin: 0 0 1em; }
.mk-promises { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 20px; }
.mk-promises div { border-top: 1px solid var(--border-strong); padding-top: 12px; }
.mk-promises b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.mk-promises span { color: var(--muted); font-size: .9rem; }

/* faq */
.mk-faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.mk-faq summary { cursor: pointer; font-weight: 550; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.mk-faq details[open] summary::after { content: "–"; }
.mk-faq p { margin: .7em 0 0; color: var(--muted); max-width: 46em; }

/* invoices (closing) */
.mk-invoices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 760px; margin: 32px auto 0; }
@media (max-width: 640px) { .mk-invoices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-invoice { border: 1px solid var(--border); border-radius: 8px; padding: 10px 8px; font-size: .72rem; color: var(--faint); background: var(--surface); text-align: left; }
.mk-invoice b { display: block; color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--danger); }
.mk-final { text-align: center; padding: 104px 0; border-top: 1px solid var(--border); }
.mk-final h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin: 0 auto .3em; max-width: 14em; }

/* footer */
.mk-footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: .85rem; color: var(--muted); }
.mk-footer .mk-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .mk-footer .mk-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-footer h4 { margin: 0 0 .6em; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.mk-footer a { display: block; text-decoration: none; color: var(--muted); padding: .15em 0; } .mk-footer a:hover { color: var(--text); }
.mk-sources { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 760px) { .hide-sm { display: none; } }
.mk-table th.num { text-align: right; } .mk-calc-out .mk-table { min-width: 480px; } .mk-calc { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
@media (max-width: 760px) { .mk-calc { grid-template-columns: minmax(0, 1fr); } .mk-calc-in { border-right: 0; border-bottom: 1px solid var(--border); } }

/* admin: sub-menu, overview grid, compact lists */
.subnav { display: flex; gap: .2em; margin: 0 0 22px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.subnav-link { padding: .55em .9em; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav-link:hover { color: var(--text); }
.subnav-link.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.subnav-badge { display: inline-block; min-width: 1.4em; padding: 0 .45em; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.5; }
.admin-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); align-items: start; margin-bottom: 24px; }
.admin-grid > .section { margin: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 1em; padding: .5em 0; border-top: 1px solid var(--border); }
.mini-list li:first-child { border-top: 0; }
.mini-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.4em; margin: 18px 0 0; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.stat-box.danger { border-color: var(--danger); }
.wrap-text { overflow-wrap: anywhere; white-space: pre-wrap; max-width: 46ch; }
.table tr.done td { opacity: .6; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } }
