/* ── Product pages (/product/<slug>, views/product-feature.ejs) ──
   The product bundle loads it after home.css and site-layout.css, so the frame and the type tokens are theirs.
   Phones and iPads upright get one column; from 1,024 px the hero and the feature rows sit side by side.
   Reading text stays under about 68 characters a line at every width. */

.st-pf {
    --st-pf-measure: 34em;
    --st-pf-z: 1;
    --st-pf-row-z: 1;
}

.st-pf a:focus-visible,
.st-pf .st-btn:focus-visible {
    outline: 2px solid var(--st-accent);
    outline-offset: 3px;
}

/* ── Hero ── */

.st-pf-hero {
    position: relative;
    padding: 20px 0 var(--st-space-section);
    /* The picture's light spills past the frame; it never makes the page scroll sideways. */
    overflow-x: clip;
}

.st-pf-hero-inner {
    position: relative;
    display: grid;
    gap: 36px;
}

.st-pf-hero-copy {
    min-width: 0;
}

.st-pf-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-family: var(--st-font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--st-ink-muted);
}

.st-pf-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.st-pf-crumbs li + li::before {
    content: "/";
    color: var(--st-ink-faint);
}

.st-pf-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--st-ink-muted);
    text-decoration: underline;
    text-decoration-color: rgba(18, 18, 18, 0.25);
    text-underline-offset: 3px;
}

.st-pf-crumbs a:hover {
    color: var(--st-accent-deep);
    text-decoration-color: currentColor;
}

.st-pf-crumbs [aria-current] {
    color: var(--st-ink);
    font-weight: 600;
}

.st-pf-label {
    margin: 0 0 12px;
}

.st-pf-title {
    max-width: 14em;
}

.st-pf-nowrap {
    white-space: nowrap;
}

.st-pf-lead {
    margin: 16px 0 0;
    max-width: var(--st-pf-measure);
    font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
    line-height: 1.6;
    color: var(--st-ink-muted);
    text-wrap: pretty;
}

.st-pf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.st-pf-hero-media {
    position: relative;
    min-width: 0;
}

/* A soft light behind the hero's picture. */
.st-pf-hero-media::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    z-index: -1;
    background:
        radial-gradient(closest-side at 62% 42%, rgba(124, 58, 237, 0.14), transparent),
        radial-gradient(closest-side at 28% 78%, rgba(245, 166, 35, 0.1), transparent);
    pointer-events: none;
}

/* ── Pictures: home's mock-ups and the small drawn ones, without the old grey frame. zoom scales a mock-up
   drawn for a 150 px card to the room it has here (--st-pf-z in the hero, --st-pf-row-z in the rows). ── */

.st-pf-pic {
    position: relative;
}

.st-pf-pic .st-fx {
    --st-fx-h: 214px;
    margin: 0;
    zoom: var(--st-pf-z);
    box-shadow: 0 18px 40px rgba(18, 18, 18, 0.07);
}

.st-pf-row-media .st-pf-pic .st-fx {
    zoom: var(--st-pf-row-z);
}

.st-pf-pic .st-fx--drawn {
    --st-fx-h: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 214px;
}

.st-pf-pic .st-collab-editor {
    margin: 0;
}

.st-pf-pic .st-gui-card-window {
    margin: 0;
    zoom: calc(var(--st-pf-row-z) * 1.25);
}

.st-pf-pic .st-gui-card-screen {
    box-shadow: 0 18px 40px rgba(18, 18, 18, 0.12);
}

/* Smart Bolt's terminal, as home shows it. */
.st-pf-pic--bolt-terminal {
    overflow: hidden;
    border-radius: 16px;
}

/* ── The drawn pictures (views/partials/fx/chips, terminal, card, menu, panel, code) ── */

.st-fx-chiplist {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px 12px;
}

.st-fx-chip {
    padding: 5px 10px;
    border: 1px solid var(--st-line-strong);
    border-radius: 999px;
    background: #fff;
    font-family: var(--st-font-ui);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--st-ink);
}

.st-fx-chip.is-on {
    border-color: var(--st-accent);
    background: rgba(124, 58, 237, 0.08);
    color: var(--st-accent-deep);
}

.st-fx-termwin {
    border-radius: 8px;
    background: #111216;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(18, 18, 18, 0.14);
}

.st-fx-termbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    background: #1b1c22;
}

.st-fx-termbar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5f57;
}

