:root {
    --color-ink: #09111f;
    --color-paper: #f7f5ef;
    --color-sand: #d7974c;
    --color-sand-bright: #f0b96f;
    --color-accent: #b25c17;
    --color-muted: #4b5565;
    --color-line-dark: rgba(255, 255, 255, 0.12);
    --color-line-light: rgba(9, 17, 31, 0.12);
    --shadow-soft: 0 40px 120px rgba(9, 17, 31, 0.12);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-ink);
    color: var(--color-paper);
    font-family: "Sora", "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
summary {
    outline-offset: 4px;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(240, 185, 111, 0.28);
}

.section__eyebrow {
    margin: 0;
    color: rgba(215, 151, 76, 0.88);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
}

.section__eyebrow--sand {
    color: var(--color-sand);
}

.system-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(215, 151, 76, 0.22), transparent 30%),
        linear-gradient(180deg, #09111f 0%, #0d1625 58%, #08101d 100%);
}

.system-page__content {
    max-width: 40rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 2rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.system-page__eyebrow {
    margin: 0 0 1rem;
    color: var(--color-sand);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.system-page__content h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.system-page__content p {
    margin: 1.25rem 0 0;
    max-width: 32rem;
    color: rgba(247, 245, 239, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.system-page__action {
    display: inline-flex;
    margin-top: 1.75rem;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border-radius: 999px;
    background: var(--color-sand);
    padding: 0.875rem 1.5rem;
    color: var(--color-ink);
    font-weight: 600;
    transition: transform 180ms ease, background-color 180ms ease;
}

.system-page__action:hover {
    transform: translateY(-1px);
    background: var(--color-sand-bright);
}

@media (max-width: 767px) {
    .system-page__content {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

/* ── Portal & Admin ── */

.portal-loading {
    color: rgba(247, 245, 239, 0.5);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.875rem;
    padding: 3rem 0;
}

.portal-empty {
    color: rgba(247, 245, 239, 0.4);
    font-size: 0.9375rem;
    padding: 2rem 0;
}

.portal-denied {
    text-align: center;
    padding: 4rem 0;
}

.portal-denied h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
}

.portal-denied p {
    color: rgba(247, 245, 239, 0.6);
    margin: 0.5rem 0;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: var(--color-sand);
    color: var(--color-ink);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: transform 180ms, background 180ms;
    margin-top: 1rem;
}

.portal-btn:hover {
    transform: translateY(-1px);
    background: var(--color-sand-bright);
}

.portal-btn--outline {
    background: transparent;
    border: 1px solid var(--color-line-dark);
    color: var(--color-paper);
}

.portal-btn--outline:hover {
    border-color: var(--color-sand);
    color: var(--color-sand);
    background: transparent;
}

/* Dashboard */
.portal-dashboard h1,
.financeiro h1,
.admin-page h1,
.admin-dashboard h1,
.project-detail h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0;
    letter-spacing: -0.03em;
}

.portal-greeting p,
.financeiro-subtitle {
    color: rgba(247, 245, 239, 0.55);
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
}

.portal-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.portal-stat {
    flex: 1;
    min-width: 140px;
    padding: 1.25rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.portal-stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-sand);
}

.portal-stat--alert .portal-stat__value { color: #e85d5d; }
.portal-stat--success .portal-stat__value { color: #4ade80; }

.portal-stat__label {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: rgba(247, 245, 239, 0.45);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.portal-section-title {
    font-size: 1.125rem;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}

/* Project Cards */
.portal-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.portal-project-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 180ms, background 180ms;
}

.portal-project-card:hover {
    border-color: rgba(215, 151, 76, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.portal-project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.portal-project-card__header h3 {
    margin: 0;
    font-size: 1rem;
}

.portal-project-card__desc {
    color: rgba(247, 245, 239, 0.5);
    font-size: 0.8125rem;
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.portal-project-card__progress {
    margin-top: 1.25rem;
}

/* Badges */
.portal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.portal-badge--planning { background: rgba(90, 160, 255, 0.15); color: #5aa0ff; }
.portal-badge--inprogress { background: rgba(215, 151, 76, 0.15); color: var(--color-sand-bright); }
.portal-badge--paused { background: rgba(255, 255, 255, 0.08); color: rgba(247, 245, 239, 0.5); }
.portal-badge--completed { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.portal-badge--notstarted { background: rgba(255, 255, 255, 0.06); color: rgba(247, 245, 239, 0.4); }
.portal-badge--pending { background: rgba(215, 151, 76, 0.15); color: var(--color-sand-bright); }
.portal-badge--overdue { background: rgba(232, 93, 93, 0.15); color: #e85d5d; }
.portal-badge--paid { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

/* Progress Bar */
.portal-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.portal-progress-bar--lg { height: 10px; border-radius: 5px; }

.portal-progress-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-sand), var(--color-sand-bright));
    transition: width 400ms ease;
}

.portal-progress-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    color: rgba(247, 245, 239, 0.45);
    margin-top: 0.375rem;
    display: block;
}

/* Project Detail */
.project-back {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8125rem;
    color: rgba(247, 245, 239, 0.5);
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: color 180ms;
}

.project-back:hover { color: var(--color-sand); }

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: rgba(247, 245, 239, 0.55);
    font-size: 0.9375rem;
    margin: 0.5rem 0 0;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: rgba(247, 245, 239, 0.4);
    margin-bottom: 2rem;
}

.project-progress-overview {
    margin-bottom: 2.5rem;
}

/* Phase Timeline */
.phase-timeline {
    position: relative;
    padding-left: 2rem;
}

.phase-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-line-dark);
}

.phase-item {
    position: relative;
    margin-bottom: 2rem;
}

.phase-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--color-line-dark);
    background: var(--color-ink);
}

.phase-item--inprogress .phase-marker {
    border-color: var(--color-sand);
    background: var(--color-sand);
    box-shadow: 0 0 8px rgba(215, 151, 76, 0.4);
}

.phase-item--completed .phase-marker {
    border-color: #4ade80;
    background: #4ade80;
}

.phase-content {
    padding: 1.25rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.phase-header h3 { margin: 0; font-size: 0.9375rem; }

.phase-status {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    color: rgba(247, 245, 239, 0.45);
}

.phase-dates {
    display: flex;
    gap: 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    color: rgba(247, 245, 239, 0.35);
    margin-top: 0.5rem;
}

/* Milestones */
.milestone-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.milestone-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: rgba(247, 245, 239, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.milestone-list li:first-child { border-top: none; }

.milestone--done { color: rgba(74, 222, 128, 0.7); }

.milestone-check {
    font-size: 0.75rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.milestone-list small {
    display: block;
    color: rgba(247, 245, 239, 0.3);
    font-size: 0.6875rem;
    margin-left: 0.25rem;
}

/* Invoice Table */
.invoice-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.invoice-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, 0.4);
    border-bottom: 1px solid var(--color-line-dark);
}

.invoice-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(247, 245, 239, 0.75);
}

.invoice-amount {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
}

/* Admin */
.admin-dashboard { padding: 2rem 0; }

.admin-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.admin-nav-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 180ms;
}

.admin-nav-card:hover { border-color: var(--color-sand); }
.admin-nav-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.admin-nav-card p { margin: 0; font-size: 0.8125rem; color: rgba(247, 245, 239, 0.5); }

.admin-page { padding: 1rem 0; }

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-form-card {
    padding: 1.5rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 2rem;
}

.admin-form-card h2 { margin: 0 0 1rem; font-size: 1rem; }

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
}

.admin-form label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: rgba(247, 245, 239, 0.5);
    text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-paper);
    font-family: "Sora", sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 180ms;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: rgba(215, 151, 76, 0.5);
}

