/* Jarvis sales site.
   Design system: see design-system/jarvis/MASTER.md.
   Direction: "Aurora glass" (chosen by the owner from four layout examples on 2026-11-14).
   A pale lavender page, soft blurred colour behind frosted glass cards, one glowing orb, dark ink buttons.
   Every colour lives in the :root block below. */

:root {
  /* Colour tokens (all text pairs checked, see MASTER.md) */
  --color-background: #F6F3FF;
  --color-foreground: #1B1535;          /* headings, body, buttons */
  --color-text-soft: #3F3960;           /* lede and long answers */
  --color-muted-foreground: #5A5478;    /* secondary text */
  --color-primary: #5B45D6;             /* violet for small text, icons, focus ring */
  --color-violet: #6D5BF0;              /* gradients and graphics only */
  --color-pink: #DB2777;                /* gradient end, large text only */
  --color-ink-hover: #2E2552;
  --color-control: #7A7396;             /* input and ghost-button borders (3:1 or better) */
  --color-destructive: #B91C1C;
  --color-ring: #5B45D6;

  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.9);
  --line: rgba(27, 21, 53, 0.1);        /* decorative hairlines */

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  /* Shape, depth, spacing */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 10px 28px -16px rgba(76, 29, 149, 0.30);
  --shadow-md: 0 30px 70px -30px rgba(76, 29, 149, 0.38);
  --blur: blur(16px) saturate(1.1);
  --section-y: clamp(56px, 7vw, 96px);
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Without backdrop-filter, glass would turn see-through, so make it nearly opaque instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.9); --glass-strong: rgba(255, 255, 255, 0.95); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  position: relative;
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The aurora: soft colour fields behind the whole page. A static layer (no filter), so scrolling stays cheap.
   The first four sit behind the hero; the repeating ones carry the colour down the page at different
   rhythms so no pattern shows. Each blob is kept inside its tile, so there are no seams. */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(540px 540px at 4% 560px, rgba(196, 181, 253, 0.85), transparent 70%) 0 0 / 100% 1500px no-repeat,
    radial-gradient(500px 500px at 96% 540px, rgba(249, 168, 212, 0.75), transparent 70%) 0 0 / 100% 1500px no-repeat,
    radial-gradient(460px 460px at 38% 1180px, rgba(147, 197, 253, 0.70), transparent 70%) 0 0 / 100% 1500px no-repeat,
    radial-gradient(380px 380px at 88% 1120px, rgba(253, 186, 116, 0.55), transparent 70%) 0 0 / 100% 1500px no-repeat,
    radial-gradient(680px 680px at 6% 1000px, rgba(196, 181, 253, 0.85), transparent 70%) 0 1500px / 100% 2800px repeat-y,
    radial-gradient(640px 640px at 94% 1700px, rgba(249, 168, 212, 0.75), transparent 70%) 0 1500px / 100% 3300px repeat-y,
    radial-gradient(640px 640px at 34% 2500px, rgba(147, 197, 253, 0.70), transparent 70%) 0 1500px / 100% 3700px repeat-y,
    radial-gradient(560px 560px at 86% 2900px, rgba(253, 186, 116, 0.60), transparent 70%) 0 1500px / 100% 4100px repeat-y;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(109, 91, 240, 0.1); padding: 0.1em 0.4em; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }

:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--color-foreground); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Icons */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-accent { color: var(--color-primary); width: 24px; height: 24px; margin-bottom: 12px; }

/* ---------- Glass (one recipe, used by every frosted surface) ---------- */
.nav, .mock, .card, .specialists, .step, .faq, .cta-grid, .chips li, .eyebrow {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

/* ---------- Header: a floating glass pill ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-block: 12px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - 2 * var(--gutter));  /* .nav is also .container, so keep the pill off the screen edges */
  min-height: 64px; padding: 8px 10px 8px 22px; border-radius: 999px;
  box-shadow: 0 8px 30px -12px rgba(76, 29, 149, 0.28);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav-links a { color: var(--color-text-soft); text-decoration: none; font-size: 0.97rem; font-weight: 500; padding: 8px 2px; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--color-foreground); }

