:root {
    --he-dark: #35312E;
    --he-light: #F7F5F2;
    --he-surface: #FFFFFF;
    --he-neutral: #8E8680;
    --he-pink: #B89A8F;
    --he-purple: #9280A0;
    --he-border: rgba(142, 134, 128, 0.22);
    --he-border-strong: rgba(53, 49, 46, 0.18);
    --he-shadow: 0 1px 2px rgba(53, 49, 46, 0.04), 0 18px 48px rgba(53, 49, 46, 0.08);
    --he-shadow-soft: 0 12px 34px rgba(53, 49, 46, 0.08);
    --he-radius-sm: 8px;
    --he-radius-md: 12px;
    --he-radius-lg: 16px;
    --he-max: 1120px;
    --he-product-accent: var(--accent, var(--he-purple));
    --he-product-accent-soft: var(--accent-bg, rgba(146, 128, 160, 0.12));
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--he-light) !important;
    color: var(--he-dark) !important;
    line-height: 1.65;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.home-page h1,
body.home-page h2,
.brand-heading {
    font-family: "Zilla Slab", Georgia, serif;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--he-dark);
    outline-offset: 3px;
}

.site-nav {
    align-items: center !important;
    border-bottom: 1px solid var(--he-border);
    display: flex !important;
    gap: 24px;
    justify-content: space-between !important;
    margin: 0 auto !important;
    max-width: var(--he-max) !important;
    padding: 18px 24px !important;
    position: relative;
    width: 100%;
}

.site-nav .logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    min-height: 44px;
}

.site-nav .logo img {
    height: 58px !important;
    margin: -10px -8px !important;
    width: auto;
}

.site-nav .nav-links,
.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px !important;
    justify-content: flex-end;
    list-style: none;
    min-width: 0;
}

.site-nav .nav-links a,
.nav-links a {
    border-radius: 999px;
    color: var(--he-neutral) !important;
    display: inline-flex;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    min-height: 36px;
    padding: 8px 2px;
    text-decoration: none;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active,
.nav-links a:hover,
.nav-links a.active {
    color: var(--he-dark) !important;
    text-decoration: none;
}

body.home-page .site-nav,
body.product-page .site-nav {
    background: rgba(247, 245, 242, 0.9);
    backdrop-filter: blur(16px);
}

.hero,
.help-hero {
    background: var(--he-light) !important;
    padding: clamp(54px, 8vw, 88px) 24px clamp(48px, 7vw, 76px) !important;
    position: relative;
}

.hero::after,
.help-hero::after {
    background: var(--he-border);
    bottom: 0;
    content: "";
    height: 1px;
    left: 50%;
    max-width: var(--he-max);
    position: absolute;
    transform: translateX(-50%);
    width: calc(100% - 48px);
}

.hero-inner,
.section-inner,
.help-hero-inner,
.page-shell,
.manual-grid,
.footer-inner {
    max-width: var(--he-max) !important;
}

.hero-inner {
    display: grid;
    justify-items: center;
}

.hero h1,
.help-hero h1,
.article-card h1 {
    color: var(--he-dark);
    font-size: clamp(2.15rem, 5vw, 4.1rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.06 !important;
    text-wrap: balance;
}

body.product-page .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.7rem) !important;
}

.hero .tagline,
.hero .availability-note,
.hero-copy,
.section-subtitle,
.free-note,
.app-card .features-list li,
.feature-card p,
.step p,
.cta-card p {
    color: rgba(53, 49, 46, 0.68) !important;
}

.hero .tagline,
.hero-copy,
.section-subtitle {
    line-height: 1.75 !important;
    text-wrap: pretty;
}

.brand-promise,
.section-label,
.eyebrow {
    color: var(--he-product-accent) !important;
}

body.home-page .section-label,
body.home-page .brand-promise {
    color: var(--he-pink) !important;
}

section {
    padding: clamp(56px, 7vw, 84px) 24px !important;
}

.section-title {
    color: var(--he-dark);
    font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.16 !important;
    text-wrap: balance;
}

.section-divider {
    background: var(--he-border) !important;
}

.apps-section,
.product-screens,
.pricing-section,
.how-section,
.release-note {
    background: var(--he-light) !important;
}

.features-section,
.cta-section {
    background: #fff !important;
}

.app-cards,
.features-grid,
.screen-grid,
.pricing-grid {
    gap: 18px !important;
}

