/* ============================================================
   Secondary-page layout
   Loaded by every non-index page. Reuses tokens from styles.css.
   ============================================================ */

/* ----- Page hero (the band at the top of secondary pages) ----- */
.page-hero {
    padding: 96px 0 56px;
    position: relative;
    overflow: hidden;
    background: var(--canvas);
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 110% at 10% 0%, rgba(20,165,134,0.07) 0%, transparent 60%),
        radial-gradient(70% 100% at 95% 5%, rgba(124,108,240,0.06) 0%, transparent 60%);
    z-index: -1;
}
.page-hero-inner { max-width: 760px; }
.page-hero .eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 14px;
}
.page-hero h1 {
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    color: var(--ink);
}
.page-hero p.lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    max-width: 640px;
}
.page-hero p.meta {
    margin-top: 18px;
    font-size: 13px;
    color: var(--ink-faint);
}

/* ----- Prose (legal pages, docs-like content) ----- */
.prose {
    padding: 24px 0 96px;
}
.prose-inner {
    max-width: 720px;
}
.prose h2 {
    margin: 56px 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.prose h2:first-child { margin-top: 8px; }
.prose h3 {
    margin: 32px 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.prose p,
.prose li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0 0 14px;
}
.prose ul,
.prose ol {
    padding-left: 22px;
    margin: 0 0 18px;
}
.prose li { margin-bottom: 8px; }
.prose a {
    color: var(--teal-700);
    text-decoration: underline;
    text-decoration-color: rgba(10,114,99,0.35);
    text-underline-offset: 2px;
}
.prose a:hover {
    text-decoration-color: var(--teal-700);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 14px;
}
.prose th,
.prose td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.prose th {
    font-weight: 600;
    color: var(--ink);
    background: var(--canvas-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Callout / note box inside prose */
.prose .note {
    background: rgba(20,165,134,0.07);
    border: 1px solid rgba(20,165,134,0.18);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 22px 0;
    font-size: 15px;
    color: var(--ink);
}
.prose .note strong { color: var(--teal-700); }

/* ----- Two-column meta block (used on Contact, About) ----- */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 32px 0 18px;
}
.meta-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px 22px 20px;
}
.meta-card .meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 8px;
}
.meta-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}
.meta-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}
.meta-card a {
    display: inline-block;
    margin-top: 6px;
    color: var(--teal-700);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}
.meta-card a:hover { text-decoration: underline; }

/* ----- Integrations grid ----- */
.integrations-section { padding: 80px 0; }
.integrations-section:nth-of-type(even) { background: var(--canvas); }
.integrations-section h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
}
.integrations-section .group-sub {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 0 28px;
}
.integrations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.integration-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.15s, transform 0.15s;
}
.integration-card:hover {
    border-color: rgba(20,30,50,0.16);
    transform: translateY(-1px);
}
.integration-card .ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--canvas-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    flex-shrink: 0;
}
.integration-card .ico svg { width: 18px; height: 18px; }
.integration-card .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}
.integration-card .tag {
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 2px;
}

/* ----- About story blocks ----- */
.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-top: 40px;
}
.story-row.text-only {
    grid-template-columns: 1fr;
    max-width: 720px;
}
.story-row h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
}
.story-row p {
    margin: 0 0 14px;
    line-height: 1.65;
    color: var(--ink-2);
    font-size: 16px;
}

/* ----- Stats strip (About) ----- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    padding: 36px 32px;
    background: linear-gradient(180deg, var(--canvas-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-top: 32px;
}
.stat .num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--teal-700);
    margin-bottom: 8px;
}
.stat .lbl {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}

/* ----- 404 page ----- */
.notfound {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}
.notfound h1 {
    font-size: 96px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--teal-500), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.notfound h2 {
    margin: 14px 0 12px;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.notfound p {
    margin: 0 auto 24px;
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 480px;
    line-height: 1.6;
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
    .story-row { grid-template-columns: 1fr; gap: 28px; }
    .page-hero { padding: 72px 0 40px; }
}
