/*
 * The holding page's styles (docs/decisions/0037). Static, so no Tailwind: the tokens are copied
 * from app/(frontend)/globals.css, and the dark values from its [data-theme='dark'] block follow
 * the OS here, since there's no theme cookie. Keep them in step if the app's tokens change.
 */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('sora.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fraunces.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  --bg: #f7f7f8;
  --card: #ffffff;
  --line: rgb(20 16 24 / 0.1);
  --text: #141416;
  --muted: #6b6b73;
  --pink: #ff2d7b;
  --pink-ink: #c8105a;
  --gold: #8b919a;
  --neon: linear-gradient(180deg, #ff8ab3, #ff2d7b 40%, #9b1048);
  --livebar-bg: linear-gradient(90deg, #1a1a1c, #3a0a22 40%, #d01263 100%);
  --hero-glow: radial-gradient(60rem 28rem at 85% -10%, rgb(255 45 123 / 0.14), transparent 70%);
  --shadow: 0 18px 40px rgb(20 10 20 / 0.08);
  --radius: 18px;
  --max: 1180px;

  --font-sans: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --card: #1c1c20;
    --line: rgb(255 255 255 / 0.1);
    --text: #f3f3f5;
    --muted: #9a9aa3;
    --pink-ink: #ff5c99;
    --hero-glow: radial-gradient(60rem 28rem at 85% -10%, rgb(255 45 123 / 0.2), transparent 70%);
    --shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  }
}

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

html,
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  background-image: var(--hero-glow);
  background-repeat: no-repeat;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--pink-ink);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

/* Header and the wordmark (components/shell/Wordmark.tsx) */

.topbar {
  padding: 20px 0;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.wordmark-text {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.wordmark-text small {
  display: block;
  margin-top: 3px;
  padding-right: 2px;
  text-align: right;
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--pink);
}

.neon {
  display: inline-block;
  width: 7px;
  height: 18px;
  margin: 0 2px -3px;
  border-radius: 1px;
  vertical-align: -2px;
  background-image: var(--neon);
  box-shadow: 0 0 10px #ff2d7b;
}

.shield {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--gold);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgb(255 45 123 / 0.18);
}

/* Main */

main {
  flex: 1;
}

.hero {
  padding: 40px 0 48px;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 0 80px;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-ink);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  max-width: 14ch;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--pink-ink);
}

.lede {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .lede {
    font-size: 1.1875rem;
  }
}

.tagline {
  margin-top: 28px;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--livebar-bg);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9375rem;
}

.section {
  padding: 0 0 48px;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 20px;
}

.cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgb(255 45 123 / 0.12);
  color: var(--pink-ink);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.email-card {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .email-card {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 36px;
  }
}

.email-card h2 {
  margin-bottom: 12px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  position: relative;
  padding-left: 28px;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink) no-repeat center / 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.list.no li::before {
  background: var(--muted) no-repeat center / 8px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2 2 8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.list-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.list + .list-title {
  margin-top: 20px;
}

.muted {
  color: var(--muted);
}

/* Legal pages */

.doc {
  padding: 24px 0 64px;
  max-width: 72ch;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 1.375rem;
  margin: 36px 0 12px;
}

.doc p,
.doc ul {
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.notice {
  margin: 20px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: 12px;
  background: var(--card);
  font-size: 0.9375rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer .wrap {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer p + p {
  margin-top: 6px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer strong {
  color: var(--text);
}
