:root {
    --ink: #0d1f25;
    --ink-soft: #35525b;
    --muted: #64757b;
    --paper: #ffffff;
    --mist: #f3f8f8;
    --line: #d8e5e7;
    --teal: #0a6772;
    --teal-dark: #084b56;
    --blue: #123d74;
    --amber: #e5a72f;
    --success: #14744d;
    --error: #b3261e;
    --shadow: 0 18px 50px rgba(13, 31, 37, 0.12);
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    font-size: 17px;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--blue);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

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

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateY(-120%);
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1rem;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(216, 229, 231, 0.78);
}

.site-nav {
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.86rem;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal-dark);
    background: rgba(10, 103, 114, 0.1);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    padding: 0;
}

.nav-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    min-height: 78svh;
    display: grid;
    align-items: end;
    position: relative;
    isolation: isolate;
    background-image: linear-gradient(90deg, rgba(7, 22, 27, 0.82), rgba(7, 22, 27, 0.46), rgba(7, 22, 27, 0.12)), var(--hero-image);
    background-size: cover;
    background-position: center;
    color: var(--paper);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 20%;
    background: linear-gradient(0deg, rgba(7, 22, 27, 0.5), transparent);
    z-index: -1;
}

.hero-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8rem 0 6rem;
}

.hero h1,
.hero p {
    color: var(--paper);
}

.hero-copy {
    max-width: 680px;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    color: var(--teal);
    font-weight: 850;
    margin-bottom: 0.8rem;
}

.hero .eyebrow {
    color: #8be7e3;
}

.hero-actions,
.contact-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions.centered {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background: var(--teal);
    color: var(--paper);
}

.button.primary:hover {
    background: var(--teal-dark);
    color: var(--paper);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--teal-dark);
    border-color: rgba(255, 255, 255, 0.7);
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 6rem 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 2.2rem;
}

.section-heading p {
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.app-intro .feature-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.feature-card,
.contact-panel,
.legal-aside,
.subscription-facts {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 10px 28px rgba(13, 31, 37, 0.07);
}

.feature-card p,
.contact-panel p,
.subscription-facts p {
    color: var(--ink-soft);
}

.product-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.product-card h3,
.product-card p,
.product-card .inline-link {
    grid-column: 2;
}

.app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.inline-link {
    font-weight: 850;
}

.split-band,
.mode-band,
.subscription-band,
.contact-band {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
    background: var(--mist);
    padding: 6rem max(20px, calc((100vw - 1180px) / 2));
}

.text-grid,
.mode-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mode-list {
    grid-template-columns: 1fr;
}

.media-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
    gap: 3rem;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 6rem 0;
}

.media-section img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.media-copy p {
    color: var(--ink-soft);
}

.subscription-band {
    background: var(--ink);
    color: var(--paper);
}

.subscription-band h2,
.subscription-band p {
    color: var(--paper);
}

.subscription-band .eyebrow {
    color: #8be7e3;
}

.subscription-facts {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.subscription-facts a {
    color: #8be7e3;
}

.contact-band {
    background: linear-gradient(135deg, #eaf5f4, #ffffff);
}

.page-hero {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 6rem 0 4rem;
}

.page-hero.compact {
    min-height: 58svh;
    text-align: center;
    display: grid;
    align-content: center;
    justify-items: center;
}

.page-hero h1 {
    color: var(--ink);
}

.legal-layout,
.support-layout,
.contact-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 1rem 0 6rem;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.legal-aside {
    position: sticky;
    top: 96px;
}

.legal-copy {
    max-width: 820px;
}

.legal-copy h2 {
    font-size: 1.7rem;
    margin-top: 2rem;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy p {
    color: var(--ink-soft);
}

.support-layout,
.contact-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.stack-list {
    display: grid;
    gap: 0.85rem;
}

.contact-note {
    margin-top: 2rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--ink);
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem 0.85rem;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    background: var(--paper);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(10, 103, 114, 0.18);
    border-color: var(--teal);
}

.form-status {
    margin: 0;
    min-height: 1.5rem;
    color: var(--muted);
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--error);
}

.faq-band {
    border-top: 1px solid var(--line);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-list article {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
}

.footer-brand p {
    max-width: 360px;
}

.footer-brand strong,
.footer-links h2 {
    color: var(--paper);
}

.footer-mark {
    background: var(--teal);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-links h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 1.3rem 0;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 20px 1rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        border-radius: var(--radius);
    }

    .hero {
        min-height: 72svh;
        background-image: linear-gradient(90deg, rgba(7, 22, 27, 0.86), rgba(7, 22, 27, 0.48)), var(--hero-image);
    }

    .hero-content {
        padding: 6rem 0 4rem;
    }

    .feature-row,
    .app-intro .feature-row,
    .split-band,
    .mode-band,
    .subscription-band,
    .contact-band,
    .media-section,
    .legal-layout,
    .support-layout,
    .contact-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .text-grid {
        grid-template-columns: 1fr;
    }

    .media-section {
        gap: 1.5rem;
    }

    .legal-aside {
        position: static;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-nav,
    .hero-content,
    .section,
    .page-hero,
    .legal-layout,
    .support-layout,
    .contact-layout,
    .media-section,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .brand-name {
        font-size: 0.98rem;
    }

    .hero {
        min-height: 68svh;
    }

    .hero-actions,
    .contact-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card h3,
    .product-card p,
    .product-card .inline-link {
        grid-column: auto;
    }

    .split-band,
    .mode-band,
    .subscription-band,
    .contact-band {
        padding: 4rem 14px;
    }
}
