/*
 * site.css — ActivityLog public marketing site
 * Uses the same design tokens as portal.css (Brand.md palette).
 * Covers: header, footer, hero, feature grid, pricing table, CTA bands.
 */

/* ---- Design tokens ---------------------------------------------------- */
:root {
    --ink:          #181B22;
    --ivory:        #F6F4EE;
    --teal:         #0E7C7B;
    --teal-bright:  #15a09f;
    --teal-dim:     #0a5a59;
    --accent-amber: #F4A261;
    --caution:      #C73E1D;
    --deep:         #0d1017;
    --muted:        #6B7388;
    --paper:        #fbfaf5;
    --paper-edge:   #ece8da;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Inter", sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Layout containers ------------------------------------------------ */
.container-header { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.container        { max-width:  960px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide   { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Site header ------------------------------------------------------- */
header.site {
    background: var(--ink);
    color: var(--ivory);
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--teal);
}
header.site .bar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
header.site .brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--ivory);
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.2rem 0;
}
header.site .brand em {
    font-style: normal;
    color: var(--teal);
}
header.site nav {
    flex: 1 1 auto;
    min-width: 0;
}
header.site nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: nowrap;
}
header.site nav a {
    color: var(--ivory);
    opacity: 0.85;
    font-size: 0.94rem;
    white-space: nowrap;
    padding: 0.35rem 0;
}
header.site nav a:hover {
    opacity: 1;
    text-decoration: none;
    border-bottom: 2px solid var(--teal);
}

/* Product dropdown */
header.site nav details.nav-group { position: relative; }
header.site nav details.nav-group > summary {
    list-style: none;
    cursor: pointer;
    color: var(--ivory);
    opacity: 0.85;
    font-size: 0.94rem;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
header.site nav details.nav-group > summary::-webkit-details-marker { display: none; }
header.site nav details.nav-group > summary:hover { opacity: 1; border-bottom: 2px solid var(--teal); }
header.site nav details.nav-group > summary .chev {
    width: 9px; height: 9px; opacity: 0.75;
    transition: transform 0.15s ease;
}
header.site nav details.nav-group[open] > summary .chev { transform: rotate(180deg); }
header.site nav details.nav-group .mega {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%; transform: translateX(-50%);
    min-width: 220px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--paper-edge);
    border-top: 3px solid var(--teal);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15,29,58,.22);
    padding: 0.5rem;
    z-index: 60;
}
header.site nav details.nav-group .mega a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 5px;
    color: var(--ink);
    opacity: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: none;
}
header.site nav details.nav-group .mega a:hover {
    background: #f4efe0;
    text-decoration: none;
}
header.site .signin-link {
    flex: 0 0 auto;
    color: var(--ivory);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(237,228,202,.35);
    border-radius: 6px;
    transition: border-color 0.12s, color 0.12s;
}
header.site .signin-link:hover {
    border-color: var(--teal);
    color: var(--teal);
    text-decoration: none;
}
header.site .contact-cta {
    flex: 0 0 auto;
    background: var(--teal);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.95rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.12s;
}
header.site .contact-cta:hover {
    background: var(--teal-bright);
    text-decoration: none;
}

/* Mobile hamburger */
header.site al-site-nav { display: contents; }
.nav-toggle {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    padding: 0;
    margin: 0;
}

