/* Skip-to-content link (accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    padding: 12px 24px;
    background: var(--landing-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    outline: 2px solid rgba(225, 29, 72, 0.8);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

button,
a,
input,
select,
textarea,
[role="button"] {
    touch-action: manipulation;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--gradient-page);
    color: var(--landing-text);
}

a {
    color: inherit;
    text-decoration: none;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 10, 17, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    min-height: 74px;
    padding-top: env(safe-area-inset-top, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display-font);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(225, 29, 72, 0.42);
    background: rgba(225, 29, 72, 0.17);
    color: #ffd9e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark svg {
    width: 17px;
    height: 17px;
}

.brand-text {
    font-size: 1.03rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--landing-muted);
    font-size: 0.94rem;
}

.nav-links a {
    position: relative;
    transition: color 180ms ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, rgba(225, 29, 72, 0), rgba(225, 29, 72, 0.9), rgba(225, 29, 72, 0));
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
    color: var(--landing-text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a.is-active {
    color: var(--landing-text);
}

.subtitleai-btn {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--landing-border);
    background: rgba(255, 255, 255, 0.015);
    color: var(--landing-text);
    font-size: 0.92rem;
    padding: 10px 16px;
    transition: border-color 180ms ease, background 180ms ease, transform 140ms ease;
}

.subtitleai-btn:hover {
    border-color: rgba(225, 29, 72, 0.45);
    background: rgba(225, 29, 72, 0.08);
}

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

.subtitleai-btn-primary {
    background: linear-gradient(135deg, var(--landing-accent) 0%, #fb7185 120%);
    border-color: transparent;
    box-shadow: 0 10px 30px var(--landing-glow);
    color: #ffffff;
}

.subtitleai-btn-primary:hover {
    background: linear-gradient(135deg, var(--landing-accent-strong) 0%, #f43f5e 120%);
    border-color: transparent;
}

.subtitleai-btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    background: #ffffff;
    border-color: #ffffff;
    color: #1f2333;
    font-weight: 700;
    box-shadow: 0 12px 34px rgba(255, 255, 255, 0.14);
}

.subtitleai-btn-google:hover {
    background: #f1f3f8;
    border-color: #f1f3f8;
}

.subtitleai-btn-google .google-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.subtitleai-btn:focus-visible,
.faq-question:focus-visible,
.nav-links a:focus-visible,
.nav-drawer a:focus-visible,
.nav-drawer-close:focus-visible,
.footer-links a:focus-visible,
.free-trial-btn:focus-visible,
.billing-toggle-btn:focus-visible,
.yearly-nudge:focus-visible,
.plan-cta:focus-visible {
    outline: 2px solid rgba(225, 29, 72, 0.8);
    outline-offset: 2px;
}

/* Show nav-link underline on focus as well as hover (T3: no hover-only) */
.nav-links a:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    position: relative;
    padding: 96px 0 52px;
    /* Restore the subtle brand glow near the hero only; scoping it here keeps
       the radial gradients out of body so they don't repaint during scroll. */
    background:
        radial-gradient(circle at 12% 10%, rgba(29, 78, 216, 0.2) 0%, rgba(29, 78, 216, 0) 32%),
        radial-gradient(circle at 84% 8%, rgba(225, 29, 72, 0.2) 0%, rgba(225, 29, 72, 0) 34%);
}


.hero-centered {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

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

.hero-kicker,
.section-kicker {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #ff9eb4;
    font-weight: 700;
}

.hero-centered h1 {
    margin: 14px 0 14px;
    font-family: var(--display-font);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--landing-muted);
    max-width: 62ch;
}

/* min-width is the measured width of "interviews", in em so it tracks the clamped h1. */
.hero-rotator {
    display: inline-block;
    min-width: 4.9em;
    text-align: center;
    color: #ff9eb4;
    border-bottom: 3px solid rgba(225, 29, 72, 0.5);
    transition: opacity 180ms ease, transform 180ms ease;
}

.hero-rotator.is-swapping {
    opacity: 0;
    transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
    .hero-rotator {
        transition: none;
    }
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.google-cta-legal {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: var(--landing-muted);
    line-height: 1.5;
}

.google-cta-legal a {
    color: var(--landing-text);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

#top-cta.subtitleai-btn-google {
    padding: 8px 12px;
    font-size: 0.82rem;
    box-shadow: none;
}

.hero-trust {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-trust-item {
    font-size: 0.88rem;
    color: var(--landing-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust-item svg {
    color: #ff9eb4;
    flex-shrink: 0;
}

/* Full-width demo video row — shares hero background for visual continuity */
.hero-video-section {
    padding-top: 0;
    padding-bottom: 80px;
    background:
        radial-gradient(circle at 12% -40%, rgba(29, 78, 216, 0.12) 0%, rgba(29, 78, 216, 0) 40%),
        radial-gradient(circle at 84% -30%, rgba(225, 29, 72, 0.12) 0%, rgba(225, 29, 72, 0) 42%);
}

.hero-video-section .hero-mockup {
    max-width: 1060px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-head {
    margin-bottom: 36px;
}

.section-head h2 {
    margin: 10px 0 0;
    font-family: var(--display-font);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    max-width: 24ch;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(165deg, rgba(20, 23, 36, 0.9), rgba(15, 17, 28, 0.88));
}

.example-card h3 {
    margin: 0;
    font-size: 1.03rem;
}

.example-card p {
    margin: 9px 0 0;
    color: var(--landing-muted);
}

.pricing {
    position: relative;
}

.pricing::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(158, 168, 199, 0.18), rgba(255, 255, 255, 0));
}

.plans-status,
.pricing-note {
    min-height: 22px;
    margin: 0;
}

/* Free Trial Banner */
.free-trial-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 60, 40, 0.55);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 36px;
}
