/*
 * sabe.ai — icon system and structured-content components.
 *
 * Loaded after theme-navy.css, so every colour here is a theme token and both
 * light (default) and dark modes follow without a second rule set.
 *
 * The icons themselves are inline <svg> rendered by icon() in app/lib/Icons.php
 * (Tabler Icons, MIT). These rules only size, space and colour them.
 */

/* ---------- 1. icon base ------------------------------------------------- */

.sabe-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -0.18em;
    stroke-width: 2;
}

.sabe-icon.sm { width: .95em; height: .95em; }
.sabe-icon.lg { width: 1.6em; height: 1.6em; }

/* The template's 40px round icon holder sized an <i>; an <svg> needs its own box. */
.landing-layout .rounded-icon .sabe-icon { width: 20px; height: 20px; vertical-align: 0; }
.landing-layout .rounded-icon.sm .sabe-icon { width: 16px; height: 16px; vertical-align: 0; }

/* ---------- 2. heading with an icon ------------------------------------- */

.icon-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
}

.icon-head .sabe-icon {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--sabe-accent-ink);
}

.icon-head > h2,
.icon-head > h3,
.icon-head > h4,
.icon-head > h5 {
    margin: 0;
}

/* ---------- 3. icon bullet lists ---------------------------------------- */

ul.icon-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

ul.icon-list > li {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: .65rem;
    align-items: start;
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--sabe-body);
}

ul.icon-list > li > .sabe-icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .18rem;
    color: var(--sabe-accent-ink);
}

ul.icon-list > li strong {
    color: var(--sabe-ink);
    font-weight: 600;
}

ul.icon-list--tight { gap: .3rem; }

ul.icon-list--two,
ul.icon-list--three { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; }
ul.icon-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.icon-list-note {
    margin: 1rem 0 0;
    font-size: .85rem;
    color: var(--sabe-muted);
}

/* ---------- 4. icon cards (reason grids) -------------------------------- */

.icon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.icon-cards > li {
    margin: 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--sabe-line);
    border-radius: 14px;
    background: var(--sabe-page);
}

.icon-cards > li > h3,
.icon-cards > li > h5 {
    font-size: 1rem;
    line-height: 1.3;
    margin: .65rem 0 .4rem;
    color: var(--sabe-ink);
}

.icon-cards > li > p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--sabe-muted);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 11px;
    background: rgba(var(--sabe-accent-rgb), .13);
    color: var(--sabe-accent-ink);
}

.icon-badge .sabe-icon { width: 1.15rem; height: 1.15rem; }
.icon-badge--primary { background: rgba(var(--sabe-primary-rgb), .12); color: var(--sabe-primary); }

/* ---------- 5. comparison table ---------------------------------------- */

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--sabe-line);
    border-radius: 14px;
    background: var(--sabe-page);
    -webkit-overflow-scrolling: touch;
}

table.spec-table {
    width: 100%;
    min-width: 40rem;
    margin: 0;
    border-collapse: collapse;
    font-size: .92rem;
}

table.spec-table caption {
    caption-side: top;
    text-align: left;
    padding: .85rem 1rem .25rem;
    color: var(--sabe-muted);
    font-size: .82rem;
}

table.spec-table th,
table.spec-table td {
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--sabe-line);
    text-align: left;
    vertical-align: middle;
    color: var(--sabe-body);
}

table.spec-table thead th {
    background: var(--sabe-surface);
    color: var(--sabe-ink);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

table.spec-table tbody th {
    font-weight: 500;
    color: var(--sabe-ink);
}

table.spec-table tbody tr:last-child th,
table.spec-table tbody tr:last-child td { border-bottom: 0; }

table.spec-table tbody tr:hover th,
table.spec-table tbody tr:hover td { background: var(--sabe-page-alt); }

table.spec-table .c { text-align: center; }

table.spec-table .yes,
table.spec-table .no {
    display: inline-flex;
    justify-content: center;
}

table.spec-table tbody th .sabe-icon {
    margin-inline-end: .45rem;
    color: var(--sabe-muted);
}

table.spec-table tfoot td {
    padding: .9rem;
    border-top: 1px solid var(--sabe-line);
    background: var(--sabe-page-alt);
}

table.spec-table tfoot td:first-child { border-top: 1px solid var(--sabe-line); }

table.spec-table tfoot .btn {
    white-space: nowrap;
    font-size: .8rem;
    padding: .45rem .8rem;
}

table.spec-table .yes { color: var(--sabe-accent-ink); }
table.spec-table .no { color: var(--sabe-muted); opacity: .7; }

table.spec-table .plan-price {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sabe-ink);
}

