/* ==========================================================================
   WrkEZ — WrkEZ Software Services FZCO
   Design system and site styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
    /* Brand */
    --primary: #1B82C8;
    --primary-dark: #14628F;
    --primary-light: #E8F3FB;
    --accent: #2FBF71;
    --accent-dark: #22945A;
    --accent-light: #E9F8F0;

    /* Text */
    --text: #10202E;
    --text-muted: #55697C;
    --text-inverse: #FFFFFF;

    /* Surfaces */
    --background: #FFFFFF;
    --surface: #F6F9FC;
    --surface-strong: #0E2233;
    --border: #E1E9F0;
    --border-strong: #C9D7E3;

    /* Feedback */
    --success: #1E7F4F;
    --success-bg: #EAF7F0;
    --error: #B3261E;
    --error-bg: #FDECEA;

    /* Typography */
    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    /* Spacing and shape */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1140px;
    --section-space: 88px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(16, 32, 46, 0.06);
    --shadow: 0 6px 20px rgba(16, 32, 46, 0.07);
    --shadow-lg: 0 18px 44px rgba(16, 32, 46, 0.10);

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(27, 130, 200, 0.35);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 16px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.85rem; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p {
    margin: 0 0 18px;
}

a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 22px;
}

li {
    margin-bottom: 8px;
}

hr {
    height: 1px;
    margin: 40px 0;
    border: 0;
    background: var(--border);
}

:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 820px;
}

.section {
    padding: var(--section-space) 0;
}

.section--tight {
    padding: 64px 0;
}

.section--surface {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-head--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead {
    color: var(--text-muted);
    font-size: 1.12rem;
}

.text-muted {
    color: var(--text-muted);
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--primary-dark);
    color: var(--text-inverse);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--text-inverse);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
}

.btn-secondary {
    background: var(--background);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-ghost {
    padding: 10px 18px;
    background: transparent;
    border-color: transparent;
    color: var(--text);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow::after {
    content: "\2192";
    transition: transform 0.15s ease;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(150%) blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    height: 38px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    color: var(--text);
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--primary-dark);
}

.nav-list a[aria-current="page"] {
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--background);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background:
        radial-gradient(900px 420px at 88% -12%, var(--primary-light), transparent 70%),
        var(--background);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero .lead {
    max-width: 560px;
    margin-bottom: 32px;
    font-size: 1.15rem;
}

.hero-note {
    margin: 28px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.page-hero {
    padding: 72px 0 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 880px;
    font-size: 2.5rem;
}

.page-hero .lead {
    max-width: 760px;
    margin-bottom: 0;
}

/* Abstract CSS workforce-network visual (decorative, no imagery required) */

.hero-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    padding: 28px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    border-radius: var(--radius-lg);
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 40%, transparent 100%);
    mask-image: radial-gradient(70% 70% at 50% 45%, #000 40%, transparent 100%);
}

.hero-visual-inner {
    position: relative;
    height: 100%;
}

.node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.node span {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid rgba(27, 130, 200, 0.35);
}

.node--a { top: 6%; left: 4%; }
.node--b { top: 30%; right: 2%; }
.node--c { bottom: 24%; left: 0; }
.node--d { bottom: 4%; right: 8%; }

.node--b span { background: var(--accent-light); border-color: rgba(47, 191, 113, 0.4); }
.node--c span { background: #FFF3E0; border-color: #F0C994; }
.node--d span { background: #EEE9FB; border-color: #C3B6EC; }

.node-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 128px;
    height: 128px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(140deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-inverse);
    text-align: center;
    box-shadow: 0 16px 34px rgba(27, 130, 200, 0.28);
}

.node-core strong {
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.node-core small {
    font-size: 0.72rem;
    opacity: 0.92;
}

.node-core::after {
    content: "";
    position: absolute;
    inset: -22px;
    border: 1px dashed var(--border-strong);
    border-radius: 50%;
}

.hero-visual svg.connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   7. Cards and grids
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    padding: 28px 26px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card--plain {
    padding: 0;
    border: 0;
}

.card--plain:hover {
    box-shadow: none;
}

/* Two-column feature rows */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.split--reverse .split-media {
    order: -1;
}

/* Checklist */

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 32px;
    color: var(--text-muted);
}

.checklist li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322945A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.checklist strong {
    color: var(--text);
}

/* Service blocks */

.service-block {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: 0;
}

.service-block h2 {
    margin-bottom: 10px;
    font-size: 1.32rem;
    letter-spacing: -0.01em;
}

.service-block p:last-child {
    margin-bottom: 0;
}

.service-block .card-icon {
    margin-bottom: 0;
}

/* Callout panel */

.panel {
    padding: 34px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.panel h3 {
    margin-bottom: 8px;
}

.panel p:last-child {
    margin-bottom: 0;
}

.notice {
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--primary-light);
    color: var(--text);
    font-size: 0.97rem;
}

.notice p:last-child {
    margin-bottom: 0;
}

/* Abstract mobile visual */

.device {
    position: relative;
    width: 232px;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px;
    aspect-ratio: 9 / 17;
    background: var(--surface-strong);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.device-screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 22px 14px 14px;
    background: var(--background);
    border-radius: 20px;
}

.device-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--border);
}

.device-bar--wide { width: 78%; }
.device-bar--mid { width: 58%; }
.device-bar--accent { background: var(--primary-light); }
.device-tile {
    flex: 1;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--surface), var(--background));
    border: 1px solid var(--border);
}

