@font-face {
  font-family: "Space Grotesk Local";
  src: url("./space-grotesk.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

:root {
  --sr-paper: #f1efe7;
  --sr-cream: #fbfaf5;
  --sr-navy: #0b2f42;
  --sr-teal: #114960;
  --sr-ink: #193746;
  --sr-muted: #526b76;
  --sr-blue: #0994cc;
  --sr-blue-light: #93c5fd;
  --sr-yellow: #fef3c7;
  --sr-line: rgba(11, 47, 66, 0.14);
  --sr-shadow: 0 28px 70px rgba(11, 47, 66, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sr-paper);
}

.sr-demo {
  --sr-accent: var(--sr-blue-light);
  --sr-accent-deep: var(--sr-blue);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(147, 197, 253, 0.18), transparent 22rem),
    var(--sr-paper);
  color: var(--sr-ink);
  font-family: "Space Grotesk Local", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.sr-demo[data-color="yellow"] {
  --sr-accent: #fde68a;
  --sr-accent-deep: #fbbf24;
}

.sr-demo[data-color="pink"] {
  --sr-accent: #fbcfe8;
  --sr-accent-deep: #ec4899;
}

.sr-demo[data-color="lime"] {
  --sr-accent: #d9f99d;
  --sr-accent-deep: #65a30d;
}

.sr-demo a,
.sr-demo button {
  font: inherit;
}

.sr-demo button {
  border: 0;
  cursor: pointer;
}

.sr-demo button:disabled {
  cursor: not-allowed;
}

.sr-demo a:focus-visible,
.sr-demo button:focus-visible {
  outline: 3px solid var(--sr-accent);
  outline-offset: 3px;
}

.sr-demo [hidden] {
  display: none !important;
}

.sr-demo__skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--sr-navy);
  color: var(--sr-paper);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.sr-demo__skip-link:focus {
  transform: translateY(0);
}

.sr-demo__masthead,
.sr-demo__main,
.sr-demo__footer {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-demo__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  padding: 22px 0;
}

.sr-demo__back-link,
.sr-demo__footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sr-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.sr-demo__back-link span:first-child {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.sr-demo__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sr-navy);
  font-size: 1.44rem;
  font-weight: 700;
  letter-spacing: -0.075em;
}

.sr-demo__brand > span:last-child span {
  color: var(--sr-blue);
}

.sr-demo__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 29px;
  height: 29px;
  border-radius: 8px 8px 8px 3px;
  background: var(--sr-navy);
  color: var(--sr-paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.14em;
  transform: rotate(-5deg);
}

.sr-demo__brand-mark span:last-child {
  color: var(--sr-blue-light);
}

.sr-demo__masthead-note {
  color: var(--sr-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-demo__intro {
  display: grid;
  gap: 18px;
  padding: 44px 0 52px;
}

.sr-demo__kicker,
.sr-demo__prototype-kicker,
.sr-demo__notes-kicker,
.sr-demo__rail-label {
  margin: 0;
  color: var(--sr-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.sr-demo__title {
  max-width: 970px;
  margin: 0;
  color: var(--sr-navy);
  font-size: clamp(2.9rem, 7.5vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.91;
}

.sr-demo__title-mark {
  color: var(--sr-blue);
}

.sr-demo__intro-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 980px;
}

.sr-demo__intro-copy {
  max-width: 560px;
  margin: 0;
  color: var(--sr-muted);
  font-size: 1.07rem;
}

.sr-demo__intro-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.sr-demo__intro-facts span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--sr-line);
  border-radius: 999px;
  color: var(--sr-navy);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sr-demo__prototype {
  overflow: hidden;
  border-radius: 30px;
  background: var(--sr-navy);
  color: var(--sr-paper);
  box-shadow: var(--sr-shadow);
}

.sr-demo__prototype-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(241, 239, 231, 0.12);
}

.sr-demo__prototype-kicker {
  color: #b4c0c4;
}

.sr-demo__prototype-title {
  margin: 6px 0 0;
  color: var(--sr-paper);
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.sr-demo__local-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(241, 239, 231, 0.2);
  border-radius: 999px;
  color: #dce3e5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sr-demo__local-badge span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sr-accent);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.13);
}

.sr-demo__prototype-grid {
  display: grid;
  grid-template-columns: minmax(168px, 0.8fr) minmax(414px, 1fr) minmax(220px, 0.95fr);
  gap: 30px;
  align-items: start;
  padding: 30px 32px 34px;
}

.sr-demo__rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 8px;
}

.sr-demo__rail-label {
  padding: 0 10px;
  color: #b4c0c4;
  font-size: 0.62rem;
}

.sr-demo__rail-label--spaced {
  margin-top: 22px;
}

.sr-demo__rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 13px;
  background: transparent;
  color: #b4c0c4;
  font-size: 0.79rem;
  font-weight: 500;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.sr-demo__rail-item:hover,
.sr-demo__rail-item[aria-current="step"] {
  background: var(--sr-teal);
  color: var(--sr-paper);
}

.sr-demo__rail-item[aria-current="step"] {
  font-weight: 700;
}

.sr-demo__rail-index {
  min-width: 23px;
  color: var(--sr-accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
}

.sr-demo__rail-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 22px 10px 0;
  color: #b4c0c4;
  font-size: 0.68rem;
  line-height: 1.35;
}

.sr-demo__rail-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #6ee7b7;
}

