/* Nästa Avgång landing. The site keeps its morning-platform world; the product mocks follow the
   iOS app's design system (sl-widget DESIGN.md): grouped surfaces, hairlines, no card shadows,
   TransitPalette greens, SL line colours, tabular numerals. */

:root {
  color-scheme: light;
  --ink: #14261c;
  --ink-soft: #3d5a48;
  --ink-faint: #456655;
  --canvas: #eef8f1;
  --canvas-end: #ffffff;
  --paper: #ffffff;
  --green: #0a7333;
  --green-bright: #1faa4c;
  --green-wash: rgba(10, 115, 51, 0.1);
  --on-green: #ffffff;
  --peach: rgba(255, 180, 138, 0.35);
  --sky: rgba(158, 215, 255, 0.55);
  --line: rgba(20, 38, 28, 0.1);
  --chip: rgba(255, 255, 255, 0.72);
  --chip-hover: #ffffff;
  --top-bg: rgba(238, 248, 241, 0.8);
  --focus: #0a7333;
  --shadow: 0 18px 40px rgba(20, 38, 28, 0.1), 0 2px 0 rgba(10, 115, 51, 0.06);

  /* iOS app tokens (light) */
  --ios-grouped: #f2f2f7;
  --ios-card: #ffffff;
  --ios-ink: #000000;
  --ios-secondary: rgba(60, 60, 67, 0.72);
  --ios-tertiary: rgba(60, 60, 67, 0.32);
  --ios-hairline: rgba(60, 60, 67, 0.2);
  --ios-live: #0a7333;
  --ios-live-fill: rgba(10, 115, 51, 0.1);
  --ios-now-fill: #0a7333;
  --ios-now-ink: #ffffff;
  --ios-live-stroke: rgba(10, 115, 51, 0.42);
  --ios-accent: #0062d1;
  --ios-accent-fill: rgba(0, 122, 255, 0.14);

  /* Lock Screen glass (light): white scrim, line colour deepened for glass */
  --wall: linear-gradient(165deg, #9ed7ff 0%, #cfeedd 46%, #ffd2b8 100%);
  --glass: rgba(255, 255, 255, 0.35);
  --glass-ink: #000000;
  --glass-soft: rgba(0, 0, 0, 0.85);
  --glass-line: #085929;
  --lock-ink: rgba(10, 30, 20, 0.88);

  --display: "Familjen Grotesk", "Avenir Next", sans-serif;
  --sans: "Nunito Sans", "Avenir Next", sans-serif;
  --ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --ios-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius-btn: 999px;
  --space: clamp(1rem, 2.5vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e6f2e9;
    --ink-soft: #a8c2b1;
    --ink-faint: #93ae9c;
    --canvas: #0b1510;
    --canvas-end: #070d0a;
    --paper: #121d17;
    --green: #40d973;
    --green-bright: #40d973;
    --green-wash: rgba(64, 217, 115, 0.12);
    --on-green: #04140a;
    --peach: rgba(255, 150, 100, 0.1);
    --sky: rgba(90, 160, 230, 0.16);
    --line: rgba(230, 242, 233, 0.12);
    --chip: rgba(255, 255, 255, 0.06);
    --chip-hover: rgba(255, 255, 255, 0.1);
    --top-bg: rgba(11, 21, 16, 0.78);
    --focus: #40d973;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);

    --ios-grouped: #000000;
    --ios-card: #1c1c1e;
    --ios-ink: #ffffff;
    --ios-secondary: rgba(235, 235, 245, 0.62);
    --ios-tertiary: rgba(235, 235, 245, 0.3);
    --ios-hairline: rgba(84, 84, 88, 0.6);
    --ios-live: #40d973;
    --ios-live-fill: rgba(64, 217, 115, 0.16);
    --ios-now-fill: #38d16b;
    --ios-now-ink: #000000;
    --ios-live-stroke: rgba(64, 217, 115, 0.45);
    --ios-accent: #3d9bff;
    --ios-accent-fill: rgba(10, 132, 255, 0.2);

    --wall: linear-gradient(165deg, #10243a 0%, #0f2a1e 50%, #2a1a14 100%);
    --glass: rgba(0, 0, 0, 0.5);
    --glass-ink: #ffffff;
    --glass-soft: rgba(255, 255, 255, 0.85);
    --glass-line: #34c759;
    --lock-ink: rgba(255, 255, 255, 0.92);
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% -8%, var(--sky), transparent 58%),
    radial-gradient(700px 420px at 8% 12%, var(--peach), transparent 55%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas) 40%, var(--canvas-end) 100%);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--on-green);
}

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