.st-fx-termbar span:nth-child(2) { background: #febc2e; }
.st-fx-termbar span:nth-child(3) { background: #28c840; }

.st-fx-termbar em {
    margin-left: 6px;
    font-size: 10px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.72);
}

.st-fx-termbody {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 16px;
    font-size: 11px;
    line-height: 1.35;
}

.st-fx-tl {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.st-fx-tl--cmd { color: #f2f3f5; }
.st-fx-tl--out { color: #b5bac1; }
.st-fx-tl--ok { color: #86efac; }
.st-fx-tl--err { color: #fca5a5; }

.st-fx-note,
.st-fx-menu,
.st-fx-panel {
    border-radius: 10px;
    border: 1px solid var(--st-line-strong);
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 18, 18, 0.07);
    font-family: var(--st-font-ui);
}

.st-fx-note {
    padding: 12px 14px 14px;
}

.st-fx-note-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-accent-deep);
}

.st-fx-note-head svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.st-fx-note-title {
    margin: 8px 0 4px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--st-ink);
}

.st-fx-note-body {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--st-ink-muted);
}

.st-fx-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.st-fx-note-btn {
    padding: 5px 9px;
    border: 1px solid var(--st-line-strong);
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    color: var(--st-ink);
}

.st-fx-note-btn--primary {
    border-color: var(--st-accent);
    background: var(--st-accent);
    color: #fff;
}

.st-fx-menu {
    padding: 6px;
}

.st-fx-menu-head {
    padding: 6px 8px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-ink-faint);
}

.st-fx-menu-items {
    display: grid;
    gap: 2px;
}

.st-fx-menu--grid .st-fx-menu-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 2px 2px;
}

.st-fx-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 7px;
}

.st-fx-menu--grid .st-fx-menu-item {
    padding: 10px;
    border: 1px solid var(--st-line);
}

.st-fx-menu-item.is-on {
    background: rgba(124, 58, 237, 0.08);
}

.st-fx-menu--grid .st-fx-menu-item.is-on {
    border-color: rgba(124, 58, 237, 0.4);
}

.st-fx-menu-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.st-fx-menu-copy strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--st-ink);
}

.st-fx-menu-copy small {
    overflow: hidden;
    font-size: 10.5px;
    color: var(--st-ink-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.st-fx-check {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--st-accent-deep);
}

.st-fx-panel {
    padding: 10px 12px 6px;
}

.st-fx-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    font-size: 12px;
    color: var(--st-ink);
}

.st-fx-panel-head .st-fx-tag {
    align-self: center;
}

.st-fx-panel-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    border-top: 1px solid var(--st-line);
    font-size: 11px;
}

.st-fx-panel-row > .st-fx-cell:first-child {
    flex: 1;
    font-weight: 600;
    color: var(--st-ink-muted);
}

.st-fx-panel-row > .st-fx-cell + .st-fx-cell {
    min-width: 34px;
    padding: 3px 8px;
    border: 1px solid var(--st-line-strong);
    border-radius: 6px;
    font-family: var(--st-font-mono);
    text-align: center;
    color: var(--st-ink);
}

.st-fx-panel-row > .st-fx-cell.is-on {
    border-color: var(--st-accent);
    background: var(--st-accent);
    color: #fff;
}

.st-fx-panel--table .st-fx-panel-row {
    display: grid;
    grid-template-columns: 0.8fr 0.7fr 1.3fr;
}

.st-fx-panel--table .st-fx-panel-row > .st-fx-cell,
.st-fx-panel--table .st-fx-panel-row > .st-fx-cell + .st-fx-cell {
    min-width: 0;
    padding: 0;
    border: 0;
    font-family: var(--st-font-mono);
    font-weight: 500;
    text-align: left;
    color: var(--st-ink);
}

.st-fx-panel--table .st-fx-panel-row.is-head > .st-fx-cell {
    font-family: var(--st-font-ui);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-ink-faint);
}

.st-fx-lines {
    display: flex;
    flex-direction: column;
    padding: 8px 0 10px;
    font-size: 11px;
    line-height: 1.3;
    color: #374151;
}

.st-fx-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 22px;
    padding-right: 12px;
}

.st-fx-line.is-marked {
    background: rgba(124, 58, 237, 0.08);
    box-shadow: inset 2px 0 0 var(--st-accent);
}

.st-fx-ln {
    flex: 0 0 24px;
    font-size: 10px;
    font-weight: 400;
    text-align: right;
    color: var(--st-ink-faint);
}

