/* ==========================================================================
   FusionCRM - "A - Tiszta" public theme
   Source: fusioncrm-latvanyterv / a-tiszta (2026-10-02 design direction)

   SCOPING
   Every rule is confined to one of three scopes so that this file cannot
   affect the Bootstrap-based pages that share the same layout
   (register, footer-page, email-verification):

     .hdr   the site header   - top level element, so position:sticky works
     .foot  the site footer   - top level element
     .t     converted page content wrapper

   Bootstrap and main.css load before this file, so `.t .btn` (0,2,0) always
   wins over their `.btn` (0,1,0), and nothing leaks outside the scopes.
   ========================================================================== */

:root {
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f6fb;
    --text: #3b4256;
    --heading: #0f1530;
    --muted: #6b7288;
    --accent: #4f46e5;
    --accent-2: #06b6d4;
    --accent-soft: #eef0ff;
    --on-accent: #fff;
    --good: #059669;
    --line: #e8eaf2;
    --line-strong: #d5d9e6;
    --radius-btn: 12px;
    --radius-card: 20px;
    --shadow-lg: 0 30px 60px -20px rgba(30, 40, 100, .25);
}

html { scroll-behavior: smooth }

/* --------------------------------------------------------------- base ---- */

.t, .t *, .hdr, .hdr *, .foot, .foot * { box-sizing: border-box; margin: 0; padding: 0 }

.t, .hdr, .foot {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.t a, .hdr a, .foot a { color: inherit; text-decoration: none }
.t img, .hdr img, .foot img { max-width: 100% }

.t .wrap, .hdr .wrap, .foot .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px }

.t h1, .t h2, .t h3, .t h4,
.hdr h1, .hdr h2, .hdr h3, .hdr h4,
.foot h1, .foot h2, .foot h3, .foot h4 {
    font-family: var(--font-head);
    line-height: 1.15;
    color: var(--heading);
}

.t h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.03em }
.t h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.02em }
.t h3 { font-weight: 700 }

.t section { padding: 96px 0 }

.t .btn, .hdr .btn, .foot .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    transition: .2s;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    text-align: center;
}

/* main.css styles the Bootstrap .btn class with a capitalised label, a heavy
   drop shadow and a rotated white :after overlay, and forces white text on
   hover and focus. None of that belongs to this theme, and since those rules
   only lose on the properties declared here, they have to be named explicitly. */
.t .btn, .hdr .btn, .foot .btn { text-transform: none; box-shadow: none }
.t .btn:after, .hdr .btn:after, .foot .btn:after { content: none }

.t .btn-primary, .hdr .btn-primary, .foot .btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.t .btn-primary:hover, .t .btn-primary:focus,
.hdr .btn-primary:hover, .hdr .btn-primary:focus,
.foot .btn-primary:hover, .foot .btn-primary:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: var(--on-accent);
}

.t .btn-ghost, .hdr .btn-ghost, .foot .btn-ghost {
    background: transparent;
    color: var(--heading);
    border: 1.5px solid var(--line-strong);
}

.t .btn-ghost:hover, .t .btn-ghost:focus,
.hdr .btn-ghost:hover, .hdr .btn-ghost:focus,
.foot .btn-ghost:hover, .foot .btn-ghost:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.t .eyebrow, .foot .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.t .muted, .foot .muted { color: var(--muted) }
.t .fine { font-size: 12.5px }
.t .grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.t .sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; display: grid; gap: 14px }
.t .sec-head p { font-size: 18px; color: var(--muted) }

.t .check { list-style: none; display: grid; gap: 10px }
.t .check li { padding-left: 28px; position: relative }
.t .check li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.t .ico, .foot .ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}
.t .ico svg, .foot .ico svg { width: 22px; height: 22px }

.t .field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--heading) }
.t .field input, .t .field select, .t .field textarea {
    font: inherit;
    font-weight: 400;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    width: 100%;
}
.t .field input:focus, .t .field select:focus, .t .field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.t details summary { cursor: pointer; list-style: none }
.t details summary::-webkit-details-marker { display: none }

