/* Dynocortex site theme, on top of Bootstrap 5.3.
   Colors and type are tokens; dark mode redefines the tokens only. */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.30a274cd01b6.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root,
[data-bs-theme="light"] {
    --dc-bg: #ffffff;
    --dc-surface: #f4f6f9;
    --dc-surface-2: #e9eef4;
    --dc-border: #dde3eb;
    --dc-text: #1c2433;
    --dc-muted: #4f5b6d;
    --dc-heading: #14213d;
    --dc-accent: #0b6f78;          /* 5.6:1 on white */
    --dc-accent-hover: #095a62;
    --dc-accent-soft: #e3f3f3;
    --dc-ink: #14213d;             /* dark bands and footer */
    --dc-on-ink: #e8edf5;
    --dc-on-ink-muted: #b4c0d3;
    --dc-ink-accent: #6fd6d4;
    --dc-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
    --dc-radius: 14px;
    --dc-measure: 68ch;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-body-color: var(--dc-text);
    --bs-body-bg: var(--dc-bg);
    --bs-link-color-rgb: 11, 111, 120;
    --bs-link-hover-color-rgb: 9, 90, 98;
    --bs-border-color: var(--dc-border);
}

[data-bs-theme="dark"] {
    --dc-bg: #0e1526;
    --dc-surface: #141d31;
    --dc-surface-2: #1b263d;
    --dc-border: #2a3650;
    --dc-text: #dfe5ef;
    --dc-muted: #a7b3c6;
    --dc-heading: #f3f6fb;
    --dc-accent: #6fd6d4;
    --dc-accent-hover: #93e2e0;
    --dc-accent-soft: #15333a;
    --dc-ink: #1a2540;             /* lighter than the page, so dark bands still stand out */
    --dc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);

    --bs-body-color: var(--dc-text);
    --bs-body-bg: var(--dc-bg);
    --bs-link-color-rgb: 111, 214, 212;
    --bs-link-hover-color-rgb: 147, 226, 224;
    --bs-border-color: var(--dc-border);
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Type */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    color: var(--dc-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h1, .h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.3rem); margin-bottom: .75rem; }
h3, .h3 { font-size: 1.25rem; }
p, li { max-width: var(--dc-measure); }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--dc-muted); line-height: 1.6; }
.eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dc-accent);
    margin-bottom: .75rem;
}
.text-muted-dc { color: var(--dc-muted); }
a { text-underline-offset: .2em; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; padding: .7rem 1.25rem; }
.btn-dc,
.djangocms-form-builder-ajax-form .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--dc-accent);
    --bs-btn-border-color: var(--dc-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--dc-accent-hover);
    --bs-btn-hover-border-color: var(--dc-accent-hover);
    --bs-btn-active-bg: var(--dc-accent-hover);
}
[data-bs-theme="dark"] .btn-dc,
[data-bs-theme="dark"] .djangocms-form-builder-ajax-form .btn-primary { --bs-btn-color: #0e1526; --bs-btn-hover-color: #0e1526; }
.btn-dc-outline {
    --bs-btn-color: var(--dc-heading);
    --bs-btn-border-color: var(--dc-border);
    --bs-btn-hover-color: var(--dc-heading);
    --bs-btn-hover-bg: var(--dc-surface);
    --bs-btn-hover-border-color: var(--dc-muted);
    background: var(--dc-bg);
}
:focus-visible { outline: 3px solid var(--dc-accent); outline-offset: 2px; }

/* Forms (the contact form) */
.form-label { font-weight: 500; color: var(--dc-heading); }
.form-control, .form-select { border-color: var(--dc-border); border-radius: 10px; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--dc-accent);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--dc-accent) 25%, transparent);
}
.form-check-input:checked { background-color: var(--dc-accent); border-color: var(--dc-accent); }
altcha-widget {
    --altcha-border-radius: 10px;
    --altcha-color-border: var(--dc-border);
    --altcha-color-base: var(--dc-bg);
    --altcha-color-text: var(--dc-text);
    --altcha-color-border-focus: var(--dc-accent);
    --altcha-max-width: 100%;
}
.djangocms-form-builder-ajax-form + .clearfix + p { margin-top: 1rem; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--dc-bg); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: color-mix(in srgb, var(--dc-bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--dc-border);
}
.site-header .navbar { padding: .65rem 0; }
.site-header .brand img { height: 36px; width: auto; display: block; }
.site-header .nav-link { color: var(--dc-text); font-weight: 500; font-size: .975rem; padding: .5rem .8rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--dc-accent); }
.site-header .btn { padding: .5rem 1rem; font-size: .95rem; }
.site-header .header-actions .btn { white-space: nowrap; }
/* Between the full menu appearing (lg) and xl, two buttons don't fit beside it;
   "Pricing" is in the menu anyway. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .header-actions .btn-dc-outline { display: none; }
}
.logo-dark { display: none !important; }
[data-bs-theme="dark"] .logo-light { display: none !important; }
[data-bs-theme="dark"] .logo-dark { display: block !important; }

/* Sections */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.section-alt { background: var(--dc-surface); }
.section-ink { background: var(--dc-ink); color: var(--dc-on-ink); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lead, .section-ink p { color: var(--dc-on-ink-muted); }
.section-ink .eyebrow { color: var(--dc-ink-accent); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero h1 { max-width: 15ch; margin-bottom: 1.25rem; }
.hero .lead { max-width: 54ch; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-size: .9rem; color: var(--dc-muted); margin-top: 1.25rem; }

/* Product frame: screenshots sit in a quiet browser frame, never behind text */
.product-frame {
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    background: var(--dc-bg);
    box-shadow: var(--dc-shadow);
    overflow: hidden;
}
.product-frame .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--dc-border); background: var(--dc-surface); }
.product-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--dc-border); display: block; }
.product-frame img { display: block; width: 100%; height: auto; }
.shot-placeholder {
    aspect-ratio: 16 / 10;
    display: grid; place-items: center; text-align: center; padding: 1.5rem;
    color: var(--dc-muted); font-size: .9rem;
    background: repeating-linear-gradient(135deg, var(--dc-surface) 0 12px, var(--dc-bg) 12px 24px);
}
figure figcaption { font-size: .9rem; color: var(--dc-muted); margin-top: .75rem; }

