/* Bastet Guard website. */
    :root {
      --bg: #0d0f14; --panel: #14171f; --line: #262b37; --text: #e9ebf1; --text-2: #a3a9b6; --text-3: #767d8c;
      --green: #3ddc97; --green-ink: #06120c; --violet: #b9a7ff; --amber: #f5b64a;
      --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
      color-scheme: dark;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
    body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
    a { color: inherit; }
    .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

    nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
    .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
    .brand svg { color: var(--green); }
    .nav-links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--text-2); }
    .nav-links a { text-decoration: none; transition: color 150ms ease; }
    .signin { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-2); }
    @media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); } }

    .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 72px 0 40px; text-align: center; justify-items: center; }
    .eyebrow { font-size: 13px; font-weight: 650; color: var(--green); letter-spacing: .04em; text-transform: uppercase; }
    h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 15ch; }
    .lead { margin: 0; font-size: 19px; color: var(--text-2); max-width: 56ch; }
    .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
      font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--panel);
      transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
    }
    .btn:active { transform: scale(.97); }
    .btn.primary { background: var(--green); color: var(--green-ink); border-color: transparent; }
    @media (hover: hover) and (pointer: fine) { .btn:not(.primary):hover { border-color: #3a4152; } }
    .fine { font-size: 13.5px; color: var(--text-3); }
    .shot { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: block; }
    .hero .shot { margin-top: 20px; }

    section { padding: 72px 0; border-top: 1px solid var(--line); }
    h2 { margin: 0 0 12px; font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.02em; line-height: 1.15; }
    .section-lead { margin: 0 0 36px; color: var(--text-2); max-width: 60ch; font-size: 17px; }

    .feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; padding: 28px 0; }
    .feature:nth-child(even) .feature-text { order: 2; }
    .feature h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.015em; }
    .feature p { margin: 0 0 12px; color: var(--text-2); }
    .feature ul { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 6px; }

    .grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .card { padding: 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
    .card h3 { margin: 0 0 6px; font-size: 16.5px; }
    .card p { margin: 0; color: var(--text-2); font-size: 15px; }

    .sites { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
    .site { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--text-2); }

    .pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
    .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
    .price small { font-size: 15px; color: var(--text-3); font-weight: 600; }
    .card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 6px; font-size: 15px; }
    .soon { display: inline-block; font-size: 12px; font-weight: 700; color: var(--violet); background: rgba(185, 167, 255, .1); padding: 3px 9px; border-radius: 99px; }

    details { border-bottom: 1px solid var(--line); padding: 16px 0; }
    summary { cursor: pointer; font-weight: 650; list-style: none; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; float: right; color: var(--text-3); transition: transform 160ms var(--ease-out); }
    details[open] summary::after { transform: rotate(45deg); }
    details p { margin: 10px 0 0; color: var(--text-2); max-width: 70ch; }

    footer { padding: 36px 0 60px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
    :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

    @media (max-width: 860px) {
      .feature { grid-template-columns: 1fr; gap: 20px; }
      .feature:nth-child(even) .feature-text { order: 0; }
      .grid3, .pricing { grid-template-columns: 1fr; }
      .nav-links a:not(.signin) { display: none; }
      .hero { padding-top: 40px; }
    }
  
/* ------------------------------------------------------------ shared bits */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(30px, 4.5vw, 44px); max-width: none; }
.page .lead { text-align: left; margin-top: 10px; }
.narrow { max-width: 560px; }
.field { display: grid; gap: 6px; margin: 18px 0; }
.field label { font-size: 14px; font-weight: 650; color: var(--text-2); }
.input {
  font: inherit; color: var(--text); background: #0b0d12; border: 1px solid #2a2f3b; border-radius: 12px;
  padding: 12px 14px; min-height: 46px; transition: border-color 150ms ease;
}
.input:focus { outline: none; border-color: var(--green); }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row .input { flex: 1; min-width: 220px; }
.msg { min-height: 22px; font-size: 14.5px; color: var(--text-2); margin: 10px 0 0; }
.msg.ok { color: var(--green); }
.msg.bad { color: #ff8a8a; }
.code { font: 800 40px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; color: #fff; margin: 14px 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Leaderboard */
.board { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.board td { padding: 12px; border-bottom: 1px solid var(--line); }
.board td.num, .board th.num { text-align: right; }
.board tr.me td { background: color-mix(in srgb, var(--green) 7%, transparent); }
.rank { color: var(--text-3); width: 44px; }
.board-empty { padding: 40px 0; color: var(--text-2); }

/* Accordions: the content slides open (see site.js). */
details { border-bottom: 1px solid var(--line); padding: 0; }
summary { padding: 18px 0; }
details .answer { overflow: hidden; }
details .answer p { margin: 0 0 18px; }

/* Middleman teaser on the home page */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.teaser h3 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.teaser p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

.prose h1 { margin-top: 0; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose li { color: #c9cdd6; }
.prose code { background: #1a1e28; padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.mm-hero { padding-top: 24px; }
.mm-hero h1 { font-size: clamp(38px, 6vw, 60px); max-width: 14ch; }

.mm-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mm-art { width: 100%; height: auto; }
/* The two dots travel toward the middle, then fade: what "held" means. */
.mm-flow circle { animation: mm-in 2.4s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
.mm-flow circle:last-child { animation-name: mm-in-r; }
@keyframes mm-in { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(56px); opacity: 1; } 100% { transform: translateX(56px); opacity: 0; } }
@keyframes mm-in-r { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(-56px); opacity: 1; } 100% { transform: translateX(-56px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-flow circle { animation: none; } }
@media (max-width: 860px) { .mm-top { grid-template-columns: 1fr; } .mm-art { max-width: 420px; } }
.nav-links a[aria-current="page"] { color: var(--text); }
