/* ============================================================
   Encuestar landing — Direction B (Editorial)
   Single-file stylesheet. Organized by section.
   ============================================================ */

/* === Design tokens === */
:root {
    --ink:     #14110f;
    --ink-2:   #2a2622;
    --paper:   #f4efe6;
    --line:    #d4c8b0;
    --muted:   #6b6258;
    /* Blue scale */
    --blue-mid:  #5f7dd5;   /* soft — decorative / secondary */
    --accent:    #1e3a8a;   /* base — interactive / brand */
    --bg-dark:   #12192e;   /* deep — dark surfaces / backgrounds */

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body:
        "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono:
        "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

    --container: 1280px;
    --gutter: 40px;
    --section-pad: 40px;
}

/* === Reset & base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
    margin: 0;
}
ul {
    padding: 0;
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
img,
svg {
    display: block;
    max-width: 100%;
}
button {
    font: inherit;
    cursor: pointer;
}

p {
    text-wrap: pretty;
}
h1,
h2,
h3 {
    text-wrap: balance;
}

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

/* Skip link for keyboard / screen-reader users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 20px;
    font-size: 14px;
    z-index: 100;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    left: 0;
}

/* Honeypot — visually & screen-reader hidden, must remain in tab order off */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === Typography utilities === */
.h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 7.5vw, 96px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    font-weight: 500;
    padding-bottom: 24px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-wrap: wrap;
}

.h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 500;
    margin: 0;
}
.h2-light {
    color: var(--paper);
}

.lede {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}
.kicker-num {
    color: var(--accent);
}
.kicker-light {
    color: rgba(244, 239, 230, 0.7);
}
.kicker-light .kicker-num {
    color: var(--accent);
}
.kicker-num--mid,
.kicker-light .kicker-num--mid {
    color: var(--blue-mid);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--bg-dark);
}
.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
}
.btn-block {
    width: 100%;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}
.nav-cta {
    font-size: 16px;
    margin-left: -20px;
    max-width: 240px;
    overflow: hidden;
    opacity: 1;
    /* restoring: expand layout first, then fade in */
    transition:
        max-width 0.3s ease,
        margin-left 0.3s ease,
        padding-left 0.3s ease,
        padding-right 0.3s ease,
        opacity 0.2s ease 0.25s;
}
.nav--contact .nav-cta {
    opacity: 0;
    max-width: 0;
    margin-left: -48px;
    padding-left: 0;
    padding-right: 0;
    pointer-events: none;
    /* hiding: fade out first, then collapse layout */
    transition:
        opacity 0.15s ease,
        max-width 0.3s ease 0.1s,
        margin-left 0.3s ease 0.1s,
        padding-left 0.3s ease 0.1s,
        padding-right 0.3s ease 0.1s;
}
.btn-label {
    display: inline-block;
    transition: transform 0.25s ease;
}
.btn-primary:hover .btn-label {
    transform: translateX(2px);
}
.btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}
.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

/* === Text CTA (hero) === */
.cta-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cta-link:hover {
    color: var(--accent);
}
.cta-link .cta-text {
    position: relative;
    display: inline-block;
}
/* mouse-out: retract quickly with no delay */
.cta-link .cta-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
/* hover-in: draw after color settles (0.15s delay) */
.cta-link:hover .cta-text::after {
    transform: scaleX(1);
    transition: transform 0.35s ease 0.15s;
}

/* === Sticky nav === */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 239, 230, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex;
    align-items: center;
    gap: 48px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
}
.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    transition: width 0.25s ease, height 0.25s ease, font-size 0.25s ease;
}
.nav--scrolled .logo-mark {
    width: 50px;
    height: 50px;
    font-size: 29px;
}
.logo-word {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    max-width: 200px;
    overflow: hidden;
    opacity: 1;
    /* restoring: expand first, then fade in */
    transition: max-width 0.25s ease, opacity 0.2s ease 0.2s;
}
.nav--scrolled .logo-word {
    max-width: 0;
    opacity: 0;
    /* hiding: fade out first, then collapse */
    transition: opacity 0.15s ease, max-width 0.25s ease 0.1s;
}
.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 16px;
}
.nav-links a {
    padding: 4px 0;
    font-weight: 460;
    transition: color 0.15s ease;
}
.nav-links a:hover {
    color: var(--accent);
}
.nav-links a span {
    position: relative;
    display: inline-block;
}
.nav-links a span::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.nav-links a:hover span::after {
    transform: scaleX(1);
    transition: transform 0.35s ease 0.15s;
}
.nav-links a.is-active {
    color: var(--accent);
}
.nav-links a.is-active span::after {
    transform: scaleX(1);
    transition: transform 0.35s ease;
}

