/* Cipi — home page */

.home main { overflow-x: clip; }
.h-section { padding: 112px 0; border-top: 1px solid var(--rule); }
.h-section:first-child { border-top: 0; }
.h-head { max-width: 720px; margin-bottom: 48px; }
.h-head h2 {
    margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08;
    font-weight: 800; letter-spacing: -.03em;
}
.h-head p { margin: 0; font-size: 19px; color: var(--muted); max-width: 60ch; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 1px; }
.link-arrow:hover { border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; }
.hero::before {
    /* the cell grid: one square per app, as in the mark */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%);
    opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 28px; }
.release-note {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
    padding: 6px 12px 6px 6px; border: 1px solid var(--rule-2); border-radius: 999px;
    background: var(--card); font-size: 14px; color: var(--ink-2); text-decoration: none;
}
.release-note { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-note b { padding: 3px 9px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-ink); font-size: 12.5px; font-weight: 700; }
.release-note:hover { border-color: var(--ink-2); }
.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: .98;
    font-weight: 800; letter-spacing: -.045em;
    max-width: 12ch;
}
.hero-lead { margin: 0 0 32px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero .cmd { max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 15px; height: 15px; color: var(--lime-ink); }

.hero-stage { position: relative; }
.hero-stage .term { --term-min: 300px; --term-max: 300px; margin: -36px 0 0 -32px; position: relative; z-index: 2; }

/* Server diagram */
.srv {
    position: relative; z-index: 1;
    background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--r-lg);
    padding: 18px 18px 52px;
    box-shadow: 0 30px 60px -40px rgba(20, 32, 26, .4);
}
.srv-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.srv-head b { font-size: 16px; }
.srv-head span { font: 500 12.5px/1 var(--f-mono); color: var(--muted); }
.srv-head .srv-os { margin-left: auto; }
.srv-stack { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-bottom: 14px; }
.srv-stack span {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
    border: 1px solid var(--rule-2); border-radius: 6px; font: 500 12px/1 var(--f-mono); color: var(--ink-2);
    background: var(--paper);
    opacity: .28; transition: opacity .3s, border-color .3s, background-color .3s;
}
.srv-stack span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-2); transition: background-color .3s; }
.srv-stack span.on { opacity: 1; border-color: color-mix(in srgb, var(--lime) 55%, var(--rule-2)); }
.srv-stack span.on::before { background: var(--lime); }
.srv-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cell {
    position: relative; min-height: 148px; padding: 12px;
    border: 1.5px dashed var(--rule-2); border-radius: 10px;
    font-size: 13px; color: var(--muted);
    transition: border-color .35s, background-color .35s;
}
.cell-empty { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1 var(--f-mono); color: var(--rule-2); }
.cell-body { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.cell.on { border-style: solid; border-color: var(--ink); background: var(--paper); }
.cell.on .cell-empty { opacity: 0; }
.cell.on .cell-body { opacity: 1; transform: none; }
.cell-name { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cell-state { margin-left: auto; font: 600 11px/1 var(--f-mono); padding: 4px 6px; border-radius: 4px; background: var(--paper-2); color: var(--muted); }
.cell[data-state="live"] .cell-state { background: var(--lime-soft); color: var(--lime-ink); }
.cell[data-state="deploying"] .cell-state { background: #FDF0DC; color: var(--amber); }
[data-theme="dark"] .cell[data-state="deploying"] .cell-state { background: rgba(240, 179, 90, .15); }
.cell-domain { font: 500 12px/1.4 var(--f-mono); color: var(--muted); margin-bottom: 10px; word-break: break-all; }
.cell-domain .https { color: var(--lime-ink); display: none; }
.cell.secure .cell-domain .https { display: inline; }
.cell-facts { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.cell-facts li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--rule); }
.cell-facts li span:first-child { color: var(--muted); }
.cell-progress { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; opacity: 0; }
.cell-progress i { display: block; height: 100%; width: 0; background: var(--lime); }
.cell[data-state="deploying"] .cell-progress { opacity: 1; }
.cell[data-state="deploying"] .cell-progress i { width: 100%; transition: width 2.4s linear; }
.srv-foot { position: absolute; left: 18px; bottom: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Price strip ---------- */
.price-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.price-strip > div { padding: 22px 24px; border-left: 1px solid var(--rule); }
.price-strip > div:first-child { border-left: 0; }
.price-strip p { margin: 0; color: var(--muted); font-size: 15px; }
.price-strip h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.price-strip strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.price-strip .is-cipi { background: var(--ink); color: var(--paper); }
.price-strip .is-cipi h3, .price-strip .is-cipi p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.price-strip .is-cipi strong { color: var(--lime); }
.price-intro strong { font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }

/* ---------- Quickstart ---------- */
.qs { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.qs-steps { list-style: none; margin: 0; padding: 0; counter-reset: qs; border-left: 2px solid var(--rule); }
.qs-step { counter-increment: qs; }
.qs-step button {
    display: grid; grid-template-columns: 38px 1fr; gap: 0 12px; width: 100%; text-align: left;
    padding: 14px 16px 14px 18px; margin-left: -2px; border: 0; border-left: 2px solid transparent;
    background: none; cursor: pointer;
}
.qs-step button::before {
    content: counter(qs); grid-row: span 2;
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    border: 1.5px solid var(--rule-2); font: 700 13px/1 var(--f-mono); color: var(--muted);
}
.qs-step b { font-size: 17px; font-weight: 700; }
.qs-step small { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.qs-step code { font-size: .9em; }
.qs-step button[aria-selected="true"] { border-left-color: var(--lime); background: linear-gradient(90deg, var(--lime-soft), transparent); }
.qs-step button[aria-selected="true"]::before { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.qs-step button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.qs-where { display: inline-block; margin-left: 6px; font: 600 11px/1 var(--f-mono); padding: 3px 6px; border-radius: 4px; background: var(--paper-2); color: var(--muted); vertical-align: 2px; }
.qs-term .term { --term-min: 440px; --term-max: 440px; }
.qs-after { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cap { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); }
.cap:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.cap h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.cap h3 svg { width: 22px; height: 22px; color: var(--lime-ink); }
.cap > p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.cap ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 15px; }
.cap li { padding: 6px 0; border-top: 1px dashed var(--rule); }
.cap li code { font-size: 13px; color: var(--ink-2); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.cap a.more { font-size: 14.5px; font-weight: 600; color: var(--lime-ink); text-decoration: none; }
.cap a.more:hover { text-decoration: underline; }

/* ---------- Panel ---------- */
.panel-sec .h-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; max-width: none; }
.panel-sec .h-head > div { max-width: 680px; }
.panel-sec .cmd { min-width: 340px; }

/* ---------- Compare ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp thead th { font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--rule-2); }
.cmp thead th small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .c-cipi { background: color-mix(in srgb, var(--lime-soft) 55%, transparent); }
.cmp thead .c-cipi { background: var(--ink); color: var(--paper); }
.cmp thead .c-cipi small { color: var(--lime); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 7px; }
.yes::before, .no::before, .part::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; }
.yes::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2314200A' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.no::before { border: 1.5px solid var(--rule-2); background: linear-gradient(45deg, transparent 46%, var(--rule-2) 46% 54%, transparent 54%); }
.part::before { border: 1.5px solid var(--lime-ink); background: linear-gradient(90deg, var(--lime) 50%, transparent 50%); }
.cmp-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.cmp-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }

/* ---------- Ownership ---------- */
.own { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule-2); border-radius: var(--r-lg); overflow: hidden; }
.own div { padding: 24px; border-left: 1px solid var(--rule); background: var(--card); }
.own div:first-child { border-left: 0; }
.own h3 { margin: 0 0 6px; font-size: 17px; }
.own p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
    display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer;
    font-size: 18px; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Final CTA ---------- */
.final { background: var(--ink); color: var(--paper); border-top: 0; }
.final .h-head p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.final .cmd { max-width: 640px; }
.final .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.final .btn-ghost:hover { border-color: var(--paper); }
.final-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }

@media (max-width: 1060px) {
    .hero-grid, .qs { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { max-width: 14ch; }
    .hero-stage .term { margin: -28px 0 0 0; }
    .caps { grid-template-columns: 1fr 1fr; }
    .cap:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
    .cap:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--rule); }
    .price-strip { grid-template-columns: 1fr 1fr; }
    .price-strip > div:nth-child(3) { border-left: 0; }
    .price-strip > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .own { grid-template-columns: 1fr 1fr; }
    .own div:nth-child(3) { border-left: 0; }
    .own div:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .panel-sec .h-head, .final-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .h-section { padding: 72px 0; }
    .hero { padding-top: 40px; }
    .hero-lead { font-size: 18px; }
    .srv-cells { grid-template-columns: 1fr 1fr; }
    .srv-cells .cell:nth-child(3) { display: none; }
    .srv-head .srv-os { display: none; }
    .srv { padding-bottom: 18px; }
    .srv-foot { position: static; margin-top: 12px; }
    .qs-term .term { --term-min: 400px; --term-max: 400px; }
    .hero-stage .term { --term-min: 260px; --term-max: 260px; }
    .caps { grid-template-columns: 1fr; }
    .cap:nth-child(2n) { padding-left: 0; border-left: 0; }
    .price-strip, .own { grid-template-columns: 1fr; }
    .price-strip > div, .own div { border-left: 0 !important; border-top: 1px solid var(--rule); }
    .price-strip > div:first-child, .own div:first-child { border-top: 0; }
    .panel-sec .cmd { min-width: 0; }
    .cmd { font-size: 13px; }
}

/* comparisons link under the price strip */
.price-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.price-more .link-arrow { font-weight: 600; color: var(--ink); }
/* FAQ full width, two columns on large screens */
.faq--wide { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
.faq--wide details { border-top: 1px solid var(--rule); border-bottom: 0; }
.faq--wide details:nth-child(-n+2) { border-top-color: var(--ink); }
.faq--wide details p { max-width: none; }
@media (max-width: 900px) { .faq--wide { grid-template-columns: minmax(0, 1fr); } .faq--wide details:nth-child(2) { border-top-color: var(--rule); } }
.release-note[href*="t.me"] b { background: color-mix(in srgb, #2AABEE 18%, transparent); color: #1678ad; }
[data-theme="dark"] .release-note[href*="t.me"] b { color: #7cc9f0; }

/* cipi.yml section */
.yml-sec { background: color-mix(in srgb, var(--lime) 6%, var(--paper)); }
.yml-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.yml-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-ink); font-size: 13px; font-weight: 700; }
.yml-copy h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.yml-copy p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.yml-points { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.yml-points li { padding-left: 22px; position: relative; color: var(--ink-2); line-height: 1.5; }
.yml-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); }
.yml-points b { color: var(--ink); }
.yml-links { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.yml-demo { display: grid; gap: 14px; min-width: 0; }
.yml-file { border-radius: 12px; overflow: hidden; background: var(--term, #0D1310); border: 1px solid #1f2a24; }
.yml-file-h { display: flex; gap: 12px; align-items: center; padding: 9px 12px; color: #9fb0a6; font: 500 12.5px var(--f-mono); background: #141b17; }
.yml-file pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #dfe7e2; font: 13.5px/1.6 var(--f-mono); }
.yml-file .k { color: #a5d86e; }
.yml-file .s { color: #f0c987; }
@media (max-width: 960px) { .yml-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Compact features + seals ---------- */
.feats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.feat { padding: 22px 18px 24px 0; }
.feat + .feat { padding-left: 18px; border-left: 1px solid var(--rule); }
.feat h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.feat h3 a { color: var(--ink); text-decoration: none; }
.feat h3 a::after { content: " →"; color: var(--lime-ink); opacity: 0; transition: opacity .15s; }
.feat h3 a:hover::after { opacity: 1; }
.feat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.feat li { padding-left: 14px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 2px; background: var(--lime); }
.feat code { font-size: 12.5px; }
.seals { list-style: none; margin: 48px 0 0; padding: 26px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.seal { display: flex; align-items: center; gap: 12px; }
.seal svg { width: 58px; height: 58px; flex: none; }
.seal .seal-edge { fill: var(--ink); }
.seal .seal-core { fill: none; stroke: var(--lime); stroke-width: 1.6; }
.seal .seal-ic { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal .seal-dot { fill: var(--lime); }
.seal span { display: flex; flex-direction: column; line-height: 1.15; }
.seal b { font-size: 15.5px; letter-spacing: -.01em; }
.seal em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--lime-ink); text-transform: lowercase; }
.seal small { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.seals-note { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); max-width: 80ch; }
@media (max-width: 1180px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feat:nth-child(4) { padding-left: 0; border-left: 0; } .feat:nth-child(n+4) { border-top: 1px solid var(--rule); } .seals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 10px; } .feat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); } .feat:nth-child(n+3) { border-top: 1px solid var(--rule); } .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hero browser: the site goes online */
.bz { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(20, 32, 26, .45); }
.bz-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: var(--paper-2); }
.bz-tab { display: none; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px 8px 0 0; font: 500 12px/1 var(--f-mono); color: var(--muted); background: transparent; }
.bz-tab.is-on { display: inline-flex; animation: bzIn .35s ease both; }
.bz-tab:first-child { background: var(--card); color: var(--ink); }
.bz-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); transition: background-color .3s; }
.bz-tab.is-live i { background: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 25%, transparent); }
.bz-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.bz-lock { width: 15px; height: 15px; color: var(--muted); flex: none; }
.bz-lock svg { width: 100%; height: 100%; }
.bz.is-https .bz-lock { color: var(--lime-ink); }
.bz-url { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 7px; background: var(--paper-2); font: 500 13px/1 var(--f-mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-scheme { color: var(--muted); }
.bz.is-https .bz-scheme { font-size: 0; }
.bz.is-https .bz-scheme::before { content: "https://"; font-size: 13px; color: var(--lime-ink); }
.bz-badge { flex: none; font: 600 11px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); }
.bz-badge:empty { display: none; }
.bz-badge.is-ok { background: var(--lime-soft); color: var(--lime-ink); }
.bz-badge.is-busy { background: #FDF0DC; color: var(--amber); }
[data-theme="dark"] .bz-badge.is-busy { background: rgba(240, 179, 90, .15); }
.bz-load { height: 2px; background: transparent; }
.bz-load i { display: block; height: 100%; width: 0; background: var(--lime); }
.bz-load.run i { animation: bzLoad var(--ms, 2000ms) linear forwards; }
@keyframes bzLoad { from { width: 0; } to { width: 100%; } }
.bz-view { position: relative; height: 252px; overflow: hidden; }
.bz-state { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: var(--muted); }
.bz-state b { font-size: 17px; color: var(--ink); }
.bz-state span { font-size: 13.5px; }
.bz-state code { margin-top: 6px; font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.bz-view[data-view="down"] .bz-down, .bz-view[data-view="ready"] .bz-ready, .bz-view[data-view="skel"] .bz-skel { display: flex; animation: bzIn .35s ease both; }
.bz-ready b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--lime); vertical-align: middle; }
.bz-skel { align-items: stretch !important; justify-content: flex-start !important; gap: 10px !important; padding: 18px 20px !important; }
.bz-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--rule), var(--paper-2)); background-size: 200% 100%; animation: bzShim 1.2s linear infinite; }
.bz-skel i:nth-child(1) { width: 40%; height: 18px; } .bz-skel i:nth-child(2) { width: 85%; height: 70px; } .bz-skel i:nth-child(3) { width: 65%; }
.bz-skel span { margin-top: auto; font: 500 12px/1.4 var(--f-mono); text-align: left; }
@keyframes bzShim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.bz-site { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--paper); }
.bz-view[data-view="site"] .bz-site { display: flex; animation: bzIn .5s ease both; }
.bz-promo { display: none; padding: 6px 12px; font-size: 12px; font-weight: 600; text-align: center; background: var(--ink); color: var(--paper); }
.bz.is-r2 .bz-promo { display: block; animation: bzDrop .45s ease both; }
.bz-nav { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.bz-nav b { font-size: 14px; color: var(--ink); margin-right: 6px; }
.bz-nav em { margin-left: auto; font-style: normal; color: var(--ink); font-weight: 600; }
.bz-hero { padding: 14px 16px 10px; }
.bz-hero b { display: block; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.bz-hero span { font-size: 12.5px; color: var(--muted); }
.bz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 16px; }
.bz-grid div { font-size: 12px; }
.bz-grid i { display: block; height: 62px; margin-bottom: 6px; border-radius: 8px; background: hsl(var(--h) 38% 72%); }
[data-theme="dark"] .bz-grid i { background: hsl(var(--h) 25% 32%); }
.bz-grid b { display: block; color: var(--ink); }
.bz-grid span { color: var(--muted); }
.bz-toast { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.bz-toast b { font: 600 12px/1.2 var(--f-mono); }
.bz-toast span { opacity: .75; }
.bz.is-toast .bz-toast { opacity: 1; transform: none; }
.bz-foot { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--rule); background: var(--paper-2); font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.bz-srv b { color: var(--ink); }
.bz-stack { display: flex; gap: 6px; overflow: hidden; }
.bz-stack span { opacity: .35; transition: opacity .3s; white-space: nowrap; }
.bz-stack span.on { opacity: 1; color: var(--lime-ink); }
.bz-meter { margin-left: auto; white-space: nowrap; opacity: 0; transition: opacity .3s; color: var(--lime-ink); }
.bz.is-meter .bz-meter { opacity: 1; }
@keyframes bzIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes bzDrop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
    .bz-view { height: 230px; }
    .bz-stack, .bz-srv { display: none; }
    .bz-meter { margin-left: 0; }
    .bz-nav span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bz *, .bz { animation: none !important; transition: none !important; } }
.bz { padding-bottom: 34px; }
.bz-ready .bz-stack { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.bz-ready .bz-stack span { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--rule-2); font: 500 11.5px/1 var(--f-mono); opacity: 1; color: var(--ink-2); }
.bz-view { height: 236px; }
.bz-grid i { height: 52px; }
@media (max-width: 680px) { .bz-badge { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bz-url { font-size: 12px; } }
/* Seals: 3 × 2, compact, one line each */
.seals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seal { gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.seal svg { width: 44px; height: 44px; }
.seal span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; line-height: 1.2; min-width: 0; }
.seal b { font-size: 15px; }
.seal em { font-size: 12px; }
.seal small { grid-column: 1 / -1; margin-top: 3px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) { .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .seals { grid-template-columns: minmax(0, 1fr); } .seal small { white-space: normal; } }

/* built for */
.for-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.for-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--card); }
.for-card h3 { margin: 0; font-size: 20px; }
.for-why { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.for-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; flex: 1; align-content: start; }
.for-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.for-card li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.for-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--lime); }
.for-card code { font-size: .92em; }
.for-link { font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.for-link:hover { text-decoration-color: var(--ink); }
@media (max-width: 1180px) { .for-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .for-grid { grid-template-columns: 1fr; } }
