:root {
  --paper: #f4efe6;
  --ink: #1a1714;
  --card: #fffaf3;
  --muted: #6d6458;
  --line: rgba(26, 23, 20, 0.1);
  --teal: #0f6e66;
  --teal-ink: #0b564f;
  --cream: #f7f3ec;
  --shadow: 0 1px 0 rgba(255, 250, 243, 0.65) inset, 0 18px 50px rgba(26, 23, 20, 0.08);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

html.dark {
  --paper: #12100e;
  --ink: #f3ece2;
  --card: #1b1815;
  --muted: #b3a89a;
  --line: rgba(243, 236, 226, 0.1);
  --teal: #3dccc0;
  --teal-ink: #7ee0d6;
  --cream: #0c1211;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

html.dark body::before {
  opacity: 0.18;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand img.mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--teal);
  color: var(--cream);
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--teal);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 40px;
}

.kicker {
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row b {
  color: var(--ink);
  font-weight: 600;
}

.stage {
  position: relative;
  min-height: 420px;
}

.window {
  position: relative;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-1.4deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.dot:nth-child(1) {
  background: #c2412d;
}
.dot:nth-child(2) {
  background: #c4841d;
}
.dot:nth-child(3) {
  background: #2f7d4a;
}

.window-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 320px;
}

.rail {
  padding: 14px 10px;
  background: color-mix(in oklab, var(--paper) 70%, var(--card));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.rail span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: color-mix(in oklab, var(--teal) 14%, transparent);
}

.rail span.active {
  background: var(--teal);
}

.pane {
  padding: 22px 24px 28px;
}

.pane h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.pane p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  background: color-mix(in oklab, var(--teal) 12%, transparent);
  color: var(--teal-ink);
  font-size: 12px;
}

.float-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(240px, 70%);
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

html.dark .float-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.float-card small {
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.ribbon {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ribbon-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 28s linear infinite;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.chapters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chapter {
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 230px;
}

.chapter .n {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--teal);
}

.chapter h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.chapter p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}

.step b {
  display: block;
  margin: 16px 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.download {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 36px 36px 28px;
  border-radius: 32px 32px 0 0;
  background: var(--ink);
  color: var(--paper);
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 0 0 32px 32px;
  background: var(--ink);
}

html.dark .os-grid {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
}

.os-card {
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
}

html.dark .os-card {
  background: var(--paper);
}

.os-card.current {
  outline: 2px solid var(--teal);
}

.os-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.price {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: -0.05em;
}

.os-file {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.os-card .btn {
  width: 100%;
  background: var(--teal);
  color: var(--cream);
}

.os-card.is-soon .btn {
  display: none;
}

.os-soon {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

html.dark .download {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom: 0;
}

.download h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: -0.045em;
}

.download p {
  margin: 0 0 22px;
  opacity: 0.78;
}

.download .btn {
  background: var(--paper);
  color: var(--ink);
}

html.dark .download .btn {
  background: var(--teal);
  color: var(--cream);
}

.side-note {
  align-self: end;
  font-size: 14px;
  opacity: 0.72;
}

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 18px;
  letter-spacing: -0.03em;
  list-style: none;
}

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

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 46rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero,
  .section-head,
  .chapters,
  .steps,
  .download,
  .os-grid,
  .window-body {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 36px;
  }
  .stage {
    min-height: 0;
  }
  .window {
    transform: none;
  }
  .float-card {
    position: static;
    width: auto;
    margin-top: 16px;
    transform: none;
  }
  section {
    padding: 56px 0;
  }
}
