/* AskAI website. No external fonts, scripts, or trackers. */

:root {
  --accent: #6d28d9;
  --accent-strong: #6236c9;
  --accent-soft: #f1eaff;
  --accent-border: #d8c4fa;
  --bg: #fbfaff;
  --bg-tint: #f4f1fb;
  --surface: #ffffff;
  --text: #1c1c28;
  --text-secondary: #55556a;
  --text-tertiary: #7a7a8c;
  --border: #e3e1ec;
  --hairline: rgba(28, 28, 40, 0.08);
  --shadow: 0 1px 2px rgba(28, 28, 40, 0.04), 0 8px 24px rgba(98, 54, 201, 0.06);
  --radius: 18px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a78bfa;
    --accent-strong: #8b5cf6;
    --accent-soft: #2b2340;
    --accent-border: #57436f;
    --bg: #0f0d17;
    --bg-tint: #14121e;
    --surface: #1b1826;
    --text: #f2f1f7;
    --text-secondary: #b9b6c9;
    --text-tertiary: #8f8ca3;
    --border: #322d44;
    --hairline: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-tint) 0, var(--bg) 28rem) no-repeat var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 2.5rem);
  padding-right: clamp(1.25rem, 5vw, 2.5rem);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  background: var(--surface);
  color: var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--accent-border);
  z-index: 20;
}

.skip:focus {
  left: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent-strong);
  flex: none;
}

.site-header nav {
  display: flex;
  gap: clamp(0.25rem, 2vw, 0.75rem);
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.site-header nav a:hover {
  color: var(--text);
  background: var(--hairline);
}

.site-header nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Shared type */

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.55;
}

.muted {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* Home */

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.hero .lead {
  max-width: 38rem;
  margin: 0 auto;
}

.features,
.links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

.card,
.link-card,
.contact-card,
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.link-card {
  padding: 1.5rem;
}

.card h2,
.link-card h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.card p,
.link-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.55;
}

.privacy-note {
  max-width: 46rem;
  text-align: center;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.privacy-note h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.9rem;
}

.privacy-note p {
  color: var(--text-secondary);
  margin: 0;
}

.links {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-card h2 {
  color: var(--accent);
}

.link-card h2::after {
  content: " \2192";
}

.link-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .link-card {
    transition: none;
  }

  .link-card:hover {
    transform: none;
  }
}

/* Documents: privacy, terms, support */

.doc {
  max-width: calc(var(--measure) + 2 * clamp(1.25rem, 5vw, 2.5rem));
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.doc-head h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.updated {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.doc-head .lead {
  margin-bottom: 0;
}

.toc {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.5rem;
}

.toc h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
  padding: 0.2rem 0;
  font-size: 0.975rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.doc section {
  margin-top: 2.75rem;
}

.doc section > h2 {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 650;
  margin-bottom: 0.9rem;
  padding-top: 0.25rem;
}

.doc section p,
.doc section li {
  color: var(--text-secondary);
}

.doc section strong {
  color: var(--text);
  font-weight: 600;
}

.doc section p:last-child {
  margin-bottom: 0;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
}

.doc li::marker {
  color: var(--accent);
}

.doc section.contact-card {
  margin-top: 2.25rem;
  padding: 1.5rem;
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: none;
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  margin-bottom: 0.4rem;
}

.contact-card .email {
  font-weight: 600;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.doc section.contact-card .muted {
  color: var(--text-secondary);
  margin: 0;
}

/* 404 */

.notfound {
  text-align: center;
  padding-top: clamp(4rem, 14vw, 9rem);
  padding-bottom: clamp(4rem, 12vw, 8rem);
}

.notfound h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 1rem;
}

.notfound .lead {
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.button:hover {
  filter: brightness(1.08);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.foot a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Small screens */

@media (max-width: 34rem) {
  body {
    font-size: 1rem;
  }

  .bar {
    min-height: 3.5rem;
  }

  .site-header nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
  }

  .toc ol {
    columns: 1;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 23.5rem) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .bar {
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.05rem;
    gap: 0.45rem;
  }

  .mark {
    width: 1.5rem;
    height: 1.5rem;
  }

  .site-header nav {
    gap: 0;
  }

  .site-header nav a {
    padding: 0.3rem 0.4rem;
    font-size: 0.85rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
