/* Public home landing + owner dashboard polish */

.home-landing {
    --home-accent:  #ff8c42;
    --home-accent-dark: #ea580c;
    --home-accent-soft: rgba(255, 140, 66, 0.12);
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-border: #e8ebf0;
    --home-surface: #ffffff;
    --home-surface-soft: #f8fafc;
    --home-radius: 1.25rem;
    --home-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
    --home-shadow-lg: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.12);
}

html[data-ws-theme="dark"] .home-landing {
    --home-ink: #e8eef7;
    --home-muted: #94a3b8;
    --home-border: #1d4168;
    --home-surface: #0c1a2e;
    --home-surface-soft: #0f2137;
    --home-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
    --home-shadow-lg: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.45);
}

/* ── Hero ── */

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--home-radius);
    background: linear-gradient(135deg, #0f172a 0%, #7c2d12 38%, #ea580c 72%, #ff8c42 100%);
    color: #fff;
    margin-bottom: 3rem;
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero::before {
    width: 28rem;
    height: 28rem;
    top: -10rem;
    right: -6rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
}

.home-hero::after {
    width: 18rem;
    height: 18rem;
    bottom: -8rem;
    left: -4rem;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 70%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
}

@media (min-width: 992px) {
    .home-hero-inner {
        padding: 4rem 3rem;
    }
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
}

.home-hero-title {
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff !important;
    margin-bottom: 1rem;
}

.home-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.home-hero-actions .btn-light {
    font-weight: 600;
    color: var(--home-accent-dark);
    border: none;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.home-hero-actions .btn-light:hover {
    background: #fff;
    transform: translateY(-1px);
}

.home-hero-actions .btn-outline-light {
    font-weight: 600;
    border-width: 2px;
}

.home-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Dashboard preview card */

.home-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
}

.home-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.home-preview-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.home-preview-dot.is-active {
    background: #fbbf24;
}

.home-preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 0.25rem;
}

.home-preview-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
}

.home-preview-stat strong {
    color: #fbbf24;
    font-weight: 700;
}

.home-preview-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-preview-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.home-preview-checklist li:last-child {
    margin-bottom: 0;
}

.home-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: rgba(34, 197, 94, 0.85);
    border-radius: 50%;
    margin-top: 0.1rem;
}

/* ── Stats strip ── */

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .home-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 1rem;
    box-shadow: var(--home-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.home-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--home-accent-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--home-muted);
    margin-top: 0.25rem;
    line-height: 1.35;
}

/* ── Section headers ── */

.home-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-accent-dark);
    margin-bottom: 0.5rem;
}

.home-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--home-ink);
    margin-bottom: 0.5rem;
}

.home-section-sub {
    font-size: 0.95rem;
    color: var(--home-muted);
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Workflow steps ── */

.home-workflow {
    margin-bottom: 3.5rem;
}

.home-step-card {
    position: relative;
    height: 100%;
    background: var(--home-surface);
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius) !important;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--home-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.home-step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-accent), var(--home-accent-dark));
}

.home-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-lg);
    border-color: rgba(255, 140, 66, 0.35) !important;
}

.home-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-dark));
    border-radius: 0.75rem;
    box-shadow: 0 0.35rem 0.85rem rgba(234, 88, 12, 0.35);
}

.home-step-card .card-title {
    font-weight: 700;
    color: var(--home-ink);
    margin-top: 1rem !important;
}

/* ── Feature grid ── */

.home-features {
    margin-bottom: 3.5rem;
}

