/* Actidial website — single stylesheet. Dark theme matching the watch-face palette. */
:root {
  --bg: #161618;
  --bg-2: #1e1e21;
  --bg-3: #26262a;
  --border: #333338;
  --text: #E8E8EA;
  --dim: #9A9AA0;
  --accent: #FF6D1A;
  --amber: #E0A23C;
  --indigo: #6E72CC;
  --rose: #D85F97;
  --ok: #4ec27a;
  --maxw: 960px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #111; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22,22,24,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand .accent { color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: var(--dim); padding: 6px 10px; border-radius: 8px; font-size: .95rem;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
.nav-links a.cta { background: var(--accent); color: #111; font-weight: 600; }
.nav-links a.cta:hover { background: #ff7f38; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #ff7f38; text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-3); text-decoration: none; }

/* ---- Hero ---- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; margin: 0 0 12px; }
.hero p.lede { font-size: 1.15rem; color: var(--dim); max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-shot { justify-self: center; }
.hero-shot img { width: 300px; max-width: 78vw; border-radius: 50%; box-shadow: 0 12px 40px rgba(0,0,0,.5); }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-shot { justify-self: end; }
}

/* ---- Palette legend chips ---- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.amber { background: var(--amber); }
.dot.indigo { background: var(--indigo); }
.dot.rose { background: var(--rose); }

/* ---- Sections ---- */
section { padding: 44px 0; border-top: 1px solid var(--border); }
section.no-border { border-top: 0; }
.section-lead { color: var(--dim); max-width: 60ch; margin-bottom: 28px; }

/* Feature rows: image + text alternating */
.feature { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; margin: 34px 0; }
.feature .shot { justify-self: center; }
.feature .shot img { width: 320px; max-width: 82vw; border-radius: var(--radius); border: 1px solid var(--border); background: #000; }
.feature .shot.round img { border-radius: 50%; border: 0; }
.feature h3 { margin-top: 0; }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--dim); }
.feature ul li { margin: .3em 0; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 44px; }
  .feature.reverse .shot { order: 2; }
}

/* ---- Cards grid ---- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--dim); margin: 0; font-size: .95rem; }
.card .ico { font-size: 1.4rem; margin-bottom: 8px; }

/* ---- Pricing / tiers table ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
table.tiers { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
table.tiers th, table.tiers td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tiers thead th { color: var(--text); font-size: .9rem; border-bottom: 2px solid var(--border); }
table.tiers tbody th { font-weight: 500; color: var(--text); }
table.tiers td { color: var(--dim); }
.tier-name { display: block; font-weight: 700; color: var(--text); }
.tier-tag { display: inline-block; font-size: .72rem; color: var(--accent); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; margin-top: 4px; }
.yes { color: var(--ok); }
.soon { color: var(--amber); font-size: .82rem; }

/* ---- FAQ ---- */
.faq details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--bg-2); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--dim); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 16px 14px; color: var(--dim); }

/* ---- Steps (install guide) ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  position: relative; padding: 4px 0 20px 52px; margin: 0;
  border-left: 2px solid var(--border); margin-left: 16px;
}
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -17px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #111; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.steps > li h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.steps > li p { color: var(--dim); margin: 0 0 .5em; }
.steps code, code { background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .88em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: #e6c07a; }
pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; color: var(--text); }

.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }
.callout.warn { border-left-color: var(--rose); }
.callout p:last-child { margin-bottom: 0; }

/* ---- Section nav / anchor list (help page) ---- */
.toc { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.toc ul { columns: 2; column-gap: 28px; margin: 8px 0 0; padding-left: 1.1em; }
.toc a { color: var(--text); }
@media (max-width: 560px) { .toc ul { columns: 1; } }

.kb article { border-top: 1px solid var(--border); padding: 26px 0; scroll-margin-top: 76px; }
.kb article:first-of-type { border-top: 0; }
.kb h3 { color: var(--text); }
.kb .fix { color: var(--dim); }
.kb .fix strong { color: var(--text); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0 46px; color: var(--dim); font-size: .92rem; margin-top: 20px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 22px 40px; justify-content: space-between; }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Assist chat widget (shared) ---- */
#ad-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #111; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  font-size: 24px; display: flex; align-items: center; justify-content: center;
}
#ad-fab:hover { background: #ff7f38; }

.ad-chat {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.ad-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-3); }
.ad-chat-head .title { font-weight: 700; }
.ad-chat-head .sub { color: var(--dim); font-size: .8rem; }
.ad-chat-head .close { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; line-height: 1; }
.ad-chat-head .close:hover { color: var(--text); }

.ad-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ad-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; white-space: pre-wrap; word-wrap: break-word; }
.ad-msg.user { align-self: flex-end; background: var(--accent); color: #111; border-bottom-right-radius: 4px; }
.ad-msg.bot { align-self: flex-start; background: var(--bg-3); color: var(--text); border-bottom-left-radius: 4px; }
.ad-msg.err { align-self: flex-start; background: #3a2530; color: #f4b8cf; border: 1px solid var(--rose); border-bottom-left-radius: 4px; }

.ad-typing { align-self: flex-start; background: var(--bg-3); border-radius: 14px; padding: 12px 16px; display: flex; gap: 5px; }
.ad-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: ad-bounce 1.2s infinite ease-in-out; }
.ad-typing span:nth-child(2) { animation-delay: .18s; }
.ad-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ad-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.ad-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ad-form input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 11px 14px; font-size: 1rem; font-family: inherit; }
.ad-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.ad-form button { background: var(--accent); color: #111; border: 0; border-radius: 10px; padding: 0 18px; font-weight: 600; cursor: pointer; font-size: 1rem; }
.ad-form button:disabled { opacity: .5; cursor: default; }

/* Docked (floating) variant */
#ad-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 60;
  width: 360px; max-width: calc(100vw - 36px); height: 520px; max-height: calc(100vh - 120px);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
#ad-panel[hidden] { display: none; }

/* Full-page variant */
.ad-page { height: min(70vh, 640px); }

.hidden { display: none !important; }
.muted { color: var(--dim); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
