* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-soft: #f7f4ee;
    --text: #1f2933;
    --muted: #52616b;
    --muted-light: #6b7780;
    --border: #e2ddd4;
    --accent: #2f5d62;
    --accent-soft: #e7efed;
    --dark: #172026;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.main-nav {
    display: flex;
    gap: 20px;
    font-size: 15px;
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--text);
}

.hero {
    padding: 104px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(47, 93, 98, 0.14), transparent 34%),
        linear-gradient(135deg, #f4f1eb, #ffffff 58%, #f7f4ee);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.lead {
    max-width: 790px;
    margin: 24px 0 0;
    font-size: 20px;
    color: var(--muted);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--dark);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(23, 32, 38, 0.18);
}

.button.secondary {
    background: #ffffff;
    color: var(--text);
    border: 1px solid #d1d5db;
}

.button.secondary:hover {
    border-color: #9ca3af;
}

.section {
    padding: 78px 0;
}

.section + .section {
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.section h1 {
    margin-bottom: 20px;
}

.section h2 {
    margin: 0 0 30px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section p {
    font-size: 18px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(23, 32, 38, 0.06);
}

.card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
}

.site-footer {
    padding: 36px 0;
    background: var(--dark);
    color: #d1d5db;
}

.site-footer p {
    margin: 0;
    font-size: 15px;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0 12px;
    }

    .logo {
        font-size: 22px;
    }

    .main-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 0 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav a {
        flex: 0 0 auto;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #ffffff;
        font-size: 14px;
        white-space: nowrap;
    }

    .hero {
        padding: 64px 0 52px;
    }

    .lead {
        font-size: 18px;
    }

    .section {
        padding: 56px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
        border-radius: 22px;
    }
}


.section-intro {
    max-width: 760px;
    margin: -8px 0 32px;
    font-size: 18px;
    color: var(--muted);
}

.process-section {
    background: #ffffff;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.process-step {
    position: relative;
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-soft);
}

.process-step span {
    display: inline-flex;
    margin-bottom: 18px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.process-step h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.2;
}

.process-step p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .process-flow {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .process-flow {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: auto;
    }
}

