:root {
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: #2faff2;
  --primary-hover: #2a9eda;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0 0);
  --secondary-foreground: oklch(0.2 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.46 0 0);
  --accent: oklch(0.95 0.04 233);
  --accent-foreground: oklch(0.39 0.12 233);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: #2faff2;
  --sidebar: oklch(0.985 0 0);
  --brand-light: #66ccff;
  --brand-dark: #1a8dd0;
  --brand-deep: #0d5a8c;
  --link: #0d5a8c;
  --green-border: oklch(0.87 0.15 154);
  --green-text: oklch(0.53 0.15 150);
  --blue-border: oklch(0.81 0.1 252);
  --blue-text: oklch(0.49 0.22 264);
  --amber-bg: oklch(0.987 0.022 95);
  --amber-border: oklch(0.88 0.15 92);
  --amber-text: oklch(0.41 0.11 46);
  --radius: 0.625rem;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 40px -12px rgb(13 90 140 / 0.18), 0 4px 10px -4px rgb(0 0 0 / 0.08);
  --page: 72rem;
  color-scheme: light;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary-hover: #49baf4;
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.27 0.05 233);
  --accent-foreground: oklch(0.8 0.11 233);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --sidebar: oklch(0.205 0 0);
  --link: #66ccff;
  --green-border: oklch(0.45 0.12 152);
  --green-text: oklch(0.87 0.15 154);
  --blue-border: oklch(0.42 0.18 266);
  --blue-text: oklch(0.81 0.1 252);
  --amber-bg: oklch(0.28 0.06 60 / 0.5);
  --amber-border: oklch(0.47 0.11 60);
  --amber-text: oklch(0.96 0.06 96);
  --shadow-lg: 0 20px 40px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-underline-offset: 4px;
}

svg {
  flex-shrink: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--card);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  z-index: 50;
}

.skip:focus {
  left: 0.5rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-5 {
  width: 1.25rem;
  height: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.dark .btn-outline {
  background: color-mix(in oklab, var(--input) 30%, transparent);
  border-color: var(--input);
}

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

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-lg {
  height: 2.5rem;
  padding: 0 1.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.logo img {
  width: 2rem;
  height: 2rem;
}

.site-nav {
  display: none;
  gap: 0.25rem;
  margin-right: auto;
}

.site-nav a {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

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

.header-actions .signin {
  display: none;
}

.theme-toggle .moon,
.dark .theme-toggle .sun {
  display: none;
}

.dark .theme-toggle .moon {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34rem;
  background:
    radial-gradient(60rem 22rem at 50% -6rem, color-mix(in oklab, var(--primary) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-copy {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fine {
  margin-top: 0.875rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.window {
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem 0.75rem 0 0;
  border-bottom: 0;
  background: var(--background);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.app-side {
  display: none;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.app-side-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.app-side-head img {
  width: 1.75rem;
  height: 1.75rem;
}

.app-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.app-nav li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.app-nav li.on {
  background: var(--primary);
  color: var(--primary-foreground);
}

.app-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  min-width: 0;
}

.app-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.app-sub {
  margin-top: 0.125rem;
  color: var(--muted-foreground);
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 1rem 1.125rem;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.stat-top .icon {
  color: var(--muted-foreground);
}

.stat-value {
  margin-top: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.stat-note {
  margin-top: 0.125rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.stat-up {
  color: var(--green-text);
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  font-weight: 600;
}

.list-head span {
  color: var(--muted-foreground);
  font-weight: 500;
}

.rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.125rem;
  border-top: 1px solid var(--border);
}

.rows .who {
  min-width: 0;
}

.rows .name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows .meta {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.rows .right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-green {
  border-color: var(--green-border);
  color: var(--green-text);
}

.badge-blue {
  border-color: var(--blue-border);
  color: var(--blue-text);
}

.badge-solid {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-soft {
  border-color: transparent;
  background: var(--secondary);
  color: var(--secondary-foreground);
}

section {
  padding: 5rem 0;
}

.band {
  background: var(--muted);
  border-block: 1px solid var(--border);
}

.dark .band {
  background: oklch(0.175 0 0);
}

.section-head {
  max-width: 42rem;
}

h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 0.875rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.spot {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.spot + .spot {
  margin-top: 4.5rem;
}

.spot-copy h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
}

.spot-copy p {
  margin-top: 0.875rem;
  color: var(--muted-foreground);
}

.ticks {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.ticks li {
  display: flex;
  gap: 0.625rem;
}

.ticks .icon {
  margin-top: 0.3rem;
  color: var(--primary);
}

.panel {
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
}

.paper {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
}

.paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--primary);
}

.paper-head strong {
  display: block;
  font-size: 1rem;
}

.paper small,
.kv dt,
.muted {
  color: var(--muted-foreground);
}

.paper small {
  font-size: 0.75rem;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1.25rem;
  margin-top: 0.875rem;
}

.kv dd {
  text-align: right;
  font-weight: 500;
}

.paper-total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}

.checks {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
}

.note {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--amber-border);
  border-radius: 0.375rem;
  background: var(--amber-bg);
  color: var(--amber-text);
}

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

.soon {
  max-width: 48rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.soon .badge {
  margin-right: 0.375rem;
}

.feature {
  padding: 1.5rem;
}

.feature .tile {
  margin-bottom: 1rem;
}

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

.price {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
}

.price-figure {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price .price-figure {
  margin-top: 0.75rem;
  color: var(--foreground);
}

.price-figure small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.price p {
  margin-top: 0.625rem;
  color: var(--muted-foreground);
}

.price .btn {
  margin-top: 1.5rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-top: 2.5rem;
}

.faq details {
  padding: 0 1.25rem;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  padding-bottom: 1.125rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.faq details p + p {
  margin-top: -0.375rem;
}

.closing {
  text-align: center;
}

.closing p {
  max-width: 36rem;
  margin: 0.875rem auto 0;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

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

.site-footer a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.lost {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.lost img {
  width: 4rem;
  height: 4rem;
}

.lost h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lost p {
  max-width: 24rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (min-width: 40rem) {
  .header-actions .signin {
    display: inline-flex;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-value {
    font-size: 1.375rem;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .site-nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .app {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .app-side {
    display: flex;
  }

  .app-main {
    padding: 1.5rem;
  }

  .spot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .spot.flip .spot-copy {
    order: 2;
  }

  .price {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
