/* Ansorly website: one stylesheet for the landing page and the legal pages.
   Colours match the app (the logo's violet and ink). */

:root {
  --ink: #130a26;
  --ink-2: #1d1236;
  --violet: #6d3df5;
  --violet-dark: #5a2be0;
  --violet-soft: #efe9ff;
  --lilac: #a784ff;
  --text: #15121f;
  --muted: #5d596c;
  --line: #e6e3ee;
  --bg: #fafafc;
  --card: #ffffff;
  --good: #0f8a5f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(21, 18, 31, 0.05), 0 12px 32px rgba(21, 18, 31, 0.07);
  --wide: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(19, 10, 38, 0.92); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: #cfc7e6; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
/* On a phone the menu links move to a second row under the logo (the site runs no scripts, so there is
   no pop-up menu to open and close). */
.nav-sm { display: none; }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .nav-sm { display: flex; justify-content: safe center; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
  .nav-sm::-webkit-scrollbar { display: none; }
  .nav-sm a { flex: none; color: #cfc7e6; text-decoration: none; font-size: 0.84rem; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
  .nav-sm a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
  .top .wrap { height: 60px; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--violet-soft); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* ---- Hero ---- */
.hero { background: var(--ink); color: #fff; padding: 72px 0 88px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(167, 132, 255, 0.28), transparent 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--lilac); }
.hero p.lead { font-size: 1.2rem; color: #d9d2ee; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .small { font-size: 0.92rem; color: #a99fc4; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The phone card in the hero: a call being answered. */
.callcard { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.callcard .who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.callcard .who img { width: 44px; height: 44px; border-radius: 12px; }
.callcard .who b { display: block; }
.callcard .who span { font-size: 0.85rem; color: #4fd1a1; }
.bubble { border-radius: 16px; padding: 10px 14px; margin: 8px 0; font-size: 0.95rem; max-width: 88%; }
.bubble.caller { background: rgba(255, 255, 255, 0.08); color: #e9e4f7; }
.bubble.ai { background: var(--violet); color: #fff; margin-left: auto; }
.booked { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(79, 209, 161, 0.12); color: #9ff0cf; font-size: 0.92rem; font-weight: 600; }

/* ---- Sections ---- */
section { padding: 88px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } section { padding: 64px 0; } }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.step-no { font-size: 0.85rem; font-weight: 800; color: var(--violet); margin-bottom: 6px; }

/* Missed-call strip */
.strip { background: var(--violet-soft); padding: 48px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.strip b { display: block; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.02em; }
.strip span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: 1fr; } }

/* Demo audio */
.listen { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.listen audio { width: 100%; margin-top: 8px; }
.transcript { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; font-size: 0.95rem; }
.transcript p { margin: 0 0 8px; }
.transcript b { color: var(--violet); }
.transcript .c b { color: var(--muted); }
@media (max-width: 860px) { .listen { grid-template-columns: 1fr; } }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price.top-pick { outline: 2px solid var(--violet); position: relative; }
.price .tag { position: absolute; top: -12px; left: 24px; background: var(--violet); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.price li { padding: 5px 0 5px 26px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.offer { margin: 28px auto 0; max-width: 720px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 24px; }
.offer b { color: var(--lilac); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.98rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: #f5f4f9; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.compare tr:last-child td { border-bottom: 0; }
.compare td.us { color: var(--violet); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* FAQ */
details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--violet); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Final call to action */
.cta { background: var(--ink); color: #fff; text-align: center; }
.cta p { color: #cfc7e6; font-size: 1.1rem; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---- Footer ---- */
footer { background: #0c0619; color: #a99fc4; padding: 48px 0 32px; font-size: 0.92rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer a { color: #cfc7e6; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
footer .fine { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* ---- Legal pages ---- */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.5em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 0.35em 0; }
.legal .summary { background: var(--violet-soft); border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; }
.legal .summary p:last-child { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: #f5f4f9; }

/* Contact pages (get-started.html, book-demo.html): a plain form, no scripts. */
.legal .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 8px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 28px 28px; margin-top: 24px; }
.form label { display: block; font-weight: 600; margin: 20px 0 6px; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.form .btn { margin-top: 24px; width: 100%; }
.form .note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; text-align: center; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form { padding: 4px 18px 22px; } }

/* The Windows app page (desktop.html). */
.download { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 24px 0 8px; }
.download-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.download-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.download-head b { display: block; font-size: 1.2rem; }
.download-head span { color: var(--muted); font-size: 0.95rem; }
.download .btn { width: 100%; }
.download .note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; text-align: center; }
.legal ol.steps li { margin: 0.7em 0; }
.legal .hash { font-size: 0.8rem; word-break: break-all; background: #f5f4f9; padding: 2px 6px; border-radius: 6px; }
