/* The Useful Agent - shared styles. Palette: ink, paper, lime, coral. */
:root {
  --bg: #f5f3ec;
  --bg-alt: #ebe8dc;
  --surface: #ffffff;
  --text: #16141f;
  --muted: #55526a;
  --line: #dcd8ca;
  --lime: #c6f135;
  --lime-ink: #16141f;
  --coral: #ff6a4d;
  --coral-soft: #ffe2da;
  --coral-text: #a8321a;
  --live-soft: #e6f9b4;
  --live-text: #3a5200;
  --violet: #5a3ff0;
  --contact-bg: #16141f;
  --contact-text: #f5f3ec;
  --btn-bg: #16141f;
  --btn-text: #f5f3ec;
  --focus: #5a3ff0;
  --shadow: 0 1px 0 rgba(22, 20, 31, .06), 0 10px 30px -18px rgba(22, 20, 31, .35);
  --radius: 18px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111019;
    --bg-alt: #181624;
    --surface: #1d1b2a;
    --text: #f1efe6;
    --muted: #aeaabf;
    --line: #2f2c40;
    --coral-soft: #3a1d18;
    --coral-text: #ffab98;
    --live-soft: #2a3510;
    --live-text: #d4f56a;
    --violet: #b3a5ff;
    --contact-bg: #232036;
    --contact-text: #f1efe6;
    --btn-bg: #c6f135;
    --btn-text: #16141f;
    --focus: #c6f135;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 14px 34px -20px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 10px; }
.nav a.link:hover { color: var(--text); background: var(--bg-alt); }
@media (max-width: 600px) { .nav a.link { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--body); text-decoration: none;
  padding: 14px 20px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 35%, transparent); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; max-width: 14ch; }
.hero h1 .mark {
  background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
  padding: 0 .06em; margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .hero h1 .mark { background: none; color: var(--lime); }
}
.hero p.lede { font-size: clamp(1.08rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 38ch; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-deco { position: absolute; right: 32px; top: 200px; width: 320px; opacity: .95; pointer-events: none; }
@media (max-width: 1180px) { .hero-deco { display: none; } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); max-width: 44ch; }

/* Products */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--bg-alt); border: 1px solid var(--line);
}
.card h3 { font-size: 1.45rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-top: 6px; }
.card-actions .btn { padding: 11px 18px; font-size: .92rem; }
.text-link { font-weight: 600; font-size: .92rem; color: var(--violet); text-underline-offset: 3px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.badge-live { background: var(--live-soft); color: var(--live-text); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
.badge-soon { background: var(--coral-soft); color: var(--coral-text); }
.badge-custom { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* How it works */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: .95rem;
  background: var(--lime); color: var(--lime-ink); padding: 4px 10px; border-radius: 8px; margin-bottom: 14px;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  background: var(--contact-bg); color: var(--contact-text); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 6vw, 56px); display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .contact { grid-template-columns: 1.4fr auto; } }
.contact h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
.contact p { margin: 12px 0 0; opacity: .78; max-width: 46ch; }
.contact .btn { background: var(--lime); color: var(--lime-ink); font-size: 1rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); text-underline-offset: 3px; }
.site-footer nav { display: flex; gap: 18px; }

/* Simple centred pages (account, 404) */
.simple { min-height: calc(100vh - 64px - 110px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.simple .inner { max-width: 560px; margin: 0 auto; }
.simple .big { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 18vw, 8rem); line-height: 1; letter-spacing: -.04em; }
.simple .big span { color: var(--coral); }
.simple h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin: 16px 0 12px; }
.simple p { color: var(--muted); margin: 0 auto 28px; max-width: 42ch; }
.simple .hero-actions { justify-content: center; }
.lock {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
}
