/* Shared Cosmos chrome for inner pages.
   Homepage keeps its own inline stylesheet (hero is frozen). */

:root {
    --color-linen-canvas: #f7f5f3;
    --color-ink-black: #0d0d0d;
    --color-paper-white: #ffffff;
    --color-stone: #6e6a69;
    --color-pebble: #9a9796;
    --bg: var(--color-linen-canvas);
    --surface: var(--color-paper-white);
    --ink: var(--color-ink-black);
    --secondary: var(--color-stone);
    --muted: var(--color-pebble);
    --line: rgba(13, 13, 13, 0.12);
    --font-cosmosoracle: "Fraunces", Georgia, "Iowan Old Style", Palatino, serif;
    --display: var(--font-cosmosoracle);
    --font-weight-w350: 350;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --text-caption: 14px;
    --text-body: 16px;
    --text-subheading: 18px;
    --text-heading-sm: 24px;
    --text-heading: 33px;
    --text-heading-lg: 38px;
    --text-display: 58px;
    --text-display-xl: 74px;
    --radius-cards: 16px;
    --radius-inputs: 16px;
    --radius-buttons: 16px;
    --radius-imagetiles: 12px;
    --radius: 16px;
    --radius-tile: 12px;
    --page-max-width: 1280px;
    --section-gap: 80px;
    --card-padding: 16px;
    --element-gap: 24px;
    --pad: clamp(20px, 4vw, 40px);
    --max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--display);
    font-weight: 400;
    font-optical-sizing: auto;
    font-size: 16px;
    letter-spacing: -0.18px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
strong, b { font-weight: 500; }

::selection {
    background: var(--ink);
    color: var(--surface);
}

.skip {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 200;
    background: var(--ink);
    color: var(--surface);
    padding: 12px 14px;
    border-radius: 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.skip:focus { top: 16px; }

.wrap {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin: 0 auto;
}

.eyebrow {
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: var(--radius-buttons);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    border: 1px solid transparent;
    background: var(--surface);
    color: var(--ink);
    transition: opacity 0.2s ease;
    cursor: pointer;
    min-height: 48px;
    text-align: center;
}
.btn-primary {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
.btn-secondary:hover { border-color: rgba(13, 13, 13, 0.28); }
.btn-sm { padding: 16px 24px; font-size: 16px; }

.nav-wrap {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}
.nav-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9999px;
    padding: 6px 6px 6px 18px;
    max-width: 100%;
}
.nav-logo {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0 8px 0 0;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 400;
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    letter-spacing: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
    background: var(--ink);
    color: var(--surface);
    padding: 8px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}
.nav-links .nav-cta:hover { opacity: 0.88; color: var(--surface); }
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 15px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 9999px;
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    .nav-pill {
        width: 100%;
        justify-content: space-between;
        position: relative;
    }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 14px;
        border-radius: 16px;
        min-height: 44px;
    }
    .nav-links .nav-cta { justify-content: center; }
}

.section { padding: var(--section-gap) 0; }
.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
    font-size: var(--text-heading-lg);
    font-weight: 350;
    letter-spacing: -1.52px;
    line-height: 1.08;
    margin-bottom: 12px;
}
.section-head p {
    color: var(--secondary);
    font-size: 16px;
    letter-spacing: -0.18px;
    line-height: 1.5;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-cards);
    padding: var(--card-padding);
}
.card h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.2px;
    line-height: 1.29;
    margin: 16px 0 8px;
}
.card p {
    color: var(--secondary);
    font-size: 16px;
    letter-spacing: -0.18px;
    line-height: 1.5;
}
.feature-card {
    background: transparent;
    padding: 0;
}
.card-media {
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    min-height: 44px;
    padding-top: 8px;
}
.card-link:hover { color: var(--secondary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--element-gap);
    align-items: start;
}
.contact-panel {
    background: var(--surface);
    border-radius: var(--radius-cards);
    padding: var(--card-padding);
}
.contact-panel h2 {
    font-size: var(--text-heading-lg);
    font-weight: 350;
    letter-spacing: -1.52px;
    line-height: 1.08;
    margin: 8px 0 16px;
}
.contact-panel p { color: var(--secondary); margin-bottom: 12px; }
.channel-list { list-style: none; display: grid; gap: 16px; }
.channel-list a, .channel-list span {
    display: block;
    background: var(--surface);
    border-radius: var(--radius-cards);
    padding: var(--card-padding);
    min-height: 44px;
}
.channel-list strong { display: block; font-weight: 500; margin-bottom: 2px; }
.channel-list small { color: var(--secondary); font-size: 14px; }

