/* =============================================================================
   WellTopo Design System — Marketing layer
   v0.1.0 — 2026-06-03
   ----------------------------------------------------------------------------
   Components for the public marketing site (home, FAQ, legal). Depends on
   welltopo.css tokens — link AFTER it:

     <link rel="stylesheet" href="https://cdn.welltopo.com/fonts/barlow/barlow.css">
     <link rel="stylesheet" href="https://cdn.welltopo.com/ds/v0.2.0/welltopo.css">
     <link rel="stylesheet" href="https://cdn.welltopo.com/ds/v0.2.0/marketing.css">

   The app/dashboard surfaces do NOT load this file (keeps their payload lean).
   Header styling mirrors the welltopo.com Softr chrome: translucent white nav,
   Barlow small-caps links, topo-vector backdrop.
   ============================================================================= */


/* ----- Page shell ----- */
.wt-site {
    min-height: 100vh;
    background: var(--wt-color-card);
    color: var(--wt-color-text);
}

.wt-shell {
    width: 100%;
    max-width: var(--wt-container-xl);
    margin-inline: auto;
    padding-inline: var(--wt-space-16);
}
.wt-shell-narrow {
    width: 80%;
    max-width: var(--wt-container-xl);
    margin-inline: auto;
    padding-inline: var(--wt-space-16);
}

@media (max-width: 768px) {
    .wt-shell { padding-inline: var(--wt-space-4); }
}


/* ----- Site header (matches the live welltopo.com / Softr topbar) -----
   Live reference values: 80px tall, translucent white, navy small-caps nav at
   1.4rem/600, 43px logo, 44px buttons (10x20, radius 8). Brand blue #0054a6 is
   the welltopo.com logo/CTA blue. */
.wt-site-header {
    --wt-header-h: 80px;
    --wt-ink: #152237;        /* welltopo.com nav/text navy */
    position: sticky;
    top: 0;
    z-index: var(--wt-z-sticky);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid #f2f2f2;   /* full-width, matches live welltopo.com */
}

.wt-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wt-header-h);
    gap: var(--wt-space-6);
}

.wt-site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: -10px;
}

.wt-site-logo img {
    height: 43.5px;            /* matches live 36px logo at 1.2x scale */
    width: auto;
}

.wt-site-nav {
    display: flex;
    align-items: center;
    gap: var(--wt-space-2);
}

.wt-site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: var(--wt-header-h);   /* full header height so active underline sits at its base */
    padding: 0 var(--wt-space-4); /* 16px horizontal; vertical centering via flex */
    font-variant: all-small-caps;
    font-size: 1.4rem;            /* 22.4px — matches live */
    font-weight: var(--wt-weight-semibold);
    letter-spacing: 0.05rem;
    color: var(--wt-ink);
    text-decoration: none;
    border-radius: var(--wt-radius-sm); /* 6px */
    transition: var(--wt-transition-color);
    white-space: nowrap;
}

.wt-site-nav__link:hover {
    color: var(--wt-color-primary);
}

/* Active-page underline: 2px navy bar at the bottom of the header, inset to text */
.wt-site-nav__link[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: var(--wt-space-4);
    right: var(--wt-space-4);
    bottom: 0;
    height: 2px;
    background: var(--wt-ink);
}

.wt-site-nav__sep {
    width: 1px;
    height: 22px;
    background: var(--wt-color-border);
    margin-inline: var(--wt-space-2);
}

/* Header CTA buttons (Sign in / Sign Up) — match live 44px buttons */
.wt-site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    font-family: var(--wt-font-body);
    font-size: 16px;
    font-weight: var(--wt-weight-semibold);
    letter-spacing: 0.05rem;
    border-radius: var(--wt-radius-md); /* 8px */
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--wt-transition-default);
}

.wt-site-cta--signin {
    background: var(--wt-white);
    color: var(--wt-ink);
    border-color: #e5e5e5;
}
.wt-site-cta--signin:hover { background: #f2f2f2; }

.wt-site-cta--signup {
    background: var(--wt-color-primary);   /* brand blue #0054a6 */
    color: var(--wt-white);
}
.wt-site-cta--signup:hover {
    background: var(--wt-color-primary-hover);
    transform: translateY(-1px);
    color: var(--wt-color-text-on-cta);
}

/* Mobile nav toggle */
.wt-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--wt-ink);
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.wt-site-nav--mobile {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--wt-space-1);
    padding: var(--wt-space-3) 0 var(--wt-space-4);
    border-top: 1px solid var(--wt-color-border);
}

