/* ==========================================================================
   SupaDesk - brand layer
   Loaded after theme.min.css. The theme itself is recoloured to the teal
   brand ramp; everything here is either (a) a colour role the recolour could
   not infer, or (b) a utility the pages use that the theme does not ship.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand ramp - single source of truth for teal
   -------------------------------------------------------------------------- */
:root {
    --sd-teal-50: #eefdfa;
    --sd-teal-100: #defaf3;
    --sd-teal-200: #bff3e8;
    --sd-teal-300: #8be5d4;
    --sd-teal-400: #49c9b5;
    --sd-teal-500: #00aa96;
    --sd-teal-600: #008475; /* == --primary */
    --sd-teal-700: #006b5e;
    --sd-teal-800: #00554a;
    --sd-teal-900: #003f37;
    --sd-teal-950: #002620;

    /* Hero ground. A deep, saturated teal rather than a near-black green -
       white body text still clears 8:1 against it. */
    --sd-hero-bg: #045e55;

    --sd-ink: #0f1a19;
    --sd-ink-soft: #43514f;

    --sd-grad-brand: linear-gradient(135deg, #008475 0%, #10a37f 55%, #65a30d 100%);
    --sd-grad-soft: linear-gradient(135deg, #eefdfa 0%, #defaf3 60%, #f7fee7 100%);
    --sd-grad-text: linear-gradient(90deg, #cdfaec 0%, #b2f6d7 45%, #ddf6b4 100%);
}

/* --------------------------------------------------------------------------
   2. Success is its own green
   The theme derived --success from --primary, so the recolour turned every
   checkmark teal - the same colour as a link. Success gets a distinct,
   yellower green so "done" never reads as "click me".
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme=light] {
    --success: #16a34a;
    --success-rgb: 22, 163, 74;
    --success-text-emphasis: #15803d;
    --success-bg-subtle: #f0fdf4;
    --success-border-subtle: #bbf7d0;
}

[data-bs-theme=dark] {
    --success: #22c55e;
    --success-rgb: 34, 197, 94;
    --success-text-emphasis: #86efac;
    --success-bg-subtle: #0b2a17;
    --success-border-subtle: #14532d;
}

.btn-success {
    --btn-bg: #16a34a;
    --btn-border-color: #16a34a;
    --btn-hover-bg: #15803d;
    --btn-hover-border-color: #15803d;
    --btn-active-bg: #14763a;
    --btn-active-border-color: #14763a;
    --btn-focus-shadow-rgb: 22, 163, 74;
    --btn-disabled-bg: #16a34a;
    --btn-disabled-border-color: #16a34a;
}

.btn-outline-success {
    --btn-color: #16a34a;
    --btn-border-color: #16a34a;
    --btn-hover-bg: #16a34a;
    --btn-hover-border-color: #16a34a;
    --btn-active-bg: #16a34a;
    --btn-active-border-color: #16a34a;
    --btn-focus-shadow-rgb: 22, 163, 74;
    --btn-disabled-color: #16a34a;
    --btn-disabled-border-color: #16a34a;
}

.link-success:hover,
.link-success:focus {
    color: rgba(21, 128, 61, var(--link-opacity, 1)) !important;
    text-decoration-color: rgba(21, 128, 61, var(--link-underline-opacity, 1)) !important;
}

.alert-success {
    --alert-bg: rgba(22, 163, 74, .06);
    --alert-border-color: rgba(22, 163, 74, .25);
}

/* --------------------------------------------------------------------------
   3. Gradients and brand surfaces
   -------------------------------------------------------------------------- */
.text-gradient {
    background: var(--sd-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-brand {
    background: var(--sd-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bg-gradient-brand {
    background-image: var(--sd-grad-brand);
}

.bg-gradient-soft {
    background-image: var(--sd-grad-soft);
}

/* Hero: a deep teal ground with a soft aurora wash so it never reads flat */
.hero-brand {
    position: relative;
    background-color: var(--sd-hero-bg);
    background-image:
        radial-gradient(60rem 32rem at 12% -10%, rgba(21, 186, 129, .55), transparent 62%),
        radial-gradient(48rem 28rem at 88% 8%, rgba(23, 186, 200, .45), transparent 60%),
        radial-gradient(40rem 26rem at 50% 116%, rgba(173, 226, 95, .26), transparent 65%);
    overflow: hidden;
}

.hero-brand > * {
    position: relative;
    z-index: 1;
}

/* Faint dot grid - the "inbox surface" motif reused across sections */
.bg-dotgrid {
    background-image: radial-gradient(rgba(0, 132, 117, .16) 1px, transparent 1px);
    background-size: 22px 22px;
}

.hero-brand .bg-dotgrid,
[data-bs-theme=dark] .bg-dotgrid {
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
}

.section-divider {
    line-height: 0;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* --------------------------------------------------------------------------
   4. Utilities the pages use that Bootstrap / the theme do not ship
   -------------------------------------------------------------------------- */
.ls-wider { letter-spacing: .08em; }
.ls-widest { letter-spacing: .16em; }

.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.pt-6 { padding-top: 5rem !important; }
.pb-6 { padding-bottom: 5rem !important; }

@media (min-width: 992px) {
    .py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
    .pt-lg-6 { padding-top: 6rem !important; }
    .pb-lg-6 { padding-bottom: 6rem !important; }
}

.bg-opacity-15 { --bg-opacity: .15; }
.bg-opacity-8 { --bg-opacity: .08; }

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .875rem;
    font-size: 1.375rem;
    flex: 0 0 auto;
}

.icon-tile-lg {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    font-size: 2.25rem;
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */
.lift {
    transition: transform .25s ease, box-shadow .25s ease;
}

.lift:hover {
    transform: translateY(-.375rem);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 63, 55, .16) !important;
}

.eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sd-teal-600);
    background-color: var(--sd-teal-100);
    border-radius: 2rem;
    padding: .4rem 1rem;
}

[data-bs-theme=dark] .eyebrow,
.hero-brand .eyebrow {
    color: #fff;
    background-color: rgba(255, 255, 255, .14);
}

/* Comparison tables on the /Compare and /Alternative pages */
.table-compare th,
.table-compare td { vertical-align: middle; }

.table-compare thead th { white-space: nowrap; }

.table-compare .col-us { background-color: var(--sd-teal-50); }

[data-bs-theme=dark] .table-compare .col-us { background-color: rgba(0, 132, 117, .18); }

/* Inbox-preview mock used on the home page */
.desk-mock {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(0, 38, 32, .34);
    background: #fff;
}

.desk-mock-bar {
    background: #eefdfa;
    border-bottom: 1px solid var(--sd-teal-200);
    padding: .625rem .875rem;
}

.desk-mock-dot {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: .3rem;
}

/* Footer: theme footers use .nav-link inside plain <li> elements */
.footer h6 {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: .875rem;
}

.footer ul { list-style: none; padding-left: 0; }

.footer ul li { font-size: .875rem; margin-bottom: .4rem; }

.follow-us a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    margin-right: .5rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: background-color .2s ease;
}

.follow-us a:hover { background: var(--sd-teal-600); color: #fff; }

/* --------------------------------------------------------------------------
   6. Layout corrections
   -------------------------------------------------------------------------- */

/* The theme gives .container a 2rem gutter (1rem of padding per side), but
   Bootstrap's .g-5 / .gx-5 use a 3rem gutter. A g-5 row placed directly in a
   container therefore pulls 0.5rem past each viewport edge, which shows up as a
   horizontal scrollbar on narrow screens. Clamp the horizontal gutter on those
   rows to match the container; the vertical gap from g-5 is unaffected. */
.container > .row.g-5,
.container > .row.gx-5,
.container-fluid > .row.g-5,
.container-fluid > .row.gx-5 {
    --gutter-x: 2rem;
}

/* Fixed navbar must not cover a heading that was jumped to */
:target { scroll-margin-top: 6rem; }