.admin-form textarea { min-height: 80px; resize: vertical; }

.admin-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
    text-transform: none !important;
    font-size: 0.8125rem !important;
}

.admin-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, 0.4);
    border-bottom: 1px solid var(--color-line-dark);
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(247, 245, 239, 0.75);
}

.admin-table a { color: var(--color-sand); }
.admin-table a:hover { color: var(--color-sand-bright); }

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions button {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 0.375rem;
    background: transparent;
    color: rgba(247, 245, 239, 0.6);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 150ms;
}

.admin-actions button:hover {
    border-color: var(--color-sand);
    color: var(--color-sand);
}

.admin-delete { color: #e85d5d !important; }
.admin-delete:hover { border-color: #e85d5d !important; }

.admin-phase-card {
    padding: 1.25rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1rem;
}

.admin-phase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-phase-header h3 { margin: 0; font-size: 0.9375rem; }

.admin-milestone-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.admin-milestone-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(247, 245, 239, 0.65);
}

/* ── Shared Layout (hero header, sections, footer) ── */

.home {
    overflow-x: hidden;
    background: var(--color-ink);
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(215, 151, 76, 0.34), transparent 35%),
        radial-gradient(circle at 90% 18%, rgba(60, 96, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #09111f 0%, #0d1625 58%, #08101d 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 88px 88px;
}

.hero__inner,
.section__inner,
.footer__inner {
    position: relative;
    width: min(var(--max-width), calc(100% - 3rem));
    margin: 0 auto;
}

.hero__inner {
    padding: 1.5rem 0 3.5rem;
}

.hero__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.hero__nav a,
.footer__inner a,
.section__eyebrow,
.eyebrow {
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
}

.brand {
    color: var(--color-sand);
    font-size: 0.875rem;
    letter-spacing: 0.42em;
}

.hero__nav {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.hero__nav a:hover,
.footer__inner a:hover {
    color: #fff;
}

.hero__outline-action,
.hero__primary-action,
.hero__secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border-radius: 999px;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hero__outline-action {
    border: 1px solid rgba(215, 151, 76, 0.7);
    color: var(--color-sand);
}

.hero__outline-action:hover {
    border-color: var(--color-sand);
    background: var(--color-sand);
    color: var(--color-ink);
}

.hero__primary-action {
    background: var(--color-sand);
    color: var(--color-ink);
}

.hero__primary-action:hover {
    transform: translateY(-1px);
    background: var(--color-sand-bright);
}

.hero__secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hero__secondary-action:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.section {
    padding: 6rem 0;
}

.section--light {
    background: var(--color-paper);
    color: var(--color-ink);
}

.section--dark {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #07101c;
}

.section__heading {
    max-width: 48rem;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-ink);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.95rem;
}

.footer__inner a {
    color: var(--color-sand);
    letter-spacing: 0.28em;
    font-size: 0.78rem;
}

@media (max-width: 820px) {
    .hero__nav {
        display: none;
    }
    .hero__outline-action {
        display: none;
    }
    .hero__header {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero__inner,
    .section__inner,
    .footer__inner {
        width: min(var(--max-width), calc(100% - 1.5rem));
    }
    .section {
        padding: 4.5rem 0;
    }
    .footer__inner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Produtos Catalog ── */

.pd-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.pd-product-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    background: var(--color-paper);
    transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}

a.pd-product-card { cursor: pointer; }

a.pd-product-card:hover {
    border-color: rgba(215, 151, 76, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(9, 17, 31, 0.08);
}

.pd-product-card--soon {
    opacity: 0.65;
}

.pd-product-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(215, 151, 76, 0.1);
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.pd-product-card__tag {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.pd-product-card h3 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.pd-product-card p {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    flex: 1;
}

.pd-product-card__link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    font-weight: 600;
}

a.pd-product-card:hover .pd-product-card__link {
    color: var(--color-sand);
}

.pd-product-card__link--disabled {
    color: var(--color-muted);
    font-weight: 400;
}

.pd-back-link {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8125rem;
    color: rgba(247, 245, 239, 0.5);
    transition: color 180ms;
}

.pd-back-link:hover {
    color: var(--color-sand);
}

/* ── Produtos Demo Page ── */

.pd-intro-title {
    margin: 1.5rem 0 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    max-width: 36rem;
    color: #fff;
}

.pd-intro-desc {
    margin: 1.5rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.1rem;
    line-height: 1.8;
}

.pd-demo-header { margin-bottom: 2.5rem; }

.pd-tag {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-sand);
    background: rgba(215, 151, 76, 0.1);
    border: 1px solid rgba(215, 151, 76, 0.25);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.pd-demo-title {
    margin: 1.25rem 0 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
}

.pd-demo-subtitle {
    margin: 1rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.8;
}

/* Workspace: two panels side-by-side */
.pd-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-height: 520px;
}

/* Context panel */
.pd-context {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-line-dark);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.pd-context-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-line-dark);
    background: rgba(215, 151, 76, 0.04);
}

.pd-context-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(215, 151, 76, 0.12);
    color: var(--color-sand);
    flex-shrink: 0;
}

