/* Homepage theme tokens + layout chrome (no <style> in welcome.blade.php). */

:root {
    --brand-primary: #0f766e;
    --brand-accent: #14b8a6;
    --brand-bg-from: #042f2e;
    --brand-bg-to: #0f766e;
    --font-body: ui-sans-serif, system-ui, sans-serif;
    --font-display: ui-serif, Georgia, serif;
    --accent-blue: #2e4dfe;
}

html.theme-light {
    --page-bg: #ffffff;
    --page-fg: #0f172a;
    --muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-soft: #f8fafc;
    --header-bg: #ffffff;
    --header-fg: #0f172a;
    --header-logo-sub: #0f172a;
    --header-border: #e8edf5;
    --header-toggle-border: #e2e8f0;
    --section-border: #e2e8f0;
    --slider-wrap-bg: #ffffff;
    --slider-stage-bg: transparent;
    --slider-shadow: none;
    --eyebrow: #2e4dfe;
    --accent-blue: #2e4dfe;
}

html.theme-dark {
    --page-bg: #020617;
    --page-fg: #f1f5f9;
    --muted: #94a3b8;
    --card-bg: #0f172a;
    --card-border: #1e293b;
    --card-soft: #111827;
    --header-bg: #0f172a;
    --header-fg: #e2e8f0;
    --header-logo-sub: #cbd5e1;
    --header-border: #1e293b;
    --header-toggle-border: #334155;
    --section-border: #1e293b;
    --slider-wrap-bg: #020617;
    --slider-stage-bg: #0f172a;
    --slider-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --eyebrow: #5eead4;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.55;
    color: var(--page-fg);
    background: var(--page-bg);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.font-display {
    font-family: var(--font-display);
}

.np-h1 {
    font-size: clamp(2.25rem, 4.2vw, 4.6875rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--page-fg);
}

.np-h2 {
    font-size: clamp(1.75rem, 2.8vw, 3rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--page-fg);
}

.np-h3 {
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--page-fg);
}

.np-h4 {
    font-size: clamp(1.125rem, 1.3vw, 1.5rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--page-fg);
}

.np-lead {
    font-size: clamp(1rem, 1.05vw, 1.125rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--muted);
}

.np-body {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--muted);
}

.np-nav {
    font-size: 1.125rem;
    font-weight: 600;
}

.np-btn {
    font-size: 1.125rem;
    font-weight: 700;
}

.np-badge {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.17;
}

.np-phone {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    font-weight: 800;
}

.np-badge--soft {
    background: #e2e7ff;
    color: var(--accent-blue);
}

.np-badge--tint {
    background: color-mix(in srgb, var(--accent-blue) 12%, transparent);
    color: var(--accent-blue);
}

.site-header--sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--page-bg);
}

.site-header__bar {
    background: var(--header-bg);
    color: var(--header-fg);
    border-radius: 20px;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.15);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.site-header__link {
    color: var(--header-fg);
    opacity: 0.86;
}

.site-header__link:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.site-header__call {
    border-radius: 0 15px 15px 0;
    margin-right: -1px;
}

.site-header__call-label {
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.site-header__call-number {
    font-size: clamp(1.05rem, 1.35vw, 1.5rem);
    line-height: 1.35;
    font-weight: 800;
    color: #fff;
}

.site-header__menu-btn {
    color: var(--header-fg);
    border-color: var(--header-toggle-border);
}

.site-header svg {
    max-width: 2rem;
    max-height: 2rem;
}

.about-story-features svg {
    max-width: 1.25rem;
    max-height: 1.25rem;
}

.site-header__mobile {
    background: var(--header-bg);
    color: var(--header-fg);
    border: 1px solid var(--header-border);
}

.scroll-progress {
    position: fixed;
    right: 15px;
    bottom: 30px;
    z-index: 60;
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-75deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-progress.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-progress__svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(15, 23, 42, 0.2));
    border-radius: 50%;
}

