/* sakhasync.com: the product page. Mobile first; brand blue #1d3fb8 and sky #7dd3fc (the two rings of the logo). */
:root {
  --blue: #1d3fb8; --blue-2: #4f7cff; --sky: #7dd3fc; --ink: #141a2b; --muted: #5b6477; --line: #e4e7ec;
  --bg: #ffffff; --soft: #f5f7fc; --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8ecf5; --muted: #a3acbf; --line: #2a3146; --bg: #0d1220; --soft: #121a2e; --card: #151d33; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Segoe UI", Roboto, system-ui, -apple-system, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 7vw, 54px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4.5vw, 34px); letter-spacing: -0.01em; }
h3 { font-size: 18px; }
section { padding: 56px 0; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; font-size: 17px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.btn.big { padding: 14px 22px; font-size: 17px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #17329a; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--blue-2); color: var(--blue-2); }
.btn.light { background: #fff; color: var(--blue); }
.btn.outline-light { border-color: rgba(255,255,255,.7); color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; margin-right: auto; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.top-links { display: none; gap: 22px; }
.top-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top-links a:hover { color: var(--ink); }
.top-actions { display: flex; gap: 8px; }
@media (min-width: 860px) { .top-links { display: flex; } }
@media (max-width: 380px) { .top-actions .ghost { display: none; } }

/* hero */
.hero { padding: 40px 0 24px; background: radial-gradient(1200px 500px at 85% -10%, rgba(125,211,252,.35), transparent 60%),
  radial-gradient(900px 500px at -10% 10%, rgba(79,124,255,.18), transparent 60%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(29,63,184,.09);
  color: var(--blue-2); font-weight: 600; font-size: 13px; }
.lead { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { flex: 1 1 200px; }
.assure { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.hero-art { justify-self: center; width: 100%; max-width: 480px; }
@media (min-width: 900px) { .hero { padding: 72px 0 40px; } .hero-grid { grid-template-columns: 1.1fr 1fr; } .cta .btn { flex: 0 0 auto; } }

/* the two doors: live and demo */
.choose { padding-top: 32px; }
.two { display: grid; gap: 16px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.door { display: grid; gap: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.door:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,26,43,.10); border-color: var(--blue-2); }
.door strong { font-size: 20px; }
.door span { color: var(--muted); overflow-wrap: anywhere; }
.door .door-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: var(--blue); }
.door.demo .door-tag { background: #0e7490; }
.door .door-go { color: var(--blue-2); font-weight: 700; }

/* Ask SakhaSync: the voice clip and its transcript as a chat */
.ask-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .ask-grid { grid-template-columns: 1fr 1.15fr; } }
.ask-audio { width: 100%; max-width: 420px; margin-top: 4px; }
.ask-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.chat { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--soft), var(--card)); }
.chat li { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; cursor: pointer; transition: box-shadow .2s ease, opacity .2s ease; }
.chat li.you { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat li.sakha { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat li.sakha::before { content: "✦ SakhaSync"; display: block; font-size: 11px; font-weight: 700; color: var(--blue-2); margin-bottom: 2px; }
.chat li.speaking { box-shadow: 0 0 0 3px var(--sky); }
.chat:has(li.speaking) li:not(.speaking):not(.said) { opacity: .55; }

/* screenshots: phones in a swipeable row, computer shots below */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; }
@media (min-width: 760px) { .shots { grid-auto-columns: 1fr; overflow-x: visible; } }
.shots figure, .desk-shots figure { margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; border-radius: 22px; border: 6px solid #1b2133; box-shadow: 0 14px 30px rgba(20,26,43,.18); }
.desk-shots { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .desk-shots { grid-template-columns: 1fr 1fr; } }
.desk-shots img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(20,26,43,.12); }
.shots figcaption, .desk-shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* features */
.features { background: var(--soft); }
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }
.ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; font-size: 20px;
  background: linear-gradient(135deg, rgba(29,63,184,.12), rgba(125,211,252,.30)); }

/* steps */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--card); }
.steps p { margin: 0; color: var(--muted); }
.n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 700; margin-bottom: 12px; }

/* security */
.security { background: var(--soft); }
.sec-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .sec-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 14px 16px 14px 46px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: #12b76a; color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 10px; background: var(--card); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* final call */
.final-box { text-align: center; padding: 40px 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.final-box h2 { margin-bottom: 20px; }
.final-box .cta { justify-content: center; }

/* legal pages */
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal-meta { color: var(--muted); margin-top: -4px; }
.legal-summary { padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 6px; }
.foot .tm { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .door { transition: none; } }
