/* ═══════════════════════════════════════════════
   ACUMINATE — Brand page styles
   Layout and components for pages built from templates/base.html.
   Every colour, font and type size comes from brand-tokens.css — page
   colours from the --site-* roles. Don't add raw colour or type values here. Spacing and radii are layout and
   can stay as values. The homepage doesn't use this file yet.
═══════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: var(--brand-font-body);
    font-weight: var(--brand-weight-body);
    font-size: var(--brand-size-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--site-accent-text); }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--site-accent-text);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Type ──────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    color: var(--site-text);
    margin: 0 0 0.5em;
}
h1 { font-size: var(--brand-size-display); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: var(--brand-size-h1); line-height: 1.2; }
h3 { font-size: var(--brand-size-h2); line-height: 1.3; }

p { margin: 0 0 1em; }

.eyebrow {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-eyebrow);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-accent-text);
    margin: 0 0 0.75rem;
}

.lede { font-size: calc(var(--brand-size-body) * 1.15); max-width: 38em; }

.note {
    font-size: var(--brand-size-caption);
    font-style: italic;
    color: var(--site-text-muted);
}

/* ── Buttons ───────────────────────────────────── */
.button {
    display: inline-block;
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-caption);
    line-height: 1;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.button-primary {
    background: var(--site-action);
    color: var(--site-action-text);
}
.button-primary:hover { background: var(--site-action-hover); }
.button-secondary {
    background: transparent;
    color: var(--site-text);
    border-color: var(--site-text);
}
.button-secondary:hover {
    background: var(--site-text);
    color: var(--site-bg);
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ── Header ────────────────────────────────────── */
.site-header {
    background: var(--site-bg-deep);   /* matches the footer */
    border-bottom: 1px solid var(--site-line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 72px;
}
.lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--site-text);
}
.lockup img { width: 34px; height: 34px; }
.wordmark {
    font-family: var(--brand-font-wordmark);
    font-weight: var(--brand-weight-wordmark);
    letter-spacing: var(--brand-tracking-wordmark);
    text-transform: uppercase;
    font-size: var(--brand-size-caption);
}
.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-caption);
}
.site-nav a { text-decoration: none; }
.site-nav a:not(.button) {
    color: var(--site-text);
    padding: 10px 0;   /* comfortable tap height on phones */
}
.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--brand-coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
.site-nav .button { padding: 11px 16px; }

/* ── Sections ──────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { padding-top: 0; }

/* ── Plans ─────────────────────────────────────── */
.plans {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    margin-top: 2.5rem;
}
/* .box is the same panel for anything that isn't a plan (e.g. the cost table). */
.plan,
.box {
    background: var(--site-bg-deep);
    border: 1px solid var(--site-line);
    border-radius: 14px;
    padding: 28px;
}
.plan-featured { border: 2px solid var(--brand-coral); }   /* decoration: Coral is allowed here */
.plan h2 { font-size: var(--brand-size-h2); margin-bottom: 0.75rem; }
.plan-price {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-h1);
    line-height: 1.2;
    margin: 0 0 0.25rem;
}
.plan-price small { font-size: var(--brand-size-body); }

/* ── Cost table ────────────────────────────────── */
.cost-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    font-variant-numeric: tabular-nums;
}
.cost-table th,
.cost-table td {
    text-align: right;
    padding: 12px 16px;
    border-bottom: 1px solid var(--site-line);
}
.cost-table th:first-child,
.cost-table td:first-child { text-align: left; }
.cost-table th {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-caption);
}
.table-scroll { overflow-x: auto; }
.box .cost-table { max-width: none; margin: 0 0 1rem; }
.box .note { margin: 0; }
.box + p { margin-top: 1.5rem; }

/* ── Questions ─────────────────────────────────── */
.faq { max-width: 44em; }
.faq h3 { margin-top: 1.75rem; margin-bottom: 0.35rem; }

/* ── Footer ────────────────────────────────────── */
.site-footer {
    background: var(--site-bg-deep);
    color: var(--site-text);
    padding: 3rem 0 2.5rem;
    font-size: var(--brand-size-caption);
}
.site-footer a { color: var(--site-text); }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
}
.acknowledgement { max-width: 44em; }

/* ── Small screens ─────────────────────────────── */
@media (max-width: 760px) {
    .plans { grid-template-columns: 1fr; }
    .plan, .box { padding: 20px; }
    .cost-table th, .cost-table td { padding: 10px 8px; }
    h1 { font-size: calc(var(--brand-size-display) * 0.78); }
    .site-header .container { padding-top: 14px; padding-bottom: 14px; }
}

/* ── Accessibility helpers ─────────────────────── */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    background: var(--site-text);
    color: var(--site-bg);
    padding: 10px 14px;
    border-radius: 6px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Changelog ─────────────────────────────────── */
.changelog { max-width: 44em; }
.release {
    border-top: 1px solid var(--site-line);
    padding: 2rem 0 0.5rem;
    margin-top: 1.5rem;
}
.release h2 { margin-bottom: 0.75rem; }
.release h2 a { color: inherit; text-decoration: none; }
.release h2 a:hover { text-decoration: underline; text-decoration-color: var(--brand-coral); }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin-bottom: 0.6em; }