/* Reset full-height nav links + buttons for the stacked mobile menu */
.wt-site-nav--mobile .wt-site-nav__link {
    height: auto;
    padding: var(--wt-space-3) var(--wt-space-4);
}
.wt-site-nav--mobile .wt-site-nav__link[aria-current="page"]::after { display: none; }
.wt-site-nav--mobile .wt-site-cta {
    width: 100%;
    margin-top: var(--wt-space-2);
}

.wt-site-header.is-open .wt-site-nav--mobile { display: flex; }

@media (max-width: 880px) {
    .wt-site-nav { display: none; }
    .wt-nav-toggle { display: inline-flex; }
}


/* ----- Marketing hero (full-bleed image) ----- */
.wt-hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50vh;
    padding-block: var(--wt-space-20);
    background-size: cover;
    background-position: center;
    color: var(--wt-white);
}

.wt-hero-banner__content {
    position: relative;
    z-index: var(--wt-z-base);
    max-width: 720px;
}

.wt-hero-banner__title {
    font-size: var(--wt-text-5xl);
    font-weight: var(--wt-weight-extrabold);
    line-height: 1.08;
    letter-spacing: var(--wt-tracking-tight);
    margin-bottom: var(--wt-space-5);
}

.wt-hero-banner__subtitle {
    font-size: var(--wt-text-xl);
    line-height: var(--wt-leading-relaxed);
    font-weight: var(--wt-weight-semibold);
    opacity: 0.92;
    margin-bottom: var(--wt-space-8);
    max-width: 680px;
    text-shadow: #000000 3px 1px 3px
}

@media (min-width: 768px) {
    .wt-hero-banner__title { font-size: 56px; }
}


/* ----- Section scaffold ----- */
.wt-section {
    padding-block: var(--wt-space-20);
}

.wt-section--tint   { background: var(--wt-color-surface); }
.wt-section--orange   { background: var(--wt-orange-50); }
.wt-section--blue   { background: var(--wt-blue-100); }
.wt-section--rose   { background: var(--wt-red-50); }
.wt-section--ltpurp   { background: var(--wt-magenta-50); }
.wt-section--brand  { background: var(--wt-gradient-brand); color: var(--wt-white); }

.wt-section__head, .wt-section__body {
    text-align: center;
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: var(--wt-space-12);
}

.wt-section__title {
    font-size: var(--wt-text-4xl);
    font-weight: var(--wt-weight-extrabold);
    line-height: var(--wt-leading-tight);
    margin-bottom: var(--wt-space-4);
}

.wt-section__lead {
    font-size: var(--wt-text-xl);
    color: var(--wt-color-text-muted);
    line-height: var(--wt-leading-relaxed);
}

.wt-section--brand .wt-section__lead { color: rgba(255, 255, 255, 0.82); }


/* ----- Feature / problem card grid ----- */
.wt-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wt-space-6);
}

.wt-feature-card {
    background: var(--wt-color-card);
    border-radius: var(--wt-radius-2xl);
    border-left: 4px solid var(--wt-color-border);
    padding: var(--wt-space-6);
    box-shadow: var(--wt-shadow-sm);
    transition: var(--wt-transition-transform);
}

.wt-feature-card:hover {
    box-shadow: var(--wt-shadow-lg);
    transform: translateY(-3px);
}

.wt-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--wt-radius-full);
    font-size: 22px;
    margin-bottom: var(--wt-space-4);
    background: var(--wt-color-info-bg);
    color: var(--wt-color-info);
}

.wt-feature-card__title {
    font-size: var(--wt-text-xl);
    font-weight: var(--wt-weight-bold);
    margin-bottom: var(--wt-space-3);
}

.wt-feature-card__body {
    color: var(--wt-color-text-muted);
    line-height: var(--wt-leading-relaxed);
}

/* Accent variants (border + icon tint) */
.wt-feature-card--danger   { border-left-color: var(--wt-color-danger); }
.wt-feature-card--danger   .wt-feature-card__icon { background: var(--wt-color-danger-bg); color: var(--wt-color-danger); }
.wt-feature-card--warning  { border-left-color: var(--wt-color-warning); }
.wt-feature-card--warning  .wt-feature-card__icon { background: var(--wt-color-warning-bg); color: var(--wt-color-warning); }
.wt-feature-card--amber    { border-left-color: #eab308; }
.wt-feature-card--amber    .wt-feature-card__icon { background: #fef9c3; color: #a16207; }
.wt-feature-card--accent   { border-left-color: var(--wt-color-accent); }
.wt-feature-card--accent   .wt-feature-card__icon { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-feature-card--info     { border-left-color: var(--wt-color-primary); }
.wt-feature-card--info     .wt-feature-card__icon { background: var(--wt-color-info-bg); color: var(--wt-color-primary); }
.wt-feature-card--success  { border-left-color: var(--wt-color-success); }
.wt-feature-card--success  .wt-feature-card__icon { background: var(--wt-color-success-bg); color: var(--wt-color-success); }

@media (max-width: 980px) { .wt-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wt-feature-grid { grid-template-columns: 1fr; } }


/* ----- Split (image + bullet list) ----- */
.wt-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wt-space-16);
    align-items: center;
}

.wt-split__media {

}
.wt-split__media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 1px solid var(--wt-gray-200);
    border-radius: var(--wt-radius-xl);
    box-shadow: var(--wt-shadow-lg);
}