.st-fx-line code {
    font: inherit;
    white-space: pre;
}

.st-fx-who {
    --who: #7c3aed;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--who);
    font-family: var(--st-font-mono);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    color: #fff;
}

.st-fx-line--who0 { box-shadow: inset 2px 0 0 #7c3aed; }
.st-fx-line--who1 { box-shadow: inset 2px 0 0 #db2777; background: rgba(219, 39, 119, 0.07); }
.st-fx-line--who1 .st-fx-who { --who: #db2777; }
.st-fx-line--who2 { box-shadow: inset 2px 0 0 #0369a1; background: rgba(3, 105, 161, 0.07); }
.st-fx-line--who2 .st-fx-who { --who: #0369a1; }

/* ── Feature rows ── */

.st-pf-rows {
    padding: 0 0 var(--st-space-section);
}

.st-pf-row {
    display: grid;
    gap: 24px;
    align-items: center;
}

.st-pf-row + .st-pf-row {
    margin-top: clamp(56px, 7vw, 112px);
}

.st-pf-row-copy {
    min-width: 0;
}

.st-pf-row-title,
.st-pf-section-title {
    margin: 0;
    font-family: var(--st-font-display);
    font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--st-ink);
}

.st-pf-row-copy p {
    margin: 14px 0 0;
    max-width: var(--st-pf-measure);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.65;
    color: var(--st-ink-muted);
    text-wrap: pretty;
}

.st-pf-row-media {
    min-width: 0;
}

/* ── How it works ── */

.st-pf-steps {
    padding: var(--st-space-section) 0;
    background: #fafafa;
    border-top: 1px solid var(--st-line);
    border-bottom: 1px solid var(--st-line);
}

.st-pf-section-title {
    margin-bottom: var(--st-space-head);
}

.st-pf-steps-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: st-pf-step;
}

.st-pf-step {
    position: relative;
    padding: 20px 20px 20px 66px;
    border: 1px solid var(--st-line-strong);
    border-radius: 16px;
    background: #fff;
    counter-increment: st-pf-step;
}

.st-pf-step::before {
    content: counter(st-pf-step);
    position: absolute;
    top: 18px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--st-accent);
    font-family: var(--st-font-mono);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.st-pf-step h3 {
    margin: 4px 0 6px;
    font-family: var(--st-font-ui);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--st-ink);
}

.st-pf-step p {
    margin: 0;
    max-width: var(--st-pf-measure);
    font-size: 15px;
    line-height: 1.55;
    color: var(--st-ink-muted);
}

/* ── Questions and answers ── */

.st-pf-faq {
    padding: var(--st-space-section) 0;
}

.st-pf-faq-list {
    display: grid;
    gap: 0 56px;
}

.st-pf-qa {
    padding: 22px 0;
    border-top: 1px solid var(--st-line-strong);
}

.st-pf-qa h3 {
    margin: 0;
    font-family: var(--st-font-ui);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--st-ink);
}

.st-pf-qa p {
    margin: 8px 0 0;
    max-width: var(--st-pf-measure);
    font-size: 15px;
    line-height: 1.65;
    color: var(--st-ink-muted);
}

/* ── Closing band and the other features ── */

.st-pf-closing {
    padding: 0 0 var(--st-space-section);
}

.st-pf-faq + .st-pf-closing {
    padding-top: 0;
}

.st-pf-steps + .st-pf-closing {
    padding-top: var(--st-space-section);
}

.st-pf-band {
    position: relative;
    padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
    overflow: hidden;
    border: 1px solid var(--st-line-strong);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 90% at 50% -10%, rgba(124, 58, 237, 0.14), transparent 70%),
        radial-gradient(ellipse 40% 60% at 92% 110%, rgba(245, 166, 35, 0.1), transparent 70%),
        #fff;
    text-align: center;
}

.st-pf-band p {
    margin: 14px auto 0;
    max-width: var(--st-pf-measure);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    color: var(--st-ink-muted);
}

.st-pf-band .st-btn {
    margin-top: 28px;
}

.st-pf-more {
    padding: 0 0 var(--st-space-section);
}

.st-pf-more-title {
    margin-bottom: 24px;
}

.st-pf-cards {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.st-pf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 52px 20px 20px;
    border: 1px solid var(--st-line-strong);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.st-pf-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 14px 32px rgba(18, 18, 18, 0.07);
    transform: translateY(-2px);
}