.pd-context-header strong {
    display: block;
    font-size: 0.875rem;
}

.pd-context-header span {
    display: block;
    font-size: 0.75rem;
    color: rgba(247, 245, 239, 0.45);
    margin-top: 0.1rem;
}

.pd-textarea {
    flex: 1;
    padding: 1.25rem;
    border: none;
    background: transparent;
    color: rgba(247, 245, 239, 0.82);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    resize: none;
    outline: none;
    min-height: 300px;
}

.pd-textarea::placeholder { color: rgba(255, 255, 255, 0.2); }

.pd-context-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-line-dark);
    background: rgba(0, 0, 0, 0.15);
}

.pd-context-footer span {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    color: rgba(247, 245, 239, 0.3);
}

.pd-context-footer button {
    background: none;
    border: 1px solid var(--color-line-dark);
    color: rgba(247, 245, 239, 0.5);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 150ms;
    font-family: "Sora", sans-serif;
}

.pd-context-footer button:hover {
    border-color: var(--color-sand);
    color: var(--color-sand);
}

/* Chat panel — reuses chat-msg, chat-bubble from chat widget */
.pd-chat {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-line-dark);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.pd-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--color-line-dark);
    background: rgba(215, 151, 76, 0.04);
}

.pd-chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pd-chat-avatar {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(215, 151, 76, 0.15);
    color: var(--color-sand);
}

