/* The Turbo Sessions. Colours taken from the Watts On Your Mind artwork. */
:root {
  --night: #101418;
  --night-raised: #1A2027;
  --night-line: #2B333C;
  --volt: #FAC123;
  --volt-dark: #E0A90F;
  --white: #FFFFFF;
  --mist: #C5CCD3;
  --paper: #F5F6F7;
  --ink: #101418;
  --ink-soft: #4C5661;
  --line: #DDE1E5;
  --display: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 70rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
p { margin: 0; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}
.on-light a:focus-visible { outline-color: var(--ink); }

/* Buttons */
.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: var(--night);
  background: var(--volt);
  border: 2px solid var(--volt);
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { background: var(--volt-dark); border-color: var(--volt-dark); }
.button[disabled] { opacity: 0.6; cursor: default; }
.button-small { padding: 0.5rem 1rem; font-size: 0.95rem; }
.button-quiet {
  color: var(--white);
  background: transparent;
  border-color: var(--night-line);
}
.button-quiet:hover { background: var(--night-raised); border-color: var(--mist); }
.on-light .button-quiet { color: var(--ink); border-color: var(--ink); }
.on-light .button-quiet:hover { background: var(--paper); border-color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Header */
.top { background: var(--night); color: var(--white); }
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}
.wordmark b { font-weight: 800; color: var(--volt); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--volt); }

/* Hero */
.hero { padding: 4.5rem 0 5.5rem; }
.hero h1 { max-width: 14em; }
.lede {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--mist);
}
.hero-compact { padding: 3.5rem 0 4rem; }
.hero-compact h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

/* Waiting list form */
.join { margin-top: 2.5rem; max-width: 33rem; }
.join label { display: block; font-weight: 600; margin-bottom: 0.6rem; }
.join-row { display: flex; gap: 0.6rem; }
.join input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.join-note { margin-top: 0.75rem; font-size: 0.95rem; color: var(--mist); }
.join-status { margin-top: 0.75rem; font-weight: 600; min-height: 1.6em; color: var(--volt); }