[hidden] {
  display: none !important;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sym {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 20;
  box-shadow: var(--shadow);
}

.skip:focus {
  transform: translateY(0);
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--top-bg);
  border-bottom: 1px solid var(--line);
}

.top__inner,
.hero__grid,
.lock__inner,
.features__inner,
.plus__inner,
.closing__inner,
.issues-hero__inner,
.issues-board-wrap,
.footer__inner {
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
}

.top__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top__nav-link {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

.top__nav-link:hover {
  color: var(--green);
  background: var(--green-wash);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  white-space: nowrap;
}

.brand-mark__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}

.brand-mark--link,
.footer__brand--link {
  text-decoration: none;
}

.lang {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--chip);
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 800 0.78rem/1 var(--sans);
  letter-spacing: 0.06em;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.lang__btn[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}

.lang__btn:hover:not([aria-pressed="true"]) {
  color: var(--ink);
  background: var(--green-wash);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  overflow: clip;
}

.hero__atmosphere {
  position: absolute;
  inset: -5% -10% auto;
  height: 75%;
  pointer-events: none;
  z-index: -1;
  background: repeating-linear-gradient(108deg, transparent 0 22px, var(--green-wash) 22px 23px);
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.85fr);
  }
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 9ch;
  text-wrap: balance;
  animation: pop-in 0.75s var(--ease-out) both;
}

.hero__lede {
  margin: 0;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.45;
  text-wrap: pretty;
  animation: pop-in 0.75s var(--ease-out) 0.06s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: pop-in 0.75s var(--ease-out) 0.12s both;
}

.hero__actions--static {
  animation: none;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-btn);
  font: 700 0.95rem/1.1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--green);
  color: var(--on-green);
}

.btn--disabled {
  cursor: default;
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--chip);
}

.btn--ghost:hover {
  border-color: var(--green);
  background: var(--chip-hover);
  transform: translateY(-1px);
}

/* App preview: a faithful StopBoardCard on the app's grouped canvas */

.app-preview {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  border-radius: 2rem;
  background: var(--ios-grouped);
  border: 1px solid var(--line);
  font-family: var(--ios);
  color: var(--ios-ink);
  max-width: 26rem;
  width: 100%;
  justify-self: center;
  animation: board-in 0.85s var(--ease-out) 0.1s both;
}

.status-bar {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ios-secondary);
}

.status-bar__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-bar__live .sym {
  color: var(--ios-live);
  font-size: 1rem;
}

.stop-card {
  background: var(--ios-card);
  border: 1px solid var(--ios-hairline);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.stop-card.is-followed {
  border-color: var(--ios-live-stroke);
}

.stop-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ios-hairline);
}