/* Mobile toggle — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    margin-left: auto;
}
.nav-toggle-line {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    margin: 0 auto;
    transition:
        transform 0.2s ease,
        opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* === HERO === */
.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px var(--gutter) 0;
}
.dateline {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    flex-wrap: wrap;
}
.dot-sep {
    color: var(--accent);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    padding: 32px 0 40px;
    align-items: end;
}
.hero-visual {
    margin-bottom: 40px;
}
.hero-aside {
    padding-top: 20px;
}
.hero-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.hero-checks li,
.case-list li,
.contact-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 440;
    color: var(--ink-2);
    line-height: 1.4;
}
.hero-checks li::before,
.case-list li::before,
.contact-points li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.cta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* === Marquee === */
.marquee {
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    margin: -8px calc(-1 * var(--gutter)) 0;
    overflow: hidden;
    padding: 16px 0;
}
.marquee-inner {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    width: max-content;
    will-change: transform;
    animation: marquee 30s linear infinite;
}
.marquee-bold {
    font-weight: 600;
}
.marquee-inner > span:nth-child(even) {
    color: var(--accent);
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* === Sections === */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-pad) var(--gutter);
}
.section-head {
    max-width: 760px;
    margin-bottom: 40px;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 2px solid var(--ink);
}
.feature {
    padding: 32px 28px 36px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.feature:nth-child(3n) {
    border-right: none;
}
.feature:nth-child(n + 4) {
    border-bottom: none;
}
.feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.feature-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.feature-rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}
.feature-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 8px;
}
.feature-body {
    font-size: 14px;
    color: var(--ink-2);
    margin: 0;
    line-height: 1.55;
}

/* === Cases (alternating editorial blocks) === */
.cases-stack {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--ink);
}
.case {
    display: grid;
    grid-template-columns: 100px 1fr 320px;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.case:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.case-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}
.case-num {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}
.case-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.case-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 12px;
    max-width: 520px;
}
.case-desc {
    font-size: 16px;
    color: var(--ink-2);
    margin: 0;
    line-height: 1.55;
    max-width: 520px;
}
.case-list {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.case-img {
    aspect-ratio: 4 / 3;
    background: var(--ink);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border-radius: 4px;
}
.case-img-stripes {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0 6px,
        transparent 6px 14px
    );
}
.case-img-tag {
    position: relative;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* === How it works (dark band) === */
.section-how {
    background: var(--bg-dark);
    color: var(--paper);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}
.section-how > .section-head {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: auto;
    margin-right: auto;
}
.step {
    background: var(--bg-dark);
    padding: 36px 32px 40px;
}
.step-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.step-num {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}
.step-arrow {
    font-family: var(--font-display);
    font-size: 28px;
    color: rgba(255, 255, 255, 0.3);
}
.step-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    line-height: 1.15;
    color: var(--paper);
}
.step-body {
    font-size: 14px;
    color: rgba(244, 239, 230, 0.7);
    margin: 0;
    line-height: 1.55;
}

/* === Contact === */
.section-contact {
    padding-top: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: start;
    padding-top: 40px;
    border-top: 2px solid var(--ink);
}
.contact-copy .h2 {
    margin-bottom: 20px;
}
.contact-copy .lede {
    max-width: 460px;
}
.contact-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    letter-spacing: normal;
    text-transform: none;
    font-weight: 400;
    width: 100%;
    border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: 0.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.field textarea {
    resize: vertical;
    min-height: 80px;
}
.field select {
    appearance: none;
    padding-right: 24px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position:
        calc(100% - 12px) 50%,
        calc(100% - 7px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}
.form .btn {
    margin-top: 8px;
}
.form-legal {
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0 -12px;
    text-align: center;
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--paper);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px var(--gutter) 24px;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 12px;
}
.footer-mark {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-mark-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-wordmark {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--paper);
}
.logo-mark-lg {
    width: 59px;
    height: 59px;
    font-size: 36px;
    transform: none;
}
.footer-tag {
    color: rgba(244, 239, 230, 0.6);
    font-size: 14px;
    line-height: 1.5;
}
.footer-base {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(244, 239, 230, 0.5);
    letter-spacing: 0.04em;
    text-align: right;
    align-self: center;
    margin-top: 6px;
}

/* === FAQs (footer) === */
.footer-faqs {
    padding: 36px 0 16px;
}
.footer-rule {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0;
}
.faqs-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin: 0 0 36px;
}
.faqs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 48px;
}
.faq {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    background: none;
    border: none;
    color: rgba(244, 239, 230, 0.6);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}
