/* ==========================================================================
   Avtomatizacija — distinct visual system from razvoj-aplikacij / umetna-inteligenca:
   cool graphite + muted teal signal, condensed industrial display type,
   horizontal pipeline motif and bracket markers instead of the ledger/tick system.
   Scoped entirely under body.landing-automation.
   ========================================================================== */

body.landing-automation {
    --au-ink: #161b1f;
    --au-panel: #1e2429;
    --au-panel-2: #262e33;
    --au-line: #3a4550;
    --au-line-soft: rgba(58, 69, 80, 0.45);
    --au-paper: #ffffff;
    --au-paper-line: rgba(22, 27, 31, 0.14);
    --au-signal: #4F86F7;
    --au-signal-strong: #3a6fdb;
    --au-text-on-ink: #ffffff;
    --au-text-on-ink-muted: #8fa39a;
    --au-text-on-paper: #1c211d;
    --au-text-on-paper-muted: #5b6259;
    --au-font-display: 'Barlow Semi Condensed', sans-serif;
    --au-font-body: 'Work Sans', sans-serif;

    background: var(--au-ink);
}

body.landing-automation main {
    font-family: var(--au-font-body);
    color: var(--au-text-on-ink);
    overflow-x: hidden;
}
body.landing-automation main h1,
body.landing-automation main h2,
body.landing-automation main h3 {
    font-family: var(--au-font-display);
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.08;
}
body.landing-automation main p { line-height: 1.7; }
body.landing-automation main a { font-family: var(--au-font-body); }

body.landing-automation .au-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Recurring device: a corner bracket (pipe-fitting) instead of a tick line */
body.landing-automation .au-bracket { position: relative; padding-left: 1.1rem; }
body.landing-automation .au-bracket::before,
body.landing-automation .au-bracket::after {
    content: "";
    position: absolute;
    background: var(--au-signal);
}
body.landing-automation .au-bracket::before {
    left: 0;
    top: 0.15em;
    width: 2px;
    height: 0.85em;
}
body.landing-automation .au-bracket::after {
    left: 0;
    top: calc(0.15em + 0.85em - 2px);
    width: 0.65rem;
    height: 2px;
}

/* --------------------------------------------------------------------
   HERO — vertical pipeline panel on the left, copy on the right
   -------------------------------------------------------------------- */
body.landing-automation .au-hero {
    background: var(--au-ink);
    padding: 7.5rem 0 5rem;
    border-bottom: 1px solid var(--au-line-soft);
}
body.landing-automation .au-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
}
body.landing-automation .au-hero-eyebrow {
    color: var(--au-text-on-ink-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 36ch;
}
body.landing-automation .au-hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    color: var(--au-text-on-ink);
    max-width: 20ch;
    margin: 0 0 1.5rem;
}
body.landing-automation .au-hero-text {
    font-size: 1.09rem;
    color: var(--au-text-on-ink-muted);
    max-width: 60ch;
    margin: 0 0 2.25rem;
}
body.landing-automation .au-hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
body.landing-automation .au-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--au-signal);
    color: #ffffff;
    font-family: var(--au-font-display);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 0.95rem 1.6rem;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.18s ease, transform 0.18s ease;
}
body.landing-automation .au-btn-primary:hover { background: var(--au-signal-strong); transform: translateY(-1px); }
body.landing-automation .au-link-secondary {
    color: var(--au-text-on-ink);
    text-decoration: none;
    font-size: 0.98rem;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--au-line);
}
body.landing-automation .au-link-secondary:hover { border-color: var(--au-signal); color: var(--au-signal); }
body.landing-automation .au-hero-facts { display: flex; gap: 2rem; flex-wrap: wrap; }
body.landing-automation .au-hero-facts span { font-size: 0.88rem; color: var(--au-text-on-ink-muted); }
body.landing-automation .au-hero-facts i { color: var(--au-signal); margin-right: 0.5rem; }