.sr-demo__device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.sr-demo__device {
  width: min(100%, 414px);
  padding: 11px;
  border-radius: 56px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.sr-demo__device-screen {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 45px;
  background: var(--sr-navy);
}

.sr-demo__device-screen::before {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: 116px;
  height: 29px;
  border-radius: 0 0 19px 19px;
  background: #111827;
  content: "";
  transform: translateX(-50%);
}

.sr-demo__device-home {
  width: 132px;
  height: 5px;
  margin: -18px auto 12px;
  border-radius: 5px;
  background: var(--sr-paper);
  position: relative;
  z-index: 6;
}

.sr-demo__device-caption {
  margin: 13px 0 0;
  color: #b4c0c4;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sr-demo__notes {
  align-self: center;
  max-width: 285px;
  padding: 16px 0 8px;
}

.sr-demo__notes-kicker {
  color: var(--sr-accent);
  font-size: 0.63rem;
}

.sr-demo__notes h3 {
  margin: 10px 0 0;
  color: var(--sr-paper);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.sr-demo__notes > p:not(.sr-demo__notes-kicker) {
  margin: 14px 0 0;
  color: #dce3e5;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sr-demo__notes-meta {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.sr-demo__notes-meta div {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(241, 239, 231, 0.16);
}

.sr-demo__notes-meta dt {
  color: #b4c0c4;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sr-demo__notes-meta dd {
  margin: 0;
  color: var(--sr-paper);
  font-size: 0.77rem;
}

.sr-demo__notes-callout {
  display: flex;
  gap: 9px;
  margin-top: 30px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(241, 239, 231, 0.08);
  color: #dce3e5;
  font-size: 0.74rem;
  line-height: 1.4;
}

.sr-demo__notes-callout > span:first-child {
  color: var(--sr-accent);
  font-size: 1rem;
}

.sr-demo__prototype-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 58px;
  padding: 15px 24px;
  border-top: 1px solid rgba(241, 239, 231, 0.12);
  color: #b4c0c4;
  font-size: 0.72rem;
}

.sr-demo__prototype-foot kbd {
  display: inline-flex;
  min-width: 22px;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  padding: 2px 5px;
  border: 1px solid rgba(241, 239, 231, 0.22);
  border-radius: 5px;
  color: var(--sr-paper);
  font-family: inherit;
  font-size: 0.65rem;
}

.sr-demo__prototype-foot button {
  padding: 0;
  background: none;
  color: var(--sr-paper);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-demo__source-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 830px;
  margin: 48px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--sr-line);
  color: var(--sr-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.sr-demo__source-note p {
  margin: 0;
}

.sr-demo__source-note strong {
  color: var(--sr-ink);
}

.sr-demo__source-note cite {
  color: var(--sr-ink);
  font-style: normal;
  font-weight: 700;
}

.sr-demo__source-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 10px 3px;
  background: var(--sr-navy);
  color: var(--sr-blue-light);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: -0.12em;
  transform: rotate(-5deg);
}

.sr-demo__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 42px;
  color: var(--sr-muted);
  font-size: 0.72rem;
}

.sr-demo__footer a {
  color: var(--sr-ink);
  text-transform: none;
}

/* Phone UI */
.sr-screen {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.sr-screen--navy {
  background: var(--sr-navy);
  color: var(--sr-paper);
}

.sr-screen--paper {
  background: var(--sr-paper);
  color: #333b3e;
}

.sr-screen__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(241, 239, 231, 0.26) 0.6px, transparent 0.8px);
  background-size: 7px 7px;
  mix-blend-mode: screen;
}

