@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --color-background: #0a0a0a;
  --color-foreground: #ffffff;
  --color-card: #161616;
  --color-card-foreground: #ffffff;
  --color-muted: #1f1f1f;
  --color-muted-foreground: #c9b896;
  --color-border: #2a2a2a;
  --color-accent: #e2231a;
  /* Small red text (links, taglines): readable on the dark background. */
  --color-accent-text: #f2554d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

/* ---- Soloffort environment ----------------------------------------------
   The same world as the app (see AppEnvironment.tsx), done in CSS only and
   kept still: these pages are for reading. A huge dim S framing the top
   right, red ambient light, a faint grid and a vignette. Hidden in print. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: url('/brand/soloffort-emblem-720.webp') center / contain no-repeat;
  width: min(120vh, 150vw);
  height: min(120vh, 150vw);
  inset: auto;
  top: -32vh;
  right: -38vw;
  opacity: 0.16;
  filter: blur(1.5px) saturate(0.9);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 70%);
}

body::after {
  background:
    radial-gradient(ellipse 90% 80% at 50% 40%, transparent 55%, rgb(0 0 0 / 0.55) 100%),
    radial-gradient(ellipse 55% 45% at 75% 15%, rgb(226 35 26 / 0.14), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 85%, rgb(226 35 26 / 0.07), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 56px 56px;
}

@media (min-width: 1024px) {
  body::before {
    top: -22vh;
    right: -18vw;
    opacity: 0.12;
  }
}

/* ---- Surface: the panel the page content sits on (matches AppSurface). --- */
.wrap {
  position: relative;
  max-width: 42rem;
  margin: 0.75rem;
  padding: 2rem 1.25rem 2.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(22 22 22 / 0.94), rgb(14 14 14 / 0.94));
  box-shadow:
    0 50px 120px -40px rgb(0 0 0 / 0.95),
    0 0 0 1px rgb(255 255 255 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
}

/* Metallic top edge and red rim light. */
.wrap::before,
.wrap::after {
  content: '';
  position: absolute;
  height: 1px;
  pointer-events: none;
}
.wrap::before {
  top: 0;
  left: 2rem;
  right: 2rem;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.45), transparent);
}
.wrap::after {
  bottom: -1px;
  left: 18%;
  right: 18%;
  background: linear-gradient(90deg, transparent, rgb(226 35 26 / 0.7), transparent);
  box-shadow: 0 6px 24px 2px rgb(226 35 26 / 0.18);
}

@media (min-width: 640px) {
  .wrap {
    margin: 2rem auto 3rem;
    padding: 2.75rem 2.75rem 3rem;
  }
}

a {
  color: var(--color-accent-text);
}

/* "Back to Soloffort" as a brand chip: small emblem, then the link text. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.back-link::before {
  content: '';
  width: 1.75rem;
  height: 1.75rem;
  background: url('/brand/soloffort-emblem-400.webp') center / 140% no-repeat;
  border-radius: 999px;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-foreground);
  border-color: rgb(226 35 26 / 0.6);
  outline: none;
}

h1 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.35rem;
}

@media (min-width: 640px) {
  h1 {
    font-size: 2.75rem;
  }
}

.updated {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.tagline {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-accent-text);
  margin: 0 0 2rem;
}

h2 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

p, li {
  font-size: 0.9375rem;
}

ul {
  padding-left: 1.25rem;
}

.card {
  background: linear-gradient(180deg, #1c1c1c, #141414);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-left: 2px solid var(--color-accent);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.cta-button {
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow: 0 10px 34px -8px rgb(226 35 26 / 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px -6px rgb(226 35 26 / 0.75);
  outline: none;
}

.faq-item {
  margin: 1rem 0;
}

.faq-item h3 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 0.25rem;
}

.faq-item p {
  margin: 0;
  color: var(--color-muted-foreground);
}

.legal-links {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
}

/* At least 24px tall to tap (WCAG 2.2 target size). */
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--color-muted-foreground);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--color-foreground);
}

/* ---- About page extras (body.page-about) ---------------------------------
   The one page here that gets motion: the emblem rises in and its glow
   breathes slowly. Off under reduced motion. */
.about-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.about-emblem {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto 1.25rem;
}

.about-emblem::before {
  content: '';
  position: absolute;
  inset: -14%;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(226 35 26 / 0.32) 0%, rgb(226 35 26 / 0.1) 42%, transparent 68%);
  animation: about-glow 6s ease-in-out infinite;
}

.about-emblem img {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%);
}

.page-about .tagline {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.about-rise {
  animation: about-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-about .about-cta {
  text-align: center;
  margin: 2rem 0 0.5rem;
}

/* Guide links as cards. */
.guides {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.guides a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #1c1c1c, #141414);
  color: var(--color-foreground);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.guides a::after {
  content: '\203A';
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1;
}

.guides a:hover,
.guides a:focus-visible {
  border-color: rgb(226 35 26 / 0.6);
  transform: translateY(-1px);
  outline: none;
}

@keyframes about-glow {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes about-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .about-emblem::before,
  .about-rise {
    animation: none;
  }
  .cta-button,
  .guides a {
    transition: none;
  }
}

/* Printed terms/privacy/refunds: plain paper, no environment or panel. */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  body::before,
  body::after,
  .wrap::before,
  .wrap::after,
  .back-link {
    display: none;
  }
  .wrap {
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  a,
  .legal-links a {
    color: #000;
  }
}
