/* Askuda AI site. Brand colours from docs/DECISIONS.md D39. No web fonts: system fonts are
   fast and send nothing to a third party. Light by default, dark when the device asks. */

:root {
  --brand: #6425f5;
  --brand-deep: #3210b8;
  --navy: #10152f;
  --lavender: #f6f3ff;
  --bg: #ffffff;
  --fg: #10152f;
  --muted: #4a4f6a;
  --soft: #f6f3ff;
  --card: #ffffff;
  --border: #e4dff5;
  --link: #5a1ee0;
  --tint: rgba(100, 37, 245, 0.08);
  --shadow: 0 1px 2px rgba(16, 21, 47, 0.06), 0 8px 24px rgba(16, 21, 47, 0.06);
  --header: rgba(255, 255, 255, 0.82);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f24;
    --fg: #f6f3ff;
    --muted: #b9b7d6;
    --soft: #121735;
    --card: #141a3a;
    --border: #262c55;
    --link: #b9a6ff;
    --tint: rgba(185, 166, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --header: rgba(11, 15, 36, 0.82);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.5vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.items-center { align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--link); margin-bottom: 0.75rem;
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; flex-shrink: 0; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a, .link-quiet { color: var(--fg); text-decoration: none; font-weight: 550; }
.nav a:hover, .link-quiet:hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 650; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px; min-height: 44px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; left: 0; right: 0; top: 68px; background: var(--bg);
  border-bottom: 1px solid var(--border); padding: 12px 20px 20px;
  display: grid; gap: 4px; box-shadow: var(--shadow);
}
.menu nav a { padding: 12px 4px; color: var(--fg); text-decoration: none; font-weight: 600; }
.menu nav .btn { margin-top: 8px; justify-content: center; }
@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-small { min-height: 40px; padding: 8px 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { border-color: var(--border); color: var(--fg); background: var(--card); }
.btn-secondary:hover { border-color: var(--brand); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }

/* Sections */
section { padding: clamp(56px, 7vw, 96px) 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.center .section-head, .section-head.center { margin-inline: auto; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(100, 37, 245, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 span { color: var(--link); }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* The example call card in the hero */
.call-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 22px; position: relative;
}
.call-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.call-dot { width: 10px; height: 10px; border-radius: 50%; background: #1fa971; flex-shrink: 0; }
.call-meta { font-size: 0.85rem; color: var(--muted); }
.bubble { padding: 12px 14px; border-radius: 14px; margin: 10px 0; max-width: 90%; font-size: 0.95rem; }
.bubble b { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.bubble-ai { background: var(--tint); border: 1px solid var(--border); }
.bubble-caller { background: var(--soft); margin-left: auto; border: 1px solid var(--border); }
.call-foot { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 0.88rem; }
.tag { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.caption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--link); margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }
.check { color: var(--link); flex-shrink: 0; margin-top: 4px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list.card { padding: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand);
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-featured { border: 2px solid var(--brand); position: relative; }
.badge {
  position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 8px 0; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .list { margin: 20px 0 28px; }

/* FAQ */
.faq details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); }

/* Call to action band */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; border-radius: 24px; padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: var(--lavender); color: var(--brand-deep); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: var(--fg); text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: var(--link); }
.footer-grid p { margin-top: 14px; max-width: 34ch; }
.footer-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