@media (max-width: 860px) {
    .t section { padding: 64px 0 }
    .t .hide-m, .hdr .hide-m, .foot .hide-m { display: none !important }
}

/* ------------------------------------------------------------- header ---- */

.hdr {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px }
.hdr nav { display: flex; gap: 4px }
.hdr nav a { padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--text) }
.hdr nav a:hover, .hdr nav a.on { background: var(--surface-2); color: var(--heading) }
.hdr .acts { display: flex; gap: 10px; align-items: center }
.hdr .login { font-weight: 600; font-size: 15px; padding: 0 10px; color: var(--heading) }
.hdr .login img { border-radius: 6px; vertical-align: middle }

.hdr .burger { display: none; background: none; border: 0; color: var(--heading); cursor: pointer; padding: 6px }

/* Only shown inside the mobile drop-down panel. */
.hdr nav a.only-m { display: none }

@media (max-width: 960px) {
    .hdr .burger { display: block }
    .hdr nav, .hdr .acts .login { display: none }
    .nav-open .hdr nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
    }
    .nav-open .hdr nav a.only-m { display: block; border-top: 1px solid var(--line) }
    .nav-open .hdr nav a.only-m + a.only-m { border-top: 0 }
}

/* On a narrow phone the logo, the call to action and the burger do not fit on
   one row, and the button ends up on top of the brand. The button lives in the
   drop-down panel there instead. */
@media (max-width: 600px) {
    .hdr .acts .btn { display: none }
}

/* The shared brand mark: two overlapping circles, drawn in CSS. */
.t .logo, .hdr .logo, .foot .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    color: var(--heading);
}
.t .logo b, .hdr .logo b, .foot .logo b { color: var(--accent); font-weight: 800 }
.hdr .logo img, .foot .logo img { max-height: 34px; width: auto; display: block }

.t .logo-mark, .hdr .logo-mark, .foot .logo-mark { width: 30px; height: 30px; position: relative; display: block; flex-shrink: 0 }
.t .logo-mark i, .hdr .logo-mark i, .foot .logo-mark i { position: absolute; width: 20px; height: 20px; border-radius: 50% }
.t .logo-mark i:first-child, .hdr .logo-mark i:first-child, .foot .logo-mark i:first-child { left: 0; top: 5px; background: var(--accent) }
.t .logo-mark i:last-child, .hdr .logo-mark i:last-child, .foot .logo-mark i:last-child { right: 0; top: 5px; background: var(--accent-2); mix-blend-mode: multiply; opacity: .9 }

/* ------------------------------------------------------------- footer ---- */

.foot { padding: 72px 0 28px; border-top: 1px solid var(--line) }
.foot .f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px }
.foot .f-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--heading) }
.foot .f-grid a, .foot .f-grid span { display: block; margin-bottom: 8px; font-size: 14.5px; color: var(--muted) }
.foot .f-grid a:hover { color: var(--accent) }
.foot .f-brand p { margin-top: 14px; max-width: 320px; font-size: 14.5px; color: var(--muted) }
.foot .f-social { display: flex; gap: 8px; margin-top: 18px }
.foot .f-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--heading);
    margin: 0;
    font-size: 16px;
    transition: .2s;
}
.foot .f-social a:hover { background: var(--accent); color: var(--on-accent) }
.foot .f-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .foot .f-grid { grid-template-columns: 1fr 1fr }
    .foot .f-brand { grid-column: 1/-1 }
    .foot .f-bottom { flex-direction: column; text-align: center }
}

/* ------------------------------------------- product mock: dashboard ---- */

