/* ============================================================
   SyncPilot site.css — per-site sections only.
   Shared frame (nav, hero, cards, footer, tokens) lives in
   family.css from site-kit; do not duplicate it here.
   ============================================================ */

/* ---------- Hero trust row (formats · arch · licence) ---------- */
.kit-hero .kit-hero-trust {
    margin-top: 12px;
}
.kit-hero .kit-hero-trust b {
    color: var(--kit-text-2);
    font-weight: 600;
}

/* ---------- Shell boundary schematic (hero) ----------
   An annotated diagram of the shell boundary from design/DESIGN.md —
   clearly not a screenshot. Colors are the product contract tokens
   (accent #1565d8 from the app icon; chrome vs official-content areas). */
.hero-visual {
    max-width: 940px;
    margin: 64px auto 0;
}
.shell-demo {
    --sp-ok: #1f8a4d; --sp-busy: #1565d8; --sp-warn: #96660d; --sp-err: #c63939;
    --sp-off: rgba(27, 31, 36, 0.32);
    --sp-chrome: #f3f4f6; --sp-surface: #ffffff; --sp-raised: #eceff2; --sp-line: #e1e4e8;
    --sp-ink: #1b1f24; --sp-mute: #6b7480; --sp-ok-soft: #e3f2e9;
    border: 1px solid rgba(27, 31, 36, 0.2);
    border-radius: var(--kit-radius-l);
    overflow: hidden;
    background: var(--sp-chrome);
    box-shadow: 0 30px 70px rgba(31, 29, 26, 0.13), 0 8px 20px rgba(31, 29, 26, 0.06);
}
html[data-theme="dark"] .shell-demo {
    --sp-ok: #55c47f; --sp-busy: #6aa5ff; --sp-warn: #d9a94e; --sp-err: #ef8073;
    --sp-off: rgba(230, 233, 238, 0.32);
    --sp-chrome: #15181c; --sp-surface: #1e2126; --sp-raised: #262a30; --sp-line: #30353c;
    --sp-ink: #e6e9ee; --sp-mute: #8e98a4; --sp-ok-soft: #14301e;
    border-color: rgba(230, 233, 238, 0.16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 0, 0, 0.3);
}
.shell-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: var(--sp-surface);
    border-bottom: 1px solid var(--sp-line);
}
.shell-titlebar .window-controls {
    display: flex;
    gap: 8px;
}
.traffic-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.traffic-light--close { background: #FF5F57; }
.traffic-light--min { background: #FEBC2E; }
.traffic-light--max { background: #28C840; }
.shell-titlebar .shell-demo-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sp-ink);
}
.shell-phase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 99px;
    background: var(--sp-ok-soft);
    color: var(--sp-ok);
}
.shell-phase::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.shell-tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--sp-mute);
    border: 1px dashed var(--sp-line);
    padding: 2px 9px;
    border-radius: 99px;
    white-space: nowrap;
}
.shell-content {
    position: relative;
    padding: 20px;
}
.shell-grid {
    display: flex;
    gap: 16px;
}
.shell-rail {
    width: 150px;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px 12px;
    background: var(--sp-chrome);
    border-right: 1px solid var(--sp-line);
}
.shell-rail i {
    display: block;
    height: 9px;
    border-radius: 4px;
    background: var(--sp-raised);
}
.shell-rows {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 4px 0;
}
.shell-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.shell-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}
.shell-row .dot--ok { background: var(--sp-ok); }
.shell-row .dot--busy { background: var(--sp-busy); }
.shell-row .dot--warn { background: var(--sp-warn); }
.shell-row .dot--err { background: var(--sp-err); }
.shell-row .dot--off { background: var(--sp-off); }
.shell-row em {
    display: block;
    height: 9px;
    border-radius: 4px;
    background: var(--sp-raised);
}
.shell-row .shell-prog {
    flex: 1;
    height: 5px;
    border-radius: 99px;
    background: var(--sp-raised);
    overflow: hidden;
}
.shell-row .shell-prog b {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--sp-busy);
}
/* the annotation chip sits centered over the official-content area */
.shell-tag--official {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: var(--sp-surface);
    border: 1px dashed var(--sp-line);
    font-size: 12px;
    padding: 6px 16px;
    box-shadow: 0 6px 18px rgba(20, 23, 28, 0.14);
}
.shell-statusbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 16px;
    background: var(--sp-surface);
    border-top: 1px solid var(--sp-line);
    font-size: 12px;
    color: var(--sp-mute);
    font-variant-numeric: tabular-nums;
}
.shell-statusbar .shell-speed {
    color: var(--sp-ink);
    font-weight: 600;
}
.shell-caption {
    margin: 14px 6px 0;
    font-size: 13px;
    color: var(--kit-text-3);
    text-align: center;
}
@media (max-width: 640px) {
    .shell-rail { display: none; }
}

/* ---------- Security callout strip ---------- */
.kit-callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--kit-accent-soft);
    border: 1px solid var(--kit-border);
    border-radius: var(--kit-radius-m);
    padding: 22px 26px;
    max-width: 780px;
    margin: 0 auto;
}
.kit-callout svg {
    flex: none;
    width: 24px;
    height: 24px;
    color: var(--kit-accent);
    margin-top: 2px;
}
.kit-callout p {
    margin: 0;
    font-size: 15px;
    color: var(--kit-text-2);
    line-height: 1.65;
    text-align: left;
}
.kit-callout b {
    color: var(--kit-text);
}

/* ---------- Download format card ---------- */
.dl-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 620px;
    margin: 44px auto 0;
}
.dl-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: var(--kit-surface);
    border: 1px solid var(--kit-border);
    border-radius: var(--kit-radius-m);
    padding: 18px 20px;
    box-shadow: var(--kit-shadow);
    color: var(--kit-text);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.dl-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--kit-shadow-lift);
}
.dl-card .dl-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--kit-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kit-accent);
    flex: none;
}
.dl-card .dl-icon svg {
    width: 20px;
    height: 20px;
}
.dl-card-text b {
    display: block;
    font-size: 15px;
}
.dl-card-text span {
    display: block;
    font-size: 12.5px;
    color: var(--kit-text-3);
    margin-top: 2px;
}
.dl-all {
    text-align: center;
    margin-top: 18px;
}
.dl-all a {
    color: var(--kit-accent-strong);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
}
html[data-theme="dark"] .dl-all a { color: var(--kit-accent); }
.dl-all a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Start section extras ---------- */
.start-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.start-links a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--kit-accent-strong);
}
html[data-theme="dark"] .start-links a { color: var(--kit-accent); }
.start-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.start-limits a { color: var(--kit-accent-strong); }
html[data-theme="dark"] .start-limits a { color: var(--kit-accent); }

/* ---------- Footer attribution line (Resilio trademark notice) ---------- */
.kit-footer-legal {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--kit-text-3);
    max-width: 42ch;
}
.kit-footer-legal a {
    color: var(--kit-text-2);
    font-weight: 600;
}

/* ---------- Icon visibility per theme ---------- */
html[data-theme="light"] .kit-icon-moon { display: none; }
html[data-theme="dark"] .kit-icon-sun { display: none; }
