/* =========================================================================
   FireGuard — Sistema de diseño
   Estética: Editorial cálido · cream + ember + sage
   Tipografía: Fraunces (display) + Manrope (body)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,50..100,0..1&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* -------- Tokens -------- */
:root {
    --bg: #f4ede0;
    --bg-soft: #efe5d4;
    --bg-card: #ffffff;
    --bg-elevated: #fcf8f1;

    --ink: #1a1612;
    --ink-soft: #524942;
    --ink-muted: #8a7f76;

    --rule: #d9cdb9;
    --rule-soft: #e6dcc8;

    --ember: #c44a1a;
    --ember-soft: #e87043;
    --ember-wash: #f7e3d4;

    --sage: #6b8560;
    --sage-soft: #8fa584;
    --sage-wash: #e4ebd9;

    --wine: #8b3a3a;
    --wine-soft: #b45454;
    --wine-wash: #f4dcdc;

    --amber: #c08a1a;
    --amber-wash: #f5ecd4;

    --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.04), 0 1px 1px rgba(26, 22, 18, 0.03);
    --shadow-md: 0 4px 12px rgba(26, 22, 18, 0.06), 0 2px 4px rgba(26, 22, 18, 0.04);
    --shadow-lg: 0 20px 40px rgba(26, 22, 18, 0.08), 0 8px 16px rgba(26, 22, 18, 0.05);

    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 1180px;
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #1a1612;
    --bg-soft: #221d18;
    --bg-card: #2a231d;
    --bg-elevated: #322a22;

    --ink: #f4ede0;
    --ink-soft: #c9bdad;
    --ink-muted: #8a7f76;

    --rule: #3d342a;
    --rule-soft: #2e2720;

    --ember-wash: #3d281f;
    --sage-wash: #2a3328;
    --wine-wash: #3a2525;
    --amber-wash: #332a1c;
}

/* -------- Reset -------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* -------- Subtle paper texture -------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 22, 18, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

[data-theme="dark"] body::before {
    background-image: radial-gradient(circle at 1px 1px, rgba(244, 237, 224, 0.03) 1px, transparent 0);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 237, 224, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    transition: background 0.3s;
}

[data-theme="dark"] .nav {
    background: rgba(26, 22, 18, 0.85);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    font-variation-settings: 'SOFT' 50, 'WONK' 0;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-soft) 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--bg-soft);
}

.nav-links a.active {
    color: var(--ember);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--ember);
    border-radius: 2px 2px 0 0;
}

.nav-cta {
    padding: 10px 20px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: var(--ember) !important;
    color: #fff !important;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.hamburger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger span:nth-child(1) {
    top: 13px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 23px;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99;
    padding: 90px 32px 40px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer ul {
    list-style: none;
}

.mobile-drawer a {
    display: block;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    transition: color 0.2s, padding 0.2s;
    font-variation-settings: 'SOFT' 30, 'WONK' 0;
}

.mobile-drawer a:hover {
    color: var(--ember);
    padding-left: 8px;
}

.mobile-drawer a.active {
    color: var(--ember);
}

.mobile-drawer .drawer-cta {
    display: block;
    margin-top: 32px;
    padding: 16px 24px;
    background: var(--ink);
    color: var(--bg);
    text-align: center;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
}

/* =========================================================================
   LAYOUT
   ========================================================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 100px 0;
    position: relative;
}

section.tight {
    padding: 60px 0;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 24px;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--ember);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
    font-variation-settings: 'SOFT' 30, 'WONK' 0;
}

h1 {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 350;
}

h2 {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 400;
}

h3 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;
}

h1 em,
h2 em {
    font-style: italic;
    color: var(--ember);
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.lead {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 64ch;
}

.body p {
    margin-bottom: 1.2em;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.75;
}

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

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

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

.hero .lead {
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin-left: auto;
}

.hero-visual svg {
    width: 100%;
    height: 100%;
}

/* Hero decorative ornament */
.hero-ornament {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    opacity: 0.5;
    pointer-events: none;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--ember);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--ink);
}

.btn-ember {
    background: var(--ember);
    color: #fff;
}

.btn-ember:hover {
    background: var(--ember-soft);
    transform: translateY(-2px);
}

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

.btn .arrow {
    transition: transform 0.2s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ink-muted);
}

.card-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--ember);
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

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

.card p {
    color: var(--ink-soft);
    line-height: 1.65;
}

/* Card variants */
.card-ember {
    background: var(--ember-wash);
    border-color: transparent;
}

.card-sage {
    background: var(--sage-wash);
    border-color: transparent;
}

.card-wine {
    background: var(--wine-wash);
    border-color: transparent;
}