/* Pipeline visual — bordered panel, stages stacked vertically with a
   top-to-bottom flow line (the hero's left-side graphic) */
body.landing-automation .au-pipeline-panel {
    border: 1px solid var(--au-line-soft);
    background: var(--au-panel);
    padding: 1.5rem 1.75rem 1.75rem;
}
body.landing-automation .au-pipeline-panel-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--au-text-on-ink-muted);
    border-bottom: 1px solid var(--au-line-soft);
    padding-bottom: 0.9rem;
    margin-bottom: 1.5rem;
}
body.landing-automation .au-pipeline-live { display: inline-flex; align-items: center; gap: 0.5rem; }
body.landing-automation .au-pipeline-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--au-signal); }
body.landing-automation .au-pipeline {
    position: relative;
    padding-left: 3.6rem;
}
body.landing-automation .au-pipeline-track {
    position: absolute;
    left: 1.3rem;
    top: 1.3rem;
    bottom: 1.3rem;
    width: 1px;
    background: var(--au-line-soft);
    z-index: 0;
}
body.landing-automation .au-pipeline-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--au-signal);
    animation: au-flow 1.8s ease forwards 0.3s;
}
@keyframes au-flow { to { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
    body.landing-automation .au-pipeline-track-fill { animation: none; height: 100%; }
}
body.landing-automation .au-pipeline-stages {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
body.landing-automation .au-pipeline-stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
body.landing-automation .au-pipeline-node {
    position: absolute;
    left: -3.6rem;
    top: 0;
    width: 2.6rem;
    height: 2.6rem;
    border: 1.5px solid var(--au-line);
    background: var(--au-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--au-text-on-ink-muted);
    font-size: 1rem;
}
body.landing-automation .au-pipeline-stage.is-result .au-pipeline-node {
    border-color: var(--au-signal);
    color: var(--au-signal);
}
body.landing-automation .au-pipeline-stage strong {
    font-family: var(--au-font-display);
    font-size: 1.05rem;
    color: var(--au-text-on-ink);
    margin-bottom: 0.3rem;
}
body.landing-automation .au-pipeline-stage span {
    font-size: 0.85rem;
    color: var(--au-text-on-ink-muted);
}

/* --------------------------------------------------------------------
   PROOF STRIP
   -------------------------------------------------------------------- */
body.landing-automation .au-proof { background: var(--au-ink); border-bottom: 1px solid var(--au-line-soft); }
body.landing-automation .au-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
body.landing-automation .au-proof-item { padding: 2rem; border-top: 2px solid var(--au-signal); }
body.landing-automation .au-proof-item strong {
    display: block;
    font-family: var(--au-font-display);
    font-size: 1.15rem;
    color: var(--au-text-on-ink);
    margin-bottom: 0.5rem;
}
body.landing-automation .au-proof-item p { color: var(--au-text-on-ink-muted); font-size: 0.95rem; margin: 0; max-width: 32ch; }

/* --------------------------------------------------------------------
   Shared section rhythm
   -------------------------------------------------------------------- */
body.landing-automation .au-section { padding: 5.5rem 0; }
body.landing-automation .au-section-paper { background: var(--au-paper); color: var(--au-text-on-paper); }
body.landing-automation .au-section-ink { background: var(--au-ink); color: var(--au-text-on-ink); border-top: 1px solid var(--au-line-soft); }
body.landing-automation .au-section-head { max-width: 64ch; margin-bottom: 3rem; }
body.landing-automation .au-section-paper .au-section-head h2 { color: var(--au-text-on-paper); }
body.landing-automation .au-section-ink .au-section-head h2 { color: var(--au-text-on-ink); }
body.landing-automation .au-section-head h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); margin: 0 0 0.9rem; }
body.landing-automation .au-section-paper .au-section-head p { color: var(--au-text-on-paper-muted); }
body.landing-automation .au-section-ink .au-section-head p { color: var(--au-text-on-ink-muted); }
body.landing-automation .au-section-head p { font-size: 1.02rem; margin: 0; max-width: 56ch; }

