:root {
    --bg: #000;
    --fg: #fff;
    --muted: #cfcfcf;
    --hubspot: #ff7a59;
    --nav-h: 60px;
}

html, body {
    background: var(--bg);
    color: var(--fg);
}

/* Top bar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    z-index: 1100;
    font-size: .95rem;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.topbar .navlinks {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.topbar a {
    color: var(--fg);
    text-decoration: none;
    opacity: .92;
}

.topbar a:hover {
    opacity: 1;
}

.btn-get {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--fg);
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: .9rem;
}

.btn-get:hover {
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
}

.wrap {
    min-height: calc(100svh - var(--nav-h) - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 64px;
}

/* Owl */
.owl {
    width: min(70vmin, 680px);
    height: auto;
    display: block;
    margin: 0 auto 28px;
}

.eye {
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, .08));
}

.eyelid {
    transform-origin: 50% 0;
    transform: scaleY(0);
}

@keyframes blink {
    0%, 92%, 100% {
        transform: scaleY(0);
    }
    94%, 98% {
        transform: scaleY(1);
    }
}

.eyelid {
    animation: blink 5.5s infinite;
}

/* Type */
h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    text-align: center;
    margin: 0 0 .25rem;
}

.sub {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    opacity: .9;
    text-align: center;
    margin-bottom: 1rem;
}

.lead {
    color: var(--muted);
    max-width: 880px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

/* CTA */
.btn-hubspot {
    background: var(--hubspot);
    border: 2px solid var(--hubspot);
    color: #1a1a1a;
    transition: .2s ease;
}

.btn-hubspot:hover {
    background: transparent;
    color: var(--hubspot);
    border-color: var(--hubspot);
}

/* Sections */
.section {
    padding: 6rem 0;
}

/* Two-column how-row: left fills available space, right is a square */
.how-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.how-left {
    flex: 1 1 420px; /* grow to fill, but not shrink too small */
    min-width: 280px;
}

.how-right {
    flex: 0 0 auto; /* fixed size column */
    width: clamp(220px, 38vw, 420px);
    aspect-ratio: 1 / 1; /* force square */
}

/* Ensure the dash-placeholder fills the square container */
.how-right .dash-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

/* Stack vertically on smaller screens */
@media (max-width: 992px) {
    .how-row {
        flex-direction: column-reverse; /* put image under the text on md/sm */
    }

    .how-right {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}

.how-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    backdrop-filter: blur(6px);
}

.dash-placeholder {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(0deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 40px);
    border: 1px dashed rgba(255, 255, 255, .2);
}

/* Rotating background inside dash-placeholder */
.dash-placeholder {
    position: relative;
    overflow: hidden;
}

.dash-placeholder .rot-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
    will-change: opacity;
}

/* Match any rot-bg element that has a class containing 'show' (keeps linter happy) */
.dash-placeholder .rot-bg[class*='show'] {
    opacity: 1;
}

/* slightly larger on small screens to avoid letterboxing */
@media (max-width: 576px) {
    .dash-placeholder .rot-bg {
        background-size: cover;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .dash-placeholder .rot-bg {
        transition: none !important;
    }
}

.logo {
    height: 52px;
    opacity: .8;
    filter: grayscale(100%);
    transition: opacity .2s, filter .2s;
}

.logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Footer tweaks: make form compact and proportional */
#plans {
    padding-bottom: 10rem;
}

/* Responsive compact form inside footer */
#plans .lead-form {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Label: show on md+, hide on small screens to save vertical space */
#plans .lead-form label {
    font-size: .9rem;
    color: var(--muted);
    margin: 0 .5rem 0 0;
    white-space: nowrap;
    display: none;
}

@media (min-width: 768px) {
    #plans .lead-form label {
        display: block;
    }
}

/* Make input flexible but not gigantic */
#plans .lead-form .form-control {
    flex: 1 1 220px;
    min-width: 160px;
    border-radius: 10px;
}

/* Reduce the oversized Bootstrap large sizing only in footer */
#plans .form-control-lg {
    padding: .45rem .75rem;
    font-size: .95rem;
    height: auto;
}

#plans .btn-lg {
    padding: .45rem .9rem;
    font-size: .95rem;
    border-radius: 10px;
}

/* Tighter spacing for small screens */
@media (max-width: 575.98px) {
    #plans .lead-form {
        gap: .5rem;
    }

    #plans .lead-form .form-control {
        width: 100%;
    }

    #plans .lead-form .btn {
        width: 100%;
    }
}

/* Slightly smaller logos in footer */
#plans .logo {
    height: 42px;
    opacity: .85;
}

/* Reduce heavy border/padding look */
#plans .container .row {
    gap: 1rem;
}

.text-hubspot {
    color: var(--hubspot);
}

/* Footer: full-width with a narrow translucent white top line */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* narrow white transparent top line */
    background: rgba(0, 0, 0, 0.95);
    color: var(--muted);
    padding: 0.6rem 0;
    font-size: 0.92rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Slightly stronger contrast for the T&C line so it remains readable */
.site-footer .tc {
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.95;
}

/* Link style */
.site-footer a {
    color: var(--hubspot);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive: stack items and center on small screens */
@media (max-width: 575.98px) {
    .site-footer .container {
        justify-content: center;
        text-align: center;
    }

    .site-footer .container > * {
        width: 100%;
    }
}

/* New section styles */
.why-section {
    padding: 4rem 0;
    text-align: center;
}

/* Make Why section h2 match How it works h2 size */
.how-card h2,
.why-section h2 {
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.why-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.thank-msg {
    display: none;
    background: var(--hubspot);
    color: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: .5rem;
}

/* Section diamond separator (matches owl nose color) */
.section-separator {
    padding: 2.25rem 0; /* equal top and bottom spacing */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* diamond size + subtle fade animation */
.section-sep {
    width: 20px;
    height: 20px;
    display: block;
    opacity: 0.5; /* start value */
    animation: sepPulse 3s ease-in-out infinite;
}

@keyframes sepPulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .section-sep {
        width: 28px;
        height: 28px;
    }

    .section-separator {
        padding: 1.5rem 0;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .section-sep {
        animation: none !important;
    }
}

.animate-number {
    display: inline-block;
    transition: all 2s ease-out;
}

/* Prevent number and percent sign from wrapping separately */
.nowrap {
    white-space: nowrap;
}

.animate-number[data-target] {
    opacity: 0;
}


/* Left-align policy content */
.policy {
    text-align: left;
}

.policy h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: .5rem;
}

.policy .sub {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.policy section {
    margin: 1.25rem 0;
}

.policy h2 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.policy p, .policy ul {
    margin: 0 0 .6rem;
    line-height: 1.6;
    color: var(--fg);
}

.policy ul {
    list-style: none;
    padding-left: 0;
}

.policy ul li::before {
    content: "■ ";
    color: var(--hubspot);
    margin-right: .25rem;
    font-size: .8rem;
    vertical-align: middle;
}

.policy a {
    color: var(--hubspot);
    text-decoration: none;
}

.video-block {
    margin-top: 1.5rem;
}

.video-player-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-inner {
    width: 100%;
    height: calc(1140px * 0.5625);
    position: relative;
}

.video-inner video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
    transition: opacity .2s ease;
}

.video-play-button {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.video-play-button svg {
    width: 44px;
    height: 44px;
    fill: #ff7a59;
    margin-left: 4px;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .video-inner {
        height: calc(100vw * 0.5625);
    }

    .video-play-button {
        width: 80px;
        height: 80px;
    }

    .video-play-button svg {
        width: 36px;
        height: 36px;
    }
}