/* ==========================================================================
   Nexis Studio — AI consulting & automation
   Design notes taken from Morningside AI's source: near-black tonal surfaces
   (#080808 / #0f1c1c), warm off-white type (#edece4), grey tiers, 6–8px
   radii, big confident headings, generous section spacing. System fonts
   instead of their PP Supply Sans / Poppins so nothing is fetched.
   ========================================================================== */

:root {
  --bg:      #080808;
  --bg-2:    #0c1111;
  --bg-3:    #0f1c1c;
  --panel:   #101414;
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.18);
  --text:    #edece4;   /* 16:1 on bg */
  --text-2:  #c8c8c8;   /* 11:1 */
  --muted:   #8f958f;   /*  6.4:1 */
  --accent:  #7fd8c8;   /* 11:1 */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.15rem; }
p  { margin: 0; }
a  { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 58rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { left: 12px; top: 12px; }
svg { display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,8,8,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; margin-right: auto; }
.site-nav ul { display: none; gap: 2px; }
.site-nav a { display: block; padding: 10px 12px; color: var(--text-2); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--text); }
.site-nav a.nav-new { color: var(--accent); font-weight: 600; }
.topbar { background: var(--accent); text-align: center; }
.topbar a { display: block; padding: 8px 16px; color: var(--bg); font-size: .9rem; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.langs a { padding: 6px 9px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-decoration: none; border-radius: 4px; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--text); color: var(--bg); }
@media (min-width: 960px) { .site-nav ul { display: flex; } }
@media (max-width: 480px) { .header-inner .btn--sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; background: var(--text); color: var(--bg); border: 1px solid var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffffff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.05); }

/* Bands */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { margin-bottom: clamp(32px, 5vw, 56px); }
.band-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; max-width: 46rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.big { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.55; margin-top: 18px; color: var(--text-2); }

/* Hero — the diagonal tonal sweep is the one atmospheric element */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 8vw, 96px); background: linear-gradient(162deg, var(--bg-3) 0%, var(--bg) 58%); border-bottom: 1px solid var(--line); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--text-2); margin-top: 22px; max-width: 40rem; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.strip { display: grid; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.strip li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--text-2); }
.strip svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
@media (min-width: 720px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .strip { grid-template-columns: repeat(4, 1fr); } }

/* Phases */
.phases { display: grid; gap: 18px; }
.phase { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.phase__n { display: block; color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .08em; margin-bottom: 14px; }
.phase h3 { font-size: 1.5rem; }
.phase__lead { color: var(--text-2); margin: 8px 0 18px; }
.phase ul { display: grid; gap: 8px; }
.phase li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .95rem; color: var(--muted); }
.phase li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(3, 1fr); } }

