/*
 * Generated by `pnpm --filter @cliffy/design tokens` from packages/design/tokens.json, the
 * export of the Figma file's variables and styles (ADR-0030): don't edit it. A value changes in
 * Figma first, then is exported and generated again (docs/runbooks/design.md).
 * From "Cliffy · Design", read in its modes: Look, Dark; Scale, Default.
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-400.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-700.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/manrope-800.ttf") format("truetype");
}

:root {
  --color-accent-default: #ff4f7a;
  --color-accent-on: #0e0c0b;
  --color-accent-soft: #ff4f7a29;
  --color-bg-base: #0e0c0b;
  --color-bg-raised: #26221f;
  --color-bg-surface: #1b1816;
  --color-border-subtle: #3a3430;
  --color-gold-default: #f2c35b;
  --color-gold-faint: #f2c35b14;
  --color-gold-on: #1d1407;
  --color-gold-soft: #f2c35b24;
  --color-status-danger: #ff8a80;
  --color-status-success: #5fd39a;
  --color-text-primary: #f8f4ef;
  --color-text-secondary: #bdb5ad;
  --color-text-tertiary: #978f87;
  --color-track-buffered: #ffffff66;
  --color-track-rest: #ffffff3d;
  --color-scrim-control: #00000073;
  --color-scrim-strong: #0000009e;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --radius-sm: 8px;
  --size-icon: 24px;
  --size-tap: 48px;
  --font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-body-weight: 400;
  --text-body-size: 16px;
  --text-body-line: 24px;
  --text-body-tracking: 0px;
  --text-body-strong-weight: 700;
  --text-body-strong-size: 16px;
  --text-body-strong-line: 24px;
  --text-body-strong-tracking: 0px;
  --text-display-weight: 800;
  --text-display-size: 40px;
  --text-display-line: 44px;
  --text-display-tracking: -0.5px;
  --text-heading-weight: 700;
  --text-heading-size: 22px;
  --text-heading-line: 28px;
  --text-heading-tracking: 0px;
  --text-secondary-weight: 400;
  --text-secondary-size: 14px;
  --text-secondary-line: 20px;
  --text-secondary-tracking: 0px;
  --text-secondary-strong-weight: 700;
  --text-secondary-strong-size: 14px;
  --text-secondary-strong-line: 20px;
  --text-secondary-strong-tracking: 0.1px;
  --text-tag-weight: 700;
  --text-tag-size: 12px;
  --text-tag-line: 16px;
  --text-tag-tracking: 0.2px;
  --text-title-weight: 800;
  --text-title-size: 30px;
  --text-title-line: 36px;
  --text-title-tracking: -0.2px;
  --gradient-accent-action: linear-gradient(90deg, #ff2d87 0%, #ff8a3d 100%);
  --gradient-accent-sweep: linear-gradient(90deg, #ff4f7a00 0%, #ff4f7a 50%, #ff4f7a00 100%);
}

/*
 * The site's own rules (M5's PR 2), after tokens.css in the one stylesheet the build writes. Every
 * colour, font, type size and space is a token (site.test.ts holds it); layout widths are the
 * frames' (W1–W3, drawn at 360 and 1440), which no token names. Wide layouts from 768 px.
 */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-weight: var(--text-body-weight);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  /* A word too long for its line, such as an address at 200% text, breaks rather than widening the
     page; headings hyphenate first (below). */
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent-default);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* A word too long for its line breaks with a hyphen (words.md, "Every page"); a word of under 8
   letters wraps whole, so "drama" never becomes "dra-ma". */
h1,
h2,
h3 {
  margin: 0;
  hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
  overflow-wrap: break-word;
}

p,
ul {
  margin: 0;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: calc(-1 * var(--space-12) * 2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-raised);
  color: var(--color-text-primary);
  border: 2px solid var(--color-accent-default);
  border-radius: var(--radius-sm);
  z-index: 1;
}

/* Its border is its focus ring, as the header's frame draws it. */
.skip:focus {
  top: var(--space-2);
  outline: none;
}

.bar {
  max-width: 1152px;
  margin: 0 auto;
  padding-inline: var(--space-4);
}

/* The header: the wordmark, which links home. */

/* The frames' header is 56 px tall, its line inside that height: the bar takes the 55 above it. */
.site-header {
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header .bar {
  display: flex;
  align-items: center;
  min-height: 55px;
}

.home {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-tap);
}

/* The landing page (W1). */