.sr-screen__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  padding: 48px 22px 28px;
}

.sr-screen__content--pin {
  padding-top: 49px;
}

.sr-screen__content--reader {
  padding-top: 50px;
}

.sr-screen__topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}

.sr-screen__topbar--with-back {
  justify-content: space-between;
}

.sr-screen__topbar--reader {
  justify-content: space-between;
  gap: 8px;
  color: #111827;
  text-align: center;
}

.sr-screen__topbar--reader > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.sr-screen__topbar--reader strong {
  overflow: hidden;
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-screen__topbar--reader small {
  color: #4a6273;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-screen__wordmark {
  color: var(--sr-paper);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.07em;
}

.sr-screen__wordmark span {
  color: var(--sr-blue);
}

.sr-screen__time {
  margin-left: auto;
  color: rgba(241, 239, 231, 0.68);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
}

.sr-screen__profile-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  text-align: center;
}

.sr-screen__profile-intro h3 {
  margin: 13px 0 0;
  color: var(--sr-paper);
  font-size: 2.05rem;
  letter-spacing: -0.07em;
  line-height: 1;
}

.sr-screen__profile-intro p {
  margin: 4px 0 0;
  color: #b4c0c4;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.71rem;
}

.sr-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 50%;
  background: #fed7aa;
  color: var(--sr-navy);
}

.sr-avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.sr-avatar--initial {
  color: var(--sr-navy);
  font-size: 2.6rem;
  font-weight: 700;
}

.sr-avatar--owl {
  background: #bfdbfe;
}

.sr-avatar--robot {
  background: #bbf7d0;
}

.sr-pin-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  color: #b4c0c4;
  font-size: 0.72rem;
}

.sr-pin-status__dots {
  display: flex;
  gap: 6px;
}

.sr-pin-status__dots span {
  display: block;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--sr-accent);
  border-radius: 50%;
}

.sr-pin-status__dots span[data-filled="true"] {
  background: var(--sr-accent);
}

.sr-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 13px;
  width: min(100%, 260px);
  margin: 23px auto 0;
}

.sr-keypad button,
.sr-keypad > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.sr-keypad button {
  background: var(--sr-teal);
  color: var(--sr-paper);
  font-size: 1.25rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.sr-keypad button:hover {
  background: #1b5a73;
  transform: translateY(-1px);
}

.sr-keypad__backspace {
  background: transparent !important;
  color: var(--sr-paper) !important;
  font-size: 1.3rem !important;
}

.sr-screen__spacer {
  flex: 1;
  min-height: 20px;
}

.sr-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.sr-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.sr-button--light {
  background: var(--sr-paper);
  color: var(--sr-navy);
}

.sr-button:disabled {
  opacity: 0.38;
}

.sr-screen__hint {
  margin: 10px 0 0;
  color: #b4c0c4;
  font-size: 0.61rem;
  text-align: center;
}

.sr-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.sr-icon-button--ghost {
  background: rgba(241, 239, 231, 0.12);
  color: var(--sr-paper);
}

.sr-icon-button--paper {
  background: #fff;
  color: var(--sr-navy);
}

.sr-screen__heading {
  max-width: 320px;
  margin: 24px 0 0;
  color: var(--sr-paper);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.sr-screen__heading > span {
  position: relative;
  display: inline-block;
  color: var(--sr-accent);
}

.sr-screen__heading svg {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 15px;
  overflow: visible;
}

.sr-screen__heading path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 5;
}

.sr-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
  margin-top: 28px;
}

.sr-avatar-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: #b4c0c4;
}

.sr-avatar-choice .sr-avatar {
  width: 63px;
  height: 63px;
  border: 3px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sr-avatar-choice--selected .sr-avatar {
  border-color: var(--sr-navy);
  box-shadow: 0 0 0 3px var(--sr-accent);
}

.sr-avatar-choice:hover .sr-avatar {
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.46);
}

.sr-choice-label {
  font-size: 0.64rem;
  font-weight: 600;
}

.sr-color-picker {
  margin-top: 27px;
}

.sr-color-picker > p {
  margin: 0;
  color: var(--sr-paper);
  font-size: 0.82rem;
  font-weight: 700;
}

.sr-color-options {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}

.sr-color-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: #b4c0c4;
}

.sr-color-choice > span {
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid transparent;
  border-radius: 50%;
  transition: box-shadow 160ms ease;
}