.wt-bullet {
    display: flex;
    gap: var(--wt-space-4);
    align-items: flex-start;
}

.wt-bullet + .wt-bullet { margin-top: var(--wt-space-7); }

.wt-bullet__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--wt-radius-lg);
    font-size: 20px;
    flex-shrink: 0;
    background: var(--wt-color-info-bg);
    color: var(--wt-color-primary);
}

.wt-bullet__icon--success { background: var(--wt-color-success-bg); color: var(--wt-color-success); }
.wt-bullet__icon--accent  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-bullet__icon--health  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-bullet__icon--costs  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-bullet__icon--environment  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }

.wt-bullet__title {
    font-size: var(--wt-text-xl);
    font-weight: var(--wt-weight-bold);
    margin-bottom: var(--wt-space-2);
}

.wt-bullet__body {
    color: var(--wt-color-text-muted);
    line-height: var(--wt-leading-relaxed);
}

@media (max-width: 880px) {
    .wt-split { grid-template-columns: 1fr; gap: var(--wt-space-8); }
    .wt-split__media { order: -1; }
}


/* ----- Dashboard preview ----- */
.wt-preview {
    max-width: 980px;
    margin: 0 auto var(--wt-space-10);
}

.wt-preview__bg {
    width: 100%;
    border-radius: var(--wt-radius-3xl);
}
.wt-preview__img {
    width: 100%;
}

/* Dashboard preview — animated screen layer */
.wt-preview__stage {
    position: relative;
    display: block;
    line-height: 0;
}

/* Clipping window — positioned and sized by wt-home-preview.js */
.wt-preview__screen {
    position: absolute;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    isolation: isolate;
}

/* Top vignette — bezel shadow depth */
.wt-preview__screen::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: linear-gradient(to bottom, rgba(8, 16, 36, 0.15), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Bottom vignette — suggests content continues beyond the frame */
.wt-preview__screen::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 20px;
    background: linear-gradient(to top, rgba(8, 16, 36, 0.25), transparent);
    z-index: 2;
    pointer-events: none;
}

.wt-preview__fg {
    width: 100%;
    display: block;
    border: none;
    border-radius: 0;
    will-change: transform;
    cursor: grab;
}

.wt-shadow {
    box-shadow: var(--wt-shadow-xl);    
}


/* ----- Stat band ----- */
.wt-stat-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wt-space-6);
    text-align: center;
}

.wt-stat-card {
    padding: var(--wt-space-8);
    border-radius: var(--wt-radius-2xl);
    background: var(--wt-color-surface);
}

.wt-stat-card--blue  { background: var(--wt-blue-100); }
.wt-stat-card--green { background: var(--wt-green-100); }
.wt-stat-card--red   { background: var(--wt-red-100); }

.wt-stat-card__num {
    font-size: var(--wt-text-5xl);
    font-weight: var(--wt-weight-extrabold);
    line-height: 1;
    margin-bottom: var(--wt-space-2);
}

.wt-stat-card--blue  .wt-stat-card__num { color: var(--wt-color-primary); }
.wt-stat-card--green .wt-stat-card__num { color: var(--wt-color-success); }
.wt-stat-card--red   .wt-stat-card__num { color: var(--wt-color-danger); }

.wt-stat-card__label {
    font-size: var(--wt-text-lg);
    font-weight: var(--wt-weight-semibold);
    color: var(--wt-color-text-mid);
}

@media (max-width: 720px) { .wt-stat-band { grid-template-columns: 1fr; } }


/* ----- CTA band ----- */
.wt-cta-band {
    text-align: center;
    padding-block: var(--wt-space-20);
    background: var(--wt-color-primary);
    color: var(--wt-white);
}

.wt-cta-band__title {
    font-size: var(--wt-text-4xl);
    font-weight: var(--wt-weight-extrabold);
    margin-bottom: var(--wt-space-4);
}

.wt-cta-band__lead {
    font-size: var(--wt-text-xl);
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto var(--wt-space-8);
    line-height: var(--wt-leading-relaxed);
}