/* --------------------------------------------------------------------
   PROBLEM — 2x2 grid, bracket icons
   -------------------------------------------------------------------- */
body.landing-automation .au-problem-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
body.landing-automation .au-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--au-line-soft); border: 1px solid var(--au-line-soft); }
body.landing-automation .au-problem-card { background: var(--au-ink); padding: 1.75rem; }
body.landing-automation .au-problem-card i { color: var(--au-signal); font-size: 1.1rem; margin-bottom: 0.9rem; display: block; }
body.landing-automation .au-problem-card strong { display: block; font-family: var(--au-font-display); font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--au-text-on-ink); }
body.landing-automation .au-problem-card p { margin: 0; font-size: 0.92rem; color: var(--au-text-on-ink-muted); }

/* --------------------------------------------------------------------
   RESITVE — control-panel modules (2x2), not a list
   -------------------------------------------------------------------- */
body.landing-automation .au-module-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--au-paper-line); border-left: 1px solid var(--au-paper-line); }
body.landing-automation .au-module {
    border-right: 1px solid var(--au-paper-line);
    border-bottom: 1px solid var(--au-paper-line);
    padding: 2rem;
    position: relative;
}
body.landing-automation .au-module i { color: var(--au-signal-strong); font-size: 1.75rem; margin-bottom: 1.1rem; display: block; }
body.landing-automation .au-module h3 { font-size: 1.15rem; margin: 0 0 0.6rem; color: var(--au-text-on-paper); }
body.landing-automation .au-module p { font-size: 0.94rem; color: var(--au-text-on-paper-muted); margin: 0 0 1.25rem; max-width: 42ch; }
body.landing-automation .au-module a {
    color: var(--au-text-on-paper);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--au-text-on-paper-muted);
    padding-bottom: 2px;
}
body.landing-automation .au-module a:hover { color: var(--au-signal-strong); border-color: var(--au-signal-strong); }

/* --------------------------------------------------------------------
   TEHNOLOGIJA — modules on a shared trace line
   -------------------------------------------------------------------- */
body.landing-automation .au-tech-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
body.landing-automation .au-tech-item { padding-top: 1.25rem; border-top: 2px solid var(--au-line); }
body.landing-automation .au-tech-item i { color: var(--au-signal); font-size: 1.1rem; margin-bottom: 0.9rem; display: block; }
body.landing-automation .au-tech-item h3 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--au-text-on-ink); }
body.landing-automation .au-tech-item p { margin: 0; font-size: 0.9rem; color: var(--au-text-on-ink-muted); }

/* --------------------------------------------------------------------
   PRISTOPI — stepped strip, one active state
   -------------------------------------------------------------------- */
body.landing-automation .au-approach-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
body.landing-automation .au-approach-card { border-top: 2px solid var(--au-line); padding-top: 1.5rem; display: flex; flex-direction: column; }
body.landing-automation .au-approach-card.is-active { border-top-color: var(--au-signal); }
body.landing-automation .au-approach-tag { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--au-signal); margin-bottom: 0.9rem; }
body.landing-automation .au-approach-card.is-active .au-approach-tag::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--au-signal);
}
body.landing-automation .au-approach-card h3 { font-size: 1.1rem; margin: 0 0 0.6rem; color: var(--au-text-on-ink); }
body.landing-automation .au-approach-card p { font-size: 0.9rem; color: var(--au-text-on-ink-muted); margin: 0 0 0.5rem; }
body.landing-automation .au-approach-card p:last-of-type { margin-bottom: 1.5rem; flex-grow: 1; }
body.landing-automation .au-approach-card p strong { color: var(--au-text-on-ink); }
body.landing-automation .au-approach-card a {
    color: var(--au-text-on-ink);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--au-line);
    padding-bottom: 2px;
    align-self: flex-start;
}
body.landing-automation .au-approach-card a:hover { color: var(--au-signal); border-color: var(--au-signal); }