.st-pf-card-label {
    font-family: var(--st-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-accent-deep);
}

.st-pf-card h3 {
    margin: 6px 0 6px;
    font-family: var(--st-font-ui);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* The heading's link covers the whole card; its focus ring goes round the card. */
.st-pf-card h3 a {
    color: var(--st-ink);
}

.st-pf-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.st-pf .st-pf-card h3 a:focus-visible {
    outline: none;
}

.st-pf-card h3 a:focus-visible::after {
    outline: 2px solid var(--st-accent);
    outline-offset: 3px;
}

.st-pf-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--st-ink-muted);
}

.st-pf-card-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    font-family: var(--st-font-mono);
    font-size: 18px;
    color: var(--st-accent-deep);
    transform: translateY(-50%);
    transition: transform 0.15s;
}

.st-pf-card:hover .st-pf-card-arrow {
    transform: translate(3px, -50%);
}

/* ── Phones ── */

@media (max-width: 719px) {
    /* Breadcrumb links a finger can hit: 44 px, the row's height taken back from the space round it. */
    .st-pf-crumbs ol {
        margin: -10px 0 8px;
    }

    .st-pf-crumbs a {
        min-height: 44px;
    }

    .st-pf-actions .st-btn {
        flex: 1 1 auto;
    }
}

/* ── iPads upright and small laptops: one column, the hero's picture full width ── */

@media (min-width: 720px) {
    .st-pf {
        --st-pf-z: 1.8;
        --st-pf-row-z: 1.6;
    }

    .st-pf-hero {
        padding-top: 28px;
    }

    .st-pf-hero-copy {
        max-width: 600px;
    }

    .st-pf-pic .st-collab-editor,
    .st-pf-pic .st-update-term {
        zoom: 1.1;
    }

    .st-pf-steps-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .st-pf-step {
        padding: 24px;
    }

    .st-pf-step::before {
        position: static;
        margin-bottom: 16px;
    }

    .st-pf-step h3 {
        margin-top: 0;
    }

    .st-pf-faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-pf-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* ── From 1,024 px: the hero and the rows in two columns ── */

@media (min-width: 1024px) {
    .st-pf {
        --st-pf-z: 1.4;
        --st-pf-row-z: 1.2;
    }

    .st-pf-hero {
        padding-top: 32px;
    }

    .st-pf-hero-inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: center;
        gap: clamp(40px, 4.5vw, 80px);
    }

    .st-pf-hero-copy {
        max-width: none;
    }

    /* The hero's breadcrumb starts the page: the picture lines up with the words, not with it. */
    .st-pf-hero-media {
        margin-top: 36px;
    }

    .st-pf-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(48px, 5.5vw, 104px);
    }

    .st-pf-row--flip .st-pf-row-copy {
        order: 2;
    }

    .st-pf-row-title,
    .st-pf-section-title {
        font-size: var(--st-fs-h3-lg);
    }

    .st-pf-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .st-pf-card {
        padding: 22px 56px 22px 22px;
    }
}

@media (min-width: 1180px) {
    .st-pf {
        --st-pf-z: 1.55;
        --st-pf-row-z: 1.3;
    }
}

@media (min-width: 1280px) {
    .st-pf {
        --st-pf-z: 1.6;
        --st-pf-row-z: 1.35;
    }
}

@media (min-width: 1440px) {
    .st-pf {
        --st-pf-z: 1.8;
        --st-pf-row-z: 1.5;
    }

    .st-pf-pic .st-collab-editor,
    .st-pf-pic .st-update-term {
        zoom: 1.1;
    }
}

@media (min-width: 1920px) {
    .st-pf {
        --st-pf-z: 2;
        --st-pf-row-z: 1.7;
    }

    .st-pf-pic .st-collab-editor,
    .st-pf-pic .st-update-term {
        zoom: 1.25;
    }

    .st-pf-qa h3,
    .st-pf-step h3 {
        font-size: 19px;
    }

    .st-pf-qa p,
    .st-pf-step p,
    .st-pf-card p {
        font-size: 16px;
    }
}

@media (min-width: 2560px) {
    .st-pf {
        --st-pf-z: 2.2;
        --st-pf-row-z: 1.85;
    }

    .st-pf-pic .st-collab-editor,
    .st-pf-pic .st-update-term {
        zoom: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .st-pf-card,
    .st-pf-card-arrow {
        transition: none;
    }

    .st-pf-card:hover {
        transform: none;
    }
}
