/*
 * The marketing page at / (docs/design/songwarrior.pen: FxsTd desktop 1440,
 * Tj7XX mobile 390). Hand-written and standalone — the React app's Tailwind
 * build shares nothing with this file. The tokens below are copied from the
 * canvas variables; keep them in step with docs/design/foundation.md.
 *
 * Mobile-first: the single-column mobile artboard is the base, and the
 * two-column desktop layout starts at 900px. Type scales fluidly between the
 * two artboards' sizes with clamp().
 */

:root {
  --bg: #0b0912;
  --surface: #1a1523;
  --surface-2: #282034;
  --accent-surface: #372748;
  --border: #413753;
  --violet: #a16eff;
  --blue: #4cdbff;
  --green: #45d98f;
  --amber: #f5c45c;
  --red: #f0595e;
  --grad-start: #7f2fe8;
  --grad-end: #c026d3;
  --primary: #8b2fe0;
  --text: #f4f3f8;
  --text-muted: #aba6bc;
  --text-onprimary: #faf9fc;
  --radius: 10px;
  --shell: 1200px;
  --gutter: 20px;
  color-scheme: dark;
}

/* Latin only: the page is English, and the app's own build ships the rest. */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
p,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Every section shares one centred column that never touches the edge. */
.nav__inner,
.hero__inner,
.proof__inner,
.themes__inner,
.band__inner,
.footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-onprimary);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
}

.btn--gradient {
  background: linear-gradient(180deg, var(--grad-start) 0%, var(--grad-end) 100%);
  color: var(--text-onprimary);
}

.btn--light {
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
  padding: 14px 28px;
}

@media (hover: hover) {
  .btn {
    transition: filter 120ms ease;
  }

  .btn:hover {
    filter: brightness(1.08);
  }
}

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

/* --- nav ------------------------------------------------------------- */

.nav {
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
}

.nav__brand img {
  width: clamp(124px, 16vw, 150px);
  height: auto;
}

.badge {
  background: var(--accent-surface);
  color: var(--violet);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.4;
}

.nav__signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 14px;
  padding-inline: 4px;
}

.nav__cta-short {
  display: none;
}

/* --- hero ------------------------------------------------------------ */

.hero {
  padding-block: 40px 48px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 620px;
}

h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__sub {
  color: var(--text-muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__note {
  color: var(--text-muted);
  font-size: 14px;
}

/* The phone mockups are exported from the canvas at 4x and cropped to the
   device itself, so they carry no padding of their own (MIG-240). */
.device {
  width: 100%;
  max-width: 375px;
  border-radius: 28px;
}

/* --- proof ----------------------------------------------------------- */

.proof {
  background: var(--surface);
  padding-block: 56px;
}

.proof__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.proof__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  width: 100%;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.proof__body {
  color: var(--text-muted);
  font-size: clamp(16px, 1.3vw, 17px);
  line-height: 1.55;
  max-width: 520px;
}

.quote {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 520px;
}

.quote blockquote {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.quote figcaption {
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* --- themes ---------------------------------------------------------- */

.themes {
  background: var(--accent-surface);
  padding-block: 56px;
}

.themes__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.themes__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.themes__sub {
  color: var(--text-muted);
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.5;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  border-radius: 999px;
  padding: 9px 15px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  border: 1px solid;
}

.pill--violet {
  background: color-mix(in srgb, var(--violet) 14%, transparent);
  border-color: color-mix(in srgb, var(--violet) 35%, transparent);
  color: var(--violet);
}

.pill--blue {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
  color: var(--blue);
}

.pill--green {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  color: var(--green);
}

.pill--amber {
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  border-color: color-mix(in srgb, var(--amber) 35%, transparent);
  color: var(--amber);
}

.pill--red {
  background: color-mix(in srgb, var(--red) 14%, transparent);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
  color: var(--red);
}

/* --- closing band ---------------------------------------------------- */

.band {
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  padding-block: 72px;
}

.band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 900px;
}

.band h2 {
  color: var(--text-onprimary);
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
}

.band__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.3vw, 17px);
  line-height: 1.5;
  max-width: 620px;
}

/* --- footer ---------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer__inner img {
  width: 124px;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --- desktop --------------------------------------------------------- */

@media (min-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .nav {
    padding-block: 18px;
  }

  .nav__inner {
    gap: 28px;
  }

  .nav__cta-long {
    display: inline;
  }

  .hero {
    padding-block: 88px 96px;
  }

  .hero__inner,
  .proof__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
  }

  .hero__copy {
    align-items: flex-start;
    text-align: left;
    gap: 26px;
    flex: 1 1 620px;
  }

  .hero__cta {
    flex-direction: row;
    gap: 18px;
  }

  .proof {
    padding-block: 96px;
  }

  .proof__inner {
    gap: 72px;
  }

  .proof__copy {
    gap: 22px;
    flex: 1 1 600px;
  }

  .themes,
  .band {
    padding-block: 96px;
  }

  .themes__inner {
    gap: 44px;
  }

  .themes__head {
    gap: 12px;
  }

  /* The canvas lays the themes out three to a row; this width is what makes
     them wrap that way without hard-coding the rows. */
  .pills {
    gap: 14px;
    max-width: 600px;
  }

  .pill {
    padding: 11px 20px;
  }

  .band {
    padding-block: 104px;
  }

  .band__inner {
    gap: 22px;
  }

  .footer {
    padding-block: 36px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__meta {
    flex-direction: row;
    gap: 24px;
  }

  .device {
    flex: 0 0 auto;
  }
}

/* The nav CTA is "Create" on a narrow phone, "Sign Up - Free" once it fits. */
@media (max-width: 420px) {
  .nav__cta-long {
    display: none;
  }

  .nav__cta-short {
    display: inline;
  }
}
