/* Makeflow — manufacturers homepage */

:root {
    --bg: #f6f5f1;
    --bg-alt: #eeede7;
    --surface: #ffffff;
    --ink: #0f1a14;
    --ink-2: #2b3630;
    --muted: #5d6862;
    --line: #e1dfd7;
    --line-strong: #cfccc2;

    --brand: #00bf63;
    --brand-ink: #057a41;
    --brand-soft: #e3f6ec;

    --dark: #0c1510;
    --dark-2: #15211a;

    --warn: #a35c00;
    --warn-soft: #fdf1df;
    --bad: #b42318;
    --bad-soft: #fde8e6;

    --font-head: 'Inter Tight', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgb(15 26 20 / 0.04), 0 8px 24px -8px rgb(15 26 20 / 0.12);
    --shadow-lg: 0 2px 4px rgb(15 26 20 / 0.04), 0 24px 48px -16px rgb(15 26 20 / 0.22);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
}

.skip-link:focus { left: 8px; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn i { font-size: 0.85em; transition: transform 0.2s var(--ease); }
.btn:hover i { transform: translateX(3px); }

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

.btn--primary:hover {
    background: var(--brand-ink);
    box-shadow: 0 8px 20px -8px rgb(5 122 65 / 0.6);
}

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

.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--xs { padding: 6px 14px; font-size: 0.8rem; background: var(--brand); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.is-error { background: var(--bad); }

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-ink);
    margin-bottom: 18px;
}

.eyebrow--light { color: var(--brand); }

.eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.lede {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 640px;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(246 245 241 / 0.82);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.logo__mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background:
        linear-gradient(135deg, transparent 50%, rgb(255 255 255 / 0.35) 50%),
        var(--brand);
}

.logo--light { color: #fff; }

.nav__links {
    display: flex;
    gap: 30px;
    font-size: 0.93rem;
    color: var(--ink-2);
}

.nav__links a:hover { color: var(--brand-ink); }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--line);
}

.mobile-menu a:not(.btn) {
    padding: 12px 0;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-menu .btn { margin-top: 12px; }

/* Hero */
.hero {
    padding: 72px 0 88px;
    background:
        radial-gradient(900px 400px at 85% 10%, rgb(0 191 99 / 0.10), transparent 60%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px;
    background-color: var(--bg);
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--bg));
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand-ink);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 28px;
}

.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero__points i { color: var(--brand); margin-right: 6px; }

/* Hero flow visual */
.hero__visual { position: relative; }

.flow {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Connector between cards, with a dot dropping down it */
.flow__link {
    position: relative;
    width: 2px;
    height: 44px;
    margin-left: calc(50% - 1px);
    background: linear-gradient(to bottom, rgb(0 191 99 / 0.25), var(--brand));
    opacity: 0;
    animation: rise 0.5s var(--ease) forwards;
}

/* Arrowhead touching the next card */
.flow__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: translateX(-50%) rotate(45deg);
}

.link-1 { animation-delay: 0.7s; }
.link-2 { animation-delay: 1.4s; }

.flow__link span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgb(0 191 99 / 0.22);
    opacity: 0;
    animation: drop 1.6s ease-in infinite;
}

.link-1 span { animation-delay: 1.2s; }
.link-2 span { animation-delay: 2s; }

@keyframes drop {
    0% { transform: translateY(-4px); opacity: 0; }
    15% { opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}


.flow__card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.7s var(--ease) forwards;
}

.flow__card--wa { width: 82%; }
.flow__card--agent { width: 100%; margin-left: 0; box-shadow: var(--shadow-lg); border-color: rgb(0 191 99 / 0.35); }
.flow__card--erp { width: 88%; margin-left: 12%; }

.step-1 { animation-delay: 0.2s; }
.step-2 { animation-delay: 0.9s; }
.step-3 { animation-delay: 1.6s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

.flow__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.flow__from { font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-bottom: 8px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-alt);
    color: var(--ink-2);
}

.chip--wa { background: #e6f7ec; color: #128c4b; }
.chip--agent { background: var(--ink); color: #fff; }

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(0 191 99 / 0.6); }
    100% { box-shadow: 0 0 0 8px rgb(0 191 99 / 0); }
}

.bubble {
    background: #e7fbe9;
    border-radius: 4px 12px 12px 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: var(--ink);
}

.attach {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgb(255 255 255 / 0.8);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

.attach i { color: var(--bad); }

.mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.mini th {
    text-align: left;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--line);
}

.mini td {
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
}