.footer {
    border-top: 1px solid var(--line);
    padding: 64px 0 40px;
    color: var(--secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3 {
    color: var(--ink);
    font-weight: 350;
    font-size: 24px;
    letter-spacing: -0.48px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.footer h4 {
    color: var(--ink);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 14px;
}
.footer p { font-size: 16px; margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 16px; }
.footer a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.footer a:hover { color: var(--ink); }
.footer-disclaimer {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
}
.wa-float:hover { opacity: 0.88; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* Inner-page layout */
.page-hero {
    padding: 128px 0 80px;
}
.page-hero h1 {
    font-weight: 350;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin: 16px 0 16px;
    max-width: 18em;
}
.page-hero .lead,
.page-lead {
    font-size: 18px;
    line-height: 1.29;
    letter-spacing: -0.2px;
    color: var(--secondary);
    font-weight: 400;
    max-width: 70ch;
}
.crumb {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0;
    margin-bottom: 16px;
}
.crumb a {
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
}
.crumb a:hover { color: var(--ink); }

.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "copy media"
        "specs media";
    gap: 24px 80px;
    align-items: start;
}
.product-copy { grid-area: copy; min-width: 0; }
.feature-card h3 { margin: 8px 0; }
.feature-card .eyebrow { margin-top: 16px; margin-bottom: 8px; }
.product-split > .diagram { grid-area: media; align-self: stretch; }
.product-split > .quick-specs { grid-area: specs; margin-top: 8px; }
.diagram {
    margin: 0;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.diagram img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
}

.quick-specs {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    margin-top: 32px;
    display: grid;
    gap: 12px;
}
.quick-specs div {
    display: grid;
    gap: 2px;
}
.quick-specs dt {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}
.quick-specs dd {
    font-size: 16px;
    color: var(--ink);
}

.catalog-grid,
.notes-grid {
    display: grid;
    gap: var(--element-gap);
}
.catalog-grid { grid-template-columns: repeat(2, 1fr); }
.notes-grid { grid-template-columns: repeat(2, 1fr); }

.prose {
    padding: 0 0 80px;
}
.prose h2 {
    font-size: 33px;
    font-weight: 350;
    letter-spacing: -1.32px;
    line-height: 1.1;
    margin: 48px 0 16px;
    max-width: 70ch;
}
.prose h3 {
    font-size: 24px;
    font-weight: 350;
    letter-spacing: -0.48px;
    line-height: 1.2;
    margin: 32px 0 12px;
    max-width: 70ch;
}
.prose p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.18px;
    color: var(--secondary);
    margin-bottom: 16px;
    max-width: 70ch;
}
.prose p strong { color: var(--ink); }
.prose ul, .prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--secondary);
    max-width: 70ch;
}
.prose li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.prose li strong { color: var(--ink); }
.prose a {
    border-bottom: 1px solid var(--line);
}
.prose a:hover { border-color: var(--ink); }

.callout {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    margin: 24px 0;
    max-width: 70ch;
}
.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0 32px;
    border-radius: 16px;
    background: var(--surface);
    max-width: 70ch;
}
.specs-table,
.spec-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 16px;
}
.specs-table th,
.specs-table td,
.spec-table th,
.spec-table td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.specs-table th,
.spec-table th {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg);
}
.specs-table td,
.spec-table td { color: var(--ink); }

.faq-list {
    display: grid;
    gap: 24px;
}
.faq-item {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    max-width: 70ch;
}
.faq-item h2 {
    font-size: 24px;
    font-weight: 350;
    letter-spacing: -0.48px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.faq-item p,
.faq-item li {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.5;
}
.faq-item p { margin-bottom: 12px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul { margin: 8px 0 12px 22px; }
.faq-item li { margin-bottom: 8px; }
.faq-item strong { color: var(--ink); }

.actions-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 70ch;
}

.sales-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}
.sales-split .card h1 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 350;
    letter-spacing: -0.04em;
    line-height: 1.06;
    margin: 8px 0 8px;
}
.sales-meta {
    color: var(--secondary);
    margin: 16px 0;
}
.sales-split a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.sales-meta a:hover { border-color: var(--ink); }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .contact-grid,
    .catalog-grid,
    .notes-grid,
    .sales-split { grid-template-columns: 1fr; }
    .product-split {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "media"
            "specs";
        gap: 24px;
    }
    .page-hero h1 { max-width: none; }
}
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .page-hero { padding: 112px 0 64px; }
    .footer-grid { grid-template-columns: 1fr; }
    .diagram { padding: 24px; min-height: 200px; }
}

.page-hero + .section { padding-top: 0; }
.card-media img[src$=".svg"] {
    object-fit: contain;
    padding: 12px 20px;
    background: var(--surface);
}
