/*
 * The pre-launch "Coming soon" page (index.html next to this file), in the app's look: the
 * signed-out pages' centred card on the soft magenta glow, the brand banner, Inter.
 *
 * The custom properties are the app's design tokens (packages/shared/src/styles/tokens.css),
 * copied because this page ships outside the web build: ops/test/Test-OpsKit.ps1 fails when one
 * of them drifts from that file. Light and dark follow the system setting (the page has no script,
 * so there is no theme switch). Fonts are the app's Inter weights 400, 600 and 700 (latin subset,
 * from @fontsource/inter; licence in fonts/LICENSE-Inter.txt).
 */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --space-4: 4px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-64: 64px;

  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-2xl: 16px;
  --radius-full: 999px;

  --font-sans: Inter, Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-md: 14px;
  --font-size-base: 15px;
  --font-size-lg: 16px;
  --font-size-3xl: 26px;
  --font-size-4xl: 32px;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-tighter: -0.03em;

  --size-control-md: 46px;
  --motion-duration-fast: 120ms;
  --motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);

  --color-canvas: #faf9fb;
  --color-surface: #ffffff;
  --color-surface-2: #faf9fb;
  --color-surface-hover: #f7f5f8;
  --color-border: #e6e2e8;
  --color-ink: #202029;
  --color-muted: #62616d;
  --color-accent: #ba2a92;
  --color-accent-hover: #a62080;
  --color-on-accent: #ffffff;
  --color-accent-text: #ba2a92;
  --color-accent-text-strong: #8f1f70;
  --color-soft: #f8edf5;
  --color-focus: #ba2a92;
  --color-selection: #f6cde6;
  --shadow-card-hover: 0 8px 24px #3c1a3314;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --color-canvas: #141117;
    --color-surface: #1d1922;
    --color-surface-2: #26212c;
    --color-surface-hover: #2f2935;
    --color-border: #3a3340;
    --color-ink: #f4f1f6;
    --color-muted: #b5adbb;
    --color-accent: #ba2a92;
    --color-accent-hover: #a62080;
    --color-on-accent: #ffffff;
    --color-accent-text: #f27cc9;
    --color-accent-text-strong: #f27cc9;
    --color-soft: #3a2034;
    --color-focus: #f27cc9;
    --color-selection: #5a3350;
    --shadow-card-hover: 0 8px 24px #00000066;
  }
}

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

html {
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: var(--line-height-normal);
  /* Only the loaded Inter weights; never fake bold or italics. */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-wrap: break-word;
  /* The signed-out pages' backdrop (PublicLayout): a soft magenta glow from the top. */
  background:
    radial-gradient(circle at 50% 0%, var(--color-soft), transparent 60%), var(--color-canvas);
}

::selection {
  background: var(--color-selection);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
p {
  margin: 0;
}

.page {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-16) var(--space-64);
}

.card {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-card-hover);
}

/* The brand banner (apps/web/public/assets/brand) is drawn on black: black while it loads too. */
.banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1120 / 448;
  background: #000000;
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-24) var(--space-20) var(--space-28);
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-8);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  background: var(--color-soft);
  color: var(--color-accent-text-strong);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent-text);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tighter);
  line-height: 1.2;
  text-wrap: balance;
}

.lead {
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  line-height: 1.55;
  text-wrap: pretty;
}

.members {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-4);
  padding: var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.members-heading {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.icon-tile {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-soft);
  color: var(--color-accent-text);
}

h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-snug);
}

.members p {
  color: var(--color-muted);
  font-size: var(--font-size-md);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-4);
}

/* The app's buttons (ui/Button): 46 px, 10 px corners, semibold. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--size-control-md);
  padding: var(--space-10) var(--space-16);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--motion-duration-fast) var(--motion-ease-standard),
    border-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.button svg {
  flex-shrink: 0;
}

.primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.primary:hover {
  background: var(--color-accent-hover);
}

.secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}

.secondary:hover {
  background: var(--color-surface-hover);
}

@media (min-width: 600px) {
  .page {
    padding-top: var(--space-64);
  }

  .content {
    gap: var(--space-20);
    padding: var(--space-32) var(--space-40) var(--space-40);
  }

  .members {
    padding: var(--space-20);
  }

  .button {
    padding: var(--space-10) var(--space-20);
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  .lead {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
