/* biome-ignore-all lint/style/noDescendingSpecificity: the sheet is ordered by part of the page (header, home, documents, footer), not by selector weight. */
/*
 * Casting Card website. The app's look on plain HTML: the tokens of apps/app/src/global.css and the brand kit
 * (docs/brand): a lavender-to-pink ground with two glows, frosted white panels, Plus Jakarta Sans, indigo for
 * actions, mint for the tick. Dark follows the system. No scripts.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #f4eefa;
  --foreground: #1b1530;
  --muted-foreground: #655d7e;
  --card: #ffffffa3;
  --panel: #ffffffd9;
  --popover: #ffffff;
  --secondary: #ffffff;
  --primary: #4a3aff;
  --primary-ink: #4a3aff;
  --primary-soft: #ece7ff;
  --border: #e7e0f5;
  --ring: #4a3aff;
  --glass-edge: #ffffffe6;
  --glass-shadow: #4c348c17;
  --backdrop-top: #f0eafc;
  --backdrop-middle: #f7edf7;
  --backdrop-bottom: #fce7f0;
  --backdrop-glow: #e2d9ff;
  --backdrop-glow-2: #fbe1ef;
  --success: #0c6b3e;
  --success-soft: #dcf5e7;
  --mint: #2dd48f;
  --ink: #1b1530;
  --logo-back: #b4abff;
  --logo-front: #4a3aff;
  --logo-disc: #2dd48f;
  --logo-tick: #1b1530;
  --logo-word: #1b1530;
  --radius-panel: 28px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1330;
    --foreground: #f4f0ff;
    --muted-foreground: #b6acd2;
    --card: #ffffff12;
    --panel: #241c40e6;
    --popover: #241c40;
    --secondary: #ffffff17;
    --primary: #6655ff;
    --primary-ink: #b3a8ff;
    --primary-soft: #6655ff38;
    --border: #ffffff21;
    --ring: #b3a8ff;
    --glass-edge: #ffffff21;
    --glass-shadow: #00000040;
    --backdrop-top: #14102a;
    --backdrop-middle: #1a1330;
    --backdrop-bottom: #221329;
    --backdrop-glow: #6e5aff61;
    --backdrop-glow-2: #dc5aa038;
    --success: #7be0ae;
    --success-soft: #2dbe7a2e;
    --logo-back: #8f84ff;
    --logo-front: #ffffff;
    --logo-word: #ffffff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--background);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--foreground);
  /* The app's backdrop: a wash top to bottom, a glow top left and one on the right. */
  background:
    radial-gradient(48rem 36rem at -8% -6%, var(--backdrop-glow), transparent 62%),
    radial-gradient(40rem 34rem at 108% 22%, var(--backdrop-glow-2), transparent 62%),
    linear-gradient(180deg, var(--backdrop-top), var(--backdrop-middle) 45%, var(--backdrop-bottom));
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 10px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon.inline {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: block;
  border-radius: 12px;
}

.logo svg {
  display: block;
  height: 36px;
  width: auto;
}

/* 36 px high is 125 px wide: the horizontal logo's minimum is 120 px (docs/brand). */

.logo-back {
  fill: var(--logo-back);
}
.logo-front {
  fill: var(--logo-front);
}
.logo-disc {
  fill: var(--logo-disc);
}
.logo-tick {
  fill: var(--logo-tick);
}
.logo-word {
  fill: var(--logo-word);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--glass-shadow);
}

.pill.quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.pill:hover,
.pill[aria-current="page"] {
  border-color: var(--primary-ink);
}

.pill.quiet[aria-current="page"] {
  color: var(--primary-ink);
}

/* ── Surfaces ───────────────────────────────────────────────────────────── */

.glass {
  background: var(--card);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  box-shadow: 0 10px 30px var(--glass-shadow);
  /* No backdrop blur: over a smooth ground it changes nothing visible and costs every scroll frame. */
}

.disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  flex: none;
}

.disc .icon {
  width: 22px;
  height: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent);
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--glass-shadow);
}

.button.primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px #4a3aff47;
}

.button.light {
  background: #fff;
  border-color: transparent;
  color: #2a1f8f;
  box-shadow: none;
}

.button:hover {
  filter: brightness(1.06);
}

/* ── Home: hero ─────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 24px 0 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(36px, 4.2vw + 18px, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* The fanned deck from the logo: a lavender back card, her card in front, the mint tick on its corner. */
.deck {
  position: relative;
  width: min(100% - 28px, 390px);
  margin: 8px auto 20px;
}

/* The back card sits behind her card; the front card sets the deck's height. */
.deck-back {
  position: absolute;
  inset: 3% 18% -1% -5%;
  border-radius: var(--radius-panel);
  background: linear-gradient(
    155deg,
    var(--logo-back),
    color-mix(in srgb, var(--logo-back) 55%, var(--backdrop-glow-2))
  );
  transform: rotate(-9deg);
  box-shadow: 0 24px 48px var(--glass-shadow);
}