.app-card,
.feature-card,
.price-card,
.cta-card,
.screen-tile img,
.demo-card,
.guide-card,
.article-card,
.quick-panel,
.callout,
.related-card,
.feedback-form,
.packet-card,
.test-script,
.feedback-panel,
.known-notes,
.media-card {
    background: var(--he-surface) !important;
    border: 1px solid var(--he-border) !important;
    border-radius: var(--he-radius-md) !important;
    box-shadow: none !important;
}

.app-card,
.feature-card,
.guide-card,
.related-card,
.screen-tile,
.screen-card {
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-card:hover,
.feature-card:hover,
.guide-card:hover,
.related-card:hover,
.screen-tile:hover,
.screen-card:hover {
    border-color: var(--he-border-strong) !important;
    box-shadow: var(--he-shadow-soft) !important;
    transform: translateY(-2px);
}

.app-card .card-hero,
.cta-card,
.quick-panel {
    background: linear-gradient(180deg, #fff, rgba(247, 245, 242, 0.72)) !important;
}

.app-card .card-hero .app-icon,
.app-icon,
.cta-card .cta-icon {
    border-radius: 16px !important;
    box-shadow: 0 10px 26px rgba(53, 49, 46, 0.11) !important;
}

.badge,
.feature-badge {
    border-radius: 999px !important;
    letter-spacing: 0.04em !important;
}

.badge-live,
.badge-new,
.badge-service,
.badge-saas,
.badge-beta,
.feature-badge,
.badge.free {
    background: var(--he-product-accent-soft) !important;
    color: var(--he-dark) !important;
}

.card-link,
.cta-link,
.learn-link {
    color: var(--he-dark) !important;
    font-weight: 700 !important;
}

.store-badges a,
.button,
.cta-link,
.card-link,
.learn-link {
    min-height: 44px;
}

.button {
    border-radius: var(--he-radius-sm) !important;
    font-weight: 800 !important;
}

.button.primary {
    background: var(--he-dark) !important;
    color: var(--he-light) !important;
}

.button.secondary {
    background: var(--he-surface) !important;
    border: 1px solid var(--he-border) !important;
    color: var(--he-dark) !important;
}

.hero-screenshot,
.screenshot-strip img,
.screen-tile img,
.screen-card img,
.demo-card img,
.article-visual img {
    background: rgba(247, 245, 242, 0.72) !important;
    border: 1px solid var(--he-border) !important;
    border-radius: var(--he-radius-md) !important;
    box-shadow: none !important;
}

.screen-tile,
.screen-card {
    border-radius: var(--he-radius-md);
    color: inherit;
    padding: 10px;
    text-decoration: none;
}

.spectator-section,
.about-strip {
    background: var(--he-dark) !important;
    color: var(--he-light) !important;
}

.spectator-section .section-subtitle,
.about-strip p {
    color: rgba(247, 245, 242, 0.72) !important;
}

footer,
.footer {
    background: var(--he-light) !important;
    border-top: 1px solid var(--he-border) !important;
    color: var(--he-neutral) !important;
    padding: 38px 24px !important;
    text-align: center;
}

footer a,
.footer a {
    color: rgba(53, 49, 46, 0.74) !important;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    border-color: var(--he-border) !important;
    border-radius: var(--he-radius-sm) !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--he-dark) !important;
    box-shadow: 0 0 0 3px rgba(53, 49, 46, 0.12) !important;
}

@media (max-width: 820px) {
    .site-nav {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .site-nav .nav-links,
    .nav-links {
        justify-content: flex-start;
    }

    .app-cards,
    .features-grid,
    .screen-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .hero {
        text-align: left !important;
    }

    .hero-inner {
        justify-items: start;
        text-align: left;
    }

    .store-badges {
        justify-content: flex-start !important;
    }
}

@media (max-width: 560px) {
    .site-nav,
    .hero,
    .help-hero,
    section,
    footer,
    .footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .site-nav .logo img {
        height: 52px !important;
    }

    .site-nav .nav-links,
    .nav-links {
        gap: 4px 14px !important;
    }

    .site-nav .nav-links a,
    .nav-links a {
        font-size: 0.8rem !important;
    }

    .hero h1,
    .help-hero h1,
    .article-card h1 {
        font-size: 2rem !important;
    }

    .app-card .card-hero {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .screenshot-strip {
        justify-content: flex-start !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