/* ── Blog ──────────────────────────────────────── */
.blog-index,
.post { max-width: 44em; }
.post-summary,
.guide-summary {
    border-top: 1px solid var(--site-line);
    padding: 1.5rem 0 0.25rem;
}
.guide-group {
    border-top: 1px solid var(--site-line);
    padding-top: 1.25rem;
    margin-top: 2rem;
}
.guide-group h2 { font-size: var(--brand-size-h2); margin-bottom: 0.25rem; }
.guide-group .post-meta { margin-bottom: 0.75rem; }
.guide-list { margin: 0; padding-left: 1.2em; }
.guide-list li { margin-bottom: 0.4em; }
.guide-group + .button-row { margin-top: 2.5rem; }
.post-summary h2 { font-size: var(--brand-size-h2); margin-bottom: 0.25rem; }
.post-summary h2 a { color: inherit; text-decoration: none; }
.post-summary h2 a:hover { text-decoration: underline; text-decoration-color: var(--brand-coral); }
.post-summary + .button-row { margin-top: 2rem; }
.post-meta {
    font-size: var(--brand-size-caption);
    color: var(--site-text-muted);
    margin-bottom: 0.75rem;
}
.post-body { margin-top: 2rem; }
.post-body h2 { margin-top: 2.25rem; }
.post-body h3 { margin-top: 1.75rem; }
.post-body ul,
.post-body ol { padding-left: 1.2em; margin: 0 0 1em; }
.post-body li { margin-bottom: 0.4em; }
.post-body blockquote {
    margin: 1.5rem 0;
    padding-left: 1.1rem;
    border-left: 3px solid var(--brand-coral);   /* decoration: Coral is allowed here */
    font-style: italic;
}
.post-body code {
    font-size: 0.9em;
    background: var(--site-bg-deep);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}
.draft-banner,
.draft-label {
    background: var(--site-action);
    color: var(--site-action-text);
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-caption);
    border-radius: 6px;
}
.draft-banner { padding: 10px 14px; margin-bottom: 1.5rem; }
.draft-label { padding: 2px 8px; margin-left: 10px; vertical-align: middle; }