.wt-cta-band__actions {
    display: flex;
    gap: var(--wt-space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.wt-cta-band .wt-btn--on-primary {
    background: var(--wt-white);
    color: var(--wt-color-primary);
}
.wt-cta-band .wt-btn--on-primary:hover { background: var(--wt-color-surface); }

.wt-cta-band .wt-btn--outline-light {
    background: transparent;
    color: var(--wt-white);
    border-color: rgba(255, 255, 255, 0.7);
}
.wt-cta-band .wt-btn--outline-light:hover {
    background: var(--wt-white);
    color: var(--wt-color-primary);
}

.wt-cta-band__note {
    font-size: var(--wt-text-base);
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--wt-space-4);
}


/* ----- Footer ----- */
.wt-site-footer {
    background: var(--wt-navy-900);
    color: var(--wt-white);
    padding-block: var(--wt-space-16) var(--wt-space-8);
}

.wt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--wt-space-8);
}

.wt-site-footer__logo {
    height: 30px;
    width: auto;
    margin-bottom: var(--wt-space-4);
    /* white-out the multicolor logo on the dark footer 
    filter: brightness(0) invert(1);*/
}

.wt-site-footer__about {
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--wt-leading-relaxed);
    max-width: 380px;
    margin-bottom: var(--wt-space-6);
}

.wt-social {
    display: flex;
    gap: var(--wt-space-3);
}

.wt-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--wt-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--wt-white);
    font-size: 18px;
    transition: var(--wt-transition-color);
}

.wt-social a:hover { background: var(--wt-color-primary); color: var(--wt-white); }

.wt-footer-col h4 {
    font-size: var(--wt-text-lg);
    font-weight: var(--wt-weight-semibold);
    margin-bottom: var(--wt-space-4);
}

.wt-footer-col ul { list-style: none; }

.wt-footer-col li + li { margin-top: var(--wt-space-3); }

.wt-footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--wt-transition-color);
}

.wt-footer-col a:hover { color: var(--wt-color-accent-soft); }

.wt-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--wt-space-4);
    margin-top: var(--wt-space-12);
    padding-top: var(--wt-space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wt-footer-bottom__legal {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--wt-text-base);
}

.wt-footer-bottom__links {
    display: flex;
    gap: var(--wt-space-6);
}

.wt-footer-bottom__links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--wt-text-base);
    text-decoration: none;
}

.wt-footer-bottom__links a:hover { color: var(--wt-color-accent-soft); }

@media (max-width: 880px) {
    .wt-footer-grid { grid-template-columns: 1fr 1fr; }
    .wt-site-footer__about-col { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .wt-footer-grid { grid-template-columns: 1fr; }
}


/* ----- Generic content (FAQ / legal) ----- */
.wt-content {
    max-width: var(--wt-container-md);
    margin-inline: auto;
    padding-block: var(--wt-space-12);
}

/* Anchor jumps must clear the sticky site header */
.wt-content [id] { scroll-margin-top: var(--wt-space-24); }

.wt-content h1 {
    font-size: var(--wt-text-4xl);
    margin-bottom: var(--wt-space-4);
}

.wt-content > p.wt-content__lead {
    font-size: var(--wt-text-lg);
    color: var(--wt-color-text-muted);
    margin-bottom: var(--wt-space-10);
}

.wt-faq-item {
    border-bottom: 1px solid var(--wt-color-border);
    padding-block: var(--wt-space-5);
}

.wt-faq-item h3 {
    font-size: var(--wt-text-xl);
    margin-bottom: var(--wt-space-2);
}

.wt-faq-item p {
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
}

.wt-legal h2 {
    font-size: var(--wt-text-2xl);
    margin-top: var(--wt-space-8);
    margin-bottom: var(--wt-space-3);
}

.wt-legal h3 {
    font-size: var(--wt-text-lg);
    margin-top: var(--wt-space-5);
    margin-bottom: var(--wt-space-2);
}

.wt-legal p,
.wt-legal li {
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
    margin-bottom: var(--wt-space-3);
}

.wt-legal ul { padding-left: var(--wt-space-6); }

.wt-legal ol { padding-left: var(--wt-space-6); }

.wt-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--wt-text-base);
    margin-block: var(--wt-space-5);
}

.wt-legal th,
.wt-legal td {
    border: 1px solid var(--wt-color-border);
    padding: var(--wt-space-2) var(--wt-space-3);
    text-align: left;
    vertical-align: top;
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
}

.wt-legal th { background: var(--wt-color-surface); }

@media (max-width: 560px) {
    .wt-legal table {
        display: block;
        overflow-x: auto;
    }
}

.wt-faq-section { margin-top: var(--wt-space-10); }

.wt-faq-section .wt-section__title {
    font-size: var(--wt-text-2xl);
    margin-bottom: var(--wt-space-2);
}

.wt-content__cta {
    margin-top: var(--wt-space-12);
    text-align: center;
}
