/* ==========================================================================
   Public Website — app.iwantteam.ai
   Clean, minimal SaaS landing page styles.
   Uses CRM design tokens (--crm-*) where loaded, own fallbacks otherwise.
   ========================================================================== */

:root {
    --pub-primary:       #2563eb;
    --pub-primary-hover: #1d4ed8;
    --pub-bg:            #ffffff;
    --pub-surface:       #f8fafc;
    --pub-surface-2:     #f1f5f9;
    --pub-text:          #1e293b;
    --pub-text-secondary:#475569;
    --pub-text-muted:    #64748b;
    --pub-border:        #e2e8f0;
    --pub-radius:        8px;
    --pub-radius-lg:     16px;
    --pub-shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --pub-shadow-lg:     0 10px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
    --pub-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --pub-max-width:     1120px;
    --pub-content-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

body.iwt-public {
    margin: 0;
    padding: 0;
    font-family: var(--pub-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pub-text);
    background: var(--pub-bg);
    -webkit-font-smoothing: antialiased;
}

.iwt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pub-border);
}

.iwt-header__inner {
    max-width: var(--pub-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iwt-header__brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pub-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.iwt-header__brand:hover { color: var(--pub-primary); }

.iwt-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iwt-header__nav a {
    color: var(--pub-text-secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .15s;
}

.iwt-header__nav a:hover { color: var(--pub-primary); }

/* Button inside nav needs higher specificity to override nav link color */
.iwt-header__nav a.iwt-btn--primary { color: #fff; }
.iwt-header__nav a.iwt-btn--primary:hover { color: #fff; }
.iwt-header__nav a.iwt-btn--outline { color: var(--pub-primary); }
.iwt-header__nav a.iwt-btn--outline:hover { color: #fff; }

.iwt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--pub-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    line-height: 1.4;
}

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

.iwt-btn--outline {
    background: transparent;
    color: var(--pub-primary);
    border: 1px solid var(--pub-primary);
}
.iwt-btn--outline:hover {
    background: var(--pub-primary);
    color: #fff;
}

.iwt-btn--large {
    padding: .875rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.iwt-btn--small {
    padding: .375rem .75rem;
    font-size: .8rem;
}

.iwt-hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--pub-surface) 0%, var(--pub-bg) 100%);
}

.iwt-hero__inner {
    max-width: var(--pub-content-width);
    margin: 0 auto;
}

.iwt-hero__badge {
    display: inline-block;
    padding: .25rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--pub-primary);
    background: rgba(37,99,235,.08);
    border-radius: var(--pub-radius);
    margin-bottom: 1.5rem;
    letter-spacing: .02em;
}

.iwt-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--pub-text);
    letter-spacing: -.02em;
}

.iwt-hero__subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--pub-text-secondary);
    margin: 0 0 2.5rem;
    line-height: 1.6;
}

.iwt-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.iwt-features {
    padding: 4rem 1.5rem;
    max-width: var(--pub-max-width);
    margin: 0 auto;
}

.iwt-features__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.iwt-features__heading h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.iwt-features__heading p {
    color: var(--pub-text-secondary);
    margin: 0;
}

.iwt-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.iwt-feature {
    padding: 1.75rem;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    transition: box-shadow .2s, border-color .2s;
}

.iwt-feature:hover {
    border-color: transparent;
    box-shadow: var(--pub-shadow-lg);
}

.iwt-feature__icon {
    font-size: 1.75rem;
    margin-bottom: .75rem;
    display: block;
}

.iwt-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.iwt-feature p {
    color: var(--pub-text-secondary);
    margin: 0;
    font-size: .925rem;
    line-height: 1.55;
}

.iwt-cta {
    padding: 4rem 1.5rem;
    text-align: center;
    background: var(--pub-surface);
    border-top: 1px solid var(--pub-border);
}

.iwt-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.iwt-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .75rem;
}

.iwt-cta p {
    color: var(--pub-text-secondary);
    margin: 0 0 1.5rem;
}

.iwt-footer {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--pub-border);
    color: var(--pub-text-muted);
    font-size: .85rem;
}

.iwt-footer__inner {
    max-width: var(--pub-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.iwt-footer__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iwt-footer__links a {
    color: var(--pub-text-muted);
    text-decoration: none;
}
.iwt-footer__links a:hover {
    color: var(--pub-primary);
}

.iwt-content {
    max-width: var(--pub-content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.iwt-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}

.iwt-content .iwt-content__updated {
    color: var(--pub-text-muted);
    font-size: .85rem;
    margin-bottom: 2rem;
    display: block;
}

.iwt-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2.5rem 0 .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pub-border);
}

.iwt-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.iwt-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 .5rem;
}

.iwt-content p {
    margin: 0 0 1rem;
    color: var(--pub-text-secondary);
    line-height: 1.7;
}

.iwt-content ul, .iwt-content ol {
    color: var(--pub-text-secondary);
    padding-left: 1.5rem;
    margin: 0 0 1rem;
    line-height: 1.7;
}

.iwt-content a {
    color: var(--pub-primary);
    text-decoration: underline;
    text-decoration-color: rgba(37,99,235,.3);
    text-underline-offset: 2px;
}
.iwt-content a:hover {
    text-decoration-color: var(--pub-primary);
}

.iwt-contact-card {
    padding: 2rem;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    margin: 2rem 0;
}

.iwt-contact-card h3 {
    margin-top: 0;
}

.iwt-contact-card p {
    margin: .25rem 0;
}

@media (max-width: 640px) {
    .iwt-header__nav .iwt-nav-desktop { display: none; }

    .iwt-hero { padding: 3rem 1rem 2.5rem; }
    .iwt-hero h1 { font-size: 1.75rem; }

    .iwt-features { padding: 2.5rem 1rem; }
    .iwt-features__grid { grid-template-columns: 1fr; }

    .iwt-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