.home-feature-card {
    height: 100%;
    background: var(--home-surface-soft);
    border: 1px solid var(--home-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-feature-card:hover {
    background: var(--home-surface);
    border-color: rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

.home-feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: var(--home-accent-soft);
    color: var(--home-accent-dark);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.home-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--home-ink);
    margin-bottom: 0.35rem;
}

.home-feature-card p {
    font-size: 0.85rem;
    color: var(--home-muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Pricing ── */

.home-pricing {
    position: relative;
    margin-bottom: 3.5rem;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(180deg, var(--home-surface-soft) 0%, var(--home-surface) 100%);
    border: 1px solid var(--home-border);
    border-radius: calc(var(--home-radius) + 0.25rem);
}

.home-pricing::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 140, 66, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.home-pricing > * {
    position: relative;
    z-index: 1;
}

.home-landing .ws-plan-card {
    border: 1px solid var(--home-border);
    border-radius: 1.15rem;
    background: var(--home-surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-landing .ws-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-lg);
}

.home-landing .ws-plan-card.is-featured {
    border-color: var(--home-accent);
    box-shadow: 0 0 0 1px var(--home-accent), var(--home-shadow-lg);
    transform: scale(1.02);
}

.home-landing .ws-plan-card.is-featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.home-landing .ws-plan-card-body {
    flex: 1 1 auto;
    padding: 1.5rem 1.5rem 0.5rem;
}

.home-landing .ws-plan-price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--home-ink);
}

.home-landing .ws-plan-meta {
    font-size: 0.875rem;
    color: var(--home-muted);
}

.home-landing .ws-plan-badge,
.home-landing .ws-plan-featured-badge {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.home-landing .ws-plan-featured-badge {
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-dark)) !important;
}

.home-landing .btn-ws-primary {
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 0.65rem;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 0.35rem 1rem rgba(234, 88, 12, 0.3);
}

.home-landing .btn-ws-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(234, 88, 12, 0.4);
}

/* ── Bottom CTA ── */

.home-bottom-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fff 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--home-radius);
}

.home-bottom-cta::before {
    content: "";
    position: absolute;
    width: 16rem;
    height: 16rem;
    top: -6rem;
    right: -4rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.home-bottom-cta h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--home-ink);
}

.home-bottom-cta .btn-primary {
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-dark));
    border: none;
    font-weight: 600;
    box-shadow: 0 0.35rem 1rem rgba(234, 88, 12, 0.3);
}

.home-bottom-cta .btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.home-bottom-cta .btn-outline-primary {
    font-weight: 600;
    border-width: 2px;
    border-color: var(--home-accent);
    color: var(--home-accent-dark);
}

.home-bottom-cta .btn-outline-primary:hover {
    background: var(--home-accent-soft);
    border-color: var(--home-accent-dark);
    color: var(--home-accent-dark);
}

html[data-ws-theme="dark"] .home-bottom-cta {
    background: linear-gradient(135deg, #1a1208 0%, #0f2137 60%, #0c1a2e 100%);
    border-color: #7c2d12;
}

/* ── Owner dashboard ── */

.home-owner {
    padding: 0.5rem 0 1rem;
}

.home-owner .home-eyebrow {
    color: var(--home-accent-dark, #ea580c);
    letter-spacing: 0.06em;
}

.home-owner-actions {
    position: relative;
}

.home-owner-action-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 9rem;
    height: 100%;
    padding: 1.25rem 1.25rem;
    color: #0f172a;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(234, 88, 12, 0.22);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(255, 140, 66, 0.24), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-owner-action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.08), transparent 58%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-owner-action-card:hover,
.home-owner-action-card:focus-visible {
    color: #0f172a;
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 1.25rem 2.75rem rgba(15, 23, 42, 0.13);
    transform: translateY(-3px);
}

.home-owner-action-card:hover::before,
.home-owner-action-card:focus-visible::before {
    opacity: 1;
}

.home-owner-action-card:focus-visible {
    outline: 3px solid rgba(234, 88, 12, 0.24);
    outline-offset: 3px;
}

.home-owner-action-card.is-secondary {
    border-color: rgba(37, 99, 235, 0.18);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.home-owner-action-card.is-secondary::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 58%);
}

.home-owner-action-card.is-secondary:hover,
.home-owner-action-card.is-secondary:focus-visible {
    border-color: rgba(37, 99, 235, 0.38);
}

.home-owner-action-icon,
.home-owner-action-arrow,
.home-owner-action-content {
    position: relative;
    z-index: 1;
}

.home-owner-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ff8c42, #ea580c);
    box-shadow: 0 0.6rem 1.25rem rgba(234, 88, 12, 0.3);
}