.pd-chat-header-info strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-paper);
}

.pd-chat-header-info span {
    display: block;
    font-size: 0.6875rem;
    color: var(--color-sand);
    margin-top: 0.1rem;
}

.pd-chat-clear {
    background: none; border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer; padding: 6px; border-radius: 8px;
    transition: all 150ms;
}

.pd-chat-clear:hover {
    color: var(--color-paper);
    background: rgba(255, 255, 255, 0.06);
}

.pd-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 350px;
    max-height: 450px;
    scroll-behavior: smooth;
}

.pd-chat-messages::-webkit-scrollbar { width: 4px; }
.pd-chat-messages::-webkit-scrollbar-track { background: transparent; }
.pd-chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }

.pd-chat-welcome { text-align: center; padding: 2rem 1rem; }

.pd-chat-welcome-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(215, 151, 76, 0.1);
    color: var(--color-sand);
}

.pd-chat-welcome > p:first-of-type {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(247, 245, 239, 0.85);
    font-weight: 500;
}

.pd-chat-welcome-sub {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: rgba(247, 245, 239, 0.4);
}

.pd-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.pd-chat-suggestions button {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(215, 151, 76, 0.3);
    background: rgba(215, 151, 76, 0.06);
    color: var(--color-sand);
    cursor: pointer;
    transition: all 150ms;
}

.pd-chat-suggestions button:hover {
    background: rgba(215, 151, 76, 0.15);
    border-color: var(--color-sand);
}

.pd-chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--color-line-dark);
    background: rgba(0, 0, 0, 0.2);
}

/* CTA card */
.pd-cta-card {
    padding: 3rem;
    border: 1px solid var(--color-line-light);
    border-radius: 1.5rem;
    background: var(--color-paper);
}

.pd-cta-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(215, 151, 76, 0.12);
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.pd-cta-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.pd-cta-card > p {
    margin: 1rem 0 0;
    max-width: 38rem;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.pd-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-line-light);
    border-bottom: 1px solid var(--color-line-light);
}

.pd-feature h3 {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-ink);
}

.pd-feature span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .pd-workspace {
        grid-template-columns: 1fr;
    }
    .pd-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pd-cta-card {
        padding: 2rem 1.5rem;
    }
}

/* ── AI Clinic Product Page ── */

.clinic-section-title {
    margin: 1rem 0 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.clinic-section-desc {
    margin: 1rem 0 0;
    max-width: 38rem;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Architecture */
.clinic-arch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.clinic-arch__surface {
    background: #fff;
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
}

.clinic-arch__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(215, 151, 76, 0.12);
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.clinic-arch__surface h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--color-ink);
}

