/* TIR Logix landing — direction A (product-led), same tokens as the app's styles.css */
:root {
  --bg: #f5f6f8; --panel: #fff; --border: #dfe3e8; --line: #eceff3;
  --text: #1c2430; --body: #4b5563; --muted: #6b7684;
  --accent: #1d5bbf; --accent-dark: #174a9c; --accent-soft: #e8f0fc; --pos: #157347;
  --gutter: clamp(16px, 5.5vw, 80px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; padding: 8px 14px; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: #b9c3d0; color: var(--text); }
.btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.muted { font-size: 13.5px; color: var(--muted); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); z-index: 5; }
.logo { display: flex; align-items: center; }
.logo img { height: 58px; width: auto; display: block; }
.foot { align-items: center; }
.foot-logo { height: 34px; width: auto; vertical-align: middle; margin-right: 6px; }
.nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav a { color: var(--body); }
.nav a:hover { color: var(--text); }
.actions { display: flex; gap: 10px; align-items: center; }
.lang { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.lang:hover { background: var(--bg); }

.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding: 72px var(--gutter) 56px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 14px; letter-spacing: .03em; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: pretty; }
.hero p { font-size: 18px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(28,36,48,.14); background: var(--bg); }
.shot img { display: block; width: 100%; }

.block { padding: 56px var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.block.bordered { border-top: 1px solid var(--line); }
.block.soft { background: var(--bg); }
.intro { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.intro h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.intro p { font-size: 16px; color: var(--body); }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 22px 22px 24px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.card .num { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { color: var(--body); font-size: 14.5px; }
.dashed { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px dashed #b9c3d0; border-radius: 10px; }
.dashed strong { font-size: 15.5px; }
.dashed span { font-size: 14px; color: var(--body); line-height: 1.45; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--bg); border-radius: 10px; }
.step .k { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.step strong { font-size: 16px; }
.step span:last-child { font-size: 13.5px; color: var(--body); line-height: 1.45; }
.after { font-size: 15px; background: var(--accent-soft); border-radius: 10px; padding: 16px 20px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.plan { border: 1px solid var(--border); border-radius: 12px; padding: 26px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.plan.popular { border-color: var(--accent); box-shadow: 0 8px 30px rgba(29,91,191,.12); }
.plan .tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 10px; letter-spacing: .04em; background: var(--bg); color: var(--muted); }
.plan.popular .tag { background: var(--accent); color: #fff; }
.plan.custom .tag { background: #fdf3e3; color: #a05a00; }
.plan .name { font-size: 20px; }
.plan .who { font-size: 14px; color: var(--muted); margin-top: -6px; }
.plan .price { font-size: 28px; font-weight: 700; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan .note { font-size: 13.5px; color: var(--muted); min-height: 40px; }
.plan .btn { margin-top: auto; }
/* the premium add-on (AI advisor) — one strip under the plan cards, for every plan */
.addon { display: flex; flex-direction: column; gap: 4px; border: 1px dashed #d9c7f3; background: #f8f4fe; border-radius: 12px; padding: 16px 20px; width: 100%; max-width: 860px; margin: 0 auto; }
.addon .tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 10px; letter-spacing: .04em; background: #ece3fb; color: #6b3fb5; }
.addon strong { font-size: 16px; }
.addon strong small { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.addon > span:last-child { font-size: 13.5px; color: var(--body); line-height: 1.45; }
.explain { font-size: 15px; color: var(--body); max-width: 900px; }
.every { display: flex; gap: 40px; align-items: flex-start; }
.every strong { font-size: 15px; white-space: nowrap; padding-top: 2px; }
.every ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; flex: 1; }
.every li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.every li span { color: var(--pos); font-weight: 700; }

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; padding-block: 64px; }
.contact-text { display: flex; flex-direction: column; gap: 14px; }
.contact-text h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.contact-text p { font-size: 16px; color: var(--body); line-height: 1.55; }
.contacts { font-size: 15px; margin-top: 8px; }
.lead { border: 1px solid var(--border); border-radius: 12px; padding: 28px; background: #fff; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.fields .wide { grid-column: span 2; }
.fields input, .fields textarea { font: inherit; font-weight: 400; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--text); font-size: 14.5px; width: 100%; }
.fields input:focus, .fields textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.fields textarea { resize: vertical; min-height: 88px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; background: #e6f4ec; color: var(--pos); }
.status.err { background: #fdecea; color: #c0392b; }

.foot { padding: 26px var(--gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .every ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .every { flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .top { padding-block: 12px; }
  .actions .btn:not(.primary) { display: none; }
  .grid4, .steps { grid-template-columns: 1fr; }
  .every ul { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .fields .wide { grid-column: auto; }
  .lead { padding: 18px; }
  .block { padding-block: 40px; gap: 20px; }
}
.explain.switch { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; }

/* Demo video (owner 2026-10-18): the sales pitch, right under the hero */
.video-block .video { max-width: 1100px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(15, 27, 51, .14); background: #0f1b33; }
.video-block video { display: block; width: 100%; height: auto; }

/* ---- legal / document pages (terms.html, privacy.html, dpa.html) ---- */
.doc { max-width: 820px; margin: 0 auto; padding: 40px var(--gutter) 64px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.doc h1 { font-size: 30px; color: var(--text); margin: 0 0 4px; line-height: 1.2; }
.doc .meta { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.doc .lead { font-size: 17px; color: var(--text); }
.doc h2 { font-size: 18px; color: var(--text); margin: 28px 0 8px; }
.doc p, .doc ul { margin: 0 0 10px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid #e3e8ee; }
.doc th { background: #f5f7fa; color: var(--text); font-weight: 600; }
.doc code { font-size: 13px; background: #f5f7fa; padding: 1px 5px; border-radius: 4px; }
.doc mark.todo { background: #fff2a8; color: #5a4a00; padding: 0 4px; border-radius: 3px; }
.doc-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .doc-nav { display: none; } .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border-top: 0; } .doc tr { border-top: 1px solid #e3e8ee; margin-bottom: 8px; } }

/* Phone + chat (owner 2026-10-22: owners call, they do not fill forms) */
.btn svg, .chat svg, .cb svg { width: 18px; height: 18px; flex: none; }
.btn.call, .btn.call-top { gap: 8px; }
.btn.call-top { font-weight: 700; color: var(--text); }
.callrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.callrow .btn.call { font-size: 17px; }
.chats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chat-label { font-size: 14px; color: var(--muted); }
.chat { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: #fff; text-decoration: none; }
.chat:hover { filter: brightness(0.92); color: #fff; }
.chat.viber, .cb.viber { background: #7360f2; }
.chat.whatsapp, .cb.whatsapp { background: #1fa855; }
.chat.telegram, .cb.telegram { background: #229ed9; }
.text-link { font-size: 15px; font-weight: 600; align-self: center; }
.contact-call { margin: 6px 0 4px; }
.callbar { display: none; }
@media (max-width: 600px) {
  .actions .demo-top { display: none; }
  .actions .btn.call-top { display: inline-flex; background: var(--accent); border-color: var(--accent); color: #fff; padding-inline: 12px; }
  .callrow .btn.call { width: 100%; }
  .callbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
             background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.08); padding-bottom: env(safe-area-inset-bottom); }
  .cb { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; min-height: 52px; justify-content: center; }
  .cb svg { width: 20px; height: 20px; }
  .cb.call { background: var(--accent); }
  body { padding-bottom: 64px; }
}