.device-tile--brand {
    background: linear-gradient(140deg, rgba(27, 130, 200, 0.12), rgba(47, 191, 113, 0.12));
    border-color: rgba(27, 130, 200, 0.22);
}

.device-row {
    display: flex;
    gap: 10px;
    flex: 1.4;
}

/* --------------------------------------------------------------------------
   8. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
    padding: 76px 0;
    background: linear-gradient(135deg, var(--surface-strong) 0%, #143752 100%);
    color: var(--text-inverse);
    text-align: center;
}

.cta-band h2 {
    color: var(--text-inverse);
}

.cta-band p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.cta-band .btn-group {
    justify-content: center;
}

.cta-band .btn-primary {
    background: var(--background);
    border-color: var(--background);
    color: var(--primary-dark);
}

.cta-band .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   9. Contact page
   -------------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.93rem;
    font-weight: 600;
}

.field .req {
    color: var(--error);
}

.field .hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--background);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355697C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: var(--error);
}

.field-error {
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 500;
}

.field-error:empty {
    display: none;
}

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 4px 0 0;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.consent label {
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.55;
}

/* Honeypot — hidden from humans, left in the DOM for bots. */
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.form-status {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
}

.form-status[hidden] {
    display: none;
}

.form-status--success {
    background: var(--success-bg);
    border-color: rgba(30, 127, 79, 0.3);
    color: var(--success);
}

.form-status--error {
    background: var(--error-bg);
    border-color: rgba(179, 38, 30, 0.3);
    color: var(--error);
}

.form-status p:last-child,
.form-status ul:last-child {
    margin-bottom: 0;
}

.contact-aside .panel + .panel {
    margin-top: 20px;
}

.contact-detail {
    margin-bottom: 20px;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail h4 {
    margin-bottom: 4px;
}

.contact-detail p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* Standalone PHP response page */

.result-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 60px 0;
}

/* --------------------------------------------------------------------------
   10. Legal / long-form content
   -------------------------------------------------------------------------- */

.legal h2 {
    margin-top: 44px;
    font-size: 1.45rem;
}

.legal h3 {
    margin-top: 28px;
    font-size: 1.08rem;
}

.legal ul {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.legal p {
    color: var(--text-muted);
}

.legal > p:first-child {
    color: var(--text);
}

.legal-meta {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.toc {
    margin: 32px 0 0;
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.toc h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 0;
}

.toc ol {
    margin: 0;
    columns: 2;
    column-gap: 32px;
    font-size: 0.94rem;
}

.toc li {
    margin-bottom: 6px;
    break-inside: avoid;
}

/* Steps list */

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 48px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

/* How We Work: implementation phases */

.phase-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Connecting line behind the phase numbers (desktop only). */
.phase-grid::before {
    content: "";
    position: absolute;
    top: 47px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed var(--border-strong);
}

.phase {
    position: relative;
    padding: 28px 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.phase-num {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-inverse);
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--background);
}

.phase h3 {
    margin-bottom: 8px;
}

.phase > p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

.phase .checklist li,
.card .checklist li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.phase .checklist li:last-child,
.card .checklist li:last-child {
    margin-bottom: 0;
}

/* How We Work: module tags */

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.module-list:last-child {
    margin-bottom: 0;
}

.module-list li {
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 600;
}

.module-list--addon li {
    background: var(--background);
    color: var(--text-muted);
    border-style: dashed;
}

/* How We Work: comparison table */

.compare-title {
    margin: 56px 0 18px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.table-wrap:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.compare-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.97rem;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.compare-table thead th {
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.compare-table tbody th {
    width: 22%;
    color: var(--text);
    font-weight: 600;
}

.compare-table td {
    color: var(--text-muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.notice--spaced {
    margin-top: 32px;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 64px 0 32px;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 320px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text);
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.89rem;
}

.footer-bottom p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    :root { --section-space: 72px; }

    h1 { font-size: 2.45rem; }
    h2 { font-size: 1.85rem; }

    .hero-grid,
    .split {
        gap: 44px;
    }

    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase-grid::before { display: none; }
}

@media (max-width: 900px) {
    .hero {
        padding: 72px 0;
    }

    .hero-grid,
    .split,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .split--reverse .split-media {
        order: 0;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
    }

    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Mobile navigation */
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 22px;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 1.02rem;
    }

    .nav-cta {
        margin-top: 18px;
        width: 100%;
    }

    /* Without JavaScript the menu stays expanded so navigation always works. */
    .no-js .site-nav {
        position: static;
        display: flex;
        padding: 0 0 18px;
        border-bottom: 0;
        box-shadow: none;
    }

    .no-js .nav-toggle {
        display: none;
    }

    .no-js .header-inner {
        flex-wrap: wrap;
        padding-top: 14px;
    }
}

@media (max-width: 640px) {
    :root { --section-space: 56px; }

    body { font-size: 16px; }

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.62rem; }

    .container { padding: 0 18px; }

    .hero { padding: 56px 0; }
    .hero .lead { font-size: 1.05rem; }

    .page-hero { padding: 52px 0 40px; }
    .page-hero h1 { font-size: 2rem; }

    .grid--2,
    .grid--3,
    .grid--4,
    .phase-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .btn-group .btn {
        width: 100%;
    }

    .service-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .toc ol { columns: 1; }

    .node { font-size: 0.74rem; padding: 8px 11px; }
    .node-core { width: 104px; height: 104px; }

    .cta-band { padding: 56px 0; }
}

/* --------------------------------------------------------------------------
   13. Preferences and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .cta-band,
    .hero-visual,
    .device {
        display: none !important;
    }

    body {
        color: #000;
        font-size: 12pt;
    }
}