.t .dash {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-family: var(--font-body);
    text-align: left;
}
.t .d-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2) }
.t .d-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong) }
.t .d-top b { margin-left: 12px; font-size: 11px; font-weight: 500; color: var(--muted) }
.t .d-body { display: flex; min-height: 300px }
.t .d-side { width: 52px; border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--surface-2) }
.t .d-side i { width: 22px; height: 22px; border-radius: 7px; background: var(--line) }
.t .d-side i.on { background: var(--accent) }
.t .d-main { flex: 1; padding: 16px; display: grid; gap: 14px; min-width: 0 }
.t .d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.t .d-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid }
.t .d-kpis small, .t .d-card small { font-size: 11px; color: var(--muted) }
.t .d-kpis strong { font-size: 22px; color: var(--heading); font-family: var(--font-head) }
.t .d-kpis em { font-style: normal; font-size: 10.5px; color: var(--good) }
.t .d-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px }
.t .d-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0 }
.t .d-row { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; font-size: 12px }
.t .d-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.t .d-v { font-weight: 600; color: var(--heading) }
.t .d-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff }
.t .d-pill { font-size: 10px; padding: 3px 8px; border-radius: 99px; font-weight: 600; text-align: center }
.t .d-a { background: #6366f1 } .t .d-pill.d-a { background: #6366f122; color: #6366f1 }
.t .d-b { background: #f59e0b } .t .d-pill.d-b { background: #f59e0b22; color: #d97706 }
.t .d-c { background: #10b981 } .t .d-pill.d-c { background: #10b98122; color: #059669 }
.t .d-d { background: #64748b } .t .d-pill.d-d { background: #64748b22; color: #64748b }
.t .d-bars { display: flex; align-items: flex-end; gap: 5px; height: 140px }
.t .d-bars i { flex: 1; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 4px 4px 0 0; opacity: .85 }

@media (max-width: 860px) {
    .t .d-grid { grid-template-columns: 1fr }
    .t .d-kpis { grid-template-columns: repeat(2, 1fr) }
}

/* ------------------------------------------------ product mock: chat ---- */

.t .chat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
    font-size: 14px;
}
.t .c-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line) }
.t .c-head b { color: var(--heading) }
.t .c-head span { font-size: 11px; color: var(--good); display: flex; align-items: center; gap: 6px }
.t .c-head span:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good) }
.t .c-msg { padding: 10px 14px; border-radius: 14px; max-width: 88%; line-height: 1.5 }
.t .c-bot { background: var(--surface-2); border-bottom-left-radius: 4px }
.t .c-user { background: var(--accent); color: var(--on-accent); justify-self: end; border-bottom-right-radius: 4px }
.t .c-link { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 13px }
.t .c-chips { display: flex; flex-wrap: wrap; gap: 6px }
.t .c-chips span { font-size: 12px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted) }
.t .c-input { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); color: var(--muted) }
.t .c-input i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center }

/* ----------------------------------------------- product mock: phone ---- */

.t .phone { width: 250px; height: 500px; border-radius: 38px; background: #0b0b10; padding: 10px; box-shadow: var(--shadow-lg); position: relative; flex-shrink: 0 }
.t .ph-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 12px; background: #0b0b10; z-index: 2 }
.t .ph-screen { background: var(--surface); border-radius: 30px; height: 100%; padding: 48px 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12px }
.t .ph-h { display: grid; margin-bottom: 6px }
.t .ph-h b { font-size: 22px; color: var(--heading); font-family: var(--font-head) }
.t .ph-h small { color: var(--muted) }
.t .ph-t { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2) }
.t .ph-t i { width: 8px; height: 32px; border-radius: 4px; flex-shrink: 0 }
.t .ph-t div { display: grid }
.t .ph-t b { color: var(--heading); font-size: 12px }
.t .ph-t small { color: var(--muted); font-size: 11px }
.t .ph-ai { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--accent); color: var(--on-accent); text-align: center; font-weight: 600 }

/* --------------------------------------------------------------- hero ---- */

