/* The public page. Plain CSS, no build: the colours and type are the app's
   (src/styles/global.css), copied, since the page shares nothing else with it. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/hanken-grotesk-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: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/hanken-grotesk-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;
}

:root {
  --bg: #101216;
  --bg-glow: #14171d;
  --surface: #181b21;
  --line: #262b34;
  --line-soft: #20242c;
  --ink: #eef1f5;
  --ink-2: #b9c0cc;
  --ink-3: #949cab;
  --ink-faint: #7c8593;
  --accent: #f2822f;
  --accent-soft: #f59b57;
  --accent-tint: #2a1d12;
  --ok: #38c877;
  --bad: #ff6b6b;
  --p1: #46b46a; /* Idea */
  --p2: #3d86e0; /* Arrangement */
  --p5: #2ec3cf; /* Detail */
  --p3: #f2822f; /* Mix & Master */
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.375rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 8px 24px -10px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
}
@media (min-width: 1024px) {
  html {
    font-size: 112.5%;
  }
}
body {
  margin: 0;
  color: var(--ink-2);
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-glow), var(--bg) 60%) no-repeat var(--bg);
  font-family: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  color: var(--ink);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
[hidden] {
  display: none !important;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
}

/* ---- header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  max-width: 64rem;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}
.logo small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-3);
}
.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- buttons, chips ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.14s var(--ease-out),
    background 0.14s ease,
    color 0.14s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
.pills input:focus-visible + span,
input[type='email']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  color: #14100b;
  background: var(--accent);
  border-color: transparent;
}
.btn-primary:hover {
  background: var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
}
.btn-ghost:hover {
  color: var(--ink);
}
.btn-big {
  padding: 0.8rem 1.25rem;
  font-size: 0.9375rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* ---- hero ---- */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem;
  animation: rise 0.4s var(--ease-out) both;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 5rem;
  }
}
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 18rem;
    gap: 3.5rem;
  }
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
}
h1 {
  margin-top: 1.25rem;
  font-size: 2.75rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 640px) {
  h1 {
    font-size: 4rem;
  }
}
.lead {
  margin-top: 1.25rem;
  max-width: 54ch;
  font-size: 1.125rem;
  line-height: 1.6;
}
.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.small {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
/* The home screen, with a block timer that really ticks laid over its foot:
   the timer is the app's heartbeat, so it's the one thing on the page that moves
   on its own. */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 17rem);
  padding-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .hero-visual {
    width: 100%;
  }
}
.phone {
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 80px -30px color-mix(in oklab, var(--p5) 40%, transparent),
    var(--shadow-lift);
}
.timer {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--p5) 45%, var(--line));
  background: var(--surface);
  box-shadow:
    0 0 0 6px color-mix(in oklab, var(--bg) 70%, transparent),
    0 18px 40px -16px color-mix(in oklab, var(--p5) 55%, transparent);
}
.ring {
  --p: 0.38;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: conic-gradient(var(--p5) calc(var(--p) * 1turn), color-mix(in oklab, var(--p5) 16%, var(--line)) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.timer-text {
  display: grid;
  line-height: 1.2;
}
.timer-time {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.timer-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---- sections ---- */
section {
  padding-top: 6rem;
  scroll-margin-top: 4rem;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 640px) {
  h2 {
    font-size: 2.125rem;
  }
}
.intro {
  margin-top: 0.75rem;
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ---- two things in one ----
   The tracker wears the timer's cyan, the guides the orange of a lit key, so each
   half is recognisable from its signpost under the hero to its own header. */
.part-tracker,
.half-tracker {
  --tone: var(--p5);
}
.part-guides,
.half-guides {
  --tone: var(--accent);
}
.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--tone);
}
.halves {
  margin-top: 4rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .halves {
    grid-template-columns: 1fr 1fr;
  }
}
.half {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in oklab, var(--tone) 35%, var(--line));
  background: color-mix(in oklab, var(--tone) 7%, var(--surface));
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}
.half:hover {
  border-color: color-mix(in oklab, var(--tone) 65%, var(--line));
  background: color-mix(in oklab, var(--tone) 12%, var(--surface));
}
.half:focus-visible {
  outline: 2px solid var(--tone);
  outline-offset: 2px;
}
.half .icon {
  margin-top: 0.125rem;
}
.half b {
  display: block;
  font-size: 1.125rem;
  color: var(--ink);
}
.half b + span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.part-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 2px solid color-mix(in oklab, var(--tone) 55%, transparent);
}
.part-head .icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.375rem;
}
.part-head h2 {
  font-size: 2.25rem;
}
@media (min-width: 640px) {
  .part-head h2 {
    font-size: 2.75rem;
  }
}
.sub {
  margin-top: 5rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.sub + .intro,
.sub + .guides {
  margin-top: 0.75rem;
}

/* ---- the keyboard to try ---- */
.try {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow:
    0 30px 70px -40px color-mix(in oklab, var(--accent) 45%, transparent),
    var(--shadow-lift);
}
@media (min-width: 640px) {
  .try {
    padding: 1.5rem;
  }
}
.try-head b {
  display: block;
  font-size: 1.125rem;
  color: var(--ink);
}
.try-head span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.try-chords {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.try-chords button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.12s var(--ease-out);
}
.try-chords button small {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.try-chords button:hover {
  border-color: var(--ink-faint);
}
.try-chords button:active {
  transform: scale(0.96);
}
.try-chords button.on {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  background: var(--accent-tint);
  color: var(--accent-soft);
}
.try-chords .try-loop {
  color: #14100b;
  background: var(--accent);
  border-color: transparent;
}
.try-chords .try-loop:hover {
  background: var(--accent-soft);
}
.try-chords button:focus-visible,
.kb button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.kb {
  position: relative;
  display: flex;
  margin-top: 1.25rem;
  height: 7.5rem;
  user-select: none;
  touch-action: manipulation;
}
@media (min-width: 640px) {
  .kb {
    height: 9rem;
  }
}
.kb button {
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.kb .white {
  position: relative;
  flex: 1;
  margin-right: 2px;
  border-radius: 0 0 6px 6px;
  background: #e7eaf0;
  transition: background 0.11s ease;
}
.kb .black {
  position: absolute;
  top: 0;
  z-index: 1;
  width: calc(100% / 15 * 0.62);
  height: 62%;
  border-radius: 0 0 4px 4px;
  background: #1b1e25;
  border: 1px solid #101216;
  transition: background 0.11s ease;
}
/* Notes of the scale carry a dot, the home note an orange one; a sounding note lights up. */
.kb .in::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #8a92a0;
}
.kb .black.in::after {
  background: #8a92a0;
}
.kb .home::after {
  background: var(--accent);
}
.kb .white.lit {
  background: var(--accent);
}
.kb .black.lit {
  background: var(--accent-soft);
}
.kb .lit::after,
.kb .black.lit::after {
  background: #14100b;
}
.try figcaption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---- the four stages ---- */
.strip {
  display: none;
  margin-top: 2.5rem;
}
.ruler,
.clips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
}
.ruler {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.clips {
  position: relative;
  margin-top: 0.375rem;
}
.clip {
  width: 100%;
  height: 2.625rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in oklab, currentColor 45%, var(--line));
  background: color-mix(in oklab, currentColor 16%, var(--surface));
  fill: currentColor;
}
.clip polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.7;
}
.playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: calc(100% - 2px);
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
}
.strip.seen .playhead {
  opacity: 1;
  animation: cross 4.5s linear 0.3s both;
}
@keyframes cross {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 2px);
  }
}
.stages {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.stages li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.stages .clip {
  flex: none;
  width: 6rem;
}
.stages b {
  font-size: 0.9375rem;
  color: var(--ink);
}
.stages b span {
  font-weight: 500;
  color: var(--ink-3);
}
.stages p {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .strip {
    display: block;
  }
  .stages {
    margin-top: 1rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
  }
  .stages li {
    display: block;
  }
  .stages li > .clip {
    display: none;
  }
}

.after {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- the work loop ---- */
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 4.5rem;
}
.step {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 768px) {
  .step {
    grid-template-columns: 1fr 15rem;
    gap: 3.5rem;
  }
  .step:nth-child(even) {
    grid-template-columns: 15rem 1fr;
  }
  .step:nth-child(even) .step-shot {
    order: -1;
  }
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line));
}
/* Inside a half, the numbers take its colour. */
.part .step-n {
  color: var(--tone);
  background: color-mix(in oklab, var(--tone) 14%, var(--bg));
  border-color: color-mix(in oklab, var(--tone) 35%, var(--line));
}
.step h3 {
  margin-top: 1rem;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.step p {
  margin-top: 0.625rem;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.step-shot {
  justify-self: center;
  width: min(100%, 15rem);
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

/* ---- guides ---- */
.guides {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem 2rem;
}
@media (min-width: 640px) {
  .guides {
    grid-template-columns: 1fr 1fr;
  }
}
.guides div {
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}
.guides dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
.guides dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- early access ---- */
.card {
  margin-top: 2rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .card {
    padding: 1.5rem;
  }
}
.card label,
.card legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.card legend span {
  font-weight: 400;
  color: var(--ink-faint);
}
input[type='email'] {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
input[type='email']::placeholder {
  color: var(--ink-faint);
}
fieldset {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}
.pills {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.pills label {
  position: relative;
}
.pills input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.pills span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.pills input:checked + span {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  background: var(--accent-tint);
  color: var(--accent-soft);
}
.card .btn-primary {
  margin-top: 1.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .card .btn-primary {
    width: auto;
  }
}
.ea-error {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--bad);
}
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fine {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-faint);
}
.thanks {
  border-color: color-mix(in oklab, var(--ok) 40%, var(--line));
  animation: rise 0.3s var(--ease-out) both;
}
.thanks b {
  display: block;
  font-size: 1.25rem;
  color: var(--ink);
}
.thanks p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---- the privacy page ---- */
.doc {
  max-width: 46rem;
  padding-top: 3rem;
}
.doc h1 {
  font-size: 2.25rem;
}
.doc h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}
.doc p {
  margin-top: 0.75rem;
  max-width: 62ch;
}
.doc ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}
.doc li {
  margin-top: 0.5rem;
  max-width: 62ch;
  line-height: 1.6;
}
.doc li::marker {
  color: var(--ink-faint);
}
.doc b {
  font-weight: 600;
  color: var(--ink);
}
.doc a {
  color: var(--accent-soft);
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}
.doc code {
  padding: 0.05em 0.35em;
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875em;
}

/* ---- footer ---- */
footer {
  margin-top: 6rem;
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--line-soft);
}
footer b {
  font-size: 1rem;
  color: var(--ink);
}
footer b span {
  color: var(--accent);
}
footer p {
  margin-top: 0.5rem;
  max-width: 54ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}
footer a {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