table.spec-table .plan-cycle {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .03em;
    text-transform: none;
    color: var(--sabe-muted);
}

/* ---------- 6. numbered steps ------------------------------------------ */

ol.step-list {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

ol.step-list > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 1.6rem 2.1rem 1fr;
    gap: .85rem;
    align-items: start;
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--sabe-body);
}

ol.step-list > li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--sabe-surface);
    color: var(--sabe-ink);
    font-size: .78rem;
    font-weight: 600;
}

ol.step-list > li > .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    background: rgba(var(--sabe-accent-rgb), .13);
    color: var(--sabe-accent-ink);
}

ol.step-list > li > .step-icon .sabe-icon { width: 1.1rem; height: 1.1rem; }

ol.step-list strong {
    color: var(--sabe-ink);
    font-weight: 600;
}

/* ---------- 7. compact fact rows --------------------------------------- */

ul.fact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

ul.fact-list > li {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-size: .92rem;
    color: var(--sabe-body);
}

ul.fact-list > li > .sabe-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--sabe-accent-ink);
}

/* ---------- 8. hero claim strip ---------------------------------------- */

ul.claim-strip {
    list-style: none;
    margin: 1.1rem 0 1.4rem;
    padding: 0;
    display: grid;
    gap: .45rem;
}

ul.claim-strip > li {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-size: .95rem;
    color: var(--sabe-body);
}

ul.claim-strip > li > .sabe-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--sabe-accent-ink);
}

/* ---------- 9. watermarks (replace the template's icon-font ::before) --- */

.counter-container > .counter-watermark {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    opacity: .10;
    z-index: 0;
    pointer-events: none;
}

html[data-theme-color="dark"] .counter-container > .counter-watermark {
    color: var(--sabe-highlight);
    opacity: .14;
}

.counter-container > .counter-watermark .sabe-icon {
    width: 7rem;
    height: 7rem;
    stroke-width: 1;
}

.counter-container > .counter,
.counter-container > p {
    position: relative;
    z-index: 1;
}

/* The template drew four translucent 175px Feather glyphs behind the "how it
   works" prose with ::before. They are decorative, unreadable at that opacity
   and were the last consumers of the icon-font build; the blocks now carry a
   real icon in their heading instead. */
.landing-layout .working-section .working-container .working-content::before {
    content: none !important;
}

/* Same for the counters strip watermark glyph that the font supplied. */
.landing-layout .counters-section .counter-container::before {
    content: none !important;
}

/* ---------- 10. review cards ------------------------------------------- */

.review-quote {
    display: grid;
    grid-template-columns: 2.9rem 1fr;
    gap: 1.1rem;
    align-items: center;
}

.review-quote .icon-badge {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 14px;
}

.review-quote .icon-badge .sabe-icon { width: 1.6rem; height: 1.6rem; }

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    margin-top: .75rem;
    font-size: .9rem;
    color: var(--sabe-muted);
}

.review-meta .sabe-icon { width: 1rem; height: 1rem; color: var(--sabe-accent-ink); }

.review-meta .who {
    font-weight: 600;
    color: var(--sabe-ink);
}

/* ---------- 11. small screens ----------------------------------------- */

@media (max-width: 991.98px) {
    ul.icon-list--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    ul.icon-list--two,
    ul.icon-list--three { grid-template-columns: minmax(0, 1fr); }

    ol.step-list > li { grid-template-columns: 1.6rem 1fr; }
    ol.step-list > li > .step-icon { display: none; }
}
