/* ============================================================
   NoMoreDetentions — shared styles
   Loaded by index.html, terms.html and privacy.html so all
   three pages share fonts, colours and components.
   Layout is mostly Tailwind utility classes in the markup;
   this file holds design tokens, fonts, custom components,
   the page atmosphere and animations.
   ============================================================ */

/* ---- Design tokens -------------------------------------- */
:root {
  --bg:        #0a0b10;
  --bg-elev:   #111320;
  --panel:     #14172a;
  --panel-2:   #181b30;
  --ink:       #ecedf6;
  --ink-soft:  #c3c6dd;
  --muted:     #8f93ae;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --accent:    #7c6bff;  /* electric indigo, dominant */
  --accent-bri:#9a8bff;
  --accent-2:  #ff5c8a;  /* hot pink, sparing pop */

  --ok:        #36d399;
  --ok-bg:     rgba(54, 211, 153, 0.12);
  --warn:      #fbbf24;
  --warn-bg:   rgba(251, 191, 36, 0.12);
  --down:      #f8718a;
  --down-bg:   rgba(248, 113, 138, 0.12);

  --radius:    18px;
  --maxw:      1120px;
}

/* ---- Base ----------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: fixed glow blobs + dotted grid + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 8% -8%, rgba(124, 107, 255, 0.22), transparent 60%),
    radial-gradient(50rem 36rem at 100% 8%, rgba(255, 92, 138, 0.16), transparent 55%),
    radial-gradient(70rem 50rem at 50% 120%, rgba(124, 107, 255, 0.12), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 35%, transparent 100%);
  pointer-events: none;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

/* Visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent-bri);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Typography helpers --------------------------------- */
.font-display { font-family: "Bricolage Grotesque", "Manrope", sans-serif; }
.font-mono    { font-family: "Space Mono", ui-monospace, monospace; }

.display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.kicker {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent-bri);
  text-transform: lowercase;
}

.text-gradient {
  background: linear-gradient(100deg, var(--accent-bri) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bri), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 107, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(124, 107, 255, 0.9); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(124, 107, 255, 0.1); }

.btn-block { width: 100%; }

.btn-discord {
  background: linear-gradient(180deg, #7289da, #5865f2);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(88, 101, 242, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(88, 101, 242, 0.9); }


/* ---- Cards ---------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card-hover { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

/* Pricing highlight ring */
.card-feature {
  border-color: rgba(124, 107, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(124, 107, 255, 0.25), 0 30px 60px -30px rgba(124, 107, 255, 0.4);
}

/* ---- Status pills --------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pill.is-working    { color: var(--ok);   background: var(--ok-bg);   border-color: rgba(54,211,153,0.35); }
.pill.is-unstable   { color: var(--warn); background: var(--warn-bg); border-color: rgba(251,191,36,0.35); }
.pill.is-unavailable{ color: var(--down); background: var(--down-bg); border-color: rgba(248,113,138,0.35); }
.pill.is-working    .dot { background: var(--ok);   box-shadow: 0 0 0 3px rgba(54,211,153,0.18); animation: blip 2.4s ease-in-out infinite; }
.pill.is-unstable   .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(251,191,36,0.18); }
.pill.is-unavailable.dot, .pill.is-unavailable .dot { background: var(--down); }

@keyframes blip {
  0%, 100% { box-shadow: 0 0 0 3px rgba(54,211,153,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(54,211,153,0.05); }
}

/* Muted state for unavailable service cards */
.svc-card.is-down { opacity: 0.55; filter: saturate(0.6); }
.svc-card.is-down:hover { transform: none; }

/* ---- Forms ---------------------------------------------- */
.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.field-label .req { color: var(--accent-2); }
.field-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.input, .select, .textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 0.72rem 0.85rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input::placeholder, .textarea::placeholder { color: #6b6f8a; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 107, 255, 0.22);
}
.textarea { resize: vertical; min-height: 96px; }
.select option { background: var(--bg-elev); color: var(--ink); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--down); box-shadow: 0 0 0 3px rgba(248,113,138,0.18); }

.err-msg { color: var(--down); font-size: 0.8rem; margin-top: 0.35rem; min-height: 1em; }

/* Radio segmented control */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.seg label {
  position: relative;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.seg label:hover { border-color: var(--accent); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .seg-title { font-weight: 700; }
.seg .seg-sub { font-size: 0.8rem; color: var(--muted); }
.seg input:checked + .seg-body {
  /* handled via parent below */
}
.seg label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(124, 107, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(124,107,255,0.35);
}

/* Checkbox gate */
.check-row { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  flex: none;
  margin-top: 2px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check-row input[type="checkbox"]::after {
  content: "";
  width: 11px; height: 11px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: #fff;
}
.check-row input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.check-row input[type="checkbox"]:checked::after { transform: scale(1); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Honeypot — kept off-screen for humans, reachable for bots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- Nav ------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: url("/favicon.png") center/cover no-repeat;
}

/* ---- FAQ ------------------------------------------------ */
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  padding: 0 1.1rem;
  transition: border-color 0.18s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 0.2s ease; color: var(--accent-bri); flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 1.1rem; color: var(--ink-soft); }

/* ---- Legal pages prose ---------------------------------- */
.prose { color: var(--ink-soft); max-width: 760px; }
.prose h2 { font-family: "Bricolage Grotesque", sans-serif; color: var(--ink); font-size: 1.35rem; margin: 2.2rem 0 0.6rem; letter-spacing: -0.01em; }
.prose h3 { color: var(--ink); font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
.prose p, .prose li { font-size: 0.97rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--accent-bri); text-underline-offset: 3px; }
.callout {
  border: 1px solid rgba(251,191,36,0.35);
  background: var(--warn-bg);
  color: #f4e3b8;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
}

/* ---- Entrance animation --------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Hero word shimmer on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ---- Misc ----------------------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; }
.hairline-link { text-decoration: none; color: var(--muted); transition: color 0.16s ease; }
.hairline-link:hover { color: var(--ink); }
.tag-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
