/* Tragic Studios landing — palette from tsbanner / tslogo */

:root {
  --void: #050505;
  --ink: #0b0d0c;
  --panel: #0f1210;
  --line: rgba(200, 255, 60, 0.14);
  --lime: #c8ff32;
  --lime-dim: #9ecc28;
  --text: #eef4e8;
  --muted: #93a896;
  --party-bg: #15100c;
  --party-line: rgba(212, 142, 61, 0.35);
  --party-glow: rgba(212, 142, 61, 0.12);
  --ember: #d48e3d;
  --ember-soft: #b8732e;
  --adc-glow: rgba(0, 232, 122, 0.12);
  --adc-line: rgba(0, 232, 122, 0.35);
  --adc-mint: #00e87a;
  --radius: 14px;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Orbitron", "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-banner-img {
    animation: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 10%, rgba(200, 255, 50, 0.045), transparent),
    radial-gradient(ellipse 70% 45% at 90% 85%, rgba(0, 232, 122, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

main,
footer,
.site-header {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.wrap.narrow {
  max-width: 720px;
}

.wide {
  max-width: 58rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--lime);
  color: #050505;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lime);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0 0;
  }

  .site-nav.open {
    display: flex;
  }
}

/* Hero */
.hero {
  padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

.hero-media {
  background: radial-gradient(circle at 50% 0%, rgba(200, 255, 50, 0.06), transparent 58%);
}

.hero-banner-img {
  display: block;
  width: 100%;
  max-height: clamp(260px, 46vw, 420px);
  object-fit: cover;
  object-position: center center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding-top: calc(clamp(2rem, 5vw, 3rem) - 15px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.eyebrow-warm {
  color: var(--ember);
}

.eyebrow-accent {
  color: var(--adc-mint);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
  font-size: clamp(1.95rem, 5vw, 3rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

/* Sections */
.stripe {
  padding: clamp(3.25rem, 8vw, 5rem) 0;
}

.stripe.company {
  background: linear-gradient(180deg, var(--void) 0%, var(--ink) 100%);
  padding-top: calc(clamp(0.5rem, 1.5vw, 1rem) + 25px);
}

.stripe.product-party {
  background: linear-gradient(
    165deg,
    var(--party-bg),
    #0d0907 72%
  );
  border-top: 1px solid var(--party-line);
  border-bottom: 1px solid var(--party-line);
  box-shadow: inset 0 0 80px var(--party-glow);
}

.stripe.product-adc {
  background: linear-gradient(
    180deg,
    #060a07,
    #050705
  );
  border-bottom: 1px solid var(--adc-line);
  box-shadow: inset 0 0 72px var(--adc-glow);
}

.stripe.faq {
  background: var(--panel);
}

.stripe.contact {
  background: var(--void);
  padding-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title.centered {
  justify-content: center;
  text-align: center;
}

.rule {
  display: inline-block;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

.centered-rule {
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.rule + .faq-list {
  margin-top: 0;
}

.centered-rule {
  width: 4rem;
}

.prose {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.prose em {
  color: var(--ember);
  font-style: italic;
}

.stripe.product-adc .prose em {
  color: var(--adc-mint);
}

.section-title:not(.centered) {
  color: var(--lime);
}

.stripe.product-party .eyebrow-warm + .product-title {
  margin-top: 0;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin: 0 0 0.85rem;
  color: #fffaf3;
}

.stripe.product-adc .product-title {
  color: #f7fff9;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

.grid-2.reverse .visual-stack {
  order: -1;
}

@media (max-width: 860px) {
  .grid-2,
  .grid-2.reverse {
    grid-template-columns: 1fr;
  }

  .grid-2.reverse .visual-stack {
    order: -1;
  }
}

.feature-list {
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(237, 230, 220, 0.88);
  font-size: 0.96rem;
}

.feature-list.warm li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ember-soft), var(--ember));
  box-shadow: 0 0 10px rgba(212, 142, 61, 0.45);
}

.feature-list.accent li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 2px;
  background: var(--adc-mint);
  box-shadow: 0 0 10px rgba(0, 232, 122, 0.55);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-accent {
  background: var(--adc-mint);
  color: #031008;
  box-shadow: 0 12px 32px rgba(0, 232, 122, 0.2);
}

.btn-accent:hover {
  box-shadow: 0 14px 40px rgba(0, 232, 122, 0.31);
}

.btn-ghost-accent {
  background: transparent;
  border-color: var(--adc-line);
  color: var(--adc-mint);
}

.btn-warm {
  background: linear-gradient(120deg, var(--ember-soft), var(--ember));
  color: #120b05;
  box-shadow: 0 10px 32px rgba(212, 142, 61, 0.22);
}

.btn-ghost-warm {
  background: transparent;
  border-color: var(--party-line);
  color: var(--ember);
}

/* Visual frames */
.visual-stack {
  display: grid;
  gap: 1.15rem;
}

.frame {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.35rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.warm-frame {
  border-color: var(--party-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.adc-frame {
  border-color: var(--adc-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 46px rgba(0, 0, 0, 0.4);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  min-height: 160px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.38);
}

.adc-frame img:first-of-type {
  max-width: 220px;
  margin: 0 auto;
}

.frame.mini img {
  min-height: 200px;
}

.frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(237, 230, 220, 0.6);
}

.stripe.product-adc figcaption {
  color: rgba(200, 255, 219, 0.55);
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
}

.faq-group {
  width: 100%;
}

.faq-wrap > h2 + .faq-group {
  margin-top: 0.75rem;
}

.faq-group + .faq-group {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.faq-app-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.faq-group--party .faq-app-title {
  color: var(--ember);
}

.faq-group--adc .faq-app-title {
  color: var(--adc-mint);
}

.faq-app-note {
  text-align: left;
  margin: -0.25rem 0 1rem;
  font-size: 0.88rem;
}

.faq-group--party .faq-app-note strong {
  color: var(--ember);
}

.faq-a .faq-steps {
  padding-top: 0.75rem;
}

.faq-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-steps li + li {
  margin-top: 0.45rem;
}

.faq-tip {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 142, 61, 0.28);
  background: rgba(212, 142, 61, 0.08);
  color: rgba(237, 230, 220, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.faq-tip-mark {
  flex-shrink: 0;
  line-height: 1.4;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 5, 0.55);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--lime);
  font-size: 1.25rem;
  font-weight: 300;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-q .faq-icon {
  transition: transform 0.2s ease;
}

.faq-a {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-a p {
  margin: 0;
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.muted.fine-print {
  color: var(--muted);
  margin-top: 2rem;
  font-size: 0.9rem;
}

.muted.fine-print a {
  color: var(--lime);
}

.muted.fine-print.centered {
  text-align: center;
}

/* Contact card */
.card-green {
  padding: clamp(2rem, 5vw, 2.85rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(0, 232, 122, 0.22);
  background: radial-gradient(circle at 20% -10%, rgba(200, 255, 60, 0.08), transparent 54%),
    linear-gradient(180deg, #0a1210 0%, #060905 90%);
}

.card-green .section-title .rule {
  background: linear-gradient(90deg, var(--lime), transparent);
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.15rem 0 0.5rem;
}

.btn-contact-cta {
  text-decoration: none;
  text-align: center;
}

.btn-contact-cta--muted {
  background: transparent;
  color: var(--lime);
  border: 1px solid rgba(0, 232, 122, 0.35);
  box-shadow: none;
}

.btn-contact-cta--muted:hover,
.btn-contact-cta--muted:focus-visible {
  background: rgba(0, 232, 122, 0.08);
  color: #b8ff9a;
}

.mailto-btn {
  display: inline-block;
  margin: 1rem 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 1.06rem;
  color: var(--lime);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mailto-btn:hover,
.mailto-btn:focus-visible {
  color: #e8ff99;
}

.mailto-btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  align-items: center;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.link-row.footerish a {
  color: rgba(226, 255, 186, 0.78);
}

.link-row a {
  color: var(--adc-mint);
  text-decoration: none;
}

.link-row.footerish a {
  color: var(--muted);
}

.link-row a:hover {
  color: var(--lime);
}

.link-row.footerish a:hover {
  color: var(--lime);
}

.link-row.footerish .divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  background: var(--void);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  grid-column: 2;
}

.footer-grid > img.footer-logo,
.footer-grid > .footer-logo-link {
  grid-row: span 2;
}

@media (max-width: 640px) {
  .footer-grid p,
  .footer-grid > img.footer-logo,
  .footer-grid > .footer-logo-link {
    grid-column: auto;
    grid-row: auto;
  }
}

.link-row.tiny {
  grid-column: 1 / -1;
  gap: 0.75rem 1.1rem;
}

.link-row.tiny a {
  color: rgba(226, 255, 186, 0.55);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.link-row.tiny a:hover {
  color: var(--lime);
}

.centered {
  text-align: center;
}


/* ─── Products: side-by-side split ─── */

.stripe.products {
  background: linear-gradient(
    175deg,
    #0d0907 0%,
    #070a08 50%,
    #060905 100%
  );
  border-top: 1px solid var(--party-line);
  border-bottom: 1px solid var(--adc-line);
  box-shadow:
    inset 0 0 120px rgba(212, 142, 61, 0.06),
    inset 0 0 120px rgba(0, 232, 122, 0.04);
}

.products-heading {
  margin-bottom: clamp(0.6rem, 1.8vw, 1.1rem);
}

.products-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.products-divider {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.07) 20%,
    rgba(255, 255, 255, 0.07) 80%,
    transparent
  );
  align-self: stretch;
}

@media (max-width: 860px) {
  .products-split {
    grid-template-columns: 1fr;
    gap: 3rem 0;
  }
  .products-divider {
    display: none;
  }
  .stripe.products .product-col {
    width: 100%;
    min-width: 0;
  }
}

.product-col-inner {
  padding: clamp(0.35rem, 1.5vw, 0.75rem) 0 clamp(1rem, 3vw, 1.5rem);
}

/* Product col header: icon + category / title / tagline (aligned column) */
.product-col-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.product-col-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.product-col-copy .eyebrow {
  margin-bottom: 0;
  line-height: 1.35;
}

.product-col-copy .product-title {
  line-height: 1.12;
}

.product-screenshots {
  margin: 0 0 1.15rem;
}

.screenshots-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 230, 220, 0.5);
  margin: 0 0 0.55rem;
}

.product-col--adc .screenshots-label {
  color: rgba(180, 255, 215, 0.45);
}

.product-col-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(212, 142, 61, 0.25);
}

.product-col-icon--adc {
  box-shadow: 0 8px 24px rgba(0, 232, 122, 0.2);
  border-radius: 14px;
}

.product-col--party .product-title,
.product-col--adc .product-title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.product-col--party .product-col-copy .product-tagline,
.product-col--adc .product-col-copy .product-tagline {
  line-height: 1.35;
}

/* Store links (replaces CTA buttons) */
.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-link {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 142, 61, 0.45);
  padding-bottom: 0.1em;
}

.store-link:hover,
.store-link:focus-visible {
  color: #f0b070;
  border-bottom-color: rgba(240, 176, 112, 0.7);
}

.store-links--adc .store-link {
  color: var(--adc-mint);
  border-bottom-color: rgba(0, 232, 122, 0.4);
}

.store-links--adc .store-link:hover,
.store-links--adc .store-link:focus-visible {
  color: #7cffb8;
  border-bottom-color: rgba(124, 255, 184, 0.65);
}

.store-link--soon {
  color: var(--muted);
  border-bottom: none;
  cursor: default;
  text-transform: none;
  letter-spacing: 0.04em;
}

.product-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ember);
  font-style: italic;
}

.adc-tagline {
  color: var(--adc-mint);
}

.adc-tagline em {
  color: var(--adc-mint);
}

/* Phone showcase — product screenshots */
.phone-showcase {
  position: relative;
  margin: 0;
}

.phone-frame {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
}

/* Clickable App Store badge (left badge in promo art) */
.store-badge-hit {
  position: absolute;
  z-index: 2;
  bottom: 1.1%;
  left: 19%;
  width: 28%;
  height: 8.5%;
  border-radius: 6px;
  text-decoration: none;
}

.store-badge-hit:hover {
  background: rgba(255, 255, 255, 0.06);
}

.store-badge-hit:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.phone-showcase--party .phone-party-screens {
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(212, 142, 61, 0.18);
}

.phone-party-screens {
  position: relative;
  width: 100%;
}

/* ADC screenshots strip */
.phone-showcase--adc {
  height: auto;
}

.phone-adc-screens {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 232, 122, 0.15);
}

.phone-adc-screens img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

/* Terms & Conditions (terms.htm) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-doc-stripe {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.legal-doc-inner .prose:last-of-type {
  margin-bottom: 0;
}

.legal-doc-scope {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 18, 16, 0.65);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.legal-doc-scope strong {
  color: var(--text);
}

.legal-doc-note {
  font-size: 0.96rem !important;
  color: var(--muted);
}

.legal-effective {
  margin: 1.25rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.legal-section {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.legal-section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.legal-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.legal-doc-inner .legal-section .legal-section-title {
  margin-top: 0;
}

.legal-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.legal-list li + li {
  margin-top: 0.4rem;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
  opacity: 0.92;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

/* Bug report form (reportbug.htm) */
.bug-form-card {
  padding: clamp(1.35rem, 4vw, 2rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 18, 16, 0.92) 0%, rgba(8, 10, 9, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bug-form-lead {
  margin: 0 0 1.25rem;
}

.bug-form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 90, 90, 0.45);
  background: rgba(80, 20, 20, 0.35);
  color: #ffb4b4;
  font-size: 0.92rem;
}

/* Thank-you page (thankyou.htm) */
.thanks-card-actions {
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.bug-form {
  position: relative;
}

.form-panel {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.bug-select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%),
    linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 0.15rem), calc(100% - 0.75rem) calc(50% - 0.15rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.bug-field {
  margin-bottom: 1.1rem;
}

.bug-field-verify {
  margin-bottom: 1.35rem;
}

.bug-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.45rem;
}

.bug-label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-size: 0.85rem;
}

.bug-input,
.bug-textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 255, 60, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.45;
}

.bug-input::placeholder,
.bug-textarea::placeholder {
  color: rgba(147, 168, 150, 0.65);
}

.bug-input:focus-visible,
.bug-textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
  border-color: rgba(200, 255, 60, 0.35);
}

.bug-input-narrow {
  max-width: 8rem;
}

.bug-textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.bug-honeypot,
.bug-gotcha {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bug-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.bug-math-num {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
}

.btn-bug-submit {
  margin-top: 0.25rem;
  width: 100%;
  max-width: 22rem;
  cursor: pointer;
  border: none;
  background: var(--lime);
  color: #050505;
  box-shadow: 0 10px 28px rgba(200, 255, 60, 0.18);
}

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

.turnstile-wrap {
  min-height: 65px;
}

.btn-bug-submit:hover,
.btn-bug-submit:focus-visible {
  transform: translateY(-1px);
}

@media (min-width: 480px) {
  .btn-bug-submit {
    width: auto;
  }
}