/* Mobile navigation override */
@media (max-width: 760px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .header-inner {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 0 12px !important;
    }

    .logo {
        font-size: 24px;
        line-height: 1.1;
    }

    .main-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 0 10px !important;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav a {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #ffffff;
        font-size: 14px;
        line-height: 1.2;
    }

    h1 {
        font-size: clamp(32px, 10vw, 44px);
        line-height: 1.08;
        letter-spacing: -0.045em;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}

/* Active navigation item */
.main-nav a.active {
    color: var(--text);
    font-weight: 800;
}

@media (max-width: 760px) {
    .main-nav a.active {
        background: var(--dark);
        color: #ffffff;
        border-color: var(--dark);
    }
}

/* Active navigation item */
.main-nav a.active {
    color: var(--text);
    font-weight: 800;
}

@media (max-width: 760px) {
    .main-nav a.active {
        background: var(--dark);
        color: #ffffff;
        border-color: var(--dark);
    }
}

/* Mobile readability refinements */
@media (max-width: 430px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .site-header {
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .header-inner {
        padding: 14px 0 10px !important;
    }

    .main-nav {
        margin-left: -2px;
        margin-right: -2px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 7px 10px;
    }

    .hero {
        padding: 42px 0 42px;
    }

    .eyebrow {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 34px;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .lead {
        margin-top: 18px;
        font-size: 17px;
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 26px;
        gap: 12px;
    }

    .button {
        min-height: 46px;
        padding: 0 18px;
        font-size: 15px;
    }

    .section {
        padding: 44px 0;
    }

    .section h2 {
        margin-bottom: 22px;
        font-size: 28px;
        line-height: 1.16;
        letter-spacing: -0.035em;
    }

    .section p {
        font-size: 16px;
        line-height: 1.65;
    }

    .cards {
        gap: 16px;
    }

    .card {
        padding: 20px;
        border-radius: 20px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 15px;
        line-height: 1.6;
    }

    .process-step {
        padding: 20px;
        border-radius: 20px;
    }

    .process-step h3 {
        font-size: 18px;
    }

    .process-step p {
        font-size: 15px;
    }

    .site-footer {
        padding: 28px 0;
    }
}

/* Compact home sections */
.compact-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.compact-cards .card {
    padding: 24px;
}

@media (max-width: 430px) {
    .compact-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .compact-cards .card {
        padding: 18px;
    }
}

/* Softer primary buttons */
.button.primary,
.hero-actions .button:first-child {
    background: #4f6675 !important;
    border-color: #4f6675 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(79, 102, 117, 0.18) !important;
}

.button.primary:hover,
.hero-actions .button:first-child:hover {
    background: #455b69 !important;
    border-color: #455b69 !important;
    box-shadow: 0 12px 26px rgba(79, 102, 117, 0.22) !important;
}

/* Active navigation */
@media (min-width: 761px) {
    .main-nav a.active {
        background: #eef2f0 !important;
        color: #17212b !important;
        border-radius: 999px;
        padding: 6px 10px;
        font-weight: 800;
    }
}

@media (max-width: 760px) {
    .main-nav a.active {
        background: #4f6675 !important;
        border-color: #4f6675 !important;
        color: #ffffff !important;
    }
}

/* Process cards */
.process-step {
    background: #f3f0e8 !important;
    border: 1px solid #d9d2c5 !important;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06) !important;
}

.process-step:hover {
    box-shadow: 0 14px 30px rgba(23, 33, 43, 0.09) !important;
}

.process-step span {
    background: #e6eeed !important;
    color: #46656d !important;
}

/* Light band behind process cards on kanban and automation pages */
.flow-band-section {
    background: #ffffff !important;
    border-top: 1px solid #e4dfd6 !important;
    border-bottom: 1px solid #e4dfd6 !important;
}

.flow-band-section .process-step {
    background: #f3f0e8 !important;
    border: 1px solid #d9d2c5 !important;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06) !important;
}

/* Softer footer */
.site-footer {
    background: #4f6675 !important;
    color: #f4f6f7 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer p {
    color: #f4f6f7 !important;
}

/* Fast Review page */

.fast-review-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 20px 72px;
}

.fast-review-hero {
    margin-bottom: 28px;
}

.fast-review-hero h1 {
    max-width: 780px;
    margin-bottom: 16px;
}

.fast-review-hero p {
    max-width: 720px;
}

.fast-review-dialog {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.fast-review-progress {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 14px;
}

.fast-review-progress-track {
    height: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef0f2;
}

.fast-review-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2f5d62;
    transition: width 0.2s ease;
}

.fast-review-question h2 {
    margin-bottom: 8px;
}

.fast-review-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.fast-review-option {
    display: block;
    width: 100%;
    min-height: 128px;
    padding: 18px;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fast-review-option:hover {
    border-color: #111827;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.fast-review-option strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 17px;
}

.fast-review-option span {
    display: block;
    color: #4b5563;
    line-height: 1.5;
}

.fast-review-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.fast-review-primary,
.fast-review-secondary,
.fast-review-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #111827;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fast-review-primary {
    background: #111827;
    color: #ffffff;
}

.fast-review-secondary {
    background: #ffffff;
    color: #111827;
}

.fast-review-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fast-review-note {
    margin-top: 18px;
    color: #6b7280;
    font-size: 14px;
}

.fast-review-home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 36px 0;
    padding: 28px;
    border-radius: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.fast-review-home-cta h2 {
    margin: 0 0 10px;
}

.fast-review-home-cta p {
    margin: 0;
    max-width: 720px;
}

@media (max-width: 760px) {
    .fast-review-options {
        grid-template-columns: 1fr;
    }

    .fast-review-home-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .fast-review-home-button {
        width: 100%;
    }
}

/* Fast Review interactions */

.fast-review-option.is-selected {
    border-color: #111827;
    background: #f9fafb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.fast-review-result {
    margin-top: 28px;
}

.fast-review-result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.fast-review-result-card h2 {
    margin-bottom: 14px;
}

.fast-review-result-card h3,
.fast-review-result-section h3,
.fast-review-next-step h3 {
    margin-top: 24px;
    margin-bottom: 8px;
}

.fast-review-result-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.fast-review-score {
    min-width: 112px;
    padding: 16px;
    border-radius: 18px;
    background: #f3f4f6;
    color: #111827;
    text-align: center;
}

.fast-review-score strong,
.fast-review-score span {
    display: block;
}

.fast-review-score strong {
    font-size: 32px;
    line-height: 1;
}

.fast-review-score span {
    margin-top: 4px;
    color: #4b5563;
    font-size: 14px;
}

.fast-review-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.fast-review-result-section,
.fast-review-next-step {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f9fafb;
}

.fast-review-result-section h3,
.fast-review-next-step h3 {
    margin-top: 0;
}

.fast-review-zone-name {
    margin: 0 0 8px;
    color: #111827;
    font-weight: 800;
}

.fast-review-next-step {
    margin-bottom: 16px;
    border-color: #c8d8d6;
    background: #eef6f4;
}

.fast-review-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Fast Review CTA button adjustment */

.fast-review-home-button {
    flex-direction: row;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.fast-review-home-cta .fast-review-home-button {
    min-width: 170px;
}

/* Fast Review button final adjustments */

.fast-review-home-button {
    flex-direction: row;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.fast-review-home-cta .fast-review-home-button {
    min-width: 210px;
}

.fast-review-primary.button.primary {
    border-color: #111827;
}

@media (max-width: 760px) {
    .fast-review-dialog,
    .fast-review-result-card {
        padding: 22px;
        border-radius: 20px;
    }

    .fast-review-actions,
    .fast-review-result-actions,
    .fast-review-result-header,
    .fast-review-result-grid {
        grid-template-columns: 1fr;
    }

    .fast-review-actions {
        flex-direction: column-reverse;
    }

    .fast-review-primary,
    .fast-review-secondary {
        width: 100%;
    }
}

.example-strip {
    background: #f4f1e8;
    padding: 72px 0;
    margin: 72px 0;
}

.example-strip h2 {
    margin-bottom: 28px;
}


/* Full-width background strip under request path cards */
.example-strip {
    background: transparent;
    padding: 72px 0 88px;
    margin: 72px 0 0;
}

.example-strip h2 {
    margin-bottom: 22px;
}

.example-strip .process-flow {
    background: #f3efe6;
    box-shadow: 0 0 0 100vmax #f3efe6;
    clip-path: inset(0 -100vmax);
    padding: 34px 0;
    border-top: 1px solid rgba(40, 55, 65, 0.08);
    border-bottom: 1px solid rgba(40, 55, 65, 0.08);
}

/* Examples page: request path block like home page */
.example-strip {
    background: #ffffff;
    padding: 96px 0;
    margin: 72px 0 0;
    overflow: visible;
    border-top: 1px solid rgba(40, 55, 65, 0.08);
    border-bottom: 1px solid rgba(40, 55, 65, 0.08);
}

.example-strip h2 {
    margin: 0 0 18px;
}

.example-strip .section-lead {
    max-width: 760px;
    margin: 0 0 36px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.65;
}

.example-strip .process-flow {
    background: transparent;
    box-shadow: none;
    clip-path: none;
    padding: 0;
    border: 0;
}

.example-strip .process-flow::before {
    content: none;
    display: none;
}

.example-strip .process-step {
    position: relative;
    z-index: 1;
}
