/* ============================================================
   ShinrAI product pages — shared components
   Used by /shinrai/, /shinrai/benchmarks/, /shinrai/platform/,
   /shinrai/connector/. Loaded AFTER ../styles.css.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
    --sh-ink: #0a0f2e;
    --sh-deep: linear-gradient(135deg, #0a0f2e 0%, #1a1060 40%, #0d1a40 100%);
    --sh-glow: rgba(93, 95, 239, 0.25);
    --sh-indigo: #a5b4fc;

    /* entity palette — light surfaces */
    --ent-person-bg: #dbeafe; --ent-person-bd: #3b82f6; --ent-person-tx: #1d4ed8;
    --ent-city-bg:   #d1fae5; --ent-city-bd:   #10b981; --ent-city-tx:   #047857;
    --ent-street-bg: #fef3c7; --ent-street-bd: #f59e0b; --ent-street-tx: #b45309;
    --ent-org-bg:    #ede9fe; --ent-org-bd:    #a855f7; --ent-org-tx:    #7e22ce;
    --ent-med-bg:    #ffe4e6; --ent-med-bd:    #f43f5e; --ent-med-tx:    #be123c;
    --ent-contact-bg:#cffafe; --ent-contact-bd:#06b6d4; --ent-contact-tx:#0e7490;
    --ent-fin-bg:    #ecfccb; --ent-fin-bd:    #84cc16; --ent-fin-tx:    #4d7c0f;
    --ent-date-bg:   #e0e7ff; --ent-date-bd:   #6366f1; --ent-date-tx:   #4338ca;
    --ent-static-bg: #f1f5f9; --ent-static-bd: #94a3b8; --ent-static-tx: #475569;
}

/* On ShinrAI pages the big site header scrolls away; only the slim
   sub-nav sticks. (styles.css makes .site-header sticky globally.) */
.site-header { position: static; }

/* ---------- language switcher (flag + 2-letter code) ---------- */
/* Pinned to the sub-nav's right edge, OUTSIDE the scrolling inner div, so the
   dropdown is never clipped and the button never scrolls away. */
.sh-lang {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    z-index: 5;
    padding: 0 1rem 0 1.6rem;
    background: linear-gradient(90deg, rgba(10, 15, 46, 0) 0%, rgba(10, 15, 46, 0.96) 1.4rem);
}
.sh-lang-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: #1b2350; border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff; border-radius: 999px; padding: 0.28rem 0.7rem;
    font-family: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
    letter-spacing: 0.04em;
}
.sh-lang-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.sh-lang-caret { font-size: 0.6rem; opacity: 0.7; }
.sh-lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 950;
    background: #0f172a; border: 1px solid rgba(93, 95, 239, 0.4);
    border-radius: 0.8rem; padding: 0.35rem; min-width: 170px;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.5);
    display: none; flex-direction: column;
}
.sh-lang.open .sh-lang-menu { display: flex; }
.sh-lang-option {
    display: flex; align-items: center; gap: 0.55rem;
    background: transparent; border: none; color: rgba(255, 255, 255, 0.85);
    font-family: inherit; font-size: 0.8rem; text-align: left;
    padding: 0.45rem 0.65rem; border-radius: 0.55rem; cursor: pointer;
}
.sh-lang-option:hover { background: rgba(93, 95, 239, 0.25); color: #fff; }
.sh-lang-option.active { background: rgba(93, 95, 239, 0.35); color: #fff; }
.sh-lang-option b { font-weight: 700; letter-spacing: 0.04em; }
.sh-lang-option i { font-style: normal; color: rgba(255, 255, 255, 0.55); font-size: 0.74rem; margin-left: auto; }

/* ---------- sub navigation across ShinrAI pages ---------- */
.sh-subnav {
    position: sticky;
    top: 0; /* .site-header is static on ShinrAI pages — the sub-nav sticks alone at the viewport top */
    z-index: 900;
    background: rgba(10, 15, 46, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(93, 95, 239, 0.35);
}
.sh-subnav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 6rem 0 1.5rem; /* right space for the pinned language switcher */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.sh-subnav-inner::-webkit-scrollbar { display: none; }
.sh-subnav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem 0.65rem 0;
    margin-right: 0.5rem;
    white-space: nowrap;
}
.sh-subnav-brand img { height: 22px; width: 22px; }
.sh-subnav a.sh-subnav-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.7rem 0.85rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease;
}
.sh-subnav a.sh-subnav-link:hover { color: #fff; }
.sh-subnav a.sh-subnav-link.active {
    color: #fff;
    border-bottom-color: var(--sh-indigo);
}
.sh-subnav .sh-subnav-cta {
    margin-left: auto;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- hero ---------- */
.sh-hero {
    background: var(--sh-deep);
    padding: 5.5rem 1.5rem 4.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--sh-glow) 0%, transparent 70%);
    pointer-events: none;
}
.sh-hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.sh-hero-logo { width: 88px; height: 88px; margin: 0 auto 1.25rem; filter: drop-shadow(0 8px 24px rgba(93,95,239,0.45)); }
.sh-kanji { font-size: 2.6rem; opacity: 0.18; letter-spacing: 0.4em; margin-bottom: 0.5rem; font-weight: 700; }
.sh-badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(93, 95, 239, 0.3); border: 1px solid rgba(93, 95, 239, 0.5);
    color: var(--sh-indigo); padding: 0.35rem 1rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 1.4rem;
}
.sh-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sh-hero-sub {
    font-size: 1.15rem; line-height: 1.65; color: rgba(255, 255, 255, 0.75);
    max-width: 720px; margin: 0 auto 2.25rem;
}
.sh-hero-sub strong { color: rgba(255, 255, 255, 0.94); }
.sh-props { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-bottom: 2.5rem; }
.sh-prop {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.87); padding: 0.45rem 1rem; border-radius: 999px;
    font-size: 0.875rem; font-weight: 500;
}
.sh-prop svg { width: 14px; height: 14px; stroke: var(--sh-indigo); }
.sh-hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- layered "start at any level" explainer ---------- */
.sh-levels { max-width: 980px; margin: 0 auto; display: grid; gap: 1rem; }
.sh-level {
    display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; align-items: start;
    background: var(--background); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.5rem 1.75rem;
}
.sh-level-num {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 800; color: #fff;
    background: var(--gradient-primary);
}
.sh-level h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.sh-level p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; margin: 0; }
.sh-level p strong { color: var(--text); }
@media (max-width: 560px) { .sh-level { grid-template-columns: 1fr; } }