.sr-color-choice--blue > span {
  background: #93c5fd;
}

.sr-color-choice--yellow > span {
  background: #fde68a;
}

.sr-color-choice--pink > span {
  background: #fbcfe8;
}

.sr-color-choice--lime > span {
  background: #d9f99d;
}

.sr-color-choice[aria-pressed="true"] > span {
  box-shadow: 0 0 0 2px var(--sr-navy), 0 0 0 5px var(--sr-accent);
}

.sr-color-choice small {
  font-size: 0.62rem;
  font-weight: 600;
}

.sr-screen__step-label {
  margin-inline: auto;
  color: #b4c0c4;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
}

.sr-screen__points,
.sr-screen__streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--sr-yellow);
  color: var(--sr-navy);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.sr-screen__points span,
.sr-screen__streak span {
  color: #d29a00;
}

.sr-screen__subheading {
  max-width: 290px;
  margin: 9px 0 0;
  color: #b4c0c4;
  font-size: 0.76rem;
  line-height: 1.4;
}

.sr-target-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.sr-target-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: var(--sr-navy);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease;
}

.sr-target-card:hover {
  transform: translateY(-1px);
}

.sr-target-card[aria-pressed="true"] {
  border-color: var(--sr-accent);
}

.sr-target-card > img {
  width: 102px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.sr-target-card__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sr-target-card__copy strong {
  font-size: 0.84rem;
  line-height: 1.13;
}

.sr-target-card__copy small {
  color: #4a6273;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
}

.sr-target-card__copy small span {
  color: #d29a00;
}

.sr-target-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 17px;
  background: var(--sr-teal);
  color: var(--sr-paper);
  font-size: 0.71rem;
  font-weight: 700;
}

.sr-target-progress > span:nth-child(2) {
  color: #dce3e5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
}

.sr-target-progress > i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(241, 239, 231, 0.18);
}

.sr-target-progress b {
  display: block;
  width: 16.6%;
  height: 100%;
  border-radius: inherit;
  background: var(--sr-accent);
  transition: width 240ms ease;
}

.sr-screen__heading--home {
  margin-top: 22px;
  font-size: 2.25rem;
  line-height: 0.96;
}

.sr-screen__heading--home > span {
  color: var(--sr-accent);
}

.sr-avatar-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #fed7aa;
}

.sr-avatar-mini img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.sr-screen__streak {
  margin-left: auto;
  background: #fed7aa;
}

.sr-story-card {
  display: block;
  width: 100%;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sr-teal);
  color: var(--sr-paper);
  text-align: left;
  transition: transform 160ms ease;
}

.sr-story-card:hover {
  transform: translateY(-2px);
}

.sr-story-card__image {
  position: relative;
  display: block;
  height: 96px;
  overflow: hidden;
}

.sr-story-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-story-card__image > span {
  position: absolute;
  top: 10px;
  left: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--sr-navy);
  color: var(--sr-paper);
  font-size: 0.61rem;
  font-weight: 700;
}

.sr-story-card__body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 15px;
}

.sr-story-card__body > span:first-child {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.sr-story-card__body strong {
  overflow: hidden;
  font-size: 0.93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-story-card__body small {
  color: #b4c0c4;
  font-size: 0.63rem;
}

.sr-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--sr-paper);
  color: var(--sr-navy);
  font-size: 0.9rem;
}

.sr-home-target {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 239, 231, 0.13);
  border-radius: 17px;
  background: var(--sr-teal);
}

.sr-home-target__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--sr-yellow);
  color: var(--sr-navy);
}

.sr-home-target > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.sr-home-target small {
  color: #b4c0c4;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sr-home-target strong {
  overflow: hidden;
  color: var(--sr-paper);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-home-target__points {
  color: #dce3e5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
  white-space: nowrap;
}

.sr-home-target__points b {
  color: var(--sr-accent);
}

.sr-text-button {
  align-self: center;
  margin-top: 10px;
  padding: 3px 6px;
  background: transparent;
  color: #dce3e5;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-text-button--paper {
  margin-top: 14px;
  color: #0b6d93;
}

.sr-reading-image {
  height: 192px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 15px -8px rgba(0, 0, 0, 0.32);
}

.sr-reading-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-reading-title {
  margin: 16px 0 0;
  color: #1f2a2e;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.sr-reading-copy {
  margin: 9px 0 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.58;
}

.sr-reading-copy .sr-reading-word {
  padding: 1px 3px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sr-reading-copy .sr-reading-word:hover,
.sr-reading-copy .sr-reading-word--selected {
  background: #fde68a;
}

.sr-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
}

.sr-player button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: var(--sr-blue);
  font-size: 1.2rem;
}