/* Services */
.cards { display: grid; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .15s ease; }
.card:hover { border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
@media (min-width: 640px)  { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }


/* How */
.how { display: grid; gap: 16px; }
.how li { padding: 22px 0 0; border-top: 1px solid var(--line-2); }
.how h3 { margin-bottom: 8px; }
.how p { color: var(--muted); font-size: .97rem; }
@media (min-width: 720px) { .how { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
@media (min-width: 1024px) { .how { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .97rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Contact */
.contact { display: grid; gap: 32px; }
.contact-line { margin-top: 22px; font-size: 1.05rem; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.form__row { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--text); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(127,216,200,.18); }
.form.is-validated :invalid { border-color: #e07c6a; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__status { font-size: .92rem; color: var(--muted); min-height: 1.2em; }
.form__status--ok { color: var(--accent); }
.form__status--error { color: #e07c6a; }
.form__note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: inherit; }
.footer-langs { display: flex; gap: 14px; }
.footer-langs a[aria-current="true"] { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* Ordinacije */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.textlink { align-self: center; color: var(--accent); font-weight: 600; text-decoration: none; padding: 12px 4px; }
.textlink:hover { text-decoration: underline; }
.demo { margin-top: 32px; max-width: 34rem; min-height: 96px; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(255,255,255,.02); }
.demo__note { color: var(--muted); font-size: .92rem; }
.note { margin-top: 26px; color: var(--text-2); }
.trust { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; color: var(--text-2); font-size: .97rem; max-width: 46rem; }
.who { margin: 0; display: grid; }
.who div { padding: 16px 0; border-top: 1px solid var(--line); }
.who dt { color: var(--text); font-weight: 700; }
.who dd { margin: 0; color: var(--muted); font-size: .97rem; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; color: var(--text); font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (min-width: 720px) { .who { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1024px) { .how--3 { grid-template-columns: repeat(3, 1fr); } }
.form__done { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 22px 24px; color: var(--text); font-weight: 600; }
/* Ordinacije: demo number, rendered only when ORD_DEMO_NUMBER is set */
.demo-number { display: inline-block; margin-top: 8px; color: var(--text); font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.demo-number:hover { color: var(--accent); }

/* Primjeri */
.examples--rule { border-top: 1px solid var(--line); }
.examples .card p + p { margin-top: 12px; }
.examples .card strong { display: block; margin-bottom: 4px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Chat buttons */
.contact-chat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.contact-chat[hidden] { display: none; }
.contact-chat span { color: var(--muted); font-size: .95rem; margin-right: 4px; }

/* Asistent */
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.plan--featured { border-color: var(--accent); }
.plan h3 { font-size: 1.05rem; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.plan__price { margin-top: 10px; color: var(--text); font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan__unit { color: var(--muted); font-size: .9rem; }
.plan__lead { margin: 16px 0; color: var(--text-2); }
.plan ul { display: grid; gap: 8px; margin-bottom: 24px; }
.plan li { padding-left: 22px; position: relative; color: var(--muted); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.form select { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

/* Asistent v2 */
/* Hero with the sample call card. Controls exist only with scripting (.js is
   set by the inline bootstrap in <head>); without it every transcript shows. */
.hero--split { padding-top: clamp(56px, 8vw, 112px); }
.hero__grid { display: grid; gap: 44px; }
.hero--split h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); align-items: center; gap: 56px; } html:not(.js) .hero__grid { align-items: start; } }
.call { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; box-shadow: 0 28px 60px -32px rgba(0,0,0,.9); }
.call__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.call__title { max-width: none; font-size: .8rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--accent); }
.call__pick, .call__controls, .call__foot { display: none; }
.js .call__pick { display: flex; align-items: center; gap: 8px; }
.js .call__controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 16px 0 14px; }
.js .call__foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.call__pick label { color: var(--muted); font-size: .85rem; }
.call__pick select { font: inherit; font-size: .92rem; color: var(--text); background-color: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 32px 8px 10px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8c8c8' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px; cursor: pointer; }
.call__pick select:focus-visible { border-color: var(--accent); }
.call__play { width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--bg); cursor: pointer; }
.call__play:hover { background: #a5e6da; }
.call__play svg { width: 24px; height: 24px; }
.call__play .i-pause, .call__play[aria-pressed="true"] .i-play { display: none; }
.call__play[aria-pressed="true"] .i-pause { display: block; }
.call__bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.call__fill { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; }
.call__count { min-width: 5.5ch; text-align: right; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.call__biz { font-size: 1rem; }
.call__meta { margin: 2px 0 14px; color: var(--muted); font-size: .82rem; }
html:not(.js) .call__biz { margin-top: 14px; }
html:not(.js) .call__panel + .call__panel { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--line); }
.call__panel[hidden], .bubble[hidden] { display: none; }
.js .call audio { display: none; }
.call audio { display: block; width: 100%; margin-bottom: 14px; color-scheme: dark; }
.js .call:not(.is-live) .call__panel ~ .call__panel, .js .call:not(.is-live) .bubble ~ .bubble { display: none; }
.bubbles { display: grid; gap: 10px; align-content: start; }
.js .call .bubbles { height: 21rem; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding-right: 6px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.bubble--asistent { justify-self: start; background: rgba(127,216,200,.09); border: 1px solid rgba(127,216,200,.26); border-bottom-left-radius: 4px; color: var(--text); }
.bubble--pozivatelj { justify-self: end; background: #182020; border: 1px solid var(--line-2); border-bottom-right-radius: 4px; color: var(--text-2); }
.bubble__who { display: block; margin-bottom: 2px; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bubble--pozivatelj .bubble__who { color: var(--muted); }
.bubble.is-new { animation: bubble-in .32s ease-out both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.call__all { font: inherit; font-size: .88rem; color: var(--text-2); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.call__all:hover { color: var(--text); }
.call__strip { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); color: var(--text-2); font-size: .92rem; }
.call__strip a { font-weight: 600; white-space: nowrap; }
/* Per business type: asks, records, how it ends */
.flow__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.flow__tabs[hidden], .flow__panel[hidden] { display: none; }
.flow__tab { font: inherit; font-size: .95rem; font-weight: 600; color: var(--text-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.flow__tab:hover { color: var(--text); border-color: var(--text); }
.flow__tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.flow__panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
html:not(.js) .flow__panel + .flow__panel { margin-top: 16px; }
.flow__name { margin-bottom: 18px; }
.flow.is-live .flow__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow__cols { display: grid; gap: 22px; }
.flow h4 { margin: 0 0 10px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flow li { position: relative; padding-left: 16px; color: var(--text-2); font-size: .97rem; }
.flow li + li { margin-top: 8px; }
.flow li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (min-width: 760px) { .flow__cols { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
/* Our office line, at the bottom */
.callus { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.callus p { color: var(--text-2); }
.callus p + p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.callus a { color: var(--text); font-weight: 700; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--accent); }
.callus a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .bubble.is-new { animation: none; } .js .call .bubbles { scroll-behavior: auto; } }
/* /Asistent v2 */
/* Privatnost */
.policy { max-width: calc(46rem + 2 * var(--gutter)); padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.policy h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); max-width: none; }
.policy__meta { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.policy__toc { margin-top: 36px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.policy__toc h2 { margin-bottom: 10px; color: var(--accent); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; max-width: none; }
.policy__toc li { padding: 3px 0; }
.policy__toc a { color: var(--text-2); font-size: .95rem; text-decoration: none; }
.policy__toc a:hover { color: var(--text); text-decoration: underline; }
.policy section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.policy section h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); max-width: none; letter-spacing: -.015em; }
.policy section p, .policy section ul { margin-top: 16px; }
.policy section ul { display: grid; gap: 10px; }
.policy section li { position: relative; padding-left: 22px; }
.policy section li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.policy section strong { color: var(--text); font-weight: 600; }
.policy a { text-underline-offset: 2px; overflow-wrap: anywhere; }
.policy .ph { padding: 0 4px; border-radius: 4px; background: rgba(224,124,106,.16); color: #f2a898; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
@media (min-width: 720px) { .policy__toc ol { columns: 2; column-gap: 36px; } .policy__toc li { break-inside: avoid; } }

/* Support chat */
.crisp-launch { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--bg); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; box-shadow: 0 14px 32px -14px rgba(0,0,0,.9); }
.crisp-launch:hover { background: #a5e6da; }
.crisp-launch[hidden] { display: none; }
.crisp-launch svg { width: 18px; height: 18px; }
.crisp-launch[aria-busy="true"] { opacity: .7; cursor: progress; }
