/* * Identiwise Storefront Styles
 * Theme: Enterprise Blue (#00458B)
 * Framework: Bootstrap 5 Compatible
 */

:root {
    --theme-color: #00458B;
    --theme-color-hover: #003366;
    --theme-accent: #002a55;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --navbar-height: 76px; /* Defined height for spacing calculations */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* FIX: Prevent fixed navbar from overlapping content */
    padding-top: var(--navbar-height);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-theme {
    color: var(--theme-color);
}

/* --- Navigation --- */
.navbar {
    height: var(--navbar-height);
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.navbar-brand img {
    /* FIX: Strictly constrain logo height */
    height: 30px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-right: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--theme-color) !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--theme-color-hover);
    border-color: var(--theme-color-hover);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--theme-color);
    border-color: var(--theme-color);
    padding: 10px 24px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--theme-color);
    color: #fff;
}

/* --- Hero Sections --- */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

/* FIX: Specificity for the dark security section */
section.hero-section.dark {
    background-color: var(--theme-color) !important;
    background-image: linear-gradient(135deg, #00458B 0%, #002a55 100%) !important;
    color: white !important;
}

section.hero-section.dark h2,
section.hero-section.dark h4,
section.hero-section.dark p,
section.hero-section.dark i {
    color: white !important;
}

section.hero-section.dark .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- Feature Cards --- */
.feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 69, 139, 0.1);
    border-color: var(--theme-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 69, 139, 0.1);
    color: var(--theme-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Pricing Cards --- */
.pricing-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2.5rem;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid var(--theme-color);
    box-shadow: 0 10px 40px rgba(0, 69, 139, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price-period {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

/* Hanging-indent, NOT flex. `display:flex` here made every inline child of an
 * <li> (<strong>, <code>, <em> and each bare text run) a separate flex item on
 * one non-wrapping line: prose rendered as ragged one-word columns with the
 * word spaces eaten, and an unbreakable token such as <code>require_face_match</code>
 * (min-width:auto on a flex item) pushed the document wider than the viewport.
 * Absolutely positioning the icon keeps the check hanging in the gutter while the
 * text stays in normal inline flow and wraps like ordinary prose. */
.feature-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
}

.feature-list li i {
    color: #198754; /* Bootstrap success green */
    position: absolute;
    left: 0;
    /* Font Awesome sets line-height:1 on its icons while the text line box is
     * 1.6em, so 0.3em puts the glyph on the FIRST line's centre rather than the
     * middle of a wrapped block. */
    top: 0.3em;
}

/* Defensive: a long unbreakable identifier must always be able to break rather
 * than widen the page (Bootstrap's `code { word-wrap: break-word }` covers the
 * normal case; this covers narrow pricing cards too). */
.feature-list li code {
    overflow-wrap: anywhere;
}

/* --- Footer --- */
.footer {
    background-color: #f8f9fa;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.footer h5, .footer h6 {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

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

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    /* NOT var(--text-muted): #6c757d on the footer's #f8f9fa ground is 4.45:1,
     * just under the WCAG AA 4.5:1 floor for normal-size text, and these links
     * render at 12.6px (.footer 0.9rem x Bootstrap .small). #5a6169 is 5.95:1. */
    color: #5a6169;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--theme-color);
}

.legal-text {
    font-size: 0.8rem;
    color: #565e64; /* was #adb5bd = 2.07:1 on white; this is 6.60:1 */
    margin-top: 3rem;
}

/* --- Utilities --- */
.section-padding {
    padding: 5rem 0;
}

.check-list li {
    margin-bottom: 0.5rem;
}

.backdrop-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    .hero-img {
        margin-top: 2rem;
        max-height: 250px; /* Prevent giant logos on mobile */
    }
}
/* --- Pre-launch banner -------------------------------------------------
 * Flows as the FIRST element after the fixed navbar — never position:fixed.
 * body already carries padding-top: var(--navbar-height), so the banner sits
 * immediately below the navbar and pushes the hero down instead of covering it.
 */
.prelaunch-banner {
    background-color: #fff7e6;
    border-bottom: 1px solid #f0e0c0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.55rem 0;
    position: relative; /* stacks above any negative-margin hero, never over the nav */
    z-index: 1010;      /* below Bootstrap's fixed navbar (1030) */
}

.prelaunch-banner i {
    color: var(--theme-color);
}

.prelaunch-banner strong {
    font-weight: 600;
}

.prelaunch-banner a {
    color: var(--theme-color);
    font-weight: 600;
    text-decoration: underline;
}

.prelaunch-banner a:hover {
    color: var(--theme-color-hover);
}

/* The expanded mobile menu overflows the fixed-height navbar and would otherwise
 * render transparently on top of the banner. Give it the navbar's own surface. */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        background-color: #fff;
        box-shadow: 0 8px 15px rgba(0,0,0,0.06);
        padding: 0.75rem 1rem 1rem;
        border-radius: 0 0 8px 8px;
    }
    .prelaunch-banner {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* --- Indicative pricing label ----------------------------------------- */
.indicative {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* --- "Coming soon" pill ------------------------------------------------ */
.badge-soon {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    background-color: rgba(0, 69, 139, 0.08);
    border: 1px solid rgba(0, 69, 139, 0.18);
    color: var(--theme-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

/* Works both as <span class="badge-soon">Coming soon</span> and as an empty tag. */
.badge-soon:empty::before {
    content: "Coming soon";
}

/* --- Notice box (draft legal terms, caveats) --------------------------- */
.notice-box {
    background-color: #f4f8fc;
    border-left: 4px solid var(--theme-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.notice-box p:last-child,
.notice-box ul:last-child {
    margin-bottom: 0;
}

.notice-box a {
    color: var(--theme-color);
}

/* --- Inline "roadmap" tag ---------------------------------------------- */
.roadmap {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    margin-left: 0.35rem;
    border-radius: 20px;
    background-color: #eceff1;
    border: 1px solid #dfe3e6;
    color: #565e64; /* #6c757d on this #eceff1 chip is only 4.06:1; this is 5.72:1 */
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.03em;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
}

/* Works both as <span class="roadmap">roadmap</span> and as an empty tag. */
.roadmap:empty::before {
    content: "roadmap";
}

/* Keep the tag readable on the dark security band. */
section.hero-section.dark .roadmap {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Links -------------------------------------------------------------
 * Body links follow the brand rather than Bootstrap's default #0d6efd.
 * Scoped to content regions only (main / header / section) so the navbar and
 * the footer keep their own colours, and every button class is excluded.
 * The dark security band gets its own readable treatment.
 */
main a:not(.btn):not(.nav-link):not(.navbar-brand),
header a:not(.btn):not(.nav-link):not(.navbar-brand),
section a:not(.btn):not(.nav-link):not(.navbar-brand),
.notice-box a {
    color: var(--theme-color);
}

main a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
header a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
section a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: var(--theme-color-hover);
}

section.hero-section.dark a:not(.btn) {
    color: #fff !important;
    text-decoration: underline;
}
