/* ==========================================================================
   Tenderlake brand overrides
   Loads AFTER theme.min.css and the inline typography block in _Layout,
   via the optional "PageStyles" render section. Currently referenced only
   by the /preview pages; when the redesign goes live this file gets linked
   directly from _Layout so the whole site picks it up.

   Brand tokens (Brand Guidelines):
     Emerald    #1ab293  primary        (theme ships #6658ea)
     Deep Blue  #2e4050  dark           (theme ships #1b1642)
     Gold       #f8ac58  Monitor accent (theme warning is #f5c070)
     Iris       #827dd7  Analyst accent (new, not in theme)
   Gold and Iris fail contrast as text on white: use them for fills,
   borders and rules only. Text-safe darkened variants: #96631a, #514bab.
   ========================================================================== */

/* ---- Typography: DM Sans, replacing the Inter override in _Layout ---- */

:root {
    --font-family-sans-serif: 'DM Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4,
.font-family-sans-serif {
    font-family: 'DM Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Theme only steps type down once, at 991.98px, so a 375px phone and a
   991px tablet get identical type. Second step for small screens. */
@media (max-width: 767.98px) {
    .display-1 { font-size: 2.75rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2.125rem; }
    .display-4 { font-size: 2rem; }
    h1, .h1 { font-size: 1.875rem; }
    h2, .h2 { font-size: 1.625rem; }
    .lead { font-size: 1.1875rem; }
}

/* ---- Primary: Emerald ---- */

a { color: #1ab293; }
a:hover { color: #158a72; }

.btn-primary,
.btn-primary:disabled {
    background-color: #1ab293;
    border-color: #1ab293;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #158a72;
    border-color: #158a72;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 6px rgba(27, 22, 66, .03), 0 14px 24px rgba(27, 22, 66, .06), 0 0 0 3px rgba(26, 178, 147, .35);
}

.btn-outline-primary,
.btn-outline-primary:disabled {
    color: #1ab293;
    border-color: #1ab293;
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: #1ab293;
    border-color: #1ab293;
}

.text-primary { color: #1ab293 !important; }
.text-primary-light { color: #4fc7ae !important; }
.bg-primary { background-color: #1ab293 !important; }
.border-primary { border-color: #1ab293 !important; }

.badge-primary-soft {
    background-color: rgba(26, 178, 147, .12);
    color: #12856f;
}

.list-checked-primary > li::before { color: #1ab293; }
.list-checked-circle.list-checked-primary > li::before { background-color: #1ab293; color: #fff; }

/* ---- Dark: Deep Blue ---- */

.text-dark { color: #2e4050 !important; }
.bg-dark { background-color: #2e4050 !important; }

.btn-dark,
.btn-dark:disabled {
    background-color: #2e4050;
    border-color: #2e4050;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:not(:disabled):not(.disabled):active {
    background-color: #24323f;
    border-color: #24323f;
}

.btn-outline-dark {
    color: #2e4050;
    border-color: #d9e2e6;
}

.btn-outline-dark:hover,
.btn-outline-dark:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: #2e4050;
    border-color: #2e4050;
}

/* ---- Monitor accent: Gold (rebrands the theme's warning yellow) ---- */

.border-warning { border-color: #f8ac58 !important; }
.text-warning { color: #96631a !important; }

.badge-warning-soft {
    background-color: rgba(248, 172, 88, .18);
    color: #96631a;
}

.list-checked-warning > li::before { color: #f8ac58; }
.list-checked-circle.list-checked-warning > li::before { background-color: #f8ac58; color: #fff; }

/* ---- Analyst accent: Iris (new tokens, no theme equivalents) ---- */

.border-analyst { border-color: #827dd7 !important; }
.text-analyst { color: #514bab !important; }

.badge-analyst-soft {
    background-color: rgba(130, 125, 215, .15);
    color: #514bab;
}

.list-checked-analyst > li::before { color: #827dd7; }
.list-checked-circle.list-checked-analyst > li::before { background-color: #827dd7; color: #fff; }

/* ---- Product names highlighted inline, tinted like their badges ---- */

.tl-product {
    padding: .05em .3em;
    border-radius: .25rem;
    white-space: nowrap;
}

.tl-product-monitor {
    background-color: rgba(248, 172, 88, .18);
    color: #96631a;
}

.tl-product-analyst {
    background-color: rgba(130, 125, 215, .15);
    color: #514bab;
}

/* ---- Helpers the theme lacks ---- */

/* theme's border-top-3 sets width only; give it a visible edge when paired
   with a border-* colour utility */
.border-top-3 { border-top-style: solid; }

.border-left-3 {
    border-left-width: 3px !important;
    border-left-style: solid;
}

.text-white-80 { color: rgba(255, 255, 255, .8) !important; }

.tl-eyebrow { letter-spacing: .14em; }

/* ---- New homepage components ---- */

.stat-bar {
    border-top: 1px solid #e3ebf0;
    border-bottom: 1px solid #e3ebf0;
    background: #fff;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 0;
}

.stat-item .num {
    font-size: 2rem;
    font-weight: 500;
    color: #2e4050;
    line-height: 1.1;
}

.stat-item .cap {
    font-size: .9375rem;
    color: #706f6f;
}

.award-card {
    border: 1px solid #e3ebf0;
    border-left: 3px solid #f8ac58;
    border-radius: .375rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
    height: 100%;
}

.award-card b {
    display: block;
    font-size: 1.0625rem;
    color: #2e4050;
    font-weight: 500;
}

.award-card span {
    font-size: .9375rem;
    color: #706f6f;
}

/* The feature-deck PNGs have the old Landkit violet baked into their canvas,
   so the emerald .bg-primary override shows as stripes around them. Keep the
   panels behind those images in the original violet until the images are
   re-exported on a brand-coloured background. */
.card-stack .bg-primary { background-color: #6658ea !important; }

/* ---- Analyst hub components ---- */

.btn-analyst,
.btn-analyst:disabled {
    color: #fff;
    background-color: #514bab;
    border-color: #514bab;
}

.btn-analyst:hover,
.btn-analyst:focus,
.btn-analyst:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: #413c8c;
    border-color: #413c8c;
}

.bg-analyst-soft { background-color: rgba(130, 125, 215, .08); }

/* Comparison table: manual research vs Analyst */
.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid #e3ebf0;
    font-size: .9375rem;
    vertical-align: top;
}

.compare-table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7884;
    border-bottom-width: 2px;
}

.compare-table tbody th {
    font-weight: 500;
    color: #2e4050;
    width: 22%;
}

.compare-table .col-manual { color: #95a1ac; }

.compare-table .col-analyst {
    color: #2e4050;
    background-color: rgba(130, 125, 215, .06);
    border-left: 1px solid rgba(130, 125, 215, .25);
    border-right: 1px solid rgba(130, 125, 215, .25);
}

.compare-table thead .col-analyst {
    color: #514bab;
    border-top: 3px solid #827dd7;
}

.compare-table tbody tr:last-child .col-analyst { border-bottom: 1px solid rgba(130, 125, 215, .25); }

/* Worked example: prompt / answer conversation */
.convo {
    border: 1px solid #e3ebf0;
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}

.convo-head {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #e3ebf0;
    background: #f7f9fa;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7884;
}

.convo-body { padding: 1.5rem 1.25rem; }

.convo-ask {
    background: rgba(130, 125, 215, .1);
    border-left: 3px solid #827dd7;
    border-radius: 0 .375rem .375rem 0;
    padding: .85rem 1.1rem;
    margin-bottom: .75rem;
    color: #2e4050;
    font-size: .9375rem;
}

.convo-ask.follow-up {
    background: rgba(130, 125, 215, .05);
    color: #4f5c68;
}

.convo-answer {
    border-left: 3px solid #1ab293;
    border-radius: 0 .375rem .375rem 0;
    background: #f7f9fa;
    padding: 1.1rem 1.25rem;
    font-size: .9375rem;
    color: #4f5c68;
}

/* Credit-cost example cards */
.cost-card {
    border: 1px solid #e3ebf0;
    border-top: 3px solid #827dd7;
    border-radius: .375rem;
    background: #fff;
    padding: 1.5rem;
    height: 100%;
}

.cost-card .price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #514bab;
    line-height: 1.1;
}

.cost-card .label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7884;
    margin-bottom: .75rem;
}

/* Numbered step markers ("getting started") */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgba(130, 125, 215, .15);
    color: #514bab;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Anything still waiting on copy, a real asset or a sign-off. Preview only:
   delete this rule and every .tl-placeholder before the page goes live. */
.tl-placeholder {
    border: 1px dashed #c2cbd3;
    border-radius: .375rem;
    background: repeating-linear-gradient(45deg, #fbfcfd, #fbfcfd 10px, #f4f7f9 10px, #f4f7f9 20px);
    color: #6b7884;
    padding: 1.5rem;
    text-align: center;
    font-size: .875rem;
}

.tl-placeholder .tag {
    display: inline-block;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: #96631a;
    background: rgba(248, 172, 88, .18);
    border-radius: 999px;
    padding: .15rem .6rem;
    margin-bottom: .5rem;
}

/* Platform band: translucent cards on Deep Blue */
.card-translucent {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}

/* Platform band: large-scale cropped icon pattern, Emerald on Deep Blue */
.brand-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.brand-pattern svg {
    position: absolute;
    right: -6%;
    top: -18%;
    width: 62%;
    height: auto;
    opacity: .16;
}

@media (max-width: 991.98px) {
    .brand-pattern svg {
        width: 120%;
        right: -40%;
        opacity: .1;
    }
}