.sr-player .sr-player__play {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: var(--sr-blue);
  color: #fff;
  font-size: 1.15rem;
}

@media (max-width: 1080px) {
  .sr-demo__prototype-grid {
    grid-template-columns: 170px minmax(400px, 1fr);
  }

  .sr-demo__notes {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    column-gap: 24px;
    max-width: none;
    padding: 6px 10px 0;
  }

  .sr-demo__notes-kicker,
  .sr-demo__notes h3,
  .sr-demo__notes > p:not(.sr-demo__notes-kicker) {
    grid-column: 1;
  }

  .sr-demo__notes-meta,
  .sr-demo__notes-callout {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .sr-demo__notes-callout {
    align-self: end;
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .sr-demo__masthead,
  .sr-demo__main,
  .sr-demo__footer {
    width: min(100% - 32px, 560px);
  }

  .sr-demo__masthead {
    min-height: 82px;
    padding: 17px 0;
  }

  .sr-demo__brand {
    margin-inline: auto;
  }

  .sr-demo__masthead-note {
    display: none;
  }

  .sr-demo__intro {
    padding: 28px 0 35px;
  }

  .sr-demo__title {
    font-size: clamp(2.75rem, 15vw, 5rem);
  }

  .sr-demo__intro-bottom {
    display: grid;
    gap: 18px;
  }

  .sr-demo__intro-facts {
    justify-content: flex-start;
  }

  .sr-demo__prototype {
    margin-inline: -8px;
    border-radius: 23px;
  }

  .sr-demo__prototype-head {
    padding: 23px 20px 20px;
  }

  .sr-demo__local-badge {
    padding: 6px 8px;
    font-size: 0.58rem;
  }

  .sr-demo__prototype-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px 14px 24px;
  }

  .sr-demo__rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding: 0;
  }

  .sr-demo__rail-label,
  .sr-demo__rail-footer {
    display: none;
  }

  .sr-demo__rail-item {
    min-height: 40px;
    width: 100%;
    padding: 7px 8px;
    font-size: 0.75rem;
    line-height: 1.24;
  }

  .sr-demo__rail-index {
    min-width: auto;
  }

  .sr-demo__device-wrap {
    width: 100%;
  }

  .sr-demo__device {
    width: min(100%, 414px);
  }

  .sr-demo__device-screen,
  .sr-screen,
  .sr-screen__content {
    min-height: 725px;
  }

  .sr-demo__notes {
    display: block;
    width: min(100%, 430px);
    padding: 2px 10px 0;
  }

  .sr-demo__notes h3 {
    font-size: 1.45rem;
  }

  .sr-demo__notes-meta {
    grid-template-columns: 1fr 1fr;
    margin-top: 21px;
  }

  .sr-demo__notes-callout {
    margin-top: 16px;
  }

  .sr-demo__prototype-foot {
    gap: 10px 16px;
    justify-content: flex-start;
    padding-inline: 18px;
    font-size: 0.67rem;
  }

  .sr-demo__source-note {
    margin-top: 36px;
  }

  .sr-demo__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 28px 0 34px;
  }
}

@media (max-width: 430px) {
  .sr-demo__masthead,
  .sr-demo__main,
  .sr-demo__footer {
    width: min(100% - 24px, 560px);
  }

  .sr-demo__back-link span:last-child {
    display: none;
  }

  .sr-demo__device {
    padding: 8px;
    border-radius: 45px;
  }

  .sr-demo__device-screen,
  .sr-screen {
    border-radius: 37px;
  }

  .sr-demo__device-screen,
  .sr-screen,
  .sr-screen__content {
    min-height: 700px;
  }

  .sr-screen__content {
    padding-inline: 19px;
  }

  .sr-screen__heading {
    font-size: 1.82rem;
  }

  .sr-screen__heading--home {
    font-size: 2rem;
  }

  .sr-target-card > img {
    width: 91px;
    height: 70px;
  }

  .sr-target-card__copy strong {
    font-size: 0.76rem;
  }

  .sr-color-options {
    gap: 10px;
  }

  .sr-reading-image {
    height: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-demo *,
  .sr-demo *::before,
  .sr-demo *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