/* Dark panels */
.panels { background: var(--night); color: var(--white); padding-bottom: 5rem; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.panel {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-top: 4px solid var(--volt);
  border-radius: 0 0 10px 10px;
  padding: 1.75rem 1.5rem 2rem;
}
.panel h3 { font-size: 1.5rem; }
.panel p { margin-top: 0.75rem; color: var(--mist); max-width: 30rem; }

/* Podcast feature */
.show { background: var(--night); color: var(--white); padding-bottom: 5rem; }
.show-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  padding: 2rem;
}
.show-card img { width: 100%; height: auto; border-radius: 50%; border: 2px solid var(--night-line); display: block; }
.show-card p { margin-top: 0.6rem; color: var(--mist); max-width: 38rem; }
.show-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.show-links a { color: var(--white); font-weight: 600; text-decoration-color: var(--volt); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.show-links a:hover { color: var(--volt); }

/* Light sections */
.band { padding: 5.5rem 0; }
.band-alt { background: var(--paper); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 3.5rem;
}
.band-intro { margin-top: 1rem; color: var(--ink-soft); max-width: 22rem; }
.band-body { max-width: 40rem; }
.band-body p + p { margin-top: 1rem; }
.band-body a { text-decoration-color: var(--volt-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose p { font-size: 1.15rem; line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--volt-dark);
}
.steps p { margin-top: 0.4rem; color: var(--ink-soft); }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.plain-list p { margin-top: 0.4rem; color: var(--ink-soft); }

/* Example plan */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; padding: 0; list-style: none; }
.facts li {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.facts span { display: block; color: var(--mist); font-size: 0.92rem; }
.facts strong { display: block; margin-top: 0.2rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }

.plan-section { padding: 4rem 0; }
.plan-section + .plan-section { border-top: 1px solid var(--line); }
.plan-section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.plan-section > .wrap > p { margin-top: 1rem; max-width: 44rem; color: var(--ink-soft); }
.plan-section h3 { margin-top: 2.25rem; }
.plan-section ul { margin: 0.75rem 0 0; padding-left: 1.2rem; max-width: 46rem; }
.plan-section li { margin-top: 0.5rem; }
.plan-section li ul { margin-top: 0.25rem; }

.table-scroll { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 38rem; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--night); color: var(--white); font-weight: 600; border-bottom: 0; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tr.current th, tr.current td { background: #FFF6D9; }

/* Closing and footer */
.closing { background: var(--night); color: var(--white); padding: 5rem 0; }
.closing p { margin-top: 0.9rem; color: var(--mist); max-width: 34rem; }

.footer {
  background: var(--night);
  color: var(--mist);
  border-top: 1px solid var(--night-line);
  padding: 2rem 0 2.5rem;
  font-size: 0.95rem;
}
.footer a { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer p + p { margin-top: 0.4rem; }

/* Privacy and other text pages */
.text-page { padding: 4rem 0 5rem; }
.text-page .wrap { max-width: 48rem; }
.text-page h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.text-page p, .text-page ul { margin-top: 0.9rem; }
.text-page ul { padding-left: 1.2rem; }
.text-page li { margin-top: 0.4rem; }
.text-page a { text-decoration-color: var(--volt-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }

@media (max-width: 54rem) {
  .hero { padding: 3rem 0 4rem; }
  .panels, .show { padding-bottom: 3.5rem; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .band { padding: 3.5rem 0; }
  .band-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .closing { padding: 3.5rem 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-section { padding: 3rem 0; }
}
@media (max-width: 34rem) {
  .join-row { flex-direction: column; }
  .masthead .button-small { display: none; }
  .show-card { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem; }
  .show-card img { width: 5.5rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* Trial: plan form and plan page */
.form-page { padding: 3.5rem 0 5rem; }
.form-page .wrap { max-width: 46rem; }
fieldset { border: 0; margin: 2.25rem 0 0; padding: 0 0 2.25rem; border-bottom: 1px solid var(--line); min-width: 0; }
fieldset:first-of-type { margin-top: 0; }
legend { font-family: var(--display); font-weight: 800; font-size: 1.5rem; padding: 0; margin-bottom: 0.4rem; }
.field { margin-top: 1.25rem; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.hint { display: block; color: var(--ink-soft); font-size: 0.95rem; font-weight: 400; margin-top: 0.15rem; }
.form-page input[type="text"], .form-page input[type="number"], .form-page input[type="date"], .form-page select, .plan-tools select, .checkin input[type="text"], .checkin select {
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 8px; padding: 0.6rem 0.75rem; max-width: 100%;
}
.form-page input[type="text"], .form-page select { width: 100%; max-width: 24rem; }
.form-page input[type="number"] { width: 7rem; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.5rem; font-weight: 400; }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: 0 0 auto; accent-color: var(--ink); }
.day-row { display: grid; grid-template-columns: 9rem minmax(0, 12rem); gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.day-row .choice { margin-top: 0; }
.day-row select { width: 100%; padding: 0.4rem 0.6rem; }
.field-row { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }
.callout { margin-top: 1rem; padding: 1rem 1.25rem; border-left: 4px solid var(--volt-dark); background: #FFF6D9; border-radius: 0 8px 8px 0; }
.form-error { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 2px solid #B42318; border-radius: 8px; color: #7A1A12; background: #FEF3F2; }
.form-error ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.form-actions { margin-top: 2rem; }
[hidden] { display: none !important; }

.plan-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.5rem; }
.plan-tools label { font-weight: 600; }
.week-meta { margin-top: 0.75rem; color: var(--ink-soft); }
.sessions { list-style: none; margin: 1.5rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-width: none; }
.plan-section .sessions li { margin: 0; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.5rem 1.25rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); align-items: start; }
.plan-section .sessions li:last-child { border-bottom: 0; }
.sessions .when { font-weight: 600; }
.sessions .when span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.sessions h4 { margin: 0; font-family: var(--body); font-size: 1.0625rem; font-weight: 600; }
.sessions p { margin-top: 0.25rem; color: var(--ink-soft); max-width: 40rem; }
.sessions .fallback { font-size: 0.95rem; }
.sessions .tick { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-size: 0.95rem; }
.sessions .tick input { width: 1.3rem; height: 1.3rem; accent-color: var(--ink); }
.sessions li.rest { color: var(--ink-soft); }
.checkin { margin-top: 1.5rem; padding: 1.5rem; background: var(--paper); border-radius: 10px; max-width: 46rem; }
.checkin h3 { margin-top: 0; }
.checkin .field-row { margin-top: 1rem; align-items: flex-end; }
.checkin label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.checkin .choice { margin-top: 1rem; }
.checkin .choice label { margin: 0; font-weight: 400; }
.checkin-status { margin-top: 0.75rem; font-weight: 600; min-height: 1.6em; }
.plan-notes { margin-top: 1.5rem; }
.plan-notes .callout + .callout { margin-top: 0.75rem; }
tr.viewing th, tr.viewing td { background: #FFF6D9; }
.linklike { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--volt-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 40rem) {
  .plan-section .sessions li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .day-row { grid-template-columns: 8rem minmax(0, 1fr); }
}