/* ---------- entity chips ---------- */
.ent {
    display: inline;
    padding: 0.08em 0.35em;
    border-radius: 0.35em;
    border: 1px solid;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
}
.ent sup {
    font-size: 0.58em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-left: 0.35em;
    vertical-align: super;
    opacity: 0.85;
}
.ent-person { background: var(--ent-person-bg); border-color: var(--ent-person-bd); color: var(--ent-person-tx); }
.ent-city   { background: var(--ent-city-bg);   border-color: var(--ent-city-bd);   color: var(--ent-city-tx); }
.ent-street { background: var(--ent-street-bg); border-color: var(--ent-street-bd); color: var(--ent-street-tx); }
.ent-org    { background: var(--ent-org-bg);    border-color: var(--ent-org-bd);    color: var(--ent-org-tx); }
.ent-med    { background: var(--ent-med-bg);    border-color: var(--ent-med-bd);    color: var(--ent-med-tx); }
.ent-contact{ background: var(--ent-contact-bg);border-color: var(--ent-contact-bd);color: var(--ent-contact-tx); }
.ent-fin    { background: var(--ent-fin-bg);    border-color: var(--ent-fin-bd);    color: var(--ent-fin-tx); }
.ent-date   { background: var(--ent-date-bg);   border-color: var(--ent-date-bd);   color: var(--ent-date-tx); }
.ent-static { background: var(--ent-static-bg); border-color: var(--ent-static-bd); color: var(--ent-static-tx); border-style: dashed; }