.deck-front {
  position: relative;
  margin-left: 8%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px 22px;
  transform: rotate(3deg);
  /* Solid, like the app's popovers: nothing blurs the back card under it. */
  background: var(--popover);
}

.deck-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.deck-title {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.deck dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.deck dl > div {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.deck dt {
  font-size: 12px;
  color: var(--muted-foreground);
}

.deck dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.deck .tick {
  width: 18px;
  height: 18px;
  color: var(--success);
  stroke-width: 2.6;
}

.deck-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.deck-disc {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 10px 24px #2dd48f55;
}

.deck-disc svg {
  width: 34px;
  height: 34px;
}

/* ── Home: sections ─────────────────────────────────────────────────────── */

.section {
  padding: 28px 0;
}

.section > h2 {
  font-size: clamp(26px, 1.6vw + 18px, 36px);
  margin-bottom: 20px;
}

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

.steps li {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.steps h3,
.feature h3 {
  font-size: 20px;
}

.steps p,
.feature p {
  color: var(--muted-foreground);
}

.features {
  display: grid;
  gap: 14px;
}

.feature {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature .disc {
  margin-bottom: 4px;
}

.privacy {
  padding: 26px 22px;
  display: grid;
  gap: 22px;
}

.privacy h2 {
  font-size: clamp(26px, 1.6vw + 18px, 36px);
  margin: 14px 0 10px;
}

.privacy p + p {
  margin-top: 12px;
}

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

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--secondary);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
}

.checks .icon {
  color: var(--primary-ink);
  margin-top: 1px;
}

.checks a {
  font-weight: 600;
}

.cta {
  padding: 32px 24px;
  border-radius: var(--radius-panel);
  color: #fff;
  background:
    radial-gradient(30rem 20rem at 100% 0%, #dc5aa066, transparent 60%),
    linear-gradient(135deg, #4a3aff, #2a1f8f);
  box-shadow: 0 18px 40px #4a3aff40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta h2 {
  font-size: clamp(26px, 1.6vw + 18px, 36px);
}

.cta p {
  color: #e6e1ff;
  max-width: 36em;
}

.cta .button {
  margin-top: 6px;
}

/* ── Documents: privacy, terms, help, account deletion ─────────────────── */

.doc {
  max-width: 780px;
  margin: 8px auto 40px;
  padding: 28px 22px 36px;
  background: var(--panel);
}

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.doc h1 {
  font-size: clamp(32px, 2.4vw + 20px, 46px);
}

.doc .lead {
  font-size: 18px;
}

.updated {
  font-size: 14px;
  color: var(--muted-foreground);
}

.doc section {
  scroll-margin-top: 16px;
  padding-top: 28px;
}

.doc section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.doc .n {
  color: var(--primary-ink);
}

.doc p + p,
.doc ul + p,
.doc ol + p,
.doc p + ul {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--primary-ink);
}

.doc ol.numbered {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.doc ol.numbered li {
  counter-increment: step;
  position: relative;
  min-height: 30px;
  padding-left: 44px;
}

.doc ol.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.toc {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--primary-soft);
}

.toc h2 {
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 15em;
  column-gap: 28px;
  font-size: 15px;
}

.toc li {
  break-inside: avoid;
}

.toc li + li {
  margin-top: 4px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.contact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--primary-soft);
}

.contact p + p {
  margin-top: 4px;
}

.contact .disc {
  background: var(--secondary);
}

.contact-title {
  font-weight: 800;
  font-size: 18px;
}

.contact a {
  font-weight: 600;
  font-size: 18px;
}

.muted {
  color: var(--muted-foreground);
  font-size: 15px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  border-radius: 18px;
  background: var(--secondary);
  border: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .chevron {
  color: var(--primary-ink);
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}

.faq details[open] .chevron {
  transform: rotate(-90deg);
}

.faq details > div {
  padding: 0 18px 16px;
  color: var(--muted-foreground);
}

.not-found hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.not-found h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.not-found .button {
  margin-top: 16px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.site-footer h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-footer a {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-ink);
  text-decoration: underline;
}

.site-footer .footer-brand a,
.site-footer address a {
  color: var(--primary-ink);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--muted-foreground);
  max-width: 26em;
}

address {
  font-style: normal;
  line-height: 1.7;
}

.legal {
  color: var(--muted-foreground);
  font-size: 14px;
}

/* ── Wider screens ──────────────────────────────────────────────────────── */

/* Phones: the hero's two buttons, one per line, full width. */
@media (max-width: 719px) {
  .actions {
    width: 100%;
  }

  .actions .button {
    flex: 1 1 100%;
  }
}

@media (min-width: 720px) {
  .steps,
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .doc {
    padding: 44px 48px 52px;
  }

  .privacy {
    padding: 36px;
  }

  .cta {
    padding: 44px;
  }

  .site-footer {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    padding: 48px 0 72px;
  }

  .privacy {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
  }
}
