/*
 * The product site's only stylesheet. Colours are the app's own tokens (client/src/styles.css), so the
 * site and the planner it links to look like one product: dark by default, light for a light system.
 * There is no theme switch, so no script: the site's Content-Security-Policy allows none.
 */
:root {
  --bg: #12141a;
  --bg-raised: #1a1d26;
  --surface: #21252f;
  --border: #303646;
  --text: #e7eaf0;
  --text-muted: #98a1b3;
  --accent: #6d8fff;
  --accent-strong: #3b5bdb;
  --art: #f472b6;
  --code: #6d8fff;
  --design: #34d399;
  --audio: #fbbf24;
  --shadow: 0 6px 24px rgb(0 0 0 / 40%);
  --radius: 10px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f4f7;
    --bg-raised: #fafbfc;
    --surface: #ffffff;
    --border: #d8dce4;
    --text: #1a1d26;
    --text-muted: #525b6e;
    --accent: #3b5bdb;
    --accent-strong: #3b5bdb;
    --art: #db2777;
    --code: #3b5bdb;
    --design: #047857;
    --audio: #b45309;
    --shadow: 0 6px 24px rgb(16 19 26 / 14%);
    color-scheme: light;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    "Segoe UI",
    Roboto,
    sans-serif;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.button {
  display: inline-block;
  padding: 0.7em 1.3em;
  border-radius: var(--radius);
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-quiet:hover {
  background: var(--surface);
  filter: none;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav a:not(.button) {
  color: var(--text-muted);
  text-decoration: none;
}

.top-nav a:not(.button):hover {
  color: var(--text);
}

.top-nav .button {
  padding: 0.45em 1em;
}

/* Hero */

.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

.fine {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* The drawn board */

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.col-title {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.task {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.85rem;
  line-height: 1.35;
}

.task-lift {
  transform: rotate(-2deg) translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.task-done {
  color: var(--text-muted);
  text-decoration: line-through;
}

.tag {
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 8px;
  border-radius: 2px;
}

.tag-art {
  background: var(--art);
}
.tag-code {
  background: var(--code);
}
.tag-design {
  background: var(--design);
}
.tag-audio {
  background: var(--audio);
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 40em;
  margin: 0 0 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.cta {
  text-align: center;
}

/* Footer */

.foot {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot a {
  color: var(--text-muted);
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding: 56px 16px 80px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 1.6em;
}

.todo {
  padding: 12px 16px;
  border: 1px dashed var(--audio);
  border-radius: var(--radius);
  color: var(--audio);
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .top-nav {
    gap: 16px;
  }

  .top-nav a:not(.button) {
    display: none;
  }

  .board {
    padding: 10px;
    gap: 8px;
  }

  .task {
    padding: 8px;
    font-size: 0.75rem;
  }
}