.clinic-arch__surface p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.clinic-core {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--color-ink);
    border-radius: 1rem;
}

.clinic-core__label {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--color-sand);
    margin-bottom: 0.75rem;
}

.clinic-core__items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clinic-core__items span {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(247, 245, 239, 0.82);
}

/* Journey */
.clinic-journey {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.clinic-journey__step {
    position: relative;
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
}

.clinic-journey__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-sand);
    color: var(--color-ink);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.clinic-journey__step h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--color-paper);
}

.clinic-journey__step p {
    margin: 0;
    font-size: 0.825rem;
    line-height: 1.55;
    color: rgba(247, 245, 239, 0.6);
}

/* Surfaces detail */
.clinic-surfaces {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.clinic-surface-block {
    background: #fff;
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
}

.clinic-surface-block__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.clinic-surface-block__header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-ink);
}

.clinic-surface-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clinic-surface-block__list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.clinic-surface-block__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-sand);
}

/* Differentiator */
.clinic-diff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.clinic-diff__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clinic-diff__col li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(247, 245, 239, 0.68);
}

.clinic-diff__col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.clinic-diff__label {
    font-size: 0.8rem;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.clinic-diff__label--old {
    color: rgba(247, 245, 239, 0.4);
}

.clinic-diff__label--new {
    color: var(--color-sand);
}

.clinic-diff__col:first-child li::before {
    background: rgba(247, 245, 239, 0.2);
}

.clinic-diff__col:last-child li::before {
    background: var(--color-sand);
}

/* Specialties */
.clinic-specialties {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.clinic-specialty {
    flex: 0 1 260px;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    text-align: center;
}

.clinic-specialty__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.clinic-specialty h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--color-ink);
}

.clinic-specialty p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-muted);
}

/* Migration */
.clinic-migration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.clinic-migration__text { }

.clinic-migration__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.clinic-migration__list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-muted);
}

.clinic-migration__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-sand);
    font-weight: 700;
}

.clinic-migration__visual {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: center;
}

.clinic-migration__from,
.clinic-migration__to {
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.clinic-migration__from {
    background: rgba(9, 17, 31, 0.04);
    border: 1px dashed var(--color-line-light);
    flex: 1;
}

.clinic-migration__from > span,
.clinic-migration__to > span {
    display: block;
    font-size: 0.7rem;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.clinic-migration__systems {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.clinic-migration__systems span {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--color-line-light);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-muted);
    background: #fff;
}

.clinic-migration__arrow {
    font-size: 1.5rem;
    color: var(--color-sand);
    font-weight: 700;
    flex-shrink: 0;
}

.clinic-migration__to {
    background: var(--color-ink);
    border: 1px solid var(--color-line-dark);
    flex: 0 0 auto;
    padding: 1.5rem 2rem;
}

.clinic-migration__to > span {
    color: var(--color-sand) !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

@media (max-width: 900px) {
    .clinic-migration {
        grid-template-columns: 1fr;
    }

    .clinic-migration__visual {
        flex-direction: column;
    }

    .clinic-migration__arrow {
        transform: rotate(90deg);
    }
}

/* CTA */
.clinic-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border-radius: 999px;
    background: var(--color-sand);
    padding: 0.875rem 2rem;
    color: var(--color-ink);
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 180ms ease, background-color 180ms ease;
}

.clinic-cta-btn:hover {
    transform: translateY(-2px);
    background: var(--color-sand-bright);
}

/* Responsive */
@media (max-width: 900px) {
    .clinic-arch {
        grid-template-columns: 1fr;
    }

    .clinic-journey {
        grid-template-columns: repeat(2, 1fr);
    }

    .clinic-surfaces {
        grid-template-columns: 1fr;
    }

    .clinic-diff {
        grid-template-columns: 1fr;
    }

    .clinic-specialties {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .clinic-journey {
        grid-template-columns: 1fr;
    }
}

/* ── Automação Product Page ── */

/* Copilot demo */
.auto-copilot-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
    align-items: start;
}

.auto-copilot-demo__explanation h4 {
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    color: var(--color-ink);
}

.auto-copilot-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auto-copilot-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auto-copilot-step__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-sand);
    color: var(--color-ink);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.auto-copilot-step strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-ink);
    margin-bottom: 0.2rem;
}

