.skip-link { position: absolute; top: -100px; left: 16px; background: var(--violet); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 16px; }
/* ===========================================================================
   AYChat — public site (download + legal).
   AMOLED aurora glass system. Mirrors the palette in styles.css so the site,
   the prototype and the app all look like one product.

   Standalone by design: no Tailwind CDN, no framework. These pages are the
   first thing a new user and an app-store reviewer see, so they must render
   instantly on a slow Indian mobile connection and survive a blocked CDN.
   ======================================================================== */

:root {
  --void: #04050a;
  --abyss: #0a0c15;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --amber: #fbbf24;

  --ink: rgba(255, 255, 255, 0.94);
  --ink-2: rgba(255, 255, 255, 0.70);
  --ink-3: rgba(255, 255, 255, 0.46);
  --ink-4: rgba(255, 255, 255, 0.28);

  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shell: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--void);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ------------------------------------------------------------- background */
/* Three slow-drifting aurora blobs + a grain layer. Only `transform` and
   `opacity` animate, so this stays on the compositor and costs no layout. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 62vw; height: 62vw; top: -22vw; left: -14vw;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.85), transparent 66%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 54vw; height: 54vw; top: -12vw; right: -16vw;
  background: radial-gradient(circle at 60% 40%, rgba(34, 211, 238, 0.62), transparent 66%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 58vw; height: 58vw; bottom: -26vw; left: 22vw;
  background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.48), transparent 68%);
  animation: drift-c 38s var(--ease) infinite alternate;
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

@keyframes drift-a { to { transform: translate3d(9vw, 7vw, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 11vw, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(6vw, -9vw, 0) scale(1.16); } }

/* ---------------------------------------------------------------- shell */
.shell { position: relative; z-index: 1; margin: 0 auto; max-width: var(--shell); padding: 0 20px; }
.shell-narrow { max-width: 900px; }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(4, 5, 10, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.topbar.is-stuck { border-bottom-color: var(--hair); background: rgba(4, 5, 10, 0.86); }

.topbar-in { display: flex; align-items: center; gap: 14px; height: 66px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.mark {
  position: relative;
  width: 32px; height: 32px; flex: none;
  border-radius: 10px;
  background: conic-gradient(from 140deg, var(--violet), var(--cyan), var(--magenta), var(--violet));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);
}
.mark::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 6px;
  background: var(--void);
}
.logo b { font-size: 16.5px; font-weight: 750; letter-spacing: -0.02em; }

.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.topnav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.topnav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.topnav .cta {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.34);
  font-weight: 650;
}
.topnav .cta:hover { color: #fff; filter: brightness(1.08); }
@media (min-width: 561px) { .hamburger, .mobile-overlay { display: none; } }
@media (max-width: 560px) {
  .topnav { display: none; }
  .topnav.open {
    display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(14, 11, 22, 0.96); backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 16px 20px; gap: 8px; z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-overlay {
    display: none; position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.4);
  }
  .mobile-overlay.visible { display: block; }
}
.hamburger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.hamburger:hover { opacity: 0.7; }

/* reading progress for the legal pages */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
  transition: width 0.12s linear;
}

/* ------------------------------------------------------------------ glass */
.glass {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--hair);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
/* hairline highlight along the top edge — the detail that reads as "premium" */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Fallback when backdrop-filter is unsupported (older Safari, some mobile browsers) */
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(10, 12, 21, 0.96); }
}

/* -------------------------------------------------------------------- hero */
.hero { padding: 84px 0 30px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px; color: var(--ink-2);
  margin-bottom: 22px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

h1.display {
  margin: 0 0 16px;
  font-size: clamp(34px, 7.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h1.display .grad {
  background: linear-gradient(105deg, var(--cyan), var(--violet) 46%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  margin: 0 auto 30px;
  max-width: 56ch;
  font-size: clamp(15px, 1.9vw, 17.5px);
  color: var(--ink-2);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 16px; font-weight: 680; letter-spacing: -0.01em;
  text-decoration: none; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 14px 40px -8px rgba(139, 92, 246, 0.6);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s;
  overflow: hidden;
  position: relative;
}
/* slow shimmer sweep */
.btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 52px -8px rgba(139, 92, 246, 0.78); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  font-size: 14.5px; font-weight: 560; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); border-color: var(--hair-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

.release {
  margin: 18px 0 0;
  font-size: 13px; color: var(--ink-3);
  min-height: 20px;
}
.release strong { color: var(--ink-2); font-weight: 600; }
.release .sep { color: var(--ink-4); margin: 0 7px; }

.trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px; color: var(--ink-2);
}
.pill svg { color: var(--cyan); }

/* -------------------------------------------------------------- sections */
section.band { padding: 58px 0; }
.band-head { text-align: center; margin-bottom: 34px; }
h2.title {
  margin: 0 0 10px;
  font-size: clamp(23px, 3.6vw, 33px);
  letter-spacing: -0.028em;
  font-weight: 760;
  line-height: 1.15;
}
.band-head p { margin: 0 auto; max-width: 52ch; color: var(--ink-2); }

.cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { padding: 24px; border-radius: var(--r-md); transition: transform 0.28s var(--ease), border-color 0.28s; }
.card:hover { transform: translateY(-3px); border-color: var(--hair-2); }
.card h3 { margin: 14px 0 7px; font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }

.ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.1));
  color: #fff;
}

