/* Hostinsync — marketing landing */
:root {
    --pb-bg: #0c1222;
    --pb-bg-soft: #151d30;
    --pb-bg-elevated: #1a2438;
    --pb-surface: #ffffff;
    --pb-text: #0f172a;
    --pb-muted: #64748b;
    --pb-accent: #0d9488;
    --pb-accent-hover: #0f766e;
    --pb-accent-soft: rgba(13, 148, 136, 0.1);
    --pb-accent-glow: rgba(45, 212, 191, 0.35);
    --pb-border: #e2e8f0;
    --pb-radius: 14px;
    --pb-radius-sm: 10px;
    --pb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --pb-max: 1140px;
    --pb-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --pb-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--pb-font);
    color: var(--pb-text);
    line-height: 1.65;
    background: var(--pb-surface);
    -webkit-font-smoothing: antialiased;
}

.pb-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.5rem 1rem;
    background: var(--pb-accent);
    color: #fff;
    z-index: 100;
}

.pb-skip:focus {
    left: 1rem;
    top: 1rem;
}

.pb-container {
    width: min(100% - 2.5rem, var(--pb-max));
    margin-inline: auto;
}

/* Header */
.pb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.pb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.pb-logo {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--pb-text);
    text-decoration: none;
}

.pb-logo--footer {
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

/* Header & footer logo — name on top, tagline below */
.pb-logo .hs-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.15;
}

.pb-logo .hs-brand-name {
    display: block;
    font-weight: inherit;
    line-height: 1.2;
}

.pb-logo .hs-brand-mark {
    color: var(--pb-accent);
}

.pb-logo .hs-tagline {
    display: block;
    color: var(--pb-muted);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.35;
    max-width: 10.5rem;
}

.pb-logo--footer .hs-tagline {
    color: rgba(241, 245, 249, 0.65);
}

.pb-logo--footer .hs-brand-mark {
    color: #2dd4bf;
}

.hs-brand-name--inline {
    display: inline;
    font-weight: 600;
}

.pb-footer__bottom .hs-brand-mark {
    color: #2dd4bf;
}

.pb-logo__mark {
    flex-shrink: 0;
    margin-top: 0.05rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #14b8a6, #0e7490);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.pb-logo__mark svg {
    display: block;
}

.pb-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pb-nav a:not(.pb-btn) {
    color: var(--pb-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.pb-nav a:not(.pb-btn):hover {
    color: var(--pb-text);
}

.pb-nav__signin {
    margin-left: 0.25rem;
}

.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.12s, box-shadow 0.2s;
}

.pb-btn:active {
    transform: translateY(1px);
}

.pb-btn--lg {
    padding: 0.75rem 1.45rem;
    font-size: 0.95rem;
}

.pb-btn--primary {
    background: var(--pb-accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.35);
}

.pb-btn--primary:hover {
    background: var(--pb-accent-hover);
}

.pb-btn--ghost {
    background: transparent;
    color: var(--pb-text);
    border: 1px solid var(--pb-border);
}

.pb-btn--ghost:hover {
    border-color: #cbd5e1;
}

.pb-btn--hero-outline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.pb-btn--hero-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.pb-btn--light {
    background: #fff;
    color: var(--pb-accent-hover);
}

.pb-btn--light:hover {
    background: #f0fdfa;
}

.pb-btn--cta-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.pb-btn--cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.pb-hero {
    position: relative;
    color: #f8fafc;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}

.pb-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(13, 148, 136, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(14, 116, 144, 0.18), transparent 50%),
        linear-gradient(165deg, var(--pb-bg) 0%, var(--pb-bg-soft) 50%, #0f172a 100%);
}

.pb-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.pb-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 960px) {
    .pb-hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.5rem;
    }
}

.pb-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5eead4;
    margin: 0 0 1rem;
}

.pb-hero h1 {
    font-size: clamp(2.05rem, 4.2vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.15rem;
    font-weight: 800;
    max-width: 14ch;
}

.pb-hero__lead {
    font-size: 1.08rem;
    color: #94a3b8;
    max-width: 36rem;
    margin: 0 0 1.75rem;
    line-height: 1.7;
}

.pb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.pb-hero__checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .pb-hero__checks {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }
}

.pb-hero__checks li {
    font-size: 0.875rem;
    color: #cbd5e1;
    padding-left: 1.35rem;
    position: relative;
}

.pb-hero__checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--pb-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

/* Dashboard mock */
.pb-dashboard {
    background: var(--pb-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--pb-radius) + 4px);
    box-shadow: var(--pb-shadow-lg);
    overflow: hidden;
}

.pb-dashboard__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pb-dashboard__chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.pb-dashboard__chrome span:first-child {
    background: #f87171;
}

.pb-dashboard__chrome span:nth-child(2) {
    background: #fbbf24;
}

.pb-dashboard__chrome span:nth-child(3) {
    background: #4ade80;
}