/* --------------------------------------------------------------------
   PROCES — reuses .timeline/.timeline-track-fill JS, square bracket markers
   -------------------------------------------------------------------- */
body.landing-automation .timeline { position: relative; padding-left: 1.5rem; max-width: 74ch; margin: 0; }
body.landing-automation .timeline-track { position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--au-paper-line); }
body.landing-automation .timeline-track-fill { width: 100%; height: 0%; background: var(--au-signal-strong); }
body.landing-automation .timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.6rem 0;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.landing-automation .timeline-marker {
    width: 2.2rem;
    height: 2.2rem;
    border: 1.5px solid rgba(22, 27, 31, 0.25);
    border-radius: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--au-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(22, 27, 31, 0.4);
    transition: color 0.3s ease, border-color 0.3s ease;
}
body.landing-automation .timeline-item.is-active .timeline-marker {
    border-color: var(--au-signal-strong);
    color: var(--au-signal-strong);
    background: none;
    transform: none;
    box-shadow: none;
}
body.landing-automation .timeline-content { background: transparent; border: none; border-radius: 0; padding: 0; box-shadow: none; }
body.landing-automation .timeline-item.is-active .timeline-content { border-color: transparent; box-shadow: none; }
body.landing-automation .timeline-content h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--au-text-on-paper); }
body.landing-automation .timeline-content p { margin: 0; font-size: 0.96rem; color: var(--au-text-on-paper-muted); max-width: 46ch; }

/* --------------------------------------------------------------------
   COMPARISON TABLE — left-border accent instead of tinted column
   -------------------------------------------------------------------- */
body.landing-automation .au-table-wrap { overflow-x: auto; border: 1px solid var(--au-line-soft); }
body.landing-automation .au-table { width: 100%; border-collapse: collapse; min-width: 640px; }
body.landing-automation .au-table th,
body.landing-automation .au-table td { padding: 1rem 1.25rem; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--au-line-soft); }
body.landing-automation .au-table thead th { font-family: var(--au-font-display); font-weight: 700; color: var(--au-text-on-ink); border-bottom: 1px solid var(--au-text-on-ink); }
body.landing-automation .au-table tbody th { color: var(--au-text-on-ink-muted); font-weight: 500; }
body.landing-automation .au-table td { color: var(--au-text-on-ink-muted); }
body.landing-automation .au-table .au-highlight-col { border-left: 2px solid var(--au-signal); color: var(--au-text-on-ink); font-weight: 500; }

/* --------------------------------------------------------------------
   FAQ — two-column, toggle-bracket indicator (reuses rd-faq-* JS hooks)
   -------------------------------------------------------------------- */
body.landing-automation .rd-faq-list { columns: 2; column-gap: 3rem; border-top: 1px solid var(--au-paper-line); }
body.landing-automation .rd-faq-item { break-inside: avoid; border-bottom: 1px solid var(--au-paper-line); padding: 0; }
body.landing-automation .rd-faq-trigger {
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    outline: none;
    font-family: var(--au-font-display);
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    color: var(--au-text-on-paper);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
body.landing-automation .rd-faq-trigger:focus-visible { outline: 2px solid var(--au-signal-strong); outline-offset: 2px; }
body.landing-automation .rd-faq-trigger::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--au-signal-strong);
    border-bottom: 2px solid var(--au-signal-strong);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