/* ---- Hero -------------------------------------------------------------- */
.site-hero {
    background: linear-gradient(160deg, var(--deep) 0%, var(--ink) 60%, #0e2a2a 100%);
    color: var(--ivory);
    padding: 5rem 0 4.5rem;
    border-bottom: 4px solid var(--teal);
    overflow: hidden;
    position: relative;
}
.site-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 40%, rgba(14,124,123,.18) 0%, transparent 70%);
    pointer-events: none;
}
.site-hero .inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.site-hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--teal);
    margin-bottom: 0.9rem;
    font-weight: 700;
}
.site-hero h1 {
    margin: 0 0 1.1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
.site-hero h1 em {
    font-style: normal;
    color: var(--teal);
}
.site-hero .lead {
    font-size: 1.15rem;
    opacity: 0.88;
    max-width: 48ch;
    margin: 0 0 2rem;
    line-height: 1.6;
}
.site-hero .cta-row {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}
.btn-primary {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background 0.14s;
    white-space: nowrap;
}
.btn-primary:hover { background: var(--teal-bright); text-decoration: none; color: #fff; }
.btn-ghost {
    display: inline-block;
    color: var(--ivory);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1.5px solid rgba(246,244,238,.4);
    transition: border-color 0.14s, color 0.14s;
    white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* Hero code pane */
.hero-code-pane {
    background: #111620;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.hero-code-pane .pane-bar {
    background: #1a1e28;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-code-pane .pane-bar .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.hero-code-pane .pane-bar .dot.red   { background: #ff5f57; }
.hero-code-pane .pane-bar .dot.amber { background: #ffbd2e; }
.hero-code-pane .pane-bar .dot.green { background: #28c840; }
.hero-code-pane .pane-bar .label {
    font-size: 0.75rem;
    color: #8b92a8;
    margin-left: 0.3rem;
    font-family: ui-monospace, monospace;
}
.hero-code-pane pre {
    margin: 0;
    padding: 1.3rem 1.4rem;
    font-family: "SF Mono","Fira Code","Cascadia Code",ui-monospace,monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #e0e6f0;
    overflow-x: auto;
    white-space: pre;
}
.hero-code-pane .c-comment  { color: #6b7388; }
.hero-code-pane .c-key      { color: #79b8ff; }
.hero-code-pane .c-str      { color: #9ece6a; }
.hero-code-pane .c-num      { color: #f8a261; }
.hero-code-pane .c-kw       { color: #c792ea; }
.hero-code-pane .c-method   { color: #61dafa; }
.hero-code-pane .c-teal     { color: #2cb8b1; }

/* ---- Trust bar --------------------------------------------------------- */
.trust-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--paper-edge);
    padding: 1.2rem 0;
}
.trust-bar .inner {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
    white-space: nowrap;
}
.trust-bar .trust-item svg {
    width: 16px; height: 16px;
    color: var(--teal);
    flex: 0 0 auto;
}

/* ---- Section headings -------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading .eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.section-heading h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-heading p {
    margin: 0 auto;
    max-width: 54ch;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
}
.section-dark .section-heading p { color: rgba(246,244,238,.72); }

/* ---- Feature grid ----------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.feature-card {
    background: var(--paper);
    border: 1px solid var(--paper-edge);
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.feature-card:hover {
    border-color: var(--teal);
    box-shadow: 0 6px 28px rgba(14,124,123,.1);
}
.feature-card .icon {
    width: 44px; height: 44px;
    background: rgba(14,124,123,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-card .icon svg {
    width: 22px; height: 22px;
    color: var(--teal);
}
.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.feature-card p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ---- How it works ------------------------------------------------------ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: calc(16.6% + 1.5rem);
    right: calc(16.6% + 1.5rem);
    height: 2px;
    background: var(--paper-edge);
}
.step { text-align: center; }
.step-num {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; }
.step p  { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---- Use cases --------------------------------------------------------- */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}
.use-case-card {
    border: 1px solid var(--paper-edge);
    border-radius: 10px;
    padding: 1.5rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--paper);
}
.use-case-card .uc-icon {
    flex: 0 0 2.6rem;
    width: 2.6rem; height: 2.6rem;
    border-radius: 8px;
    background: rgba(14,124,123,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.use-case-card .uc-icon svg { width: 20px; height: 20px; color: var(--teal); }
.use-case-card h3 { margin: 0 0 0.3rem; font-size: 0.98rem; font-weight: 700; }
.use-case-card p  { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--teal-dim), var(--teal));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.cta-band h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.cta-band p {
    margin: 0 auto 2rem;
    max-width: 50ch;
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
}
.cta-band .btn-white {
    display: inline-block;
    background: #fff;
    color: var(--teal) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    transition: box-shadow 0.14s;
}
.cta-band .btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,.2); text-decoration: none; }
.cta-band .sub {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    opacity: 0.78;
}

/* ---- Pricing table ----------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
}
.pricing-card {
    border: 1px solid var(--paper-edge);
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
}
.pricing-card.featured {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14,124,123,.12);
}
.pricing-card .pc-head {
    padding: 1.4rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--paper-edge);
}
.pricing-card.featured .pc-head { background: var(--teal); color: #fff; border-bottom-color: transparent; }
.pricing-card .pc-tier {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-bottom: 0.4rem;
}
.pricing-card.featured .pc-tier { color: rgba(255,255,255,.8); }
.pricing-card .pc-price {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.pricing-card.featured .pc-price { color: #fff; }
.pricing-card .pc-price span {
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0;
}
.pricing-card .pc-summary {
    font-size: 0.83rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}
.pricing-card.featured .pc-summary { color: rgba(255,255,255,.78); }
.pricing-card .pc-body { padding: 1.2rem; }
.pricing-card .pc-cta {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
    transition: background 0.12s, color 0.12s;
}
.pricing-card .pc-cta.cta-teal { background: var(--teal); color: #fff; }
.pricing-card .pc-cta.cta-teal:hover { background: var(--teal-bright); text-decoration: none; }
.pricing-card .pc-cta.cta-outline { border: 1.5px solid var(--paper-edge); color: var(--ink); }
.pricing-card .pc-cta.cta-outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.pricing-card .pc-cta.cta-contact { border: 1.5px solid var(--teal); color: var(--teal); }
.pricing-card .pc-cta.cta-contact:hover { background: var(--teal); color: #fff; text-decoration: none; }
.pricing-card ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.55rem;
}
.pricing-card ul li {
    font-size: 0.84rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.45;
}
.pricing-card ul li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 700;
    flex: 0 0 auto;
    margin-top: 0.02em;
}

/* Full comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1rem;
}
.compare-table th, .compare-table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--paper-edge);
    vertical-align: middle;
}
.compare-table thead th {
    background: var(--ink);
    color: var(--ivory);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: none;
}
.compare-table thead th:first-child { border-radius: 8px 0 0 0; }
.compare-table thead th:last-child  { border-radius: 0 8px 0 0; }
.compare-table tbody tr:nth-child(even) { background: #ffffff60; }
.compare-table tbody tr:hover { background: rgba(14,124,123,.05); }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }
.compare-table .check { color: var(--teal); font-weight: 700; }
.compare-table .dash  { color: var(--paper-edge); }
.compare-table .highlight { color: var(--teal); font-weight: 700; }

/* ---- Features page specifics ------------------------------------------ */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--paper-edge);
}
.feature-section:last-of-type { border-bottom: none; }
.feature-section.flip { direction: rtl; }
.feature-section.flip > * { direction: ltr; }
.feature-section .fs-text .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.feature-section .fs-text h2 {
    margin: 0 0 0.8rem;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.feature-section .fs-text p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 0.8rem;
}
.feature-section .fs-text ul {
    list-style: none;
    margin: 0.8rem 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.feature-section .fs-text ul li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.93rem; color: var(--muted); line-height: 1.5;
}
.feature-section .fs-text ul li::before {
    content: "→";
    color: var(--teal); font-weight: 700;
    flex: 0 0 auto;
}
.feature-visual {
    background: var(--ink);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    color: var(--ivory);
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.feature-visual .c-comment { color: #6b7388; }
.feature-visual .c-key     { color: #79b8ff; }
.feature-visual .c-str     { color: #9ece6a; }
.feature-visual .c-num     { color: #f8a261; }
.feature-visual .c-kw      { color: #c792ea; }
.feature-visual .c-teal    { color: #2cb8b1; }
.feature-visual .response-line {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(246,244,238,.55);
    font-size: 0.78rem;
}

/* ---- Page hero (inner pages) ------------------------------------------ */
.page-hero {
    background: linear-gradient(180deg, var(--deep), var(--ink));
    color: var(--ivory);
    padding: 3rem 0 3.2rem;
    border-bottom: 4px solid var(--teal);
}
.page-hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--teal);
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.page-hero h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.page-hero p.summary {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 56ch;
    line-height: 1.6;
}

/* ---- Footer ------------------------------------------------------------ */
footer.site {
    background: var(--ink);
    color: var(--ivory);
    padding: 3.2rem 0 2rem;
    margin-top: 0;
    border-top: 4px solid var(--teal);
    font-size: 0.92rem;
}
footer.site .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.4rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(246,244,238,.1);
}
footer.site .footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
footer.site .footer-brand-col p {
    margin: 0;
    opacity: 0.72;
    font-size: 0.87rem;
    line-height: 1.6;
}
footer.site h5 {
    margin: 0 0 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
}
footer.site ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}
footer.site a { color: var(--ivory); opacity: 0.78; text-decoration: none; }
footer.site a:hover { opacity: 1; text-decoration: underline; }
footer.site em { font-style: normal; color: var(--teal); }
.footer-brand-name em { font-style: normal; color: var(--teal); }
footer.site .footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.83rem;
    opacity: 0.68;
}
footer.site .footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid .pricing-card:nth-child(4),
    .pricing-grid .pricing-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 860px) {
    .feature-grid  { grid-template-columns: repeat(2, 1fr); }
    .use-case-grid { grid-template-columns: 1fr; }
    .site-hero .inner { grid-template-columns: 1fr; }
    .hero-code-pane { display: none; }
    .feature-section { grid-template-columns: 1fr; gap: 1.8rem; }
    .feature-section.flip { direction: ltr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    footer.site .footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
    footer.site .footer-brand-col { grid-column: 1 / -1; }
    .steps { grid-template-columns: 1fr; gap: 1.4rem; }
    .steps::before { display: none; }
}
@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px; height: 40px;
        background: transparent;
        border: 1px solid rgba(237,228,202,.35);
        border-radius: 6px;
        color: var(--ivory);
        cursor: pointer;
        flex: 0 0 auto;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-toggle:hover { border-color: var(--teal); }
    .nav-toggle svg { width: 22px; height: 22px; display: block; }
    .nav-toggle .icon-close { display: none; }
    header.site .bar { flex-wrap: wrap; gap: 0.5rem; row-gap: 0.2rem; }
    header.site nav { flex: 0 0 100%; max-height: 0; overflow: hidden; transition: max-height 0.22s ease; order: 99; }
    header.site nav ul { flex-direction: column; gap: 0; padding: 0.3rem 0 0.4rem; margin-top: 0.5rem; border-top: 1px solid rgba(246,244,238,.12); }
    header.site nav a { display: block; padding: 0.9rem 0.2rem; border-bottom: 1px solid rgba(246,244,238,.07); font-size: 1rem; }
    header.site nav details.nav-group { width: 100%; border-bottom: 1px solid rgba(246,244,238,.07); }
    header.site nav details.nav-group > summary { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0.2rem; font-size: 1rem; border-bottom: none; }
    header.site nav details.nav-group .mega { position: static; transform: none; background: rgba(255,255,255,.04); border: none; border-radius: 0; box-shadow: none; min-width: 0; padding: 0.2rem 0 0.4rem; }
    header.site nav details.nav-group .mega a { color: var(--ivory); opacity: 0.8; padding: 0.65rem 0.9rem; font-size: 0.95rem; }
    al-site-nav[open] nav { max-height: 80vh; overflow-y: auto; }
    al-site-nav[open] .nav-toggle .icon-open  { display: none; }
    al-site-nav[open] .nav-toggle .icon-close { display: block; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    footer.site .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .container, .container-wide, .container-header { padding: 0 1rem; }
    .site-hero { padding: 3rem 0 2.5rem; }
    .section { padding: 3rem 0; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost { font-size: 0.92rem; padding: 0.7rem 1.1rem; }
    .cta-band { padding: 2.5rem 0; }
    .page-hero { padding: 2rem 0 2.2rem; }
    footer.site .footer-top { grid-template-columns: 1fr; }
}