.pb-dashboard__chrome p {
    margin: 0 0 0 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.pb-dashboard__body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.pb-dashboard__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.pb-dashboard__row--muted {
    font-size: 0.85rem;
    color: #94a3b8;
}

.pb-dashboard__row--muted strong {
    color: #e2e8f0;
    font-weight: 600;
}

.pb-dashboard__label {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.pb-dashboard__meta {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.pb-pill {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.pb-pill--pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}

.pb-dashboard__cal {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--pb-radius-sm);
}

.pb-dashboard__cal-head {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.pb-mini-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    font-size: 0.62rem;
    text-align: center;
    color: #64748b;
}

.pb-mini-cal span {
    padding: 0.3rem 0;
    border-radius: 4px;
}

.pb-mini-cal .muted {
    opacity: 0.35;
}

.pb-mini-cal .booked {
    background: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

.pb-mini-cal .open {
    background: rgba(13, 148, 136, 0.3);
    color: #99f6e4;
}

.pb-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-dashboard__stats div {
    text-align: center;
}

.pb-dashboard__stats span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.pb-dashboard__stats strong {
    font-size: 1rem;
    color: #f1f5f9;
}

/* Trust strip */
.pb-trust {
    background: var(--pb-surface);
    border-bottom: 1px solid var(--pb-border);
    padding: 1.75rem 0;
}

.pb-trust__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

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

.pb-trust__grid div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pb-trust__grid strong {
    font-size: 0.9rem;
    color: var(--pb-text);
}

.pb-trust__grid span {
    font-size: 0.8rem;
    color: var(--pb-muted);
}

/* Sections */
.pb-section {
    padding: 5rem 0;
}

.pb-section--muted {
    background: #f8fafc;
}

.pb-section--dark {
    background: var(--pb-bg);
    color: #e2e8f0;
}

.pb-section__head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

.pb-section__head--light h2,
.pb-section__head--light p {
    color: inherit;
}

.pb-section__head--light p {
    color: #94a3b8;
}

.pb-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pb-accent);
    margin: 0 0 0.65rem;
}

.pb-section__head h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin: 0 0 0.85rem;
    letter-spacing: -0.025em;
    font-weight: 800;
    line-height: 1.15;
}

.pb-section__head p {
    color: var(--pb-muted);
    margin: 0;
    font-size: 1.02rem;
}

/* Features */
.pb-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .pb-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .pb-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pb-feature {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.pb-section--muted .pb-feature {
    background: #fff;
}

.pb-feature:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--pb-shadow);
    transform: translateY(-2px);
}

.pb-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pb-accent-soft);
    color: var(--pb-accent);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.pb-feature__icon svg {
    width: 22px;
    height: 22px;
}

.pb-feature h3 {
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pb-feature a {
    color: var(--pb-accent);
    font-weight: 600;
    text-decoration: none;
}

.pb-feature a:hover {
    text-decoration: underline;
}

.pb-feature code {
    font-size: 0.82em;
    word-break: break-word;
}

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

/* Steps */
.pb-steps {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pb-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pb-step {
    padding: 1.65rem;
    border-radius: var(--pb-radius);
    border: 1px solid var(--pb-border);
    background: var(--pb-surface);
}

.pb-step--dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.pb-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #14b8a6, #0d9488);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pb-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
    font-weight: 700;
}

.pb-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pb-muted);
    line-height: 1.55;
}

.pb-step--dark p {
    color: #94a3b8;
}

/* Integration cards */
.pb-channels {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pb-channels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pb-channels {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pb-channel--card {
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pb-channel code a {
    color: inherit;
    text-decoration: none;
}

.pb-channel code a:hover {
    text-decoration: underline;
}

.pb-channel--card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

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

.pb-channel--card code {
    display: block;
    padding: 0.65rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    font-size: 0.72rem;
    word-break: break-all;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pb-channel__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--pb-muted);
    margin-bottom: 0.75rem;
}

.pb-channel__tag--live {
    background: #ccfbf1;
    color: #0f766e;
}

/* FAQ */
.pb-faq-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .pb-faq-layout {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }
}

.pb-faq-intro h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.pb-faq-intro p {
    color: var(--pb-muted);
    margin: 0 0 1.5rem;
}

.pb-faq {
    margin: 0;
}

.pb-faq__item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--pb-border);
}

.pb-faq__item:first-child {
    padding-top: 0;
}

.pb-faq__item dt {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.pb-faq__item dd {
    margin: 0;
    font-size: 0.925rem;
    color: var(--pb-muted);
    line-height: 1.6;
}

.pb-faq__item code {
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* CTA */
.pb-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 50%, #155e75 100%);
    color: #fff;
}

.pb-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .pb-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.pb-cta h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    letter-spacing: -0.02em;
}

.pb-cta p {
    margin: 0;
    opacity: 0.92;
    max-width: 28rem;
}

.pb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Footer */
.pb-footer {
    padding: 3.5rem 0 0;
    background: var(--pb-bg);
    color: #94a3b8;
    font-size: 0.875rem;
}

.pb-footer__grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .pb-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.pb-footer__brand p {
    margin: 0;
    max-width: 22rem;
    line-height: 1.6;
    color: #64748b;
}

.pb-footer__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #cbd5e1;
    margin: 0 0 0.85rem;
}

.pb-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-footer__links li {
    margin-bottom: 0.45rem;
}

.pb-footer__links a {
    color: #94a3b8;
    text-decoration: none;
}

.pb-footer__links a:hover {
    color: #e2e8f0;
}

.pb-footer__bottom {
    padding: 1.25rem 0 1.75rem;
}

.pb-footer__bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Mobile nav */
.pb-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pb-text);
}

@media (max-width: 820px) {
    .pb-nav-toggle {
        display: block;
    }

    .pb-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: 1rem 1.25rem 1.25rem;
        border-bottom: 1px solid var(--pb-border);
        box-shadow: var(--pb-shadow);
    }

    .pb-nav.is-open {
        display: flex;
    }

    .pb-nav .pb-btn {
        text-align: center;
        margin-top: 0.35rem;
    }

    .pb-header__inner {
        position: relative;
    }

    .pb-hero h1 {
        max-width: none;
    }
}