body.landing-automation .rd-faq-item.is-open .rd-faq-trigger::after { transform: rotate(225deg); }
body.landing-automation .rd-faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
body.landing-automation .rd-faq-answer p { margin: 0; padding: 0 0 1.25rem; color: var(--au-text-on-paper-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------
   CONTACT FORM — underline fields, flush with section background
   -------------------------------------------------------------------- */
body.landing-automation .rd-contact-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--au-paper) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}
body.landing-automation .rd-contact-form .form-title {
    font-family: var(--au-font-display);
    font-size: 1.2rem;
    margin: 0 0 1.5rem;
    color: var(--au-text-on-paper);
}
body.landing-automation .rd-contact-form label { font-size: 0.86rem; color: var(--au-text-on-paper-muted); }
body.landing-automation .rd-contact-form .form-privacy { color: var(--au-text-on-paper-muted); }
body.landing-automation .rd-contact-form .form-privacy a { color: var(--au-text-on-paper); text-decoration: underline; }
body.landing-automation .rd-contact-form .checkbox-container { background: transparent; border: none; border-radius: 0; padding: 0; min-height: 0; }
body.landing-automation .rd-contact-form input,
body.landing-automation .rd-contact-form select,
body.landing-automation .rd-contact-form textarea {
    font-family: var(--au-font-body);
    background-color: var(--au-paper) !important;
    border: none !important;
    border-bottom: 1.5px solid var(--au-text-on-paper) !important;
    border-radius: 0 !important;
    color: var(--au-text-on-paper) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.landing-automation .rd-contact-form input::placeholder,
body.landing-automation .rd-contact-form textarea::placeholder { color: var(--au-text-on-paper-muted); }
body.landing-automation .rd-contact-form select { color-scheme: light; }
body.landing-automation .rd-contact-form input:focus,
body.landing-automation .rd-contact-form select:focus,
body.landing-automation .rd-contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--au-signal-strong) !important;
}
body.landing-automation .rd-submit {
    background: var(--au-signal);
    color: #ffffff;
    font-family: var(--au-font-display);
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.18s ease;
}
body.landing-automation .rd-submit:hover { background: var(--au-signal-strong); color: #ffffff; }

/* --------------------------------------------------------------------
   FINAL CTA — two-column: message left, actions right
   -------------------------------------------------------------------- */
body.landing-automation .au-final-cta { background: var(--au-ink); color: #ffffff; }
body.landing-automation .au-final-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; }
body.landing-automation .au-final-cta h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: #ffffff; margin: 0 0 1rem; }
body.landing-automation .au-final-cta p { color: rgba(255, 255, 255, 0.65); margin: 0; max-width: 48ch; }
body.landing-automation .au-final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
body.landing-automation .au-btn-dark {
    display: inline-flex;
    align-items: center;
    background: var(--au-signal);
    color: #ffffff;
    font-family: var(--au-font-display);
    font-weight: 700;
    padding: 0.95rem 1.6rem;
    text-decoration: none;
    border-radius: 999px;
}
body.landing-automation .au-btn-dark:hover { background: var(--au-signal-strong); }
body.landing-automation .au-phone-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}
body.landing-automation .mobile-sticky-cta {
    background: var(--au-signal);
    color: #0b1210;
    font-family: var(--au-font-display);
    font-weight: 700;
}

/* --------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------- */
@media (max-width: 960px) {
    body.landing-automation .au-hero-grid { grid-template-columns: minmax(0, 1fr); }
    body.landing-automation .au-hero-grid > :first-child { order: 2; }
    body.landing-automation .au-proof-grid { grid-template-columns: minmax(0, 1fr); }
    body.landing-automation .au-problem-layout { grid-template-columns: minmax(0, 1fr); }
    body.landing-automation .au-module-grid { grid-template-columns: minmax(0, 1fr); }
    body.landing-automation .au-tech-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2rem; }
    body.landing-automation .au-approach-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2rem; }
    body.landing-automation .rd-faq-list { columns: 1; }
    body.landing-automation .au-final-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    body.landing-automation .au-hero { padding: 6rem 0 3.5rem; }
    body.landing-automation .au-approach-strip { grid-template-columns: 1fr; }
}