/* ---------- Buttons: pills, dark ink for the main action ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.97rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  touch-action: manipulation;
}
.btn-primary { background: var(--color-foreground); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 21, 53, 0.6); }
.btn-primary:hover { background: var(--color-ink-hover); box-shadow: 0 14px 28px -12px rgba(27, 21, 53, 0.7); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--glass-strong); color: var(--color-foreground); border-color: var(--color-control); }
.btn-secondary:hover { background: #fff; }
.btn-sm { min-height: 46px; padding: 10px 22px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn .ico { transition: transform 0.2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) var(--section-y); }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.orb {
  display: block; width: 96px; height: 96px; margin-bottom: 28px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, #A78BFA, #6D5BF0 55%, #F472B6);
  box-shadow: 0 0 0 12px rgba(167, 139, 250, 0.18), 0 0 60px 6px rgba(139, 92, 246, 0.45);
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; font-weight: 600; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

/* Gradient text is decorative emphasis; the solid colour is the fallback and the forced-colors choice. */
h1 em, .step-num {
  font-style: normal; color: var(--color-primary);
  background: linear-gradient(90deg, var(--color-violet), var(--color-pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  h1 em, .step-num { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
}

.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary);
}

.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--color-text-soft); margin-top: 24px; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; color: var(--color-text-soft); font-size: 0.9rem; font-weight: 500; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; }
.chips .ico { color: var(--color-primary); width: 18px; height: 18px; }

/* ---------- Slack-style conversation (a glass card with white bubbles) ---------- */
.mock { width: 100%; max-width: 820px; margin-top: clamp(40px, 6vw, 60px); text-align: left; border-radius: 28px; padding: 22px; box-shadow: var(--shadow-md); }
.mock-title { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; font-size: 0.85rem; font-weight: 700; color: var(--color-muted-foreground); letter-spacing: 0.01em; }
.mock-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-violet); }
.mock-body { display: grid; gap: 6px; font-size: 0.97rem; line-height: 1.55; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 6px 4px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; background: #fff; color: var(--color-foreground); }
.avatar.bot { background: linear-gradient(135deg, #6D5BF0, #BE185D); color: #fff; }
.msg-main { min-width: 0; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 2px 10px -4px rgba(27, 21, 53, 0.15); }
.msg-main p + p, .msg-main p + .msg-list, .msg-main p + .proposal { margin-top: 4px; }
.msg-head { font-size: 0.85rem; }
.msg-head strong { font-weight: 700; color: var(--color-foreground); }
.time { color: var(--color-muted-foreground); font-size: 0.78rem; margin-left: 4px; }
.tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 6px; background: rgba(109, 91, 240, 0.12); color: #4B38C4; margin-left: 4px; }
.mention { color: #4B38C4; background: rgba(109, 91, 240, 0.12); padding: 0 4px; border-radius: 5px; font-weight: 500; }
.msg-list { padding-left: 1.1em; list-style: disc; color: var(--color-text-soft); }
.msg-list li::marker { color: var(--color-violet); }
.proposal { margin-top: 8px; border: 1px solid var(--line); border-left: 3px solid var(--color-violet); border-radius: 12px; padding: 12px 14px; background: var(--color-background); }
.proposal-title { font-weight: 700; }
.proposal-meta { font-family: var(--font-mono); font-size: 0.84rem; color: var(--color-text-soft); }
.proposal-note { font-size: 0.82rem; color: var(--color-muted-foreground); }
.proposal-actions { display: flex; gap: 8px; margin-top: 10px !important; }
.btn-mock { font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--color-control); color: var(--color-foreground); background: #fff; }
.btn-mock.yes { background: var(--color-foreground); border-color: var(--color-foreground); color: #fff; }
.status { display: flex; align-items: center; gap: 8px; margin-left: 52px; padding: 6px 0 0; color: var(--color-primary); font-size: 0.9rem; font-weight: 600; }
.mock figcaption { margin-top: 14px; padding: 12px 6px 0; font-size: 0.8rem; color: var(--color-muted-foreground); border-top: 1px solid var(--line); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 56px); text-align: center; }
.section-lede { color: var(--color-text-soft); font-size: 1.1rem; margin-top: 16px; margin-inline: auto; max-width: 60ch; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: 1fr; }

.card { border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover { border-color: rgba(109, 91, 240, 0.4); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-soft); font-size: 0.98rem; }
.card-sm { padding: 24px; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, rgba(109, 91, 240, 0.16), rgba(219, 39, 119, 0.12)); color: var(--color-primary); margin-bottom: 18px; }
.card-icon .ico { width: 22px; height: 22px; }

.specialists { margin-top: 24px; padding: 30px; border-radius: var(--radius); display: grid; gap: 10px; justify-items: center; text-align: center; box-shadow: var(--shadow-sm); }
.specialists p { color: var(--color-text-soft); max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.tags li { font-size: 0.86rem; font-weight: 700; padding: 7px 15px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px -4px rgba(27, 21, 53, 0.15); }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; }
.step { padding: 28px 26px 26px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; letter-spacing: -0.03em; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--color-text-soft); font-size: 0.98rem; }

/* FAQ: one glass panel, hairlines between questions */
.faq { border-radius: 26px; padding: 6px 30px; box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--color-muted-foreground); transition: transform 0.25s var(--ease), color 0.2s; }
.faq summary:hover .ico { color: var(--color-foreground); }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--color-primary); }
.faq details p { color: var(--color-text-soft); padding: 0 0 24px; max-width: 68ch; }