.auto-copilot-step p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-muted);
}

/* Copilot chat example */
.auto-copilot-chat {
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
}

.auto-copilot-chat__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-ink);
    color: var(--color-sand);
    font-size: 0.85rem;
    font-weight: 600;
}

.auto-copilot-chat__messages {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auto-copilot-msg {
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.auto-copilot-msg--user {
    background: var(--color-ink);
    color: var(--color-paper);
    align-self: flex-end;
    max-width: 90%;
    border-bottom-right-radius: 0.25rem;
}

.auto-copilot-msg--ai {
    background: rgba(215, 151, 76, 0.08);
    color: var(--color-ink);
    border-bottom-left-radius: 0.25rem;
}

/* Pipeline */
.auto-pipeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 2.5rem;
}

.auto-pipeline__stage {
    flex: 1;
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    text-align: center;
}

.auto-pipeline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(215, 151, 76, 0.15);
    color: var(--color-sand);
    margin-bottom: 0.75rem;
}

.auto-pipeline__stage h4 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    color: var(--color-paper);
}

.auto-pipeline__stage p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(247, 245, 239, 0.55);
}

.auto-pipeline__arrow {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: var(--color-sand);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* IoT example */
.auto-iot-example {
    margin-top: 2.5rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1.25rem;
    overflow: hidden;
}

.auto-iot-example__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(215, 151, 76, 0.1);
    color: var(--color-sand);
    font-size: 0.85rem;
    font-weight: 600;
}

.auto-iot-example__body {
    padding: 1.5rem;
}

.auto-iot-example__flow {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.auto-iot-flow-item {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-line-dark);
    border-radius: 0.75rem;
    text-align: center;
}

.auto-iot-flow-item__label {
    display: block;
    font-size: 0.7rem;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin-bottom: 0.4rem;
}

.auto-iot-flow-item__detail {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(247, 245, 239, 0.6);
}

.auto-iot-flow-arrow {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: var(--color-sand);
    font-weight: 700;
    flex-shrink: 0;
}

.auto-iot-example__result {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    background: rgba(215, 151, 76, 0.06);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(247, 245, 239, 0.75);
}

/* Delivery model */
.auto-delivery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.auto-delivery__card {
    background: #fff;
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
}

.auto-delivery__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(215, 151, 76, 0.12);
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.auto-delivery__card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--color-ink);
}

.auto-delivery__card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-muted);
}

/* Use cases */
.auto-usecases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.auto-usecase {
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
}

.auto-usecase h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--color-sand);
}

.auto-usecase p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(247, 245, 239, 0.6);
}

/* CTA */
.auto-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border-radius: 999px;
    background: var(--color-sand);
    padding: 0.875rem 2rem;
    color: var(--color-ink);
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 180ms ease, background-color 180ms ease;
}

.auto-cta-btn:hover {
    transform: translateY(-2px);
    background: var(--color-sand-bright);
}

/* Responsive */
@media (max-width: 900px) {
    .auto-copilot-demo {
        grid-template-columns: 1fr;
    }

    .auto-pipeline {
        flex-direction: column;
        gap: 0.75rem;
    }

    .auto-pipeline__arrow {
        justify-content: center;
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .auto-iot-example__flow {
        flex-direction: column;
        gap: 0.5rem;
    }

    .auto-iot-flow-arrow {
        justify-content: center;
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .auto-delivery {
        grid-template-columns: 1fr;
    }

    .auto-usecases {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auto-delivery {
        grid-template-columns: 1fr;
    }
}

/* ── Governança Product Page ── */

/* Data sources */
.gov-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.gov-source {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--color-line-light);
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.gov-source__icon {
    display: flex;
    color: var(--color-accent);
}

/* Flow summary */
.gov-flow-summary {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 2.5rem;
}

.gov-flow-summary__item {
    flex: 1;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-line-light);
    border-radius: 1rem;
    text-align: center;
}

.gov-flow-summary__item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-ink);
    margin-bottom: 0.35rem;
}

.gov-flow-summary__item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.gov-flow-summary__arrow {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: var(--color-sand);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* KPIs */
.gov-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.gov-kpi-area {
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
}

.gov-kpi-area h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--color-sand);
}