.card-amber {
    background: var(--amber-wash);
    border-color: transparent;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =========================================================================
   STATS
   ========================================================================= */
.stat-block {
    padding: 40px 0;
    border-top: 1px solid var(--rule);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(60px, 8vw, 110px);
    font-weight: 300;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.04em;
    font-variation-settings: 'SOFT' 20, 'WONK' 1;
}

.stat-number .unit {
    font-size: 0.4em;
    color: var(--ember);
    font-weight: 400;
    vertical-align: super;
    margin-left: 0.05em;
    font-style: italic;
}

.stat-label {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
    margin-top: 12px;
    max-width: 32ch;
}

.stat-source {
    color: var(--ink-muted);
    font-size: 12px;
    margin-top: 16px;
    font-style: italic;
}

/* =========================================================================
   STEPS
   ========================================================================= */
.step-list {
    display: grid;
    gap: 0;
}

.step-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.step-item:first-child {
    border-top: 1px solid var(--rule);
}

.step-number-lg {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    color: var(--ember);
    line-height: 1;
    letter-spacing: -0.04em;
    font-variation-settings: 'SOFT' 30, 'WONK' 1;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 56ch;
}

/* =========================================================================
   ANALYZER
   ========================================================================= */
.analyzer-shell {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.analyzer-box {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.analyzer-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.analyzer-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    resize: vertical;
    transition: border-color 0.2s, background 0.2s;
}

.analyzer-textarea:focus {
    outline: none;
    border-color: var(--ember);
    background: var(--bg-elevated);
}

.analyzer-textarea::placeholder {
    color: var(--ink-muted);
}

.char-meter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-muted);
}

.char-meter .required {
    color: var(--amber);
}

.char-meter .ok {
    color: var(--sage);
}

.analyzer-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Sidebar (analyzer) */
.analyzer-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 20px;
}

.aside-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
}

.aside-card h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ember);
    margin-bottom: 14px;
}

.aside-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.aside-card li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.aside-card li::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ember);
    margin-top: 8px;
}

/* Loading */
.loading-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
    margin-top: 24px;
}

.loading-state.show {
    display: block;
}

.loading-state p {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: italic;
    color: var(--ink-soft);
    font-variation-settings: 'SOFT' 100;
}

.loading-dots {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 16px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--ember);
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {

    0%,
    80%,
    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error */
.error-box {
    display: none;
    margin-top: 24px;
    padding: 24px;
    background: var(--wine-wash);
    border: 1px solid var(--wine-soft);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--wine);
}

.error-box.show {
    display: block;
}

.error-box .err-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--wine);
    margin-bottom: 8px;
}

.error-box .err-detail {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.error-box .err-suggestion {
    color: var(--ink-muted);
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
}

/* Result */
.result-box {
    display: none;
    margin-top: 32px;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-box.show {
    display: block;
}

.result-box.burnout {
    background: var(--wine-wash);
    border-color: var(--wine-soft);
}

.result-box.wellbeing {
    background: var(--sage-wash);
    border-color: var(--sage-soft);
}

.result-box.grey {
    background: var(--amber-wash);
    border-color: var(--amber);
}

.result-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.result-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variation-settings: 'SOFT' 30, 'WONK' 1;
}

.result-box.burnout .result-title {
    color: var(--wine);
}

.result-box.wellbeing .result-title {
    color: var(--sage);
}

.result-box.grey .result-title {
    color: var(--amber);
}

.result-msg {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.confidence {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.confidence-label {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 80px;
}

.confidence-bar {
    flex: 1;
    height: 8px;
    background: rgba(26, 22, 18, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

[data-theme="dark"] .confidence-bar {
    background: rgba(244, 237, 224, 0.1);
}

.confidence-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.confidence-fill.burnout {
    background: linear-gradient(90deg, var(--wine-soft), var(--wine));
}

.confidence-fill.wellbeing {
    background: linear-gradient(90deg, var(--sage-soft), var(--sage));
}

.confidence-fill.grey {
    background: linear-gradient(90deg, var(--amber), var(--ember));
}

.confidence-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    min-width: 56px;
    text-align: right;
}

.agent-breakdown {
    padding-top: 28px;
    border-top: 1px solid var(--rule);
}

.agent-breakdown-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    margin-bottom: 20px;
}

.agent-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed var(--rule);
    gap: 16px;
    font-size: 14px;
}

.agent-row .agent-name {
    color: var(--ink-muted);
}

.agent-row .agent-value {
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.agreement-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.agreement-high {
    background: var(--sage-wash);
    color: var(--sage);
}

.agreement-medium {
    background: var(--amber-wash);
    color: var(--amber);
}

.agreement-low {
    background: var(--wine-wash);
    color: var(--wine);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   CALLOUTS / ALERTS
   ========================================================================= */
.callout {
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--ember);
    background: var(--bg-elevated);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    margin: 40px 0;
}

.callout-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ember);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.callout h4 {
    margin-bottom: 6px;
    font-size: 18px;
    font-family: var(--font-display);
    font-weight: 500;
}

.callout p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.callout.warning {
    border-color: var(--wine);
}

.callout.warning .callout-icon {
    background: var(--wine);
}

.callout.info {
    border-color: var(--sage);
}

.callout.info .callout-icon {
    background: var(--sage);
}

/* =========================================================================
   DEFINITION LIST / SYMPTOMS
   ========================================================================= */
.symptom-list {
    display: grid;
    gap: 0;
    margin-top: 40px;
}

.symptom-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.symptom-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ember-wash);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ember);
    font-size: 16px;
}