.t .hero {
    padding: 80px 0 0;
    background: radial-gradient(1000px 500px at 50% -10%, #eef0ff, transparent), #fff;
    text-align: center;
    overflow: hidden;
}
.t .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.t .pill b { background: var(--accent); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px }
.t .hero h1 { margin: 24px auto 20px; max-width: 900px }
.t .hero .lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto }
.t .hero .btns { display: flex; gap: 12px; justify-content: center; margin: 34px 0 14px; flex-wrap: wrap }
.t .hero .fine { color: var(--muted); font-size: 14px }
.t .hero .shot { margin: 56px auto 0; max-width: 1040px; position: relative }
.t .hero .shot:before {
    content: "";
    position: absolute;
    inset: 40px -40px -40px;
    background: linear-gradient(90deg, #c7d2fe, #a5f3fc);
    filter: blur(60px);
    opacity: .6;
    z-index: -1;
}
.t .hero .dash { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0 }

.t .facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; background: var(--surface-2) }
.t .facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px }
.t .facts div { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--heading); font-size: 15px }
.t .facts .ico { width: 38px; height: 38px; background: #fff }

@media (max-width: 860px) { .t .facts .wrap { grid-template-columns: 1fr 1fr } }

/* -------------------------------------------------------------- bento ---- */

.t .bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.t .b {
    background: var(--surface-2);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line);
}
.t .b h3 { font-size: 20px }
.t .b p { color: var(--muted) }
.t .b.wide { grid-column: span 2 }
.t .b.dark { background: var(--heading); color: #c9cde0 }
.t .b.dark h3 { color: #fff }
.t .b.dark .ico { background: #ffffff14; color: #a5b4fc }
.t .mini-list { margin-top: auto; display: grid; gap: 8px }
.t .mini-list div { display: flex; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; border: 1px solid var(--line) }
.t .mini-list b { color: var(--heading) }
.t .st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap }
.t .st.o { background: #fef3c7; color: #b45309 }
.t .st.d { background: #d1fae5; color: #047857 }
.t .st.n { background: #e0e7ff; color: #4338ca }

@media (max-width: 860px) {
    .t .bento { grid-template-columns: 1fr }
    .t .b.wide { grid-column: auto }
}

/* -------------------------------------------------------------- split ---- */

.t .split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center }
.t .split .txt { display: grid; gap: 18px }
.t .split .txt p { font-size: 18px; color: var(--muted) }
.t .split.rev .txt { order: 2 }

.t .ai-sec { background: linear-gradient(180deg, #fff, var(--surface-2)) }
.t .ai-vis { display: flex; justify-content: center; position: relative }
.t .ai-vis:before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(#c7d2fe, transparent 70%);
    top: 10%;
    z-index: 0;
}
.t .ai-vis .chat { position: relative }

@media (max-width: 860px) {
    .t .split { grid-template-columns: 1fr; gap: 40px }
    .t .split.rev .txt { order: 0 }
}

/* -------------------------------------------------------------- video ---- */

.t .video {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b, #312e81 50%, #0e7490);
    box-shadow: var(--shadow-lg);
}
.t .video video { display: block; width: 100%; height: auto; border-radius: 28px; background: #000 }
.t .tabs-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px }
.t .tabs-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 99px;
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 14px;
    color: var(--heading);
}
.t .tabs-row span svg { color: var(--accent); flex-shrink: 0 }

/* ------------------------------------------------------------- mobile ---- */

.t .mob {
    background: var(--heading);
    border-radius: 32px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    color: #c9cde0;
    overflow: hidden;
}
.t .mob h2 { color: #fff }
.t .mob p { font-size: 18px; margin: 16px 0 28px }
.t .mob .phone-wrap { display: flex; justify-content: center; margin-bottom: -120px }

@media (max-width: 860px) { .t .mob { grid-template-columns: 1fr; padding: 36px } }

/* ---------------------------------------------------------------- cta ---- */

.t .cta .cta-box {
    text-align: center;
    padding: 72px 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--accent), #7c3aed 60%, var(--accent-2));
    color: #e0e7ff;
    display: grid;
    gap: 16px;
    justify-items: center;
}
.t .cta h2 { color: #fff }
.t .cta p { font-size: 18px; max-width: 640px }
.t .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px }
.t .cta .btn-primary { background: #fff; color: var(--accent) }
.t .cta .btn-primary:hover, .t .cta .btn-primary:focus { color: var(--accent) }
.t .cta .btn-ghost { color: #fff; border-color: #ffffff66 }
.t .cta .btn-ghost:hover, .t .cta .btn-ghost:focus { color: #fff; border-color: #fff }

/* ---------------------------------------------------------- page head ---- */

.t .phead { padding: 72px 0 56px; text-align: center; background: radial-gradient(800px 300px at 50% 0, #eef0ff, transparent) }
.t .phead .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px }
.t .phead .crumbs a:hover { color: var(--accent) }
.t .phead p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 16px auto 0 }

/* ------------------------------------------------------ features page ---- */

.t .fnav { position: sticky; top: 72px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line) }
.t .fnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px }
.t .fnav a { white-space: nowrap; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted) }
.t .fnav a:hover { background: var(--surface-2); color: var(--heading) }

.t .fgroup { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; padding: 72px 0; border-bottom: 1px solid var(--line) }
.t .fgroup .gtxt { position: sticky; top: 150px; display: grid; gap: 14px }
.t .fgroup .gtxt p { color: var(--muted); font-size: 17px }
.t .fcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.t .fc { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; background: #fff; transition: .2s; align-content: start }
.t .fc:hover { border-color: #c7d2fe; box-shadow: 0 12px 30px -12px rgba(79, 70, 229, .25) }
.t .fc h4 { font-size: 17px }
.t .fc p { color: var(--muted); font-size: 15px }
.t .fc.first { grid-column: span 2; background: var(--surface-2) }

@media (max-width: 860px) {
    .t .fgroup { grid-template-columns: 1fr }
    .t .fgroup .gtxt { position: static }
    .t .fcards { grid-template-columns: 1fr }
    .t .fc.first { grid-column: auto }
}

.t .ints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.t .int { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start }
.t .int .lg { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px }
.t .int p { color: var(--muted); font-size: 14px }
/* Integration logos are uploaded in the super admin, so sizes vary. */
.t .int img { width: auto; max-width: 140px; height: 48px; object-fit: contain; object-position: left }

@media (max-width: 860px) { .t .ints { grid-template-columns: 1fr 1fr } }

/* ------------------------------------------------------- pricing page ---- */

.t .plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch }
@media (max-width: 1100px) { .t .plans { grid-template-columns: 1fr 1fr } }
@media (max-width: 640px) { .t .plans { grid-template-columns: 1fr } }

.t .plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.t .plan h3 { font-size: 15px; letter-spacing: .12em }
.t .plan .pd { font-size: 14.5px; min-height: 46px; color: var(--muted) }
.t .price { display: grid; gap: 2px }
.t .price strong { font-family: var(--font-head); font-size: 30px; color: var(--heading); line-height: 1.1 }
.t .price small { color: var(--muted); font-size: 13px }
.t .quota { display: flex; flex-wrap: wrap; gap: 8px }
.t .quota span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--heading);
}
.t .plan .btn { justify-content: center; margin-top: auto }
.t .plan .check { font-size: 14.5px }
.t .plan .tag {
    position: absolute;
    top: -12px;
    left: 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 99px;
    background: var(--accent);
    color: var(--on-accent);
}
.t .plan.hl { border: 2px solid var(--accent); box-shadow: var(--shadow-lg) }

.t .toggle { display: inline-flex; padding: 5px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line) }
.t .toggle button {
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 99px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.t .toggle button.on { background: var(--surface); color: var(--heading); box-shadow: 0 2px 8px rgba(0, 0, 0, .08) }

.t .starter-row { display: grid; grid-template-columns: 1fr 2fr; gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 28px }
.t .starter-row .l { background: var(--heading); color: #c9cde0; padding: 36px; display: grid; gap: 12px; align-content: center }
.t .starter-row .l h3 { color: #fff; font-size: 26px }
.t .starter-row .l .price strong { color: #fff }
.t .starter-row .r { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-content: center }

@media (max-width: 860px) {
    .t .starter-row { grid-template-columns: 1fr }
    .t .starter-row .r { grid-template-columns: 1fr }
}

/* Deployment switch: own server (default) vs FusionCloud.
   .fusion-pricing-wrap and .fusion-cloud-only keep their names because the
   script and the markup built in September rely on them. */
.t .fusion-pricing-wrap { display: grid; gap: 28px; justify-items: center }
.t .fusion-pricing-wrap > * { width: 100% }

/* Rows that only make sense on the hosted plan: on the own-server view the
   storage is the customer's own and there is no hosting fee.
   The display value has to be restored per element type, because these rows
   are list items, blocks and inline chips depending on where they sit.

   Specificity note: the hiding rule is scoped under .fusion-pricing-wrap on
   purpose. Written as `.t .fusion-cloud-only` (0,2,0) it would lose to
   `.t .quota span` (0,2,1) and the storage chips would stay visible. */
.t .fusion-pricing-wrap .fusion-cloud-only { display: none }
.t .fusion-pricing-wrap.is-cloud li.fusion-cloud-only { display: list-item }
.t .fusion-pricing-wrap.is-cloud div.fusion-cloud-only { display: block }
.t .fusion-pricing-wrap.is-cloud span.fusion-cloud-only { display: inline-flex }

/* A hosted-only plan cannot be bought for the customer's own server, so on
   that view it is dimmed and its button is inert. */
.t .plan.is-cloud-only, .t .starter-row.is-cloud-only { transition: opacity .18s ease }
.t .fusion-pricing-wrap:not(.is-cloud) .plan.is-cloud-only,
.t .fusion-pricing-wrap:not(.is-cloud) .starter-row.is-cloud-only { opacity: .45; filter: grayscale(1) }
.t .fusion-pricing-wrap:not(.is-cloud) .plan.is-cloud-only .btn,
.t .fusion-pricing-wrap:not(.is-cloud) .starter-row.is-cloud-only .btn { pointer-events: none }
.t .onprem-note { display: none; font-size: 12px; font-weight: 700; color: var(--muted) }
.t .fusion-pricing-wrap:not(.is-cloud) .onprem-note { display: block }

.t .plan-fine { font-size: 12.5px; color: var(--muted); text-align: center; max-width: 820px; margin: 0 auto }

.t .cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px }
.t .cmp { width: 100%; border-collapse: collapse; font-size: 15px }
.t .cmp th, .t .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center }
.t .cmp th:first-child, .t .cmp td:first-child { text-align: left; color: var(--heading); font-weight: 500 }
.t .cmp thead th { font-size: 13px; letter-spacing: .08em; color: var(--heading) }
.t .cmp .y { color: var(--accent); font-weight: 800 }
.t .cmp .n { color: var(--line-strong) }

.t .faq details { border-bottom: 1px solid var(--line); padding: 20px 0 }
.t .faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; color: var(--heading) }
.t .faq summary span { font-size: 22px; line-height: 1; color: var(--accent); transition: .2s }
.t .faq details[open] summary span { transform: rotate(45deg) }
.t .faq p { margin-top: 12px; color: var(--muted); max-width: 760px }

/* ------------------------------------------------------- contact page ---- */

.t .cgrid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start }
.t .cinfo { display: grid; gap: 14px }
.t .ci { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 18px }
.t .ci small { display: block; color: var(--muted); font-size: 13px }
.t .ci b { color: var(--heading); font-size: 17px; word-break: break-word }
.t .cform { border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg) }
.t .cform h2 { font-size: 28px; margin-bottom: 6px }

.t .form { display: grid; gap: 16px }
.t .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.t .consent { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start }
.t .consent a { color: var(--accent); text-decoration: underline }
@media (max-width: 600px) { .t .f2 { grid-template-columns: 1fr } }

.t .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s }
/* min-width:0 so a grid item may shrink below its content's intrinsic width. */
.t .step { padding: 24px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 8px; counter-increment: s; align-content: start; min-width: 0 }
.t .step:before { content: counter(s, decimal-leading-zero); font-weight: 800; font-size: 28px; color: var(--accent); font-family: var(--font-head) }
.t .step p { color: var(--muted); font-size: 15px }

.t .map { height: 260px; border-radius: 18px; background: linear-gradient(135deg, #eef0ff, #ecfeff); position: relative; overflow: hidden; border: 1px solid var(--line) }
.t .map:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#ffffff 2px, transparent 2px), linear-gradient(90deg, #ffffff 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: .8;
}
.t .map .mp {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    color: var(--accent);
    display: grid;
    justify-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
}
.t .map .mp span { background: #fff; padding: 6px 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1) }

@media (max-width: 860px) {
    .t .cgrid { grid-template-columns: 1fr }
    .t .steps { grid-template-columns: 1fr 1fr }
    .t .cform { padding: 24px }
}

/* Two columns of steps do not fit on a 360 px phone: the content sets a
   minimum width and the page starts scrolling sideways. */
@media (max-width: 600px) {
    .t .steps { grid-template-columns: 1fr }
}

/* -------------------------------------------------- CMS-driven content ---- */

/* Descriptions come from the super admin rich text editor, so they may contain
   paragraphs and bullet lists. Lists are rendered in the theme's check style. */
.t .rich { color: var(--muted) }
.t .rich p { margin-bottom: 10px }
.t .rich p:last-child { margin-bottom: 0 }
.t .rich strong, .t .rich b { color: var(--heading); font-weight: 700 }
.t .rich ul, .t .rich ol { list-style: none; display: grid; gap: 10px; margin: 12px 0 0 }
.t .rich li { padding-left: 28px; position: relative }
.t .rich ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.t .rich ol { counter-reset: r }
.t .rich ol li { counter-increment: r }
.t .rich ol li:before { content: counter(r) "."; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700 }
.t .b.dark .rich, .t .b.dark .rich p { color: #c9cde0 }
.t .b.dark .rich strong, .t .b.dark .rich b { color: #fff }

/* The feature icons are icon-font glyphs coming from the CMS, not inline SVG. */
.t .ico i { font-size: 21px; line-height: 1 }

/* A screenshot uploaded in the super admin, framed like the CSS product shot. */
.t .shot-img {
    padding: 10px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.t .shot-img img { display: block; width: 100%; border-radius: 16px }

.t section.pt-0 { padding-top: 0 }

/* ------------------------------------------- PWA install help overlay ---- */

/* Appended to document.body by the home page script, so these rules are
   intentionally unscoped. The class name is new and collides with nothing. */
.pwa-help {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 21, 48, .55);
    font-family: var(--font-body);
}
.pwa-help .pwa-help-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
    color: var(--text);
}
.pwa-help h3 { margin: 12px 0 10px; font-family: var(--font-head); font-size: 24px; color: var(--heading) }
.pwa-help p { margin-bottom: 22px; line-height: 1.6; color: var(--muted) }
.pwa-help img { display: inline-block; object-fit: contain }
.pwa-help .pwa-help-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}
.pwa-help .pwa-help-step {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--surface-2);
    text-align: left;
}
.pwa-help .pwa-help-step strong { color: var(--heading) }
.pwa-help .pwa-help-step span { color: var(--muted) }

/* --------------------------------------------------------- utilities ---- */

/* Laravel validation messages inside the themed forms. */
.t .help-block, .t .invalid-feedback, .t .text-danger { color: #dc2626; font-size: 13px; font-weight: 500 }
.t .form-sent { color: var(--good); font-weight: 600 }


/* FusionCRM - mobilmenu bejelentkezes lathatosaga */
@media (max-width: 767px) {
    body.nav-open .hdr nav a.only-m {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* FusionCRM premium mobile login */
.mobile-premium-login { display: none !important; }

@media (max-width: 767px) {
    .hdr .mobile-premium-login {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 9px 13px;
        border-radius: 10px;
        background: linear-gradient(135deg, #2584f5, #1456c8);
        color: #fff !important;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none !important;
        white-space: nowrap;
        box-shadow: 0 3px 12px rgba(30, 100, 220, .24);
    }
}