.home-owner-action-card.is-secondary .home-owner-action-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0.6rem 1.25rem rgba(37, 99, 235, 0.26);
}

.home-owner-action-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-owner-action-kicker {
    color: #ea580c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-owner-action-card.is-secondary .home-owner-action-kicker {
    color: #2563eb;
}

.home-owner-action-title {
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-owner-action-text {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-owner-action-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    color: #ea580c;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-owner-action-card.is-secondary .home-owner-action-arrow {
    color: #2563eb;
}

.home-owner-action-card:hover .home-owner-action-arrow,
.home-owner-action-card:focus-visible .home-owner-action-arrow {
    background: #fff;
    transform: translateX(3px);
}

.home-owner .home-mini-card {
    border: 1px solid var(--home-border, #e8ebf0) !important;
    border-radius: 1rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-owner .home-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

.home-owner .home-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
    border-radius: 0.9rem;
    background: rgba(255, 140, 66, 0.12);
    color: #ea580c;
}

.home-owner .home-cta-card {
    border: 1px solid var(--home-border, #e8ebf0) !important;
    border-radius: 1.25rem !important;
    background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}

html[data-ws-theme="dark"] .home-owner .home-cta-card {
    background: linear-gradient(180deg, #0c1a2e 0%, #0f2137 100%);
    border-color: #1d4168 !important;
}

html[data-ws-theme="dark"] .home-owner-action-card {
    color: #e8eef7;
    border-color: rgba(255, 140, 66, 0.28);
    background:
        radial-gradient(circle at top right, rgba(255, 140, 66, 0.16), transparent 36%),
        linear-gradient(135deg, #0f2137 0%, #1a1208 100%);
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.3);
}

html[data-ws-theme="dark"] .home-owner-action-card:hover,
html[data-ws-theme="dark"] .home-owner-action-card:focus-visible {
    color: #e8eef7;
    border-color: rgba(255, 140, 66, 0.5);
    box-shadow: 0 1.25rem 2.75rem rgba(0, 0, 0, 0.42);
}

html[data-ws-theme="dark"] .home-owner-action-card.is-secondary {
    border-color: rgba(59, 130, 246, 0.3);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 36%),
        linear-gradient(135deg, #0f2137 0%, #0c1a2e 100%);
}

html[data-ws-theme="dark"] .home-owner-action-card.is-secondary:hover,
html[data-ws-theme="dark"] .home-owner-action-card.is-secondary:focus-visible {
    border-color: rgba(59, 130, 246, 0.5);
}

html[data-ws-theme="dark"] .home-owner-action-title {
    color: #e8eef7;
}

html[data-ws-theme="dark"] .home-owner-action-text {
    color: #94a3b8;
}

html[data-ws-theme="dark"] .home-owner-action-arrow {
    background: rgba(15, 33, 55, 0.78);
}

html[data-ws-theme="dark"] .home-owner-action-card:hover .home-owner-action-arrow,
html[data-ws-theme="dark"] .home-owner-action-card:focus-visible .home-owner-action-arrow {
    background: rgba(15, 33, 55, 0.95);
}

@media (max-width: 575.98px) {
    .home-owner-action-card {
        align-items: flex-start;
        padding: 1.1rem;
    }

    .home-owner-action-icon {
        width: 3rem;
        height: 3rem;
    }

    .home-owner-action-arrow {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .home-owner-action-content {
        padding-right: 2rem;
    }
}

.home-landing-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--home-border, #e8ebf0);
    font-size: 0.875rem;
    color: var(--home-muted, #64748b);
}

.home-landing-footer .site-legal-links a {
    color: var(--home-accent-dark, #ea580c);
}

.home-landing-footer .site-legal-links a:hover {
    color: #c2410c;
}
