/* ============================================================
   "Editorial" direction — loaded AFTER styles.css.
   Deliberately not legal-tech-blue. Warm paper, ink type,
   a deep green accent, hairline rules instead of shadows,
   near-square corners, serif display face.
   ============================================================ */
:root {
    --dark:         #f7f5f1;   /* warm paper */
    --dark-lighter: #ffffff;
    --dark-card:    #ffffff;
    --dark-border:  #e4ded3;   /* warm hairline */
    --white:        #17150f;   /* ink */
    --gray-300:     #4a453c;
    --gray-400:     #6d665b;
    --gray-500:     #8b8477;
    --gray-600:     #a39b8c;
    --primary:      #1d5c45;   /* deep green */
    --primary-dark: #14432f;
    --primary-rgb:  29, 92, 69;

    --radius:    4px;
    --radius-sm: 3px;
    --radius-lg: 6px;
    --shadow:    none;
    --shadow-lg: none;

    --font-heading: 'Newsreader', Georgia, serif;
}

/* Display type: serif, tighter, less shouty than a geometric sans */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.015em; }
h1 { letter-spacing: -0.022em; line-height: 1.06; }
.hero-split h1 { font-size: clamp(2.4rem, 4vw, 3.9rem); }
.section-title { font-weight: 600; }