.faq-question:hover {
    color: var(--paper);
}
.faq-question:hover .faq-arrow {
    color: var(--paper);
}
.faq-arrow {
    color: rgba(244, 239, 230, 0.5);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.25s ease, color 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(90deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    font-size: 14px;
    color: rgba(244, 239, 230, 0.6);
    line-height: 1.6;
    padding-bottom: 20px;
    margin: 0;
}

/* ============================================================
   Dashboard Mock — self-contained component (dm-* namespace)
   ============================================================ */
.dm-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.4;
}
.dm-window {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 30px 60px -30px rgba(10, 15, 28, 0.25),
        0 8px 20px -8px rgba(10, 15, 28, 0.1);
    display: flex;
    flex-direction: column;
}
.dm-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fafaf6;
    border-bottom: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--muted);
}
.dm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dm-dot-r {
    background: #ed6a5e;
}
.dm-dot-y {
    background: #f5c451;
}
.dm-dot-g {
    background: #61c454;
}
.dm-url {
    margin-left: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #6b7280;
}
.dm-app {
    flex: 1;
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 0;
}
.dm-side {
    background: #fafaf6;
    border-right: 1px solid var(--line);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}
.dm-side-head {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 8px 8px;
}
.dm-side-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    color: var(--ink-2);
}
.dm-side-active {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 500;
}
.dm-side-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.dm-side-foot {
    margin-top: auto;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.dm-side-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
    animation: dm-pulse 2s infinite;
}
@keyframes dm-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.dm-main {
    padding: 16px 20px;
    overflow: hidden;
    min-width: 0;
}
.dm-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.dm-crumb {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}
.dm-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}
.dm-pill {
    background: var(--ink);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}
.dm-pill-dot {
    font-size: 9px;
    color: #ef4444;
}
.dm-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.dm-kpi {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-width: 0;
}
.dm-kpi-label {
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.dm-kpi-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1;
}
.dm-kpi-trend {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
}
.dm-kpi-trend-up {
    color: var(--accent);
}

.dm-charts {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 8px;
    margin-bottom: 12px;
}
.dm-chart {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    min-width: 0;
}
.dm-chart-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 8px;
}
.dm-chart-head span:first-child {
    font-weight: 500;
}
.dm-chart-meta {
    color: var(--muted);
}

.dm-bars-h {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dm-bar-h-row {
    display: grid;
    grid-template-columns: 64px 1fr 28px;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
}
.dm-bar-h-label {
    color: var(--ink-2);
}
.dm-bar-h-track {
    height: 14px;
    background: #f1eee5;
    border-radius: 2px;
    overflow: hidden;
}
.dm-bar-h-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
}
.dm-bar-h-fill--accent {
    background: var(--accent);
}
.dm-bar-h-fill--ink {
    background: #0f172a;
}
.dm-bar-h-fill--slate {
    background: #475569;
}
.dm-bar-h-fill--slate-2 {
    background: #94a3b8;
}
.dm-bar-h-fill--slate-3 {
    background: #cbd5e1;
}
.dm-bar-h-val {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    text-align: right;
    font-size: 10.5px;
}

.dm-bars-v {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 88px;
}
.dm-bar-v {
    flex: 1;
    border-radius: 1px 1px 0 0;
    min-height: 4px;
    background: #0f172a;
}
.dm-bar-v--accent {
    background: var(--accent);
}
.dm-bars-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9.5px;
    color: var(--muted);
    padding: 0 2px;
}

.dm-feed {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
}
.dm-feed-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 500;
}
.dm-feed-meta {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}
.dm-feed-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: dm-pulse 1.5s infinite;
}
.dm-feed-row {
    display: grid;
    grid-template-columns: 44px 112px 1fr auto;
    gap: 10px;
    padding: 4px 0;
    font-size: 11px;
    align-items: center;
    border-top: 1px solid #f1eee5;
}
.dm-feed-row:first-of-type {
    border-top: none;
}
.dm-feed-time {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
}
.dm-feed-pollster {
    font-weight: 500;
}
.dm-feed-loc {
    color: var(--muted);
}
.dm-feed-pill {
    font-size: 10px;
    padding: 2px 8px;
    background: #f1eee5;
    border-radius: 3px;
    color: var(--ink-2);
}