/* CTA: one big glass panel with the form inside (no blur on the form, so it never blurs a blur) */
.cta-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; border-radius: 34px; padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow-md); }
.cta-copy .eyebrow { margin-bottom: 18px; }
.cta-copy .section-lede { margin-inline: 0; }
.form { background: var(--glass-strong); border: 1px solid #fff; border-radius: 24px; padding: clamp(22px, 3vw, 30px); display: grid; gap: 18px; box-shadow: 0 18px 40px -24px rgba(76, 29, 149, 0.4); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: #fff; color: var(--color-foreground);
  border: 1px solid var(--color-control); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted-foreground); }
.field input:hover, .field textarea:hover { border-color: var(--color-foreground); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--color-ring); box-shadow: 0 0 0 3px rgba(91, 69, 214, 0.28); }
.field [aria-invalid="true"] { border-color: var(--color-destructive); }
.form-status { min-height: 1.5em; font-size: 0.92rem; font-weight: 500; }
.form-status.error { color: var(--color-destructive); }
.form-status.ok { color: var(--color-primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-tag { color: var(--color-muted-foreground); margin-top: 12px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-content: flex-start; }
.footer-links a { color: var(--color-text-soft); text-decoration: none; padding: 8px 0; font-size: 0.95rem; font-weight: 500; }
.footer-links a:hover { color: var(--color-foreground); }
.fine { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--color-muted-foreground); font-size: 0.82rem; max-width: 80ch; }

/* ---------- Motion (subtle) ---------- */
/* Blocks are hidden only when scripting runs, so the page is fully readable without it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .card.reveal.in:hover { transform: translateY(-2px); transition-delay: 0s; }

  .orb { animation: pulse 5s ease-in-out infinite; }
  .js .mock .msg { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 420ms + 250ms); }
}
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(167, 139, 250, 0.12), 0 0 80px 10px rgba(139, 92, 246, 0.55); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .btn .ico, .faq summary .ico { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Breakpoints ---------- */
/* Four-up groups (steps, safety, requirements) go 1 -> 2 -> 4 columns, so no card is ever left alone on a row. */
@media (min-width: 640px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .grid-4, .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .orb { width: 80px; height: 80px; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .cta-row { flex-direction: column; align-self: stretch; }
  .nav { padding-left: 16px; }
  .mock { padding: 14px; border-radius: 22px; }
  .status { margin-left: 0; }
  .faq { padding-inline: 20px; }
}