.gov-kpi-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gov-kpi-area li {
    padding: 0.3rem 0;
    font-size: 0.825rem;
    line-height: 1.45;
    color: rgba(247, 245, 239, 0.6);
    position: relative;
    padding-left: 1rem;
}

.gov-kpi-area li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--color-sand);
    font-weight: 700;
}

/* KPI process */
.gov-kpi-process {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.gov-kpi-process__step {
    flex: 1;
    padding: 1.25rem;
    border: 1px solid var(--color-line-dark);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.gov-kpi-process__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-sand);
    color: var(--color-ink);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.gov-kpi-process__step strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-paper);
    margin-bottom: 0.3rem;
}

.gov-kpi-process__step p {
    margin: 0;
    font-size: 0.825rem;
    line-height: 1.5;
    color: rgba(247, 245, 239, 0.55);
}

/* Dashboard preview */
.gov-dashboard-preview {
    margin-top: 2.5rem;
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
}

.gov-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: var(--color-ink);
}

.gov-dash-header__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-paper);
}

.gov-dash-header__date {
    font-size: 0.75rem;
    color: rgba(247, 245, 239, 0.5);
    font-family: "IBM Plex Mono", monospace;
}

.gov-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-line-light);
    border-bottom: 1px solid var(--color-line-light);
}

.gov-dash-card {
    padding: 1.25rem 1.5rem;
    background: #fff;
}

.gov-dash-card--highlight {
    background: rgba(215, 151, 76, 0.06);
}

.gov-dash-card__label {
    display: block;
    font-size: 0.7rem;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.gov-dash-card__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.1;
}