/* ── Forms (Contact) ───────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: start;
    margin-top: 2rem;
}
.contact-form h2,
.contact-other h2 { font-size: var(--brand-size-h2); }
.contact-other h3 {
    font-size: var(--brand-size-body);
    margin: 1.5rem 0 0.35rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 18px;
    border: 0;
    padding: 0;
    min-width: 0;
}
.contact-form label,
.contact-form legend {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-caption);
    padding: 0;
}
.contact-form .required { color: var(--site-accent-text); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    font-family: var(--brand-font-body);
    font-size: var(--brand-size-body);   /* 16px or more stops phones zooming in on focus */
    color: var(--site-text);
    background: var(--site-bg);
    border: 1px solid var(--site-text-muted);   /* Slate: 6.10:1 on the Deep Blue box, above the 3:1 WCAG needs for field edges */
    border-radius: 8px;
    padding: 11px 13px;
    width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form ::placeholder { color: var(--site-text-muted); opacity: 1; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--site-accent-text);
    outline-offset: 2px;
}
.radio-options { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.radio-options label {
    font-family: var(--brand-font-body);
    font-weight: var(--brand-weight-body);
    font-size: var(--brand-size-body);
    display: flex;
    align-items: center;
    gap: 8px;
}
.radio-options input { accent-color: var(--site-action); width: 18px; height: 18px; }
.form-message { margin-top: 1rem; }
.form-message.success { color: var(--site-text); }
.form-message.error { color: var(--site-accent-text); }
.form-message:empty { display: none; }

@media (max-width: 760px) {
    .contact-grid,
    .form-row { grid-template-columns: 1fr; }
}

/* ── Homepage ──────────────────────────────────── */
.hero { padding-top: clamp(3.5rem, 9vw, 6.5rem); }
.hero .lede { max-width: 36em; }
.accent { color: var(--brand-coral); }   /* large display text only: Coral is 4.39:1 on Midnight, above the 3:1 WCAG allows for large text */
.narrow { max-width: calc(44em + 2 * clamp(1.25rem, 4vw, 2.5rem)); }
.measure { max-width: 44em; }   /* a line length inside a full-width container */
.judgment-note { margin-top: 2.5rem; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p:last-child { margin-bottom: 0; }
.step-number {
    font-family: var(--brand-font-heading);
    font-weight: var(--brand-weight-heading);
    font-size: var(--brand-size-h1);
    line-height: 1;
    color: var(--site-accent-text);
    margin: 0 0 0.75rem;
}
.audiences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
    margin-top: 2rem;
}
.audiences > div { border-top: 1px solid var(--site-line); padding-top: 1rem; }
.audiences .card-lead { grid-column: 1 / -1; }   /* the problem, stated once across the top */
.audiences .card-lead p { max-width: 44em; }
.audiences h3 { font-size: var(--brand-size-body); margin-bottom: 0.35rem; }
.audiences p { margin: 0; }
.roadmap { margin-top: 2.5rem; }
.roadmap h3 { font-size: var(--brand-size-body); }
.roadmap p:last-child { margin-bottom: 0; }
.closing { text-align: left; }
.closing h2 { font-size: var(--brand-size-h1); }

@media (max-width: 900px) {
    .steps,
    .audiences { grid-template-columns: 1fr; }
}

/* ── Product video and partner band ────────────── */
.video-section,
.partners-section { padding-top: 0; }
.video-frame {
    aspect-ratio: 16 / 9;
    background: var(--site-bg-deep);
    border: 1px solid var(--site-line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.video-frame p {
    margin: 0;
    font-family: var(--brand-font-heading);
    font-size: var(--brand-size-h2);
    color: var(--site-text);
}
.video-frame span {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--brand-size-caption);
    color: var(--site-text-muted);
}
.partner-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
    border-top: 1px solid var(--site-line);
    border-bottom: 1px solid var(--site-line);
    padding: 1.5rem 0;
    margin-top: 1rem;
}
.partner {
    /* Both marks are dark-on-light, so they sit on a Linen tile rather than on Midnight. */
    background: var(--brand-linen);
    border-radius: 4px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}
.partner img {
    display: block;
    width: auto;
    height: 56px;
}
/* The NVC badge is a full-colour shield with its own background: no tile, and
   larger, or it reads as a stamp beside a wordmark. */
.partner-badge {
    background: none;
    padding: 0;
}
.partner-badge img { height: 112px; }

/* ── Print ─────────────────────────────────────────
   Any page saves or prints as a tidy document: ink-light,
   navigation and calls to action dropped, link targets spelled
   out so a printed page is still usable away from the screen.
   Guides are written as pages, not as separate PDFs, so this is
   how a reader gets paper. */
@media print {
    :root {
        --site-bg: #ffffff;
        --site-bg-deep: #ffffff;
        --site-text: #1B2B4B;
        --site-text-muted: #4a4a4a;
        --site-accent-text: #1B2B4B;
        --site-line: #c9c9c9;
    }

    @page { margin: 18mm; }

    body {
        background: #ffffff;
        color: #1B2B4B;
        font-size: 11pt;
    }

    .site-nav,
    .site-footer nav,
    .skip-link,
    .button-row,
    .button,
    .co-overlay,
    .video-frame,
    .draft-banner { display: none !important; }

    .site-header,
    .site-footer {
        background: none;
        border-bottom: 1px solid #c9c9c9;
    }

    .site-footer {
        border-top: 1px solid #c9c9c9;
        border-bottom: 0;
    }

    .section { padding: 0 0 1.5rem; }
    .container { max-width: none; padding: 0; }

    h1, h2, h3 { break-after: avoid-page; }
    .box,
    .plan,
    .guide-group,
    .audiences > div,
    li { break-inside: avoid-page; }

    a { color: #1B2B4B; text-decoration: underline; }
    /* Spell out where a link goes, since a printed page can't be clicked.
       Internal links get the full address; anchors and mail links read fine as they are. */
    main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
    main a[href^="/"]::after { content: " (acuminate.com.au" attr(href) ")"; font-size: 9pt; }
    main a[href^="#"]::after,
    main a[href^="mailto:"]::after { content: ""; }
}

/* ── Guide pages ───────────────────────────────── */
.guide { max-width: calc(46em + 2 * clamp(1.25rem, 4vw, 2.5rem)); }
.breadcrumb {
    font-size: var(--brand-size-caption);
    color: var(--site-text-muted);
    margin-bottom: 1rem;
}
.guide-facts { margin: 1.5rem 0 2rem; }
.guide-facts p { margin-bottom: 0.4rem; }
.guide-facts p:last-child { margin-bottom: 0; }
.guide-figure {
    aspect-ratio: 16 / 9;
    background: var(--site-bg-deep);
    border: 1px solid var(--site-line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 1.25rem 0;
}
.guide-figure p {
    margin: 0;
    font-family: var(--brand-font-heading);
    font-size: var(--brand-size-h2);
}
.guide-figure span {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--brand-size-caption);
    color: var(--site-text-muted);
}
.guide-figure-shot p { font-size: var(--brand-size-body); }
.guide-steps {
    list-style: none;
    counter-reset: guide-step;
    padding: 0;
    margin: 2.5rem 0 1rem;
}
.guide-steps > li {
    counter-increment: guide-step;
    border-top: 1px solid var(--site-line);
    padding: 1.5rem 0 0.5rem;
}
.guide-steps > li > h2 {
    font-size: var(--brand-size-h2);
    margin-bottom: 0.5rem;
}
.guide-steps > li > h2::before {
    content: counter(guide-step) ". ";
    color: var(--site-accent-text);
}
.guide-steps .note { color: var(--site-text-muted); }
.guide .closing { margin-top: 2.5rem; }
