@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2')
    format('woff2');
  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;
}

/* Palette and measurements taken from the Cadence template's light theme. */
:root {
  --background: #fcfcf7;
  --foreground: #1a2018;
  --card: #ffffff;
  --primary: #1a2018;
  --primary-foreground: #fcfcf7;
  --secondary: #efefe9;
  --secondary-foreground: #2a3028;
  --muted: #efefe9;
  --muted-foreground: #5f655e;
  --accent: #edf2ec;
  --accent-foreground: #252b24;
  --destructive: #ea384d;
  --border: rgba(26, 32, 24, 0.1);
  --input: #dadbd6;
  --ring: #397059;
  --sidebar: #f5f6f0;
  --hero: #edf0eb;
  --lime: #a5d122;
  --lime-ink: #6f8f12;
  --green: #007753;
  --teal: #02544c;

  --radius: 0.7rem;
  --radius-lg: 0.95rem;
  --radius-xl: 1.26rem;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);

  --sans:
    'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC',
    'Microsoft YaHei', system-ui, sans-serif;
  --display:
    'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC',
    'Microsoft YaHei', ui-sans-serif, system-ui, sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.0025em;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--foreground);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

h3 {
  margin-top: 1.75rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 48rem;
}

@media (min-width: 40rem) {
  .container {
    padding: 0 1.5rem;
  }
}

.lede {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.55;
}

.hint,
.note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.hint a,
.note a {
  color: var(--foreground);
  font-weight: 500;
}

.error {
  color: var(--destructive);
  font-size: 0.875rem;
  font-weight: 500;
}

.notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  animation: drop 0.45s var(--ease) both;
}