.hero {
  display: grid;
  gap: var(--space-4);
  max-width: 1152px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.hero-text {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.hero h1 {
  font-weight: var(--text-title-weight);
  font-size: var(--text-title-size);
  line-height: var(--text-title-line);
  letter-spacing: var(--text-title-tracking);
}

.lede {
  color: var(--color-text-secondary);
}

.play-badge {
  display: inline-block;
}

.play-badge img {
  width: 161px;
  height: 48px;
}

/* The landing picture, whole at 3:2, with the app's AI tag (the Tag set's AI compact) on it. */
.hero-picture {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-picture img {
  width: 100%;
}

.ai-tag {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: calc(var(--space-1) / 4) var(--space-1);
  color: var(--color-text-primary);
  font-weight: var(--text-tag-weight);
  font-size: var(--text-tag-size);
  line-height: var(--text-tag-line);
  letter-spacing: var(--text-tag-tracking);
  white-space: nowrap;
  text-shadow:
    0 0 1px var(--color-scrim-strong),
    0 0 1px var(--color-scrim-strong),
    0 0 1px var(--color-scrim-strong),
    0 1px 3px var(--color-scrim-strong);
}

.features {
  display: grid;
  gap: var(--space-6);
  max-width: 1152px;
  margin: 0 auto;
  padding-inline: var(--space-4);
}

.feature {
  display: grid;
  gap: var(--space-2);
}

.feature h2 {
  font-weight: var(--text-heading-weight);
  font-size: var(--text-heading-size);
  line-height: var(--text-heading-line);
  letter-spacing: var(--text-heading-tracking);
}

.feature p {
  color: var(--color-text-secondary);
}

.ai-line {
  max-width: 1152px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-secondary-size);
  line-height: var(--text-secondary-line);
}

/* The privacy policy and the terms (W2, W3). */

.legal {
  display: grid;
  gap: var(--space-6);
  max-width: calc(720px + 2 * var(--space-4));
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-12);
}

.legal-head {
  display: grid;
  gap: var(--space-2);
}

.legal h1 {
  font-weight: var(--text-title-weight);
  font-size: var(--text-title-size);
  line-height: var(--text-title-line);
  letter-spacing: var(--text-title-tracking);
}

.updated {
  color: var(--color-text-secondary);
  font-size: var(--text-secondary-size);
  line-height: var(--text-secondary-line);
}

.legal section {
  display: grid;
  gap: var(--space-2);
}

.legal h2 {
  font-weight: var(--text-heading-weight);
  font-size: var(--text-heading-size);
  line-height: var(--text-heading-line);
  letter-spacing: var(--text-heading-tracking);
}

.legal h3 {
  font-weight: var(--text-body-strong-weight);
  font-size: var(--text-body-strong-size);
  line-height: var(--text-body-strong-line);
}

.legal ul {
  padding-left: var(--space-6);
}

.legal li + li {
  margin-top: var(--space-2);
}

.on-this-page {
  padding: var(--space-4);
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
}

.on-this-page h2 {
  font-weight: var(--text-body-strong-weight);
  font-size: var(--text-body-strong-size);
  line-height: var(--text-body-strong-line);
}

.on-this-page ul {
  list-style: none;
  padding: 0;
}

.on-this-page li + li {
  margin-top: 0;
}

.on-this-page a {
  display: block;
  padding-block: calc(var(--space-3) / 2);
}

/* The footer, on every page. */

.site-footer {
  background: var(--color-bg-surface);
}

.site-footer .bar {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6) var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-secondary-size);
  line-height: var(--text-secondary-line);
}

/* The legal pages' links, each 40 px tall: stacked on a phone, in a row on wide screens. */
.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer nav a {
  padding-block: var(--space-2);
  color: var(--color-text-primary);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

.play-legal {
  color: var(--color-text-tertiary);
}

@media (min-width: 768px) {
  .site-header .bar {
    min-height: 71px;
  }

  .hero h1,
  .legal h1 {
    font-weight: var(--text-display-weight);
    font-size: var(--text-display-size);
    line-height: var(--text-display-line);
    letter-spacing: var(--text-display-tracking);
  }

  .play-badge img {
    width: 188px;
    height: 56px;
  }

  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .ai-line {
    padding-block: var(--space-12);
  }

  /* The frames' desktop space above and below a legal page, 64 and 80 px, which no token names. */
  .legal {
    padding-block: calc(var(--space-8) * 2) calc(var(--space-8) * 2.5);
  }

  .site-footer nav {
    flex-direction: row;
    gap: var(--space-8);
  }
}

/* The hero's two columns, text and picture, 480 and 560 at the frame's 1440, 80 apart. Narrower,
   it stays one column, as W1's phone frame draws it. */
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
    align-items: center;
    gap: calc(var(--space-8) * 2.5);
    padding-block: calc(var(--space-8) * 2.5);
  }

  .hero-text {
    gap: var(--space-6);
  }
}
