/* Tork AI — site 2026-10 */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #07090c;
  --panel: #0e1217;
  --panel-2: #131920;
  --line: #1d252e;
  --text: #eef1f4;
  --muted: #9aa4b0;
  --green: #00c853;
  --green-ink: #04140b;
  --green-soft: rgba(0, 200, 83, .1);
  --wa-out: #005c4b;
  --wa-in: #1f2c34;
  --radius: 14px;
  --max: 1160px;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 600; }
p { max-width: 64ch; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 12, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem var(--head); letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: var(--green-ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--green-ink);
  font: 600 .98rem var(--body); text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #19d867; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.btn.sm { padding: 9px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--green); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 17ch; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 22px 0 32px; max-width: 50ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* phone with a scripted WhatsApp conversation */
.phone {
  justify-self: center; width: 100%; max-width: 360px;
  background: #0b141a; border: 1px solid var(--line); border-radius: 28px;
  padding: 0 0 14px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 200, 83, .25);
}
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #1f2c34; }
.phone-bar .av { width: 34px; height: 34px; border-radius: 50%; background: #2a3942; display: grid; place-items: center; font: 600 .8rem var(--head); color: #cfd8dc; }
.phone-bar b { font-size: .92rem; font-weight: 600; display: block; line-height: 1.2; }
.phone-bar span { font-size: .75rem; color: #8696a0; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 4px; min-height: 380px; }
.msg {
  max-width: 82%; padding: 8px 11px 6px; border-radius: 10px;
  font-size: .9rem; line-height: 1.45; color: #e9edef;
}
.msg small { display: block; text-align: right; font-size: .68rem; color: #a3b3bb; margin-top: 2px; }
.msg.in { background: var(--wa-in); align-self: flex-start; border-top-left-radius: 3px; }
.msg.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 3px; }
.msg.sys { align-self: center; background: rgba(0, 200, 83, .12); color: #9ff0c2; font-size: .78rem; border-radius: 8px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.slots span { border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
.typing { align-self: flex-start; background: var(--wa-in); border-radius: 10px; padding: 10px 12px; display: none; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3 } 30% { opacity: 1 } }
.js .chat .msg { display: none; }
.js .chat .msg.show { display: block; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.phone-note { text-align: center; font-size: .78rem; color: #6b7681; margin-top: 12px; }

/* ---------- sections ---------- */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--panel); }
.head { margin-bottom: 40px; }
.head p { color: var(--muted); margin-top: 12px; }

/* services list */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 280px 1fr auto; gap: 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.service h3 { font-size: 1.15rem; }
.service p { color: var(--muted); }
.service .go { color: var(--green); font-size: .92rem; white-space: nowrap; }
.service:hover h3 { color: var(--green); }

/* examples */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.example { text-decoration: none; }
.example img { border-radius: var(--radius); border: 1px solid var(--line); }
.example span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.example:hover span { color: var(--text); }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--green); color: var(--green);
  font: 600 .95rem var(--head); margin-bottom: 16px;
}
.step p { color: var(--muted); margin-top: 8px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles h3 { margin-bottom: 8px; }
.principles p { color: var(--muted); }

/* faq */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font: 600 1.05rem var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding: 0 0 22px; }

/* closing call */
.closing { padding: 96px 0; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { max-width: 22ch; margin: 0 auto; }
.closing p { color: var(--muted); margin: 14px auto 30px; }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 40px; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin-top: 16px; max-width: 58ch; }

.solution { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.solution img { border-radius: var(--radius); border: 1px solid var(--line); }
.solution .cap { font-size: .8rem; color: #6b7681; margin-top: 8px; }
.solution h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.solution .for { color: var(--green); margin: 10px 0 14px; font-weight: 500; }
.solution > div > p { color: var(--muted); }
.ticks { margin: 20px 0 26px; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.prose { max-width: 680px; }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.prose h2 { margin: 40px 0 14px; font-size: 1.5rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.field label em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font: 400 1rem var(--body);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-size: .95rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #ff8a80; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; padding-bottom: 96px; }
.contact-side h3 { margin-bottom: 10px; }
.contact-side p { color: var(--muted); margin-bottom: 26px; }
.contact-side a.link { display: inline-block; margin-bottom: 6px; }

/* ---------- diagnostic ---------- */
.quiz { max-width: 720px; padding-bottom: 96px; }
.progress { height: 4px; background: var(--line); border-radius: 4px; margin-bottom: 36px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 20%; background: var(--green); transition: width .3s; }
.q { display: none; border: 0; }
.q.on { display: block; }
.q legend { font: 600 1.45rem/1.3 var(--head); margin-bottom: 20px; letter-spacing: -.01em; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span {
  display: block; padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); cursor: pointer; transition: border-color .15s;
}
.opt span::before { content: ''; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid #4a5561; }
.opt input:checked + span { border-color: var(--green); background: var(--green-soft); }
.opt input:checked + span::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 45%, transparent 50%); }
.opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.result { display: none; scroll-margin-top: 90px; }
.result.on { display: block; }
.result .pick { background: var(--panel); border: 1px solid var(--green); border-radius: var(--radius); padding: 28px; margin: 20px 0 16px; }
.result .pick h3 { font-size: 1.4rem; margin-bottom: 8px; }
.result .pick p { color: var(--muted); }
.result .also { color: var(--muted); margin-bottom: 36px; }
.result .also b { color: var(--text); font-weight: 600; }
.result h2 { font-size: 1.5rem; margin: 8px 0 6px; }
.result .form { margin-top: 22px; }
.done { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.done.on { display: block; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* whatsapp float, shown only when a number is configured */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: none; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.wa-float.on { display: grid; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 44px 0 64px; }
  .hero .wrap, .solution, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 6px; }
  .steps, .principles { grid-template-columns: 1fr; gap: 28px; }
  .examples { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px 24px 26px;
  }
  .nav.open { display: flex; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .actions .btn { width: 100%; }
  .chat { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