.mini tr:last-child td { border-bottom: 0; }

.r { text-align: right !important; font-variant-numeric: tabular-nums; }
.neg { color: var(--bad); font-weight: 600; }

.flow__note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--brand-ink);
}

.approve {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.approve__title { font-weight: 600; color: var(--ink); font-size: 0.92rem; }

.demo-tag {
    position: absolute;
    right: 0;
    bottom: -28px;
    color: var(--muted);
    font-size: 0.7rem;
}

/* Strip */
.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.strip__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.strip__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    white-space: nowrap;
}

.strip__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink-2);
}

/* Sections */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 56px; max-width: 760px; }

.section__head h2,
.case h2,
.security h2,
.contact h2 {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 700;
    margin-bottom: 18px;
}

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

.pain {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.pain i {
    font-size: 1.2rem;
    color: var(--brand-ink);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-soft);
    margin-bottom: 22px;
}

.pain h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pain p { color: var(--muted); font-size: 0.96rem; }

/* Agents */
.agents {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.agents__tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.agents__tabs::-webkit-scrollbar { display: none; }

.tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tab .mono { color: var(--line-strong); transition: color 0.2s; }
.tab:hover { color: var(--ink); background: var(--bg); }

.tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--brand);
}

.tab.is-active .mono { color: var(--brand-ink); }

.agent {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    padding: 48px;
    align-items: center;
}

.agent[hidden] { display: none; }

.agent.is-active { animation: fade 0.4s var(--ease); }

@keyframes fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.agent__num { color: var(--brand-ink); margin-bottom: 14px; }
.agent h3 { font-size: 1.7rem; margin-bottom: 24px; }

.ticks { display: flex; flex-direction: column; gap: 12px; }

.ticks li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-2);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23057a41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.workspace {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.workspace__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    background: var(--surface);
}

.grid th {
    text-align: left;
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.grid td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.grid tr:last-child td { border-bottom: 0; }
.grid .row-flag td { background: #fffaf3; }
.wa { color: #25d366; }

.tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-alt);
    color: var(--ink-2);
    white-space: nowrap;
}

.tag--ok { background: var(--brand-soft); color: var(--brand-ink); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--bad { background: var(--bad-soft); color: var(--bad); }

.workspace__foot {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.workspace__foot i { color: var(--brand-ink); margin-right: 6px; }

.wa-preview {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
}

.wa-preview p {
    background: #e7fbe9;
    padding: 10px 12px;
    border-radius: 4px 12px 12px 12px;
    color: var(--ink);
}

.chat { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.chat__q {
    align-self: flex-end;
    max-width: 80%;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    font-size: 0.9rem;
}

.chat__a {
    max-width: 90%;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: 14px 14px 14px 4px;
    font-size: 0.9rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-note {
    margin-top: 16px;
    text-align: right;
    color: var(--muted);
    font-size: 0.72rem;
}

/* Case study */
.case {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.case__body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}

.case__col {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--muted);
}

.case__col--after {
    border-color: rgb(0 191 99 / 0.4);
    color: var(--ink-2);
    box-shadow: var(--shadow);
}

.case__tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: var(--muted);
}

.case__col--after .case__tag { color: var(--brand-ink); }

.case__arrow {
    display: grid;
    place-items: center;
    color: var(--brand-ink);
}

/* Dark / control */
.section--dark {
    background:
        radial-gradient(700px 300px at 10% 0%, rgb(0 191 99 / 0.14), transparent 60%),
        var(--dark);
    color: #c4cdc8;
}

.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .lede { color: #9faba4; }
.hl { color: var(--brand); }

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

.control {
    background: var(--dark-2);
    border: 1px solid rgb(255 255 255 / 0.07);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.control i {
    color: var(--brand);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: block;
}

.control h3 { font-size: 1.1rem; margin-bottom: 10px; }
.control p { font-size: 0.93rem; color: #9faba4; }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
    border-top: 1px solid var(--line-strong);
}

.step {
    padding: 28px 28px 0 0;
    position: relative;
}

.step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--bg);
}

.step__num { color: var(--brand-ink); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Integrations */
.integrations {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.int-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.int-group:first-child { grid-row: span 3; }

.int-group h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 18px;
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.pills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
}

.int-group:first-child .pills li {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 20px;
}

.pills i { color: var(--muted); }

/* Security */
.security {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.security__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line-strong);
}

.security__list li {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.security__list i {
    color: var(--brand-ink);
    font-size: 1.1rem;
    width: 24px;
    margin-top: 3px;
}

.security__list strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.08rem;
    margin-bottom: 4px;
}

.security__list span { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__direct {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact__direct a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
}

.contact__direct a i { color: #25d366; margin-right: 6px; }
.contact__direct a:hover { color: var(--brand-ink); }
.contact__direct .muted { font-size: 0.9rem; }

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.form-card button[type="submit"] { margin-top: 10px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.field label .muted { font-weight: 400; }

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235d6862' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgb(0 191 99 / 0.15);
}

.field.is-invalid input,
.field.is-invalid select { border-color: var(--bad); }

.form-msg {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--bad);
    min-height: 1.2em;
}

.form-success { text-align: center; padding: 24px 8px; }

.form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 1.6rem;
}

.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }

/* FAQ */
.faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
}

.faq__list { border-top: 1px solid var(--line-strong); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 40px 22px 0;
    position: relative;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--brand-ink);
    transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }
.faq details p a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Final CTA */
.cta { padding: 0 0 112px; }

.cta__inner {
    background:
        radial-gradient(600px 240px at 90% 100%, rgb(0 191 99 / 0.25), transparent 60%),
        var(--dark);
    border-radius: 28px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    max-width: 640px;
}

.cta .btn--primary { background: var(--brand); color: var(--dark); }
.cta .btn--primary:hover { background: #fff; }

/* Footer */
.footer {
    background: var(--dark);
    color: #9faba4;
    padding: 64px 0 28px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.footer__tag { margin-top: 12px; font-size: 0.92rem; }

.footer__cols { display: flex; gap: 72px; }

.footer__cols div { display: flex; flex-direction: column; gap: 10px; }

.footer h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: #6d7a73;
    margin-bottom: 6px;
}

.footer__cols a { font-size: 0.93rem; color: #d4dbd7; }
.footer__cols a:hover { color: var(--brand); }

.footer__base {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    font-size: 0.84rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .flow__card { opacity: 1; transform: none; transition: none; animation: none; }
    .pulse, .agent.is-active { animation: none; }
    .flow__link { opacity: 1; animation: none; }
    .flow__link span { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__grid,
    .agent,
    .case,
    .security,
    .contact,
    .faq { grid-template-columns: 1fr; }

    .hero__grid { gap: 56px; }
    .agent { padding: 32px; gap: 32px; }
    .control-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; border-top: 0; }
    .step { border-top: 1px solid var(--line-strong); }
    .security, .contact { gap: 40px; }
    .faq { gap: 0; }
}

@media (max-width: 860px) {
    .nav__links, .nav__cta .btn { display: none; }
    .nav__toggle { display: inline-grid; place-items: center; }
    .nav.is-open .mobile-menu { display: flex; }
    .pain-grid { grid-template-columns: 1fr; }
    .integrations { grid-template-columns: 1fr; }
    .int-group:first-child { grid-row: auto; }
    .strip__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .case__body { grid-template-columns: 1fr; }
    .case__arrow { transform: rotate(90deg); }
    .cta__inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
    .footer__inner { flex-direction: column; }
    .footer__cols { gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .section { padding: 80px 0; }
    .hero { padding: 48px 0 72px; }
    .wrap { padding-left: 20px; padding-right: 20px; }
    .hero__actions .btn { width: 100%; }
    .flow__card--wa, .flow__card--erp { width: 100%; margin-left: 0; }
    .agent { padding: 24px 20px; }
    .agent h3 { font-size: 1.4rem; }
    .grid th, .grid td { padding: 10px 8px; }
    .grid { font-size: 0.78rem; }
    .grid .tag { white-space: normal; }
    .workspace { overflow-x: auto; }
    #ag-1 .grid :is(th, td):nth-child(3),
    #ag-2 .grid :is(th, td):nth-child(3) { display: none; }
    .control-grid, .steps { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 24px 20px; }
    .hero__grid { gap: 40px; }
    .pain, .case__col, .control, .int-group { padding: 22px; }
    .pain i { margin-bottom: 16px; }
    .step { padding-right: 0; }
    .mobile-menu { padding-left: 20px; padding-right: 20px; }
    .int-group:first-child .pills li { font-size: 0.92rem; padding: 10px 16px; }
    .cta { padding-bottom: 80px; }
    .cta__inner { padding: 36px 24px; border-radius: 22px; }
    .footer { padding-top: 48px; }
    .footer__inner { padding-bottom: 32px; }
    .footer__base { flex-direction: column; }
    .tab { padding: 16px 16px; font-size: 0.88rem; }
}