/* Labels become small caps rules rather than coloured eyebrows */
.section-label {
    color: var(--gray-500);
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

/* Buttons: squared, flat, bordered */
.btn { border-radius: 4px; font-family: var(--font-body); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 1px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-lg { padding: 15px 30px; }

/* Surfaces: hairline rules, no fills competing with the paper */
.about-item, .icp-list li, .founder-card, .faq-item, .value-card {
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 4px;
}
.matter-mock { border: 1px solid var(--dark-border); border-radius: 6px; }
.matter-mock .visual-card-header { background: #f1ede5; border-bottom: 1px solid var(--dark-border); }
.visual-dot { background: #cfc7b8 !important; }
.mock-title { color: var(--gray-400); font-family: var(--font-body); }
.mock-track { background: #e4ded3; }
.mock-value, .mock-label { font-family: var(--font-body); }
.mock-pill {
    background: transparent; border: 1px solid var(--dark-border);
    color: var(--gray-400); border-radius: 3px;
}

/* No gradient — a gradient is the giveaway of a template */
.text-gradient {
    background: none; -webkit-text-fill-color: currentColor;
    color: var(--primary);
}
.hero-glow { background: none; }
.hero-grid { background-image: none; }

/* The serif-italic accent was the borrowed move. Retire it. */
.accent-serif { font-family: var(--font-heading); font-style: normal; font-weight: 600; }

/* Header */
.header-scrolled { background: rgba(247,245,241,0.92); border-bottom: 1px solid var(--dark-border); }
.nav-link.active { background: transparent; color: var(--white); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.logo svg rect { fill: var(--primary); }
.logo svg path:last-of-type { fill: var(--primary); }
.hero-badge {
    background: transparent; border: 1px solid var(--dark-border);
    color: var(--gray-400); border-radius: 3px;
    font-family: var(--font-body);
}

/* Section separation by rule, not by fill */
.about-block { border-top: 1px solid var(--dark-border); }
.about-block:nth-of-type(even) { background: transparent; }
.statement-section { background: #fffdf9; border-color: var(--dark-border); }
.trust-bar { background: transparent; border-bottom: 1px solid var(--dark-border); }
.trust-row span { font-family: var(--font-body); font-weight: 600; color: var(--gray-400); }
.faq-section, .solution-section { background: transparent; }

/* Tables */
.facts-table, .price-table { background: transparent; border: 1px solid var(--dark-border); }
.facts-table th, .price-table thead th { background: #f1ede5; color: var(--white); font-family: var(--font-body); }
.price-table thead th { color: var(--gray-500); }
.facts-table tr + tr th, .facts-table tr + tr td,
.price-table tbody tr + tr td { border-top: 1px solid var(--dark-border); }
.price-table td.price { font-family: var(--font-body); color: var(--white); }
.facts-wrap { border-radius: 4px; }

.org-chip { background: transparent; border: 1px solid var(--dark-border); border-radius: 3px; color: var(--gray-400); }
.case-study-tag { background: transparent; border: 1px solid var(--primary); color: var(--primary); border-radius: 3px; }
.value-number { color: var(--primary); opacity: 1; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.14em; }

/* Footer: ink block to close the page */
.footer { background: var(--white); border-top: 0; }
.footer, .footer p, .footer a { color: #b8b2a6; }
.footer h3, .footer .logo span { color: #fff; }
.footer a:hover { color: #fff; }
.footer .logo svg rect { fill: #fff; }
.footer .logo svg path:last-of-type { fill: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }

/* Company and product names read better in the body face than the serif */
.org-chip, .trust-row span, .case-study-tag, .mock-pill, .hero-badge,
.record-stat-label, .founder-role { font-family: var(--font-body); }

/* An h2 inside a card is a card heading, not a section heading — size it
   like the h3 it replaced. (Service names were promoted to h2 for correct
   document outline; they must not inherit section-title scale.) */
.about-item h2 {
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}
/* Links inside cards need to look like links */
.about-item a, .icp-list a, .founder-card a, .faq-item a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.about-item a:hover { color: var(--primary-dark); }

/* Anchored service headings clear the sticky header */
[id] { scroll-margin-top: 100px; }

/* ============================================================
   v2 (2026-11-27): additions for the two-hub site. Minimal, and
   built only from the tokens above: flat, hairline, ink on paper.
   ============================================================ */

/* Header: dropdown panels for Services and Industries */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-caret {
    background: none; border: 0; cursor: pointer; color: var(--gray-400);
    width: 22px; height: 34px; margin-left: -12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.nav-caret::before {
    content: ''; width: 7px; height: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.nav-caret:hover, .nav-group.open .nav-caret { color: var(--white); }
.nav-panel { display: none; }
.nav-sublink { display: block; font-size: 0.9rem; color: var(--gray-300); padding: 7px 0; line-height: 1.35; }
.nav-sublink:hover { color: var(--primary); }
.nav-sublink.sub { padding-left: 14px; font-size: 0.85rem; color: var(--gray-400); }
.nav-panel-all { border-top: 1px solid var(--dark-border); margin-top: 6px; padding-top: 11px; font-weight: 600; color: var(--primary); }
.nav-cta-mobile { display: none; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 769px) {
    .nav-home { display: none; }
    .nav-panel {
        position: absolute; top: 100%; left: 0; min-width: 300px;
        background: #fff; border: 1px solid var(--dark-border); border-radius: 4px;
        padding: 14px 22px; z-index: 1001;
    }
    .nav-group:hover .nav-panel,
    .nav-group:focus-within .nav-panel,
    .nav-group.open .nav-panel { display: block; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .nav { gap: 0; }
    .nav-link { padding: 8px 10px; font-size: 0.9rem; }
    .nav-caret { margin-left: -6px; }
    .btn-nav { padding: 10px 16px; }
}
@media (max-width: 768px) {
    /* The mobile menu sits on paper, not the old dark overlay */
    .nav {
        background: var(--dark); backdrop-filter: none;
        justify-content: flex-start; align-items: stretch;
        overflow-y: auto; padding: 84px 24px 40px; gap: 0;
    }
    .nav > .nav-link, .nav-group { border-bottom: 1px solid var(--dark-border); }
    .nav-link { font-size: 1.15rem; padding: 14px 0; color: var(--white); }
    .nav-group { flex-wrap: wrap; }
    .nav-group .nav-link { flex: 1; border: 0; }
    .nav-caret { width: 48px; height: 48px; margin-left: 0; color: var(--white); }
    .nav-group.open .nav-caret::before { transform: translateY(2px) rotate(-135deg); }
    .nav-panel { flex-basis: 100%; padding: 0 0 14px 12px; }
    .nav-group.open .nav-panel { display: block; }
    .nav-sublink { font-size: 1rem; padding: 8px 0; }
    .nav-cta-mobile { display: inline-flex; margin-top: 24px; }
}

/* Breadcrumb and byline in page heroes */
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; line-height: 1.5; }
.breadcrumb a { color: var(--gray-400); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--white); }
.byline { font-size: 0.9rem; color: var(--gray-400); margin: 18px auto 0; max-width: 640px; line-height: 1.6; }
.hero-subtitle a, .section-desc a, .statement p a, .price-note a, .story-simple a,
.facts-table a, .price-table a, .link-list a, .case-services a, .byline a, .cta-content p a {
    color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
}

/* Card titles that are links read as headings, not as body links */
.about-item a.card-title-link { color: var(--white); text-decoration: none; font-weight: 600; }
.about-item a.card-title-link:hover { color: var(--primary); text-decoration: underline; }
.card-meta { margin-top: 16px !important; font-size: 0.92rem; color: var(--gray-400) !important; }
.card-meta strong { color: var(--white); font-weight: 600; }

/* Lists inside prose (the global reset strips list indents) */
.prose-list { padding-left: 1.3em; margin: 0 0 24px; color: var(--gray-300); line-height: 1.7; }
.story-simple .prose-list { font-size: 1.05rem; }
.prose-list li + li { margin-top: 8px; }
.prose-list li::marker { color: var(--primary); font-weight: 600; }
.link-list { list-style: none; max-width: 760px; margin: 0 auto; border-top: 1px solid var(--dark-border); }
.link-list li { padding: 14px 4px; border-bottom: 1px solid var(--dark-border); color: var(--gray-400); line-height: 1.5; }
.link-list a { font-weight: 600; }

/* Long-form pages (privacy): sub-headings sized for reading */
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }

/* Pricing rows carry a short note under the name */
.row-note { display: block; font-size: 0.85rem; font-weight: 400; color: var(--gray-400); margin-top: 3px; }
.price-table tr[id] { scroll-margin-top: 110px; }
.price-table a { font-weight: 500; }

/* Case studies: tag row and "services used" line */
.case-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.case-services { margin-top: 24px; text-align: center; color: var(--gray-400); font-size: 0.95rem; }

/* Footer: brand column plus four link columns, and the entity block */
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer-entity { margin-top: 12px !important; }
.footer-entity a { display: inline; padding: 0; }
.footer-reviewed { margin-bottom: 8px; }
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: span 2; }
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
@media (max-width: 700px) {
    /* Stacked price rows: one rule between rows, none inside a row */
    .price-table tbody tr + tr td { border-top: 0; }
    .price-table tbody tr + tr td:first-child { border-top: 1px solid var(--dark-border); }
}

/* "Unsure, or don't see your industry?" tile closing the homepage industry grid (2026-11-27) */
.icp-list li.icp-cta {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.28);
    display: flex; flex-direction: column; gap: 10px;
}
.icp-list li.icp-cta h3 { font-size: 1.3rem; line-height: 1.25; margin: 0; color: var(--white); }
.icp-list li.icp-cta p { margin: 0; color: var(--gray-300); }
.icp-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.icp-list li.icp-cta .btn { text-decoration: none; font-weight: 600; padding: 10px 18px; font-size: 0.92rem; }
.icp-list li.icp-cta .btn-primary { color: #fff; }
.icp-list li.icp-cta .btn-outline { color: var(--white); }
.icp-list li.icp-cta .btn-outline:hover { color: var(--dark); }