.gov-dash-card__trend {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.gov-dash-card__trend--up {
    color: #22863a;
}

.gov-dash-card__trend--down {
    color: #22863a;
}

.gov-dash-card__sub {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* Bar chart */
.gov-dash-bar-chart {
    padding: 1.25rem 1.5rem 1.5rem;
}

.gov-dash-bar-chart__title {
    display: block;
    font-size: 0.75rem;
    font-family: "IBM Plex Mono", monospace;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.gov-dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
}

.gov-dash-bar {
    flex: 1;
    background: rgba(215, 151, 76, 0.2);
    border-radius: 4px 4px 0 0;
    height: var(--bar-h);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.gov-dash-bar span {
    position: absolute;
    bottom: -1.4rem;
    font-size: 0.65rem;
    color: var(--color-muted);
}

.gov-dash-bar--current {
    background: var(--color-sand);
}

/* Audit demo */
.gov-audit-demo {
    margin-top: 2.5rem;
}

.gov-audit-chat {
    border: 1px solid var(--color-line-dark);
    border-radius: 1.25rem;
    overflow: hidden;
}

.gov-audit-chat__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(215, 151, 76, 0.1);
    color: var(--color-sand);
    font-size: 0.85rem;
    font-weight: 600;
}

.gov-audit-chat__messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gov-audit-msg {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.65;
}

.gov-audit-msg--user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-line-dark);
    color: var(--color-paper);
    max-width: 85%;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.gov-audit-msg--ai {
    background: rgba(215, 151, 76, 0.06);
    border: 1px solid rgba(215, 151, 76, 0.15);
    color: rgba(247, 245, 239, 0.85);
    border-bottom-left-radius: 0.25rem;
}

/* QA demo */
.gov-qa-demo {
    margin-top: 2.5rem;
}

.gov-qa-thread {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gov-qa-item {
    border: 1px solid var(--color-line-light);
    border-radius: 1.25rem;
    overflow: hidden;
}

.gov-qa-item__q {
    padding: 1rem 1.5rem;
    background: var(--color-ink);
    color: var(--color-paper);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

.gov-qa-item__a {
    padding: 1.25rem 1.5rem;
    background: #fff;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-ink);
}

/* Responsive */
@media (max-width: 900px) {
    .gov-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .gov-kpi-process {
        flex-direction: column;
    }

    .gov-flow-summary {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gov-flow-summary__arrow {
        justify-content: center;
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .gov-dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gov-kpis {
        grid-template-columns: 1fr;
    }

    .gov-dash-grid {
        grid-template-columns: 1fr;
    }

    .gov-sources {
        justify-content: flex-start;
    }
}

/* ── Chat Widget ── */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 50; font-family: "Sora", sans-serif; }

.chat-fab {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--color-sand);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(215, 151, 76, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: relative;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(215, 151, 76, 0.55); }
.chat-fab--hidden { opacity: 0; pointer-events: none; transform: scale(0.6); }

.chat-fab-pulse {
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-sand);
    animation: chat-pulse 2s ease-out infinite;
}
@keyframes chat-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chat-panel {
    position: fixed; bottom: 24px; right: 24px;
    width: 380px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 48px);
    border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column;
    background: var(--color-ink);
    border: 1px solid var(--color-line-dark);
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    animation: chat-slide-up 0.25s ease-out;
}
@keyframes chat-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: rgba(215, 151, 76, 0.08);
    border-bottom: 1px solid var(--color-line-dark);
}
.chat-header img { width: 32px; height: 32px; }
.chat-header p { margin: 0; }
.chat-header > div { display: flex; align-items: center; gap: 12px; }
.chat-header > div > div > p:first-child { font-weight: 600; font-size: 0.875rem; color: var(--color-paper); }
.chat-header > div > div > p:last-child { font-size: 0.6875rem; color: var(--color-sand); }
.chat-close {
    background: none; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; padding: 4px; border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.chat-close:hover { color: var(--color-paper); background: rgba(255,255,255,0.08); }
.chat-close svg { width: 20px; height: 20px; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.chat-welcome { text-align: center; padding: 20px 8px; }
.chat-welcome img { width: 64px; height: 64px; margin: 0 auto 12px; opacity: 0.8; }
.chat-welcome > p:first-of-type { font-size: 0.875rem; color: rgba(247,245,239,0.8); font-weight: 500; margin: 0; }
.chat-welcome > p:last-of-type { font-size: 0.75rem; color: rgba(247,245,239,0.45); margin: 4px 0 0; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.chat-suggestion {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6875rem; padding: 6px 12px;
    border-radius: 16px; border: 1px solid rgba(215, 151, 76, 0.3);
    background: rgba(215, 151, 76, 0.06); color: var(--color-sand);
    cursor: pointer; transition: all 0.15s;
}
.chat-suggestion:hover { background: rgba(215, 151, 76, 0.15); border-color: var(--color-sand); }

.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--bot  { justify-content: flex-start; }

.chat-bubble {
    max-width: 85%; padding: 10px 14px;
    border-radius: 16px; font-size: 0.8125rem; line-height: 1.6;
    word-break: break-word;
}
.chat-bubble--user {
    background: var(--color-sand);
    color: var(--color-ink); border-bottom-right-radius: 4px;
    font-weight: 500;
}
.chat-bubble--bot {
    background: rgba(255,255,255,0.05);
    color: var(--color-paper); border-bottom-left-radius: 4px;
    border: 1px solid var(--color-line-dark);
}
.chat-bubble--bot strong { color: var(--color-sand-bright); }
.chat-link { color: var(--color-sand); text-decoration: underline; text-underline-offset: 2px; }
.chat-link:hover { color: var(--color-sand-bright); }

.chat-input-area {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--color-line-dark);
    background: rgba(0,0,0,0.2);
}
.chat-input {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-line-dark);
    border-radius: 12px; padding: 10px 14px;
    color: var(--color-paper); font-size: 0.8125rem; outline: none;
    font-family: "Sora", sans-serif;
    transition: border-color 0.15s;
}
.chat-input::placeholder { color: rgba(255,255,255,0.25); }
.chat-input:focus { border-color: rgba(215, 151, 76, 0.5); }
.chat-send {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--color-sand);
    border: none; color: var(--color-ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.15s, transform 0.15s;
}
.chat-send svg { width: 20px; height: 20px; }
.chat-send:hover:not(:disabled) { transform: scale(1.05); background: var(--color-sand-bright); }
.chat-send:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 480px) {
    .chat-panel {
        bottom: 0; right: 0; left: 0;
        width: 100%; max-width: 100%;
        height: 100vh; max-height: 100vh;
        border-radius: 0;
    }
    .chat-widget { bottom: 16px; right: 16px; }
}