.notice .icon {
  color: var(--green);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.actions.center {
  justify-content: center;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover {
  background: #2c342a;
}

.button.primary .icon:last-child {
  transition: transform 0.2s var(--ease);
}

.button.primary:hover .icon:last-child {
  transform: translateX(2px);
}

.button.outline {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.button.outline:hover {
  background: var(--accent);
}

.button.ghost {
  background: transparent;
  color: var(--foreground);
}

.button.ghost:hover {
  background: var(--accent);
}

.button.ghost.danger {
  color: var(--destructive);
}

.button.ghost.danger:hover {
  background: #fdecee;
}

.button.destructive {
  background: var(--destructive);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button.destructive:hover {
  background: #d42c40;
}

.button.link {
  height: auto;
  padding: 0.5rem 0.25rem;
  background: none;
  color: var(--muted-foreground);
  font-weight: 500;
  text-decoration: underline;
}

.button.link:hover {
  color: var(--foreground);
}

.button.small {
  height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
}

.button.large {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.button.block {
  width: 100%;
}

.button.icon-only {
  width: 2.25rem;
  padding: 0;
}

.copy .copy-done {
  display: none;
}

.copy-icon,
.copy-done {
  display: inline-flex;
}

.copy.copied {
  background: var(--accent);
}

.copy.copied .copy-icon {
  display: none;
}

.copy.copied .copy-done {
  display: inline-flex;
  color: var(--green);
  animation: pop 0.35s var(--ease) both;
}

/* Forms */

label {
  display: block;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

input,
textarea {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: 0.25rem;
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

textarea {
  height: auto;
  min-height: 7rem;
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a8f88;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(57, 112, 89, 0.2);
}

input[aria-invalid='true'] {
  border-color: var(--destructive);
}

input[type='date'] {
  max-width: 14rem;
}

.field label + input,
.field label + textarea {
  margin-top: 0.5rem;
}

.field .hint,
.field .error {
  margin-top: 0.4rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.secret,
.code-text,
.big-code,
.code-input {
  font-feature-settings: 'zero', 'cv05', 'cv08';
  font-variant-numeric: tabular-nums;
}

.secret {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Site header and footer */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--background);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--foreground);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav {
  display: none;
  gap: 0.25rem;
  margin-left: auto;
}

.header-nav a,
.menu-panel a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.header-nav a:hover,
.header-nav a[aria-current='page'],
.menu-panel a:hover,
.menu-panel a[aria-current='page'] {
  color: var(--foreground);
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: grid;
  min-width: 12rem;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  animation: drop 0.25s var(--ease) both;
}

@media (min-width: 48rem) {
  .header-nav {
    display: flex;
  }
  .header-actions {
    margin-left: 0;
  }
  .menu {
    display: none;
  }
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--foreground);
}

/* Home hero, after Cadence's landing page */

.hero {
  padding: 0 0.625rem;
}

.hero-panel {
  border-radius: var(--radius-xl) var(--radius-xl) 1.82rem 1.82rem;
  background: var(--hero);
}

.hero-inner {
  padding-top: clamp(4rem, 12vw, 7.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-title {
  max-width: 44rem;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}

.hero-form {
  max-width: 34rem;
  margin-top: 2rem;
}

.hero-form-row {
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 36rem) {
  .hero-form-row {
    grid-template-columns: 1fr auto;
  }
}

.hero-form .code-input {
  height: 2.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-form .code-input::placeholder {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.hero-form .hint,
.hero-form .error {
  margin-top: 0.6rem;
}

.features {
  list-style: none;
  max-width: 48rem;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  transition: background-color 0.5s var(--ease);
}

.feature.active {
  background: rgba(252, 252, 247, 0.5);
}

.feature-icon {
  display: inline-flex;
  margin-top: 0.2rem;
  color: var(--foreground);
}

.feature h2 {
  font-size: 1rem;
  font-weight: 600;
}

.feature p {
  margin-top: 0.15rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Inner pages */

.page {
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.page-head.center {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.panel-head p {
  margin-top: 0.1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.panel-head + .panel-body {
  border-top: 1px solid var(--border);
}

.panel-body {
  padding: 1.25rem;
}

.panel-body > :first-child {
  margin-top: 0;
}

.panel-body > p + p,
.panel-body > p + dl,
.panel-body > dl + p,
.panel-body > p + ul,
.panel-body > ul + p {
  margin-top: 1rem;
}

@media (min-width: 40rem) {
  .panel-head,
  .panel-body {
    padding: 1.5rem;
  }
}

/* Steps and the report card: the body continues under the heading, lined up
   with the title rather than split off by a divider. */
.step .panel-head,
.report .panel-head {
  align-items: flex-start;
  padding-bottom: 0;
}

.step .panel-head + .panel-body,
.report .panel-head + .panel-body {
  border-top: 0;
  padding-top: 1rem;
}

@media (min-width: 40rem) {
  .step .panel-head + .panel-body,
  .report .panel-head + .panel-body {
    padding-left: calc(1.5rem + 2.25rem + 1rem);
  }
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
}

.tile .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.tile-lime {
  background: rgba(165, 209, 34, 0.16);
  color: var(--lime-ink);
}

.tile-green {
  background: rgba(0, 119, 83, 0.12);
  color: var(--green);
}

.tile-teal {
  background: rgba(2, 84, 76, 0.12);
  color: var(--teal);
}

.tile-ink {
  background: var(--primary);
  color: var(--primary-foreground);
}

.tile-danger {
  background: #fdecee;
  color: var(--destructive);
}

.tile-number {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Calendar */

.calendar-panel {
  margin-top: 2rem;
  padding: 1.25rem;
}

@media (min-width: 40rem) {
  .calendar-panel {
    padding: 1.5rem;
  }
}

.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.days-large {
  gap: clamp(0.3rem, 1.2vw, 0.5rem);
}

.days-large .day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--muted-foreground);
  font-family: var(--display);
  font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.0625rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.days-small {
  grid-template-columns: repeat(14, 0.5rem);
  gap: 2px;
}

.days-small .day {
  height: 0.875rem;
  border-radius: 2px;
  background: var(--secondary);
}

.day.waiting {
  background: transparent;
  outline: 1px dashed var(--input);
  outline-offset: -1px;
}

.day.done {
  background: var(--primary);
  color: var(--primary-foreground);
}

.day.today {
  background: var(--lime);
  color: var(--foreground);
}

/* Steps */

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.done {
  color: var(--green);
  font-weight: 600;
}

.credentials {
  margin: 1rem 0 0;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(239, 239, 233, 0.6);
}

.credential {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  padding: 0.875rem 0;
}

.credential + .credential {
  border-top: 1px solid var(--border);
}

.credential dt {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.credential dt {
  grid-column: 1;
}

.credential dd {
  display: contents;
}

.credential .secret {
  grid-column: 1;
  margin-top: 0.1rem;
}

.credential .copy {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.checklist .icon {
  margin-top: 0.2rem;
  color: var(--lime-ink);
}

.callout {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Screenshots and video */

.shot {
  margin: 0;
}

.frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--secondary);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.shot:hover .frame {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.shot figcaption {
  margin-top: 0.6rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.shots.pair {
  list-style: none;
  max-width: 23rem;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.shot.video {
  max-width: 15rem;
  margin-top: 0.75rem;
}

.shots.strip {
  list-style: none;
  margin: 0.75rem -1.25rem 0;
  padding: 0.25rem 1.25rem 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9.5rem, 44%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1.25rem;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.shots.strip > li {
  scroll-snap-align: start;
}

@media (min-width: 40rem) {
  .shots.strip {
    margin: 0.75rem 0 0;
    padding: 0.25rem 0 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

.report {
  margin-top: 1rem;
}

.leave {
  margin-top: 1.5rem;
  text-align: center;
}

/* FAQ */

.topics {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 1fr);
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0.375rem;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  background: rgba(239, 239, 233, 0.6);
}

.topic {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.topic:hover {
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.topic > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 0.15rem;
}

.topic strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.topic span span {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.faq-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(239, 239, 233, 0.4);
}

.faq-item .chevron {
  color: var(--muted-foreground);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  animation: drop 0.3s var(--ease) both;
}

@media (min-width: 40rem) {
  .faq-item summary {
    padding: 1.25rem 1.5rem;
  }
  .faq-item p {
    padding: 0 1.5rem 1.25rem;
  }
}

/* Help, after Cadence's contact page, in one column */

.container.compact {
  max-width: 40rem;
}

.help-card {
  margin-top: 2.5rem;
  overflow: hidden;
}

.help-rows {
  display: grid;
  background: rgba(239, 239, 233, 0.45);
  border-bottom: 1px solid var(--border);
}

.help-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.help-row + .help-row {
  border-top: 1px solid var(--border);
}

.help-row h2 {
  color: var(--muted-foreground);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.help-row p,
.help-email {
  display: inline-block;
  margin-top: 0.1rem;
  color: var(--foreground);
  font-size: 1.0625rem;
  font-weight: 500;
}

.help-include {
  padding: 1.25rem;
}

.help-include h2 {
  font-size: 1.0625rem;
}

.help-include .note {
  margin-top: 1rem;
}

@media (min-width: 40rem) {
  .help-row,
  .help-include {
    padding: 1.5rem;
  }
}

/* Admin sign-in, after Cadence's login page */

.auth-band {
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background: var(--secondary);
}

.auth-card {
  width: 100%;
  max-width: 24rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.auth-lede {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.auth-form .button {
  margin-top: 0.5rem;
}

.auth-foot {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

/* Admin app, after the dashboard shown on Cadence's landing page */

.app-body {
  background: var(--sidebar);
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--input);
  background: var(--sidebar);
}

.sidebar-brand {
  padding: 0.25rem 0.6rem;
}

.sidebar-brand .brand {
  font-size: 0.9375rem;
}

.sidebar-brand img {
  width: 22px;
  height: 22px;
}

.sidebar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--secondary-foreground);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.sidebar-nav a:hover,
.sidebar-nav a[aria-current='page'] {
  background: var(--accent);
  color: var(--accent-foreground);
}

.sidebar-nav a[aria-current='page'] {
  background: var(--card);
  box-shadow:
    var(--shadow-xs),
    0 0 0 1px var(--border);
  font-weight: 600;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.sidebar-foot .avatar {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
}

.sidebar-user {
  display: none;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.sidebar-user span:first-child {
  font-size: 0.8125rem;
  font-weight: 600;
}

.sidebar-user span:last-child {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  flex: 1;
  min-width: 0;
  background: var(--card);
}

@media (min-width: 56rem) {
  .app {
    flex-direction: row;
  }
  .sidebar {
    position: sticky;
    top: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 15rem;
    height: 100vh;
    padding: 1rem 0.5rem 0.5rem 0.75rem;
    border-bottom: 0;
  }
  .sidebar-brand {
    padding: 0.25rem 0.6rem 1.25rem;
  }
  .sidebar-nav {
    flex-direction: column;
    gap: 0.25rem;
  }
  .sidebar-foot {
    margin: auto 0 0;
    padding: 0.75rem 0.6rem 0.5rem;
    border-top: 1px solid var(--input);
  }
  .sidebar-user {
    display: grid;
  }
  .app-main {
    margin: 0.5rem 0.5rem 0.5rem 0;
    border: 1px solid var(--input);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
  }
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.875rem;
}

.app-heading h1 {
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-heading .count {
  padding: 0 0.4rem;
  border-radius: 0.375rem;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.crumb {
  color: var(--muted-foreground);
  text-decoration: none;
}

.crumb:hover {
  color: var(--foreground);
}

.crumb-sep {
  color: var(--input);
}

.app-content {
  padding: 1.25rem 1rem 2.5rem;
}

@media (min-width: 40rem) {
  .app-topbar,
  .app-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.app-content > .notice:first-child {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.stat-goal {
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .stats {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .stat-goal {
    grid-column: auto;
  }
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
}

.stat-value {
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-value span {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.segments {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.segment {
  height: 0.375rem;
  border-radius: 99px;
  background: var(--secondary);
}

.segment.done {
  background: var(--primary);
}

.segment.testing {
  background: var(--lime);
}

.empty {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted-foreground);
}

.empty-title {
  color: var(--foreground);
  font-weight: 600;
}

.empty p + p {
  margin-top: 0.5rem;
}

.table-wrap {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table th {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar);
  color: var(--muted-foreground);
  font-weight: 500;
  text-align: left;
}

.data-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 0.15s var(--ease);
}

.data-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.data-table tbody tr:hover {
  background: #fafaf6;
}

.cell-who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cell-who div {
  display: grid;
  min-width: 0;
}

.cell-who a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.cell-who a:hover {
  text-decoration: underline;
}

.cell-who span:not(.avatar) {
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
}

.code-text {
  color: var(--muted-foreground);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cell-progress {
  white-space: nowrap;
}

.cell-progress .days-small {
  margin-top: 0.4rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #b4b8b1;
}

.status.testing .dot {
  background: var(--lime);
}

.status.finished .dot {
  background: var(--green);
}

.cell-actions {
  text-align: right;
}

@media (max-width: 47.99rem) {
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }
  .data-table tbody tr {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
  }
  .data-table td {
    padding: 0;
  }
  .data-table tbody tr + tr {
    border-top: 1px solid var(--border);
  }
  .data-table tbody tr + tr td {
    border-top: 0;
  }
  .cell-actions {
    text-align: left;
  }
}

.form-layout {
  max-width: 40rem;
}

.code-panel h2 {
  color: var(--muted-foreground);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.big-code {
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.code-panel .actions {
  margin-top: 1rem;
}

.code-panel .hint {
  margin-top: 0.75rem;
}

.form-panel {
  margin-top: 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.form-actions.start {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.confirm-panel {
  max-width: 32rem;
}

.confirm-panel h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.confirm-panel .lede {
  font-size: 0.9375rem;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.4);
  }
  60% {
    transform: scale(1.2);
  }
}

@keyframes fill {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s var(--ease) both;
  }
  .hero-lede.reveal {
    animation-delay: 0.08s;
  }
  .hero-form.reveal {
    animation-delay: 0.16s;
  }
  .features.reveal {
    animation-delay: 0.24s;
  }
  .calendar-panel.reveal,
  .topics.reveal,
  .help-grid.reveal,
  .table-wrap.reveal,
  .form-panel.reveal {
    animation-delay: 0.08s;
  }
  .steps > .reveal:nth-child(1),
  .faq-sections > .reveal:nth-child(1) {
    animation-delay: 0.14s;
  }
  .steps > .reveal:nth-child(2),
  .faq-sections > .reveal:nth-child(2) {
    animation-delay: 0.2s;
  }
  .steps > .reveal:nth-child(3),
  .faq-sections > .reveal:nth-child(3) {
    animation-delay: 0.26s;
  }
  .steps > .reveal:nth-child(4) {
    animation-delay: 0.32s;
  }
  .steps > .reveal:nth-child(5) {
    animation-delay: 0.38s;
  }

  .days-large .day {
    animation: fill 0.45s var(--ease) both;
  }
  .days-large .day:nth-child(1) {
    animation-delay: 0.2s;
  }
  .days-large .day:nth-child(2) {
    animation-delay: 0.23s;
  }
  .days-large .day:nth-child(3) {
    animation-delay: 0.26s;
  }
  .days-large .day:nth-child(4) {
    animation-delay: 0.29s;
  }
  .days-large .day:nth-child(5) {
    animation-delay: 0.32s;
  }
  .days-large .day:nth-child(6) {
    animation-delay: 0.35s;
  }
  .days-large .day:nth-child(7) {
    animation-delay: 0.38s;
  }
  .days-large .day:nth-child(8) {
    animation-delay: 0.41s;
  }
  .days-large .day:nth-child(9) {
    animation-delay: 0.44s;
  }
  .days-large .day:nth-child(10) {
    animation-delay: 0.47s;
  }
  .days-large .day:nth-child(11) {
    animation-delay: 0.5s;
  }
  .days-large .day:nth-child(12) {
    animation-delay: 0.53s;
  }
  .days-large .day:nth-child(13) {
    animation-delay: 0.56s;
  }
  .days-large .day:nth-child(14) {
    animation-delay: 0.59s;
  }

  .segment {
    animation: fill 0.4s var(--ease) both;
  }
  .segment:nth-child(n + 2) {
    animation-delay: 0.08s;
  }
  .segment:nth-child(n + 5) {
    animation-delay: 0.14s;
  }
  .segment:nth-child(n + 9) {
    animation-delay: 0.2s;
  }

  .shake {
    animation: shake 0.4s ease-in-out both;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sidebar {
    display: none;
  }
}

/* On narrow screens the admin bar shows the brand and account on one row and
   the links below them. */
@media (max-width: 55.99rem) {
  .sidebar-foot {
    order: 2;
  }
  .sidebar-nav {
    order: 3;
    flex-basis: 100%;
  }
}