/* entity tooltip — dark panel, like the internal demo UI */
.ent .sh-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.35);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.55;
    white-space: normal;
    display: none;
    z-index: 50;
    pointer-events: none;
    text-align: left;
}
.ent:hover .sh-tip { display: block; }
.ent .sh-tip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0f172a;
}
.sh-tip-line { display: block; }
.sh-tip-line b { color: #fff; font-weight: 700; }
.sh-tip-alts { color: #a5b4fc; margin-top: 0.25rem; }

/* legend chips (clickable look) */
.sh-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sh-legend-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 600;
    background: var(--background);
}
.sh-legend-chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- live demo window ---------- */
.sh-demo-wrap { max-width: 1080px; margin: 0 auto; }
.sh-demo {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.sh-demo-titlebar {
    display: flex; align-items: center; gap: 0.5rem;
    background: #f1f5f9; border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
}
.sh-demo-dots { display: flex; gap: 0.35rem; }
.sh-demo-dots span { width: 11px; height: 11px; border-radius: 50%; }
.sh-demo-dots span:nth-child(1) { background: #f87171; }
.sh-demo-dots span:nth-child(2) { background: #fbbf24; }
.sh-demo-dots span:nth-child(3) { background: #34d399; }
.sh-demo-title { font-size: 0.8rem; color: var(--text-light); font-weight: 600; margin: 0 auto; display: flex; align-items: center; gap: 0.45rem; }
.sh-demo-sim-badge {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(31, 94, 255, 0.1); color: var(--primary);
    border: 1px solid rgba(31, 94, 255, 0.25); border-radius: 999px; padding: 0.12rem 0.55rem;
}
.sh-demo-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
@media (max-width: 860px) { .sh-demo-body { grid-template-columns: 1fr; } }
.sh-demo-pane { padding: 1.4rem 1.5rem; }
.sh-demo-pane + .sh-demo-pane { border-left: 1px solid var(--border); }
@media (max-width: 860px) { .sh-demo-pane + .sh-demo-pane { border-left: none; border-top: 1px solid var(--border); } }
.sh-demo-pane-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-light); margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.5rem;
}
.sh-demo-pane-label .stage-pill {
    font-size: 0.68rem; border-radius: 999px; padding: 0.1rem 0.55rem;
    background: var(--background-alt); border: 1px solid var(--border);
    text-transform: none; letter-spacing: 0; font-weight: 600;
}
.sh-demo-text {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.86rem; line-height: 1.9; color: var(--text);
    white-space: pre-wrap; word-break: break-word;
}
.sh-demo-caret {
    display: inline-block; width: 2px; height: 1.1em; background: var(--primary);
    vertical-align: text-bottom; animation: sh-caret 0.85s steps(1) infinite;
}
@keyframes sh-caret { 50% { opacity: 0; } }

.sh-demo-statusbar {
    border-top: 1px solid var(--border);
    background: #f8fafc;
    padding: 0.6rem 1rem;
    display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
}
.sh-demo-stat {
    font-size: 0.72rem; color: var(--text-light);
    background: var(--background); border: 1px solid var(--border);
    border-radius: 999px; padding: 0.18rem 0.6rem;
}
.sh-demo-stat b { color: var(--text); font-weight: 700; }
.sh-demo-stat.hl b { color: var(--primary); }

.sh-demo-controls {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    margin-bottom: 1rem; justify-content: center;
}
.sh-scene-btn {
    border: 1px solid var(--border); background: var(--background);
    color: var(--text-light); font-family: inherit; font-size: 0.82rem; font-weight: 600;
    border-radius: 999px; padding: 0.4rem 0.95rem; cursor: pointer;
    transition: all 0.15s ease;
}
.sh-scene-btn:hover { border-color: var(--primary); color: var(--primary); }
.sh-scene-btn.active { background: var(--gradient-primary); border-color: transparent; color: #fff; }
.sh-mode-toggle {
    display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
    margin-left: 0.5rem;
}
.sh-mode-toggle button {
    border: none; background: var(--background); color: var(--text-light);
    font-family: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.9rem; cursor: pointer;
}
.sh-mode-toggle button.active { background: var(--secondary); color: #fff; }

/* pipeline stage indicator inside demo */
.sh-demo-stages { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sh-stage {
    flex: 1; min-width: 110px; text-align: center;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    color: var(--text-light); background: var(--background-alt);
    border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.45rem 0.5rem;
    transition: all 0.25s ease; text-transform: uppercase;
}
.sh-stage.active {
    background: rgba(31, 94, 255, 0.1); border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.08);
}
.sh-stage.done { color: #16a34a; border-color: #86efac; background: #f0fdf4; }

/* ---------- flow diagram ---------- */
.sh-flow { max-width: 980px; margin: 2.5rem auto 0; }
.sh-flow svg { width: 100%; height: auto; display: block; }

/* ---------- stats band ---------- */
.sh-band {
    background: var(--sh-deep);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.sh-band::before {
    content: ''; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(93, 95, 239, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.sh-band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; position: relative; }
.sh-band-stat { text-align: center; }
.sh-band-value { font-size: 2.1rem; font-weight: 800; line-height: 1; margin-bottom: 0.4rem; color: #fff; }
.sh-band-value .unit { font-size: 1.1rem; font-weight: 700; color: var(--sh-indigo); }
.sh-band-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); line-height: 1.45; }

/* ---------- icon feature grid ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; max-width: var(--max-width); margin: 0 auto; }
.sh-card {
    background: var(--background); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.7rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sh-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(93, 95, 239, 0.12); color: var(--primary); margin-bottom: 0.9rem;
}
.sh-card-icon svg { width: 20px; height: 20px; }
.sh-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.4rem; }
.sh-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.sh-card .sh-card-foot { margin-top: 0.8rem; font-size: 0.78rem; color: var(--primary); font-weight: 600; }

/* ---------- masking vs replacement ---------- */
.sh-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 1080px; margin: 2rem auto 0; }
@media (max-width: 860px) { .sh-vs { grid-template-columns: 1fr; } }
.sh-vs-col { border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; background: var(--background); }
.sh-vs-col.win { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.1); }
.sh-vs-head { padding: 1rem 1.4rem; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.sh-vs-col.win .sh-vs-head { background: rgba(31, 94, 255, 0.06); color: var(--primary); }
.sh-vs-col.lose .sh-vs-head { background: var(--background-alt); color: var(--text-light); }
.sh-vs-body { padding: 1.3rem 1.4rem; }
.sh-vs-sample {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.82rem; line-height: 1.85; color: var(--text);
    background: var(--background-alt); border: 1px solid var(--border);
    border-radius: 0.6rem; padding: 0.9rem 1rem; margin-bottom: 1rem;
    white-space: pre-wrap;
}
.sh-vs-points { display: grid; gap: 0.5rem; }
.sh-vs-points li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.sh-vs-points li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.15rem; }
.sh-vs-points li.good svg { stroke: #16a34a; }
.sh-vs-points li.bad svg { stroke: #dc2626; }

/* ---------- benchmark bars ---------- */
.sh-bench { max-width: 980px; margin: 0 auto; }
.sh-bench-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.sh-bench-row { margin-bottom: 1.1rem; }
.sh-bench-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; margin-bottom: 0.35rem; }
.sh-bench-label .name { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.sh-bench-label .name .tag {
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    border-radius: 999px; padding: 0.08rem 0.5rem;
    background: rgba(31, 94, 255, 0.1); color: var(--primary);
}
.sh-bench-label .val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sh-bench-track { height: 14px; border-radius: 999px; background: var(--background-alt); border: 1px solid var(--border); overflow: hidden; }
.sh-bench-fill {
    height: 100%; border-radius: 999px; width: 0;
    background: var(--gradient-primary);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.sh-bench-fill.baseline { background: #cbd5e1; }
.sh-bench-fill.ours { background: var(--gradient-primary); }
.sh-bench-fill.target {
    background: repeating-linear-gradient(45deg,
        rgba(31, 94, 255, 0.45) 0 8px, rgba(93, 95, 239, 0.18) 8px 16px);
    outline: 1.5px dashed var(--primary);
    outline-offset: -1.5px;
}
.sh-bench-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 1.25rem; line-height: 1.55; }

/* ---------- spec / requirement tables ---------- */
.sh-table-wrap { overflow-x: auto; max-width: 1080px; margin: 2rem auto 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.sh-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--background); }
table.sh-table th, table.sh-table td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.sh-table th {
    background: var(--background-alt); font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--text-light); font-weight: 700; white-space: nowrap;
}
table.sh-table tr:last-child td { border-bottom: none; }
table.sh-table td b { font-weight: 700; }
table.sh-table td .ok { color: #16a34a; font-weight: 700; }
table.sh-table .mono { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 0.82rem; white-space: nowrap; }

/* ---------- CTA band ---------- */
.sh-cta-band {
    background: var(--sh-deep); color: #fff; text-align: center;
    padding: 4rem 1.5rem; position: relative; overflow: hidden;
}
.sh-cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(93, 95, 239, 0.3) 0%, transparent 70%);
    pointer-events: none;
}
.sh-cta-band .inner { position: relative; max-width: 680px; margin: 0 auto; }
.sh-cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.9rem; }
.sh-cta-band p { color: rgba(255, 255, 255, 0.75); line-height: 1.7; margin-bottom: 2rem; }

/* ---------- misc ---------- */
.sh-footnote { font-size: 0.78rem; color: var(--text-light); line-height: 1.6; max-width: 860px; margin: 1.5rem auto 0; }
.sh-center { text-align: center; }
.sh-eyebrow-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d; padding: 0.22rem 0.7rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.sh-eyebrow-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: sh-pulse 2s ease-in-out infinite; }
@keyframes sh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.sh-dl-btn svg { width: 16px; height: 16px; }

/* reveal on scroll */
.sh-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.sh-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .sh-reveal { opacity: 1; transform: none; transition: none; }
    .sh-bench-fill { transition: none; }
}