.scroll-progress__bg {
    fill: var(--page-bg);
    stroke: var(--page-bg);
    stroke-width: 5;
}

.scroll-progress__bar {
    fill: none;
    stroke: #2e4dfe;
    stroke-width: 5;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
    transform-origin: center;
}

.scroll-progress__btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(75deg);
    cursor: pointer;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--page-fg);
}

.scroll-progress__btn svg {
    display: block;
    width: 100%;
    height: 100%;
}

html.theme-dark .scroll-progress__svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.theme-surface {
    background: var(--page-bg);
    color: var(--page-fg);
}

.theme-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--page-fg);
}

.theme-card-soft {
    background: var(--card-soft);
    border: 1px solid var(--card-border);
}

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

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

.theme-section-border {
    border-color: var(--section-border);
}

.theme-float-toggle {
    background: var(--card-bg);
    border-color: var(--card-border);
    color: var(--page-fg);
}

.theme-soft-strip {
    background: var(--card-soft);
}

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

.theme-border-accent {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.about-story-card {
    background: #e9edff;
}

.about-story-dots {
    inset: 3rem 1.5rem 5rem;
    background-image: radial-gradient(circle, #b7c2f5 1.35px, transparent 1.35px);
    background-size: 18px 18px;
}

.feature-swatch {
    background: var(--swatch, #22c55e);
}

.hero-badge-tint {
    background: color-mix(in srgb, var(--accent-blue) 14%, transparent);
    color: var(--eyebrow);
}

.hero-panel {
    color: var(--page-fg);
}

.hero-input-shell {
    border-color: var(--card-border);
    background: var(--card-bg);
}

.hero-input-text {
    color: var(--page-fg);
}

/* Domain text box row: 25% wider than previous max-w-xl (36rem → 45rem) */
.hero-domain-form {
    max-width: 45rem;
    width: 100%;
}

.hero-domain-form .hero-input-shell,
.hero-domain-form > div.flex {
    flex: 1 1 0;
    min-width: 0;
}

.domain-search-panel {
    background: var(--card-bg);
    border-color: var(--card-border);
    color: var(--page-fg);
}

.domain-search-panel__muted {
    color: var(--muted);
}

.domain-search-panel__list {
    border-color: var(--card-border);
}

.bg-image-cover {
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-avatar-stack__overlap {
    margin-left: -10px;
}

/* Need a hosting CTA — kept here so a standalone home.css deploy fixes live without full Vite CSS */
.hosting-cta-section {
    padding: 1.75rem 0 2.25rem;
}

.hosting-cta-section__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem 2rem;
}

.hosting-cta-section__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.hosting-cta-section__title {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--page-fg);
}

.hosting-cta-section__action {
    flex: 0 0 auto;
}

.hosting-cta-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.75rem;
    background: #2e4dfe;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 1.55rem;
    box-shadow: 0 10px 24px rgba(46, 77, 254, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hosting-cta-section__btn:hover {
    background: #2440e6;
    color: #ffffff;
}

@media (min-width: 768px) {
    .hosting-cta-section {
        padding: 2rem 0 2.75rem;
    }

    .hosting-cta-section__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem 3rem;
    }

    .hosting-cta-section__title {
        font-size: clamp(1.5rem, 2vw, 1.85rem);
    }
}

.site-header__auth {
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.85rem;
    align-self: center;
}

.site-header__auth-form {
    margin: 0;
}

.site-header__auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--header-toggle-border);
    background: transparent;
    color: var(--header-fg);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.site-header__auth-link--primary {
    background: #2e4dfe;
    border-color: #2e4dfe;
    color: #fff;
}

.site-header__auth-link--primary:hover {
    background: #2440e6;
    color: #fff;
}

.site-header__auth-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.site-header__auth-mobile .site-header__auth-link,
.site-header__auth-mobile .site-header__auth-form,
.site-header__auth-mobile .site-header__auth-form .site-header__auth-link {
    width: 100%;
}

@media (min-width: 768px) {
    .site-header__auth {
        display: flex;
    }
}
