/*
 * The getmotet.com landing page, in the "Polyphony" brand (brand/GUIDELINES.md, whose
 * reference is brand/polyphony/index.html — tokens and component rules are lifted from it).
 *
 * Every family names its fallback stack first-class: text must be readable in Iowan Old
 * Style / Palatino / Georgia and Helvetica Neue / Arial before either webfont arrives.
 */

:root {
  --parchment: #F4EFE6;
  --surface: #EAE3D6;
  --ink: #1B1A2E;
  --ink-soft: rgba(27, 26, 46, 0.66);
  --ink-mute: rgba(27, 26, 46, 0.42);
  --rule: rgba(27, 26, 46, 0.14);
  --vermilion: #D64B2A;
  --ochre: #D9A441;
  --teal: #2A7F86;
  --plum: #6B3E86;
  --voices: linear-gradient(90deg, var(--vermilion), var(--ochre), var(--teal), var(--plum));
  --voices-stepped: linear-gradient(90deg, var(--vermilion) 0 25%, var(--ochre) 25% 50%, var(--teal) 50% 75%, var(--plum) 75%);
  --nav-h: 88px;
  --gutter: clamp(20px, 5vw, 72px);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.display {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
}
.wordmark .glyph { align-self: center; display: block; }
.voice-dots { display: inline-flex; gap: 4px; }
.voice-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.voice-dots i:nth-child(1), .bar i:nth-child(1) { background: var(--vermilion); }
.voice-dots i:nth-child(2), .bar i:nth-child(2) { background: var(--ochre); }
.voice-dots i:nth-child(3), .bar i:nth-child(3) { background: var(--teal); }
.voice-dots i:nth-child(4), .bar i:nth-child(4) { background: var(--plum); }

/* ---------- Nav ---------- */
.nav {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.nav .wordmark { font-size: 30px; }
.nav-links { display: flex; gap: 36px; justify-self: center; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--voices);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }
.pill-link {
  justify-self: end;
  font-size: 14px; font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
}
.pill-link:hover { border-color: var(--ink); background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: 40px var(--gutter);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; z-index: 0;
  right: -8%; top: 10%; width: 60%; height: 80%;
  background:
    radial-gradient(closest-side, rgba(217, 164, 65, .14), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(42, 127, 134, .10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-copy { max-width: 600px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.headline {
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.02;
  text-wrap: balance;
  margin-bottom: 30px;
}
.headline em, .section-title em, .join-title em { font-style: italic; }
.subhead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.btn-text {
  font-weight: 500; font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.btn-text:hover { border-color: var(--ink); }
.hero-more { margin-top: 22px; }
.hero-meta {
  margin-top: 44px;
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-mute);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta li::before { content: ""; width: 14px; height: 1.5px; background: currentColor; opacity: .6; }

/* ---------- The waitlist form ---------- */
.waitlist { max-width: 540px; }
.waitlist .field { display: flex; gap: 10px; align-items: stretch; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 0 22px; height: 58px;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color .2s ease;
}
.waitlist input[type="email"]::placeholder { color: var(--ink-mute); }
.waitlist input[type="email"]:hover, .waitlist input[type="email"]:focus { border-color: var(--ink); }
.waitlist input[type="email"]:focus-visible { outline-offset: 2px; }
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 28px 0 22px;
  background: var(--ink);
  color: var(--parchment);
  border: 0;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 1px 0 rgba(27, 26, 46, .2), 0 12px 32px -14px rgba(27, 26, 46, .6);
}
.btn-primary::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--voices-stepped);
  opacity: .95;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(27, 26, 46, .2), 0 18px 36px -14px rgba(27, 26, 46, .7); }
.btn-primary:disabled { cursor: default; opacity: .7; transform: none; }
.btn-primary .play {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--parchment);
  position: relative; flex: none;
}
.btn-primary .play::after {
  content: ""; position: absolute; left: 9px; top: 6px;
  border-left: 7px solid var(--ink);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.waitlist .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .status {
  margin-top: 14px;
  font-family: var(--display); font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 14;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.waitlist .status:empty { display: none; }
.waitlist .fine { margin-top: 14px; font-size: 13.5px; color: var(--ink-mute); }
.waitlist[data-state="error"] .status { color: var(--vermilion); }
.waitlist[data-state="joined"] .field, .waitlist[data-state="joined"] .fine { display: none; }
.waitlist[data-state="joined"] .status {
  margin-top: 0;
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.waitlist[data-state="joined"] .status::before {
  content: ""; flex: none; width: 40px; height: 3px; border-radius: 3px;
  background: var(--voices-stepped);
}

/* ---------- Motif: a waveform score ---------- */
.motif { position: relative; z-index: 1; margin: 0; width: 100%; display: flex; flex-direction: column; }
.motif .score { width: 100%; aspect-ratio: 5 / 3.1; max-height: 440px; }
.motif svg { width: 100%; height: 100%; display: block; overflow: visible; }
.motif .voice { fill: none; stroke-width: 5; stroke-linecap: round; mix-blend-mode: multiply; }
.motif .voice.v1 { stroke: var(--vermilion); }
.motif .voice.v2 { stroke: var(--ochre); }
.motif .voice.v3 { stroke: var(--teal); }
.motif .voice.v4 { stroke: var(--plum); }
.motif .one { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.motif .label {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-mute);
}
.motif .label.ink { fill: var(--ink); opacity: .7; }
.transport {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.transport .play {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink);
  position: relative; flex: none;
  box-shadow: 0 1px 0 rgba(27, 26, 46, .2), 0 12px 32px -14px rgba(27, 26, 46, .6);
}
.transport .play::after {
  content: ""; position: absolute; left: 19px; top: 15px;
  border-left: 13px solid var(--parchment);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.scrub { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-width: 0; }
.scrub .t { font-size: 13px; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.scrub .track { position: relative; height: 6px; border-radius: 6px; background: var(--surface); }
.scrub .played { position: absolute; left: 0; top: 0; bottom: 0; width: 13.3%; border-radius: 6px; background: var(--voices); }
.scrub .knob {
  position: absolute; left: 13.3%; top: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2.5px solid var(--parchment);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(27, 26, 46, .18), 0 4px 10px -4px rgba(27, 26, 46, .5);
}
.transport .pills { display: inline-flex; gap: 8px; }
.transport .pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 999px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.transport .pill.mic { background: var(--surface); border-color: transparent; }
.transport .pill svg { display: block; }
.now-playing, .motif-caption {
  font-family: var(--display); font-style: italic; font-size: 15px;
  font-variation-settings: "SOFT" 100, "opsz" 14;
}
.now-playing { margin-top: 14px; color: var(--ink-soft); }
.motif-caption { margin-top: 22px; text-align: right; color: var(--ink-mute); }

/* ---------- Sections ---------- */
.section { padding: 96px var(--gutter); border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 64px;
}
.section-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-kicker::before { content: ""; width: 28px; height: 1px; background: var(--ink); opacity: .35; }
.section-title { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; text-wrap: balance; }
.idea .section-title { margin-bottom: 24px; }
.section-lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.section-idea {
  font-family: var(--display); font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 36;
  font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3;
  max-width: 26em; text-wrap: balance;
  margin-bottom: 20px;
}

/* how it works: three movements */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.step .n {
  font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.step .voice-rule { height: 3px; width: 44px; border-radius: 3px; background: var(--voices-stepped); margin: 4px 0 10px; }
.step h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 26px; line-height: 1.2; }
.step p { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* the idea: the name, and an episode read as prose */
.idea { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.episode-card {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px;
}
.card-label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.card-label small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.episode-card h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 26px; line-height: 1.2; margin-bottom: 16px; }
.episode-card p { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.episode-card .said { color: var(--ink); background: linear-gradient(transparent 62%, rgba(217, 164, 65, .45) 62%); padding: 0 1px; }
.source-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.source-pills li {
  font-size: 13px; font-weight: 500; padding: 7px 12px;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.source-pills i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.source-pills li:nth-child(1) i { background: var(--vermilion); }
.source-pills li:nth-child(2) i { background: var(--ochre); }
.source-pills li:nth-child(3) i { background: var(--teal); }

/* join: the one ink surface on the page */
.join { padding: 96px var(--gutter); border-top: 1px solid var(--rule); }
.join-card {
  background: var(--ink); color: var(--parchment);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.join-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--voices-stepped);
}
.join-card .section-kicker { color: rgba(244, 239, 230, .55); }
.join-card .section-kicker::before { background: var(--parchment); }
.join-title { font-size: clamp(36px, 4vw, 56px); line-height: 1.04; text-wrap: balance; }
.join-card .section-lede { color: rgba(244, 239, 230, .7); margin-top: 18px; }
.join-card .waitlist input[type="email"] { background: rgba(244, 239, 230, .06); color: var(--parchment); border-color: rgba(244, 239, 230, .22); }
.join-card .waitlist input[type="email"]::placeholder { color: rgba(244, 239, 230, .45); }
.join-card .waitlist input[type="email"]:hover, .join-card .waitlist input[type="email"]:focus { border-color: var(--parchment); }
.join-card :focus-visible { outline-color: var(--parchment); }
.join-card .btn-primary { background: var(--parchment); color: var(--ink); box-shadow: none; }
.join-card .btn-primary .play { background: var(--ink); }
.join-card .btn-primary .play::after { border-left-color: var(--parchment); }
.join-card .waitlist .status, .join-card .waitlist[data-state="joined"] .status { color: rgba(244, 239, 230, .8); }
.join-card .waitlist[data-state="joined"] .status { color: var(--parchment); }
.join-card .waitlist[data-state="error"] .status { color: #F08A6E; }
.join-card .waitlist .fine { color: rgba(244, 239, 230, .45); }

/* footer */
.footer {
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--ink-mute); gap: 24px; flex-wrap: wrap;
}
.footer .wordmark { font-size: 22px; color: var(--ink); }
.footer .bar { display: inline-flex; gap: 6px; }
.footer .bar i { display: block; width: 28px; height: 3px; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; }
  .idea, .join-card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 72px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav .wordmark { font-size: 26px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; padding-bottom: 48px; gap: 48px; }
  .hero::after { display: none; }
  .headline { font-size: clamp(40px, 11vw, 56px); }
  .hero-meta { margin-top: 32px; gap: 18px; }
  .motif .score { max-height: none; }
  .motif .label { font-size: 14px; }
  .motif .voice, .motif .one { stroke-width: 6; }
  .transport { grid-template-columns: auto 1fr; gap: 14px; }
  .transport .pills { grid-column: 1 / -1; justify-content: flex-end; }
  .section, .join { padding: 64px var(--gutter); }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .step, .episode-card { padding: 26px; border-radius: 16px; }
  .steps { gap: 16px; }
  .idea { gap: 32px; }
  .join-card { border-radius: 16px; gap: 32px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .waitlist .field { flex-direction: column; }
  .waitlist input[type="email"], .btn-primary { flex: none; height: 54px; }
  .btn-primary { width: 100%; }
  .transport .play { width: 42px; height: 42px; }
  .transport .play::after { left: 17px; top: 13px; }
}