.stop-card__title-block {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.stop-card__station {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.stop-card__lines {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.stop-card__badges {
  display: inline-flex;
  gap: 6px;
}

.stop-card__direction {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ios-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-card__direction.is-multi {
  font-size: 0.75rem;
  font-weight: 400;
}

.sym--more {
  font-size: 1.35rem;
  color: var(--ios-secondary);
  stroke-width: 1.6;
}

.stop-card__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ios-hairline);
}

.stop-card__lead-text {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.stop-card__lead-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.stop-card__lead-sub {
  font-size: 0.8125rem;
  color: var(--ios-secondary);
}

.sym--live {
  color: var(--ios-live);
  font-size: 0.85rem;
  stroke-width: 2.4;
}

.countdown-pill {
  flex: none;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--ios-live-fill);
  color: var(--ios-live);
  font-family: var(--ios-rounded);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.18;
  white-space: nowrap;
}

.countdown-pill.is-now {
  background: var(--ios-now-fill);
  color: var(--ios-now-ink);
}

.countdown-pill.is-ticking {
  animation: countdown-pop 0.4s var(--ease-out);
}

.stop-card__later {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ios-hairline);
  font-size: 0.9375rem;
}

.stop-card__later[hidden] {
  display: none;
}

.stop-card__later-label {
  color: var(--ios-secondary);
}

.stop-card__later-items {
  display: contents;
}

.later-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.later-item__min {
  font-weight: 600;
  color: var(--ios-live);
}

.later-item__clock {
  font-size: 0.8125rem;
  color: var(--ios-secondary);
}

.stop-card__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 10px 14px;
}

.follow-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--ios-accent-fill);
  color: var(--ios-accent);
  font: 600 0.9375rem/1.2 var(--ios);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease;
}

.follow-toggle:active {
  transform: scale(0.97);
}

.follow-toggle[aria-pressed="true"] {
  background: var(--ios-now-fill);
  color: var(--ios-now-ink);
}

.follow-toggle .sym {
  font-size: 1.05rem;
}

.schedule-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.8125rem;
  color: var(--ios-secondary);
}

.sym--chev {
  font-size: 0.7rem;
  color: var(--ios-tertiary);
  stroke-width: 2.6;
}

/* SL line badges (LineBadge): green takes black ink, the rest white */

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--ios);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: #ff3b30;
}

.line-badge--green {
  background: #34c759;
  color: #000;
}
.line-badge--red {
  background: #ff3b30;
}
.line-badge--blue {
  background: #007aff;
}
.line-badge--pink {
  background: #ff2d55;
}
.line-badge--orange {
  background: #ff9500;
}
.line-badge--teal {
  background: #30b0c7;
}

/* Sections */

.section-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-body {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  text-wrap: pretty;
}

/* Lock Screen */

.lock {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.lock__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .lock__inner {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1fr);
  }
  .lock__copy {
    order: 2;
  }
}

.phone {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
  padding: 10px;
  border-radius: 3.1rem;
  background: #111;
  box-shadow: 0 30px 60px -20px rgba(20, 38, 28, 0.35);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 34rem;
  padding: 0.75rem 0.9rem 1.5rem;
  border-radius: 2.5rem;
  background: var(--wall);
  overflow: hidden;
  color: var(--lock-ink);
  font-family: var(--ios);
}

.island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 11.5rem;
  height: 2.25rem;
  padding: 0 0.6rem 0 0.5rem;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.35);
}

.island__count {
  max-width: 3rem;
  color: #34c759;
  font-size: 0.95rem;
  font-weight: 700;
}

.phone__clock {
  margin-top: 1.6rem;
  font-family: var(--ios-rounded);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.phone__date {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
}

.activity {
  width: 100%;
  margin-top: auto;
  padding: 14px 16px 12px;
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--glass-ink);
}

.activity__head {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.activity__station {
  font-size: 1.0625rem;
  font-weight: 600;
}

.activity__dir {
  font-size: 0.9375rem;
  color: var(--glass-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-badge--glass.line-badge--green {
  background: var(--glass-line);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .line-badge--glass.line-badge--green {
    color: #000;
  }
}

.island .line-badge--glass.line-badge--green {
  background: #34c759;
  color: #000;
}

.activity__main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: clamp(2rem, 9vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.activity__count {
  color: var(--glass-line);
}

.activity__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--glass-soft);
  white-space: nowrap;
}

/* Features */

.features {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.features .section-title {
  max-width: 18ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.feature-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

.feature {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.feature dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature__icon {
  font-size: 1.3rem;
  color: var(--green);
}

.feature dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34rem;
  text-wrap: pretty;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.85rem;
}

/* Plus */

.plus {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.plus__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .plus__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.8fr);
  }
}

.plus-mark {
  display: inline-block;
  padding: 0 0.3em 0.04em;
  border-radius: 0.28em;
  background: var(--green);
  color: var(--on-green);
}

.plus__note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.schedule-card {
  justify-self: center;
  width: min(100%, 22rem);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--ios-live-stroke);
  background: var(--ios-card);
  color: var(--ios-ink);
  font-family: var(--ios);
}

.schedule-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-card__name {
  font-size: 1.25rem;
  font-weight: 700;
}

.schedule-card__on {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ios-live-fill);
  color: var(--ios-live);
  font-size: 0.8125rem;
  font-weight: 600;
}