/* === Floating phone === */
.dm-phone {
    position: absolute;
    right: -16px;
    bottom: -28px;
    width: 196px;
    aspect-ratio: 9 / 19.5;
    background: #0a0f1c;
    border-radius: 28px;
    padding: 8px;
    box-shadow:
        0 30px 50px -20px rgba(10, 15, 28, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotate(4deg);
}
.dm-phone-screen {
    background: #fff;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow: hidden;
}
.dm-phone-statusbar {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 600;
    margin-bottom: 12px;
}
.dm-phone-offline {
    color: var(--accent);
    font-weight: 500;
}
.dm-phone-head {
    margin-bottom: 12px;
}
.dm-phone-crumb {
    font-size: 9.5px;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.dm-phone-progress {
    height: 3px;
    background: #f1eee5;
    border-radius: 2px;
    overflow: hidden;
}
.dm-phone-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
}
.dm-phone-q {
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.dm-phone-opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dm-phone-opt {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dm-phone-opt-sel {
    border-width: 1.5px;
    border-color: var(--accent);
    font-weight: 500;
}
.dm-phone-radio {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.dm-phone-foot {
    margin-top: auto;
}
.dm-phone-sync {
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 8px;
}
.dm-phone-next {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    background: var(--ink);
    text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet — 640 to 1023 */
@media (max-width: 1023px) {
    :root {
        --section-pad: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 40px 0 32px;
        align-items: stretch;
    }
    .hero-aside {
        max-width: none;
    }

    .dm-phone {
        width: 168px;
        right: -8px;
        bottom: -20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature:nth-child(3n) {
        border-right: 1px solid var(--line);
    }
    .feature:nth-child(2n) {
        border-right: none;
    }
    .feature:nth-child(n + 4) {
        border-bottom: 1px solid var(--line);
    }
    .feature:nth-child(n + 5) {
        border-bottom: none;
    }

    .case {
        grid-template-columns: 80px 1fr;
        gap: 28px;
    }
    .case-img {
        grid-column: 1 / -1;
        margin-top: 8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mobile — <640 */
@media (max-width: 639px) {
    :root {
        --gutter: 24px;
        --section-pad: 64px;
    }

    .nav-cta {
        display: none;
    }
    .nav-inner {
        padding: 16px var(--gutter);
        gap: 16px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 20px;
        gap: 4px;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links a {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 32px;
    }
    .dateline {
        font-size: 11px;
        gap: 8px;
    }
    .hero-grid {
        padding: 32px 0 20px;
        gap: 32px;
    }

    .h1 {
        font-size: clamp(40px, 11vw, 56px);
        margin-bottom: 20px;
    }
    .h2 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .marquee {
        margin: 32px calc(-1 * var(--gutter)) 0;
        padding: 8px 0;
    }
    .marquee-inner {
        font-size: 11px;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature {
        border-right: none !important;
        border-bottom: 1px solid var(--line) !important;
        padding: 28px 0;
    }
    .feature:last-child {
        border-bottom: none !important;
    }

    .case {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 32px 0;
    }
    .case-meta {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
        padding-top: 0;
    }
    .case-img {
        grid-column: auto;
        margin-top: 0;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    .step {
        padding: 28px 24px 32px;
    }

    .contact-grid {
        padding-top: 28px;
        gap: 32px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .faqs-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding-top: 48px;
        padding-bottom: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-base {
        text-align: left;
    }

    /* Dashboard mock scales down — keep it dramatic but fit the screen */
    .dm-frame {
        aspect-ratio: 4 / 4;
    }
    .dm-side {
        display: none;
    }
    .dm-app {
        grid-template-columns: 1fr;
    }
    .dm-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
    .dm-charts {
        grid-template-columns: 1fr;
    }
    .dm-phone {
        width: 128px;
        right: -8px;
        bottom: -16px;
    }
    .dm-phone-q {
        font-size: 12px;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-inner {
        animation: none;
        transform: none;
    }
    .dm-side-pulse,
    .dm-feed-pulse {
        animation: none;
    }
}

/* === WhatsApp floating button === */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 16px;
    background: #1bb153;
    color: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 1px 4px rgba(0, 0, 0, 0.08);
    transition:
        padding 0.32s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.wa-float:hover {
    padding: 16px 20px;
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.16),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.wa-float:active {
    transform: translateY(0);
}

.wa-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition:
        width 0.32s ease,
        height 0.32s ease;
}
.wa-float:hover .wa-icon {
    width: 24px;
    height: 24px;
}

.wa-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 0;
    line-height: 1;
    transition:
        max-width 0.32s ease,
        opacity 0.2s ease,
        margin-left 0.32s ease;
}

.wa-float:hover .wa-label {
    max-width: 220px;
    opacity: 1;
    margin-left: 8px;
}