/* Cards */
.dc-card {
    height: 100%;
    background: var(--dc-bg);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 1.75rem;
}
.section-alt .dc-card { background: var(--dc-bg); }
.dc-card h3 { margin: 1rem 0 .5rem; }
.dc-card p { color: var(--dc-muted); margin-bottom: 0; }
.dc-card .more { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.dc-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--dc-accent-soft); color: var(--dc-accent);
}
.dc-icon svg { width: 24px; height: 24px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--dc-border); max-width: none; }
.timeline li:last-child { border-bottom: 1px solid var(--dc-border); }
.timeline time { font-weight: 700; color: var(--dc-accent); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }

/* Check list and steps */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .9rem; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: var(--dc-ink-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.25rem; margin-bottom: 2.25rem; }
.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: .1rem;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: .95rem;
    background: var(--dc-accent-soft); color: var(--dc-accent);
}
.steps h3 { margin-bottom: .4rem; }

/* Flow diagram: boxes and arrows in HTML, so the text stays readable at any width */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.25rem; max-width: none; }
.flow li {
    position: relative; max-width: none;
    background: var(--dc-bg); border: 1px solid var(--dc-border); border-radius: 12px;
    padding: 1rem; font-size: .95rem; line-height: 1.45;
}
.flow li strong { display: block; color: var(--dc-heading); margin-bottom: .25rem; }
.flow li span { color: var(--dc-muted); }
.flow li.gate { border: 2px solid var(--dc-accent); background: var(--dc-accent-soft); }
.flow li:not(:last-child)::after {
    content: ""; position: absolute; right: -1.75rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13m-5-5 5 5-5 5' fill='none' stroke='%230b6f78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow-log {
    max-width: none;
    margin-top: 1rem; padding: .7rem 1rem; border-radius: 10px; border: 1px dashed var(--dc-muted);
    font-size: .925rem; color: var(--dc-muted); text-align: center;
}
@media (max-width: 991.98px) {
    .flow { grid-template-columns: 1fr; gap: 1.75rem; }
    .flow li:not(:last-child)::after { right: auto; left: 1.25rem; top: auto; bottom: -1.5rem; transform: rotate(90deg); }
}

/* Article (inner pages): one readable column */
.page-head { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 1.5rem; border-bottom: 1px solid var(--dc-border); }
.page-head h1 { max-width: 20ch; }
.prose { max-width: var(--dc-measure); }
.prose h2 { margin-top: 2.75rem; }
.prose figure { margin: 2.25rem 0; max-width: none; }
.breadcrumb { font-size: .9rem; }
.callout {
    border-left: 4px solid var(--dc-accent);
    background: var(--dc-accent-soft);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.callout p { margin: 0; }

/* Tables */
.table-dc { --bs-table-bg: transparent; font-size: .975rem; }
.table-dc th { color: var(--dc-heading); font-weight: 600; }

/* Questions and answers */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--dc-border); padding: 1rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--dc-border); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--dc-heading); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--dc-accent); font-weight: 700; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: .75rem 0 0; color: var(--dc-muted); }

/* Figures, blocks inside dark bands, text from the editor */
.product-frame-figure { margin: 0; }
.prose .product-frame-figure { margin: 2rem 0; }
.section-ink .dc-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.section-ink .dc-card h3 { color: #fff; }
.section-ink .dc-card p { color: var(--dc-on-ink-muted); }
.section-ink .checks li { color: var(--dc-on-ink); }
.section-ink .table-dc { --bs-table-color: var(--dc-on-ink); }
.split + .split, .card-grid + .section-head, .section-head + .split { margin-top: 0; }
.card-grid + .card-grid, .split + .card-grid, .card-grid + .actions { margin-top: 1.5rem; }
.prose h2, .prose h3 { scroll-margin-top: 5rem; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.25rem; }
.prose table { width: 100%; }
.section > .container > .table-responsive, .prose .table-responsive { margin: 1.5rem 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 1.25rem; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }

/* Footer */
.site-footer { background: var(--dc-ink); color: var(--dc-on-ink-muted); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--dc-on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.5rem; font-size: .875rem; }
.site-footer .brand img { height: 28px; }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: 1rem 0; }
    .site-header .header-actions { margin-top: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
.split .card-grid + * { margin-top: 1.5rem; }
