/* =============================================================================
   LCP Tools — site stylesheet
   Palette tracks the Plan Builder UI: navy primary, amber accent, slate neutrals.
   ============================================================================= */

:root {
    /* Brand */
    --primary:        #1e3a5f;
    --primary-dark:   #0f2944;
    --primary-light:  #2d4a6e;
    --accent:         #d97706;
    --accent-light:   #fbbf24;
    --accent-dark:    #92400e;
    --success:        #16a34a;
    --success-soft:   #dcfce7;

    /* Steel / industrial */
    --steel-900:      #0f172a;
    --steel-700:      #334155;
    --steel-600:      #475569;
    --steel-500:      #64748b;
    --steel-400:      #94a3b8;
    --steel-300:      #cbd5e1;
    --steel-200:      #e2e8f0;
    --steel-100:      #f1f5f9;
    --steel-50:       #f8fafc;

    /* Surfaces & text */
    --bg:             #ffffff;
    --bg-soft:        #f8fafc;
    --bg-section:     #f1f5f9;
    --bg-dark:        #0f2944;
    --border:         #e2e8f0;
    --text:           #0f172a;
    --text-muted:     #475569;
    --text-subtle:    #64748b;

    /* Type */
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Source Serif Pro', Georgia, 'Times New Roman', serif;

    /* Layout */
    --container:      1180px;
    --container-narrow: 820px;
    --radius:         8px;
    --radius-lg:      14px;
    --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow:         0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg:      0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

/* -----------------------------------------------------------------------------
   Reset / base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }

p { margin: 0 0 1em; }
ul { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.5em 0;
    padding: 0.25em 0 0.25em 1.25em;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.5em 1em;
    z-index: 1000;
}
.skip-link:focus { left: 0; }

/* -----------------------------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h4 { color: var(--steel-300); }
.section--dark p { color: var(--steel-300); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 60ch;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border: 0;
    margin: 1.5rem 0 2rem;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); color: #fff; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); box-shadow: var(--shadow); color: #fff; }

.btn--ghost { background: transparent; color: var(--primary); border-color: var(--steel-200); }
.btn--ghost:hover { border-color: var(--primary); background: var(--bg-soft); color: var(--primary); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* -----------------------------------------------------------------------------
   Site header / nav
   ----------------------------------------------------------------------------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.1);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 76px;
}
.site-header__brand { display: flex; align-items: center; }
.site-header__logo { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.site-nav__list li { margin: 0; }
.site-nav__link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav__link:hover { color: var(--primary); text-decoration: none; }
.site-nav__link.is-active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.site-nav__cta { display: flex; gap: 0.5rem; align-items: center; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

@media (max-width: 920px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; gap: 0.25rem; }
    .site-nav__link { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
    .site-nav__link.is-active { border-bottom-color: var(--accent); }
    .site-nav__cta { padding-top: 0.5rem; }
}

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(217,119,6,0.08), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero h1 .accent { color: var(--accent); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__trust { margin-top: 2.5rem; color: var(--text-subtle); font-size: 0.9rem; }

.hero__visual {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(400px 200px at 90% 10%, rgba(251,191,36,0.18), transparent 60%);
    pointer-events: none;
}
.hero__visual-inner {
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--steel-200);
    position: relative;
    z-index: 1;
}
.hero__visual-bar {
    background: var(--steel-100);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0.75rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.hero__visual-bar span {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--steel-300);
}
.hero__visual-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}
.hero__row {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border-radius: 4px;
}
.hero__row.is-active { background: rgba(217,119,6,0.10); border-left: 3px solid var(--accent); padding-left: 0.5rem; }
.hero__row .dot { width: 14px; height: 14px; background: var(--primary); border-radius: 3px; flex-shrink: 0; }
.hero__row .badge {
    margin-left: auto;
    background: var(--steel-100);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-weight: 600;
}
.hero__row .badge--amber { background: #fef3c7; color: var(--accent-dark); }
.hero__row .badge--green { background: var(--success-soft); color: var(--success); }

@media (max-width: 920px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* -----------------------------------------------------------------------------
   Feature grid / cards
   ----------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 920px) {
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--steel-300); }
.card h3 { margin-top: 0.75rem; }
.card__icon {
    width: 44px; height: 44px;
    background: linear-gradient(180deg, var(--bg-soft), var(--steel-100));
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}
.card p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------------------
   Pricing
   ----------------------------------------------------------------------------- */
.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.price-card--featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.price-card--featured::before {
    content: 'Most popular';
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}
.price-card h3 { margin: 0; }
.price-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.price-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-subtle); }
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}
.price-card li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--text-muted);
}
.price-card li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.75rem;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* -----------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 0.4rem; }
.form__row--two { grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form__row--two { grid-template-columns: 1fr; } }

.form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.form input,
.form select,
.form textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--steel-300);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
.form textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: 0.85rem; color: var(--text-subtle); }

/* -----------------------------------------------------------------------------
   Stat row
   ----------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stats__item .num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stats__item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 0.04em;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   CTA banner
   ----------------------------------------------------------------------------- */
.cta-banner {
    background:
        radial-gradient(800px 300px at 90% 0%, rgba(251,191,36,0.18), transparent 60%),
        linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--steel-300); max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-dark);
    color: var(--steel-300);
    padding-top: 4rem;
    margin-top: 5rem;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 2.4fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.site-footer__logo { height: 64px; width: auto; margin-bottom: 1rem; }
.site-footer__tagline { color: var(--steel-400); font-size: 0.95rem; max-width: 32ch; }
.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.site-footer__col h4 { color: #fff; margin-bottom: 0.85rem; font-size: 0.78rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.45rem; }
.site-footer__col a { color: var(--steel-300); font-size: 0.92rem; }
.site-footer__col a:hover { color: var(--accent-light); }

.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    color: var(--steel-400);
    font-size: 0.82rem;
}
.site-footer__legal-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.site-footer__legal-inner ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; }
.site-footer__legal-inner a { color: var(--steel-300); }

@media (max-width: 920px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .site-footer__cols { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   Misc
   ----------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.mt-0       { margin-top: 0; }
.mt-2       { margin-top: 1rem; }
.mt-3       { margin-top: 1.5rem; }
.mb-0       { margin-bottom: 0; }