.schedule-card__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--ios-grouped);
  color: var(--ios-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.day.is-on {
  background: var(--ios-now-fill);
  color: var(--ios-now-ink);
}

.schedule-card__times {
  display: flex;
  gap: 1.5rem;
  padding: 10px 0;
  border-top: 1px solid var(--ios-hairline);
  border-bottom: 1px solid var(--ios-hairline);
  font-size: 0.9375rem;
  color: var(--ios-secondary);
}

.schedule-card__times strong {
  color: var(--ios-ink);
  font-weight: 600;
}

.schedule-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.schedule-card__status .sym {
  color: var(--ios-live);
}

/* Closing */

.closing {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing__title {
  margin: 0 auto 1.75rem;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--green);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.footer a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.footer a:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

.footer__muted {
  color: var(--ink-faint);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .top__nav-link {
    display: none;
  }
}

/* Shared board shell, still used by /issues */

.board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.board__chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.board__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.board__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-bright);
}

.board__station {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Known Issues (/issues) */

.issues-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.25rem, 6vw, 4.25rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
  overflow: clip;
}

.issues-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-btn);
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--green);
  font: 700 0.8rem/1.2 var(--mono);
}

.issues-title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 3.85rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  animation: pop-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.issues-lede {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  animation: pop-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.issues-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
  animation: pop-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.issues-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--chip);
}

.filter-chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 700 0.86rem/1 var(--sans);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-chip[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}

.filter-chip:hover:not([aria-pressed="true"]) {
  color: var(--ink);
  background: var(--green-wash);
}

.issues-gh-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gh-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gh-tag-link code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
}

.gh-tag-link:hover {
  border-color: var(--green);
  background: var(--chip-hover);
  color: var(--green);
}

.issues-board-section {
  padding: 0 0 clamp(3.5rem, 8vw, 5.5rem);
}

.issues-board {
  animation: pop-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.issue-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.issue-row:last-child {
  border-bottom: 0;
}

.issue-row:hover {
  background: var(--green-wash);
}

.issue-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.28rem 0.5rem;
  border-radius: 7px;
  background: var(--green-wash);
  color: var(--green);
  font: 700 0.84rem/1.1 var(--mono);
}

.issue-main {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.issue-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.35;
}

.issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.issue-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font: 700 0.72rem/1.2 var(--mono);
  letter-spacing: 0.02em;
}

.issue-tag--bug {
  background: rgba(215, 58, 74, 0.12);
  color: #9e1c28;
}

.issue-tag--limitation {
  background: rgba(217, 63, 11, 0.14);
  color: #8f3006;
}

.issue-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--green);
  font: 700 0.82rem/1 var(--mono);
  white-space: nowrap;
}

.issues-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 600px) {
  .issue-row {
    grid-template-columns: auto 1fr;
  }
  .issue-link-label {
    grid-column: 2;
    justify-self: start;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes board-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 170, 76, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-1.5%, 1%, 0);
  }
}

@keyframes countdown-pop {
  from {
    transform: scale(0.86);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .issue-tag--bug {
    background: rgba(255, 105, 97, 0.16);
    color: #ff8a80;
  }
  :root:not([data-theme="light"]) .issue-tag--limitation {
    background: rgba(255, 159, 10, 0.16);
    color: #ffb340;
  }
  :root:not([data-theme="light"]) .phone {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