/* ----------------------------------------------------------------- steps */
.steps { counter-reset: s; max-width: 640px; margin: 0 auto; }
.step {
  position: relative;
  padding: 0 0 26px 56px;
  counter-increment: s;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--violet), var(--cyan));
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 18px -4px rgba(139, 92, 246, 0.7);
}
.step::after {
  content: "";
  position: absolute; left: 16.5px; top: 38px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--hair-2), transparent);
}
.step:last-child::after { display: none; }
.step h4 { margin: 4px 0 4px; font-size: 15px; font-weight: 630; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ------------------------------------------------------------------- faq */
details.faq {
  border-radius: var(--r-md);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}
details.faq[open] { border-color: var(--hair-2); background: rgba(255, 255, 255, 0.05); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-size: 14.8px; font-weight: 600;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 19px; font-weight: 400; color: var(--ink-3);
  transition: transform 0.25s var(--ease), color 0.2s;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--cyan); }
details.faq p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }

/* ------------------------------------------------------------ legal docs */
.doc-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); padding: 40px 0 20px; }
@media (min-width: 940px) { .doc-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 40px; } }

.toc { display: none; }
@media (min-width: 940px) {
  .toc {
    display: block;
    position: sticky; top: 96px;
    align-self: start;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
  }
}
.toc p.label {
  margin: 0 0 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4);
}
.toc a {
  display: block;
  padding: 6px 12px;
  margin-bottom: 2px;
  border-left: 2px solid var(--hair);
  color: var(--ink-3);
  font-size: 13px; text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.toc a:hover { color: var(--ink-2); background: rgba(255, 255, 255, 0.04); }
.toc a.active { color: var(--ink); border-left-color: var(--violet); background: rgba(139, 92, 246, 0.1); }

/* `min-width: 0` is what lets the wide policy tables scroll inside
   .table-wrap instead of stretching the whole page: a grid item defaults to
   min-width:auto, i.e. never narrower than its min-content. */
.doc { padding: 34px 28px 40px; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 560px) { .doc { padding: 26px 20px 32px; } }

.stamp {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px; color: var(--ink-3);
  margin-bottom: 14px;
}
.doc h1 { margin: 0 0 10px; font-size: clamp(27px, 4.6vw, 38px); letter-spacing: -0.03em; line-height: 1.12; font-weight: 780; }
.doc .lede { font-size: 16px; color: var(--ink-2); margin: 0 0 6px; }

.doc h2 {
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-size: 19px; font-weight: 690; letter-spacing: -0.02em;
  scroll-margin-top: 92px;
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 30px; }
.doc h2 .num {
  display: inline-block;
  min-width: 1.9em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.doc h3 { margin: 22px 0 7px; font-size: 15px; font-weight: 640; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 8px; }
.doc ul { padding-left: 4px; list-style: none; }
.doc ul li { position: relative; padding-left: 18px; }
.doc ul li::before {
  content: "";
  position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet);
}
.doc strong { color: var(--ink); font-weight: 620; }
.doc a { color: #a78bfa; text-decoration-color: rgba(167, 139, 250, 0.4); text-underline-offset: 3px; }
.doc a:hover { color: #c4b5fd; }

.callout {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.07));
  padding: 18px 20px;
  margin: 22px 0 6px;
}
.callout p { margin: 0; }
.callout .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.doc thead th {
  text-align: left; padding: 10px 12px;
  color: var(--ink-3);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  border-bottom: 1px solid var(--hair-2);
}
.doc tbody td { padding: 12px; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; }
.doc tbody tr:last-child td { border-bottom: 0; }
.doc tbody td:first-child { color: var(--ink); font-weight: 560; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* things the owner still has to fill in — impossible to miss, easy to grep */
.fill {
  display: inline;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px dashed rgba(251, 191, 36, 0.45);
  color: var(--amber);
  font-size: 13px;
}

/* ---------------------------------------------------------------- footer */
footer.site { position: relative; z-index: 1; margin-top: 60px; border-top: 1px solid var(--hair); }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 30px 0; }
.foot-in .grow { flex: 1 1 200px; }
.foot-in p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-4); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-links a {
  padding: 7px 12px; border-radius: 999px;
  color: var(--ink-3); font-size: 13px; text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.foot-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* ------------------------------------------------------------ animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .btn::after, .dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}