.symptom-item h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
}

.symptom-item p {
    color: var(--ink-soft);
    line-height: 1.65;
}

/* =========================================================================
   RESOURCE CARDS (recursos)
   ========================================================================= */
.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-card:hover {
    border-color: var(--ember);
    transform: translateY(-3px);
}

.resource-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 4px;
}

.resource-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
}

.resource-phone {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variation-settings: 'SOFT' 30, 'WONK' 1;
    line-height: 1.1;
    margin: 4px 0;
}

.resource-desc {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.resource-link {
    margin-top: auto;
    padding-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ember);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resource-link:hover {
    text-decoration: underline;
}

.resource-card.urgent {
    background: var(--wine-wash);
    border-color: var(--wine);
    border-width: 2px;
}

.resource-card.urgent .resource-tag {
    color: var(--wine);
}

.resource-card.urgent .resource-phone {
    color: var(--wine);
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
    border-top: 1px solid var(--rule);
}

.faq-item {
    border-bottom: 1px solid var(--rule);
}

.faq-q {
    width: 100%;
    padding: 28px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s;
    font-variation-settings: 'SOFT' 30, 'WONK' 0;
}

.faq-q:hover {
    color: var(--ember);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.3s;
    font-size: 16px;
    color: var(--ink-muted);
}

.faq-item.open .faq-toggle {
    background: var(--ember);
    color: #fff;
    border-color: var(--ember);
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
    max-height: 400px;
    padding-bottom: 28px;
}

.faq-a p {
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 70ch;
    font-size: 16px;
}

/* =========================================================================
   DIAGRAM (multi-agent architecture)
   ========================================================================= */
.architecture {
    background: var(--bg-elevated);
    border: 1px solid var(--rule);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-top: 40px;
}

.arch-layer {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.arch-layer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.arch-box {
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.arch-box.input {
    background: var(--bg-soft);
}

.arch-box.agent-1 {
    border-left: 4px solid var(--ember);
}

.arch-box.agent-2a {
    border-left: 4px solid var(--sage);
}

.arch-box.agent-2b {
    border-left: 4px solid var(--sage-soft);
}

.arch-box.agent-3 {
    border-left: 4px solid var(--wine);
}

.arch-box.output {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.arch-label {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
}

.arch-meta {
    font-size: 13px;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.arch-box.output .arch-meta {
    color: var(--ember-soft);
}

.arch-arrow {
    width: 2px;
    height: 24px;
    background: var(--rule);
    margin: 0 auto;
}

/* Row of agent cards */
.agent-row-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: var(--ink);
    color: var(--bg);
    padding: 80px 0 32px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    font-variation-settings: 'SOFT' 50, 'WONK' 1;
}

.footer-desc {
    color: var(--bg-soft);
    opacity: 0.7;
    font-size: 15px;
    line-height: 1.6;
    max-width: 32ch;
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ember-soft);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: var(--bg-soft);
    opacity: 0.8;
    font-size: 14.5px;
    transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--ember-soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(244, 237, 224, 0.1);
    font-size: 13px;
    color: var(--bg-soft);
    opacity: 0.6;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-disclaimer {
    background: rgba(244, 237, 224, 0.05);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 40px;
    border-left: 3px solid var(--ember-soft);
    color: var(--bg-soft);
    opacity: 0.85;
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-delay="4"] {
    transition-delay: 0.4s;
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-sm {
    margin-top: 16px;
}

.mt-md {
    margin-top: 32px;
}

.mt-lg {
    margin-top: 56px;
}

.mb-sm {
    margin-bottom: 16px;
}

.mb-md {
    margin-bottom: 32px;
}

.mb-lg {
    margin-bottom: 56px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
    .nav-inner {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    section {
        padding: 70px 0;
    }

    .container,
    .container-narrow {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        max-width: 340px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 28px;
    }

    .analyzer-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .analyzer-aside {
        position: static;
    }

    .analyzer-box {
        padding: 24px;
    }

    .step-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
        padding: 28px 0;
    }

    .step-number-lg {
        font-size: 44px;
    }

    .agent-grid {
        grid-template-columns: 1fr;
        gap: 10px 0;
    }

    .agent-row-cards {
        grid-template-columns: 1fr;
    }

    .architecture {
        padding: 28px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .result-box {
        padding: 28px;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-drawer a {
        font-size: 26px;
        padding: 14px 0;
    }

    .symptom-item {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .symptom-mark {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}