:root,
:root[data-theme="light"] {
  color-scheme: light;
  --navy: #1a2744;
  --navy-2: #2b3a63;
  --ink: #0f1830;
  --red: #e10600;
  --red-soft: rgba(225, 6, 0, 0.12);
  --page: #f6f7fa;
  --page-2: #eef0f5;
  --shell: #fbfcfe;
  --text: #0f1830;
  --muted: #5d6680;
  --line: #e2e6ef;
  --card: #ffffff;
  --hover: #eef1f7;
  --accent: #1a2744;
  --accent-text: #ffffff;
  --panel: linear-gradient(165deg, #1a2744 0%, #2b3a63 55%, #e9ecf4 100%);
  --panel-text: #ffffff;
  --shadow: 0 18px 50px rgba(15, 24, 48, 0.08);
  --shadow-lift: 0 30px 70px rgba(15, 24, 48, 0.16);
  --glass: rgba(255, 255, 255, 0.72);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sky-0: #f6f7fa;
  --sky-1: #eef1f8;
  --sky-2: #d7ddee;
  --sky-3: #b4bfdc;
  --m-far: #d2d8ea;
  --m-peak: #c3cbe2;
  --m-peak-hi: #dde2f0;
  --m-mid: #aeb9d8;
  --m-near: #2b3a63;
  --m-front: #1a2744;
  --stars: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a0f1e;
  --page-2: #0e1528;
  --shell: #10182c;
  --text: #eef1f8;
  --muted: #9aa5bf;
  --line: #222d47;
  --card: #111a30;
  --hover: #18223b;
  --accent: #eef1f8;
  --accent-text: #0f1830;
  --panel: linear-gradient(165deg, #0b1122 0%, #1a2744 55%, #2b3a63 100%);
  --panel-text: #eef1f8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 30px 70px rgba(0, 0, 0, 0.6);
  --glass: rgba(16, 24, 44, 0.72);
  --sky-0: #060a16;
  --sky-1: #0b1226;
  --sky-2: #16203d;
  --sky-3: #25335a;
  --m-far: #1c2848;
  --m-peak: #0f1830;
  --m-peak-hi: #24335a;
  --m-mid: #18233f;
  --m-near: #0c1326;
  --m-front: #070b17;
  --stars: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--text);
  overflow-x: clip;
}

/* Until the first paint the text and the session are not known, so only the page colour shows. */
html.booting body > * {
  visibility: hidden;
}

::selection {
  background: var(--red);
  color: #ffffff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.site {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 0;
}

.page:not(.landing) {
  padding-bottom: 72px;
}

.top {
  --top-width: min(calc(100vw - 64px), 1600px);
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 calc((100% - var(--top-width)) / 2) 28px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.is-scrolled .top {
  background: var(--glass);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(15, 24, 48, 0.08);
  backdrop-filter: blur(14px) saturate(1.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  padding: 0;
}

.mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 24, 48, 0.2);
  transition: transform 0.5s var(--ease);
}

.brand:hover .mark {
  transform: rotate(-8deg) scale(1.06);
}

.mark-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-beat 2.8s var(--ease) infinite;
}

.tabs {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  margin-left: 28px;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  transition:
    color 0.2s,
    background 0.2s;
}

.tab:hover {
  color: var(--text);
}

.tab.current {
  color: var(--text);
  background: var(--hover);
}

.tab[hidden] {
  display: none;
}

[data-soon] {
  cursor: default;
}

.foot-link[data-soon]:hover::after {
  transform: scaleX(0);
}

.tab-cta {
  background: var(--hover);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 600;
}

.tab-cta:hover,
.tab-cta.current {
  background: var(--line);
  color: var(--text);
}

.tab-start {
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 650;
}

.tab-start:hover,
.tab-start.current {
  background: var(--accent);
  color: var(--accent-text);
  opacity: 0.88;
}

.top-end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* A thin divider keeps the account actions apart from the language and theme tools. */
.top-end > .tab-cta {
  position: relative;
  margin-left: 21px;
}

.top-end > .tab-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 1px;
  height: 20px;
  background: var(--line);
  transform: translateY(-50%);
}

.top-end > .menu-wrap:last-child {
  margin-left: 4px;
}

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

.menu-wrap {
  position: relative;
}

.tab-menu,
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chev {
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}

.menu-wrap.open .chev {
  transform: rotate(180deg);
}

.tool-btn {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.2s,
    background 0.2s;
}

.tool-btn:hover,
.menu-wrap.open > .tool-btn {
  background: var(--hover);
  color: var(--text);
}

.icon-btn {
  padding: 8px;
}

:root[data-theme="dark"] .icon-sun,
:root[data-theme="light"] .icon-moon {
  display: none;
}

.flag {
  display: block;
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.nav-menu::before {
  position: absolute;
  inset: -10px 0 auto;
  height: 10px;
  content: "";
}

.menu-wrap.open > .nav-menu {
  display: flex;
}

@media (hover: hover) {
  .menu-wrap:hover > .nav-menu {
    display: flex;
  }
}

.nav-menu-right {
  right: 0;
  left: auto;
}

.nav-menu-small {
  min-width: 170px;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.nav-menu-item:hover:not(.is-disabled) {
  background: var(--hover);
}

.nav-menu-item.is-disabled {
  cursor: default;
}

.nav-menu-icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-2);
  color: var(--text);
}

.nav-menu-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.nav-menu-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.lang-option:hover {
  background: var(--hover);
}

.lang-option[aria-checked="true"] {
  background: var(--hover);
  font-weight: 650;
}

.lang-option[aria-checked="true"]::after {
  margin-left: auto;
  color: var(--red);
  content: "✓";
}

.switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--shell);
}

.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
}

.switch button.current {
  background: var(--hover);
  color: var(--text);
}

.page[hidden] {
  display: none;
}

.hero {
  margin-bottom: 28px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 12px;
}

h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 46rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.announcements {
  margin-top: 8px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--shell);
  box-shadow: var(--shadow);
}

.auth {
  padding: 32px 32px 28px;
}

.auth h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth .lead {
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.auth-form input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--text);
  margin-bottom: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 4px rgba(43, 58, 99, 0.14);
}

#confirm-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#confirm-wrap[hidden] {
  display: none;
}

.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.auth-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  background: var(--navy);
  color: #ffffff;
}

:root[data-theme="dark"] .auth-actions button {
  background: var(--accent);
  color: var(--accent-text);
}

.status {
  min-height: 1.4em;
  margin: 4px 0;
  color: var(--muted);
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  color: var(--panel-text);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel::before {
  content: "";
  position: absolute;
  top: 18%;
  right: 16%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 120px 40px rgba(225, 6, 0, 0.35);
}

.panel h2,
.panel p {
  position: relative;
  color: var(--panel-text);
  max-width: 28rem;
}

.auth-switch {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.doc {
  max-width: 760px;
  margin: 12px auto 0;
}

.doc-head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.doc-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.doc-updated {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.doc-lead {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.doc-section {
  margin: 0 0 28px;
}

.doc-section h2 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.doc-section p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.pricing-head {
  margin: 12px auto 36px;
  text-align: center;
}

.pricing-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.pricing-sub {
  max-width: 40rem;
  margin: 0 auto 22px;
  color: var(--muted);
}

.pricing-cycle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
}

.pricing-cycle-on {
  padding: 6px 18px;
  border-radius: 7px;
  background: var(--hover);
  color: var(--text);
  font-weight: 600;
}

.pricing-cycle-note {
  padding: 6px 14px;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.plan-card::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: 60%;
  height: 120px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
  content: "";
  pointer-events: none;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.plan-card.plan-card-top {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-soft), var(--shadow);
}

.plan-card.plan-card-top h2 {
  color: var(--red);
}

.plan-badge {
  padding: 2px 8px;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.plan-card.is-current {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}

.plan-price {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-usd {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.plan-feats li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.45;
}

.plan-feats li::before {
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--muted);
  content: "✓";
}

.plan-feats li[hidden] {
  display: none;
}

.plan-cta {
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--hover);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s;
}

.plan-cta:hover {
  background: var(--line);
}

.plan-card-top .plan-cta {
  background: var(--red);
  color: #ffffff;
}

.plan-card-top .plan-cta:hover {
  background: #c40500;
}

.plan-cta:disabled {
  opacity: 0.6;
  cursor: default;
}

.plan-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.pay-methods {
  margin-bottom: 72px;
}

.compare {
  margin: 0 0 88px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  vertical-align: top;
  font-weight: 500;
}

.compare-table thead th:first-child {
  width: 26%;
  font-size: 1.15rem;
  font-weight: 700;
}

.compare-table tbody th {
  font-weight: 650;
}

.compare-plan {
  display: block;
  margin-bottom: 8px;
}

.compare-table thead th.is-top .compare-plan,
.compare-table thead th.is-top .compare-link {
  color: var(--red);
}

.compare-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.compare-link:hover {
  text-decoration: underline;
}

.cmp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cmp::before {
  display: inline-grid;
  flex: none;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  content: "✓";
}

.cmp-yes::before {
  background: var(--red);
  color: #ffffff;
}

.cmp-part::before {
  background: var(--muted);
  color: var(--card);
}

.cmp-no {
  color: var(--muted);
}

.cmp-no::before {
  border: 1px solid var(--muted);
  color: var(--muted);
  content: "✕";
}

.faq {
  max-width: 860px;
  margin: 0 auto 96px;
}

.faq h2 {
  margin: 0 0 28px;
  font-size: 1.7rem;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  flex: none;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  content: "+";
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  color: var(--red);
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 6px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 56px;
}

.pricing-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.pricing-cta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: min(340px, 100%);
  padding: 13px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #ffffff;
  font-weight: 650;
}

.pricing-cta-btn:hover {
  background: #c40500;
}

@media (max-width: 860px) {
  .pricing-cycle {
    flex-direction: column;
  }
}

.pricing-status {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}

.dl-head {
  max-width: 46rem;
  margin: 12px auto 44px;
  text-align: center;
}

.dl-head h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.dl-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.dl-group {
  margin: 0 0 44px;
}

.dl-os {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.dl-os svg {
  color: var(--muted);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dl-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.dl-card::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: 55%;
  height: 110px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
  content: "";
  pointer-events: none;
}

.dl-card-top {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-soft), var(--shadow);
}

.dl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dl-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.dl-badge {
  padding: 2px 8px;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

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

.dl-file code,
.dl-cmd {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
}

.dl-hash {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dl-hash code {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  color: var(--text);
}

.dl-file code {  color: var(--text);
}

.dl-desc {
  margin: 12px 0 4px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
}

.dl-label {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dl-reqs,
.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
}

.dl-reqs li {
  position: relative;
  padding-left: 22px;
}

.dl-reqs li::before {
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--muted);
  content: "✓";
}

.dl-steps {
  counter-reset: dl-step;
}

.dl-steps li {
  position: relative;
  padding-left: 30px;
  counter-increment: dl-step;
}

.dl-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--hover);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  content: counter(dl-step);
}

.dl-cmd {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-2);
  color: var(--text);
  white-space: nowrap;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.dl-btn:hover {
  opacity: 0.88;
}

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

.dl-btn-top {
  background: var(--red);
  color: #ffffff;
}

.dl-btn-top:hover {
  background: #c40500;
  opacity: 1;
}

.dl-notes {
  margin-top: 12px;
}

.dl-notes h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.dl-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dl-note {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.dl-note h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.dl-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dl-note-stats h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dl-note-stats .dl-stat-value {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dl-note-stats .dl-stat-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 860px) {
  .dl-grid,
  .dl-notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .plans,
  .features,
  .split {
    grid-template-columns: 1fr;
  }

  .top {
    position: relative;
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 0 -12px 28px;
    padding: 8px 12px;
  }

  .top-end {
    margin-left: 0;
    width: auto;
    justify-content: flex-end;
  }

  .tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Landing */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.kicker.center {
  display: flex;
  justify-content: center;
}

.display.center {
  text-align: center;
}

.hero-scene {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -96px;
  padding: 104px 0 8px;
  --hy: 0;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--page));
  pointer-events: none;
}

.hero-land {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 88%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 30%),
    rgba(225, 6, 0, 0.08),
    transparent 60%
  );
  pointer-events: none;
}

.hero-land .sky-0 {
  stop-color: var(--sky-0);
}

.hero-land .sky-1 {
  stop-color: var(--sky-1);
}

.hero-land .sky-2 {
  stop-color: var(--sky-2);
}

.hero-land .sky-3 {
  stop-color: var(--sky-3);
}

.hero-land .glow-0 {
  stop-color: var(--red);
  stop-opacity: 0.3;
}

.hero-land .glow-1 {
  stop-color: var(--red);
  stop-opacity: 0;
}

.m-far {
  fill: var(--m-far);
}

.m-peak {
  fill: var(--m-peak);
}

.m-peak-hi {
  fill: var(--m-peak-hi);
}

.m-mid {
  fill: var(--m-mid);
}

.m-near {
  fill: var(--m-near);
}

.m-front {
  fill: var(--m-front);
}

.sun {
  fill: var(--red);
  transform-box: fill-box;
  transform-origin: center;
  animation: sun-breathe 6s ease-in-out infinite;
}

.stars {
  fill: #ffffff;
  opacity: var(--stars);
}

.stars circle {
  animation: twinkle 3.6s ease-in-out infinite;
}

.stars circle:nth-child(3n) {
  animation-delay: -1.2s;
}

.stars circle:nth-child(3n + 1) {
  animation-delay: -2.4s;
}

.layer {
  will-change: transform;
}

.l-sun {
  transform: translateY(calc(var(--hy) * 0.42px));
}

.l-far {
  transform: translateY(calc(var(--hy) * 0.3px));
}

.l-peak {
  transform: translateY(calc(var(--hy) * 0.2px));
}

.l-near {
  transform: translateY(calc(var(--hy) * 0.1px));
}

.land {
  display: block;
}

.landing .hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 24px 0;
  opacity: calc(1 - var(--hy) / 700);
  transform: translateY(calc(var(--hy) * -0.18px));
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  flex: 0 0 auto;
}

.live-dot {
  --live: #22c55e;
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex: 0 0 auto;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--live);
  animation: ping 2.2s var(--ease) infinite;
}

.landing h1 {
  max-width: 11em;
  margin: 0 auto 22px;
  font-family: var(--serif);
  font-size: clamp(56px, 6.8vw, 88px);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.landing h1 .line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.1em;
  margin-bottom: -0.1em;
}

.landing h1 .line > * {
  display: block;
}

.landing h1 em {
  font-style: italic;
  font-weight: 450;
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 40%, var(--red) 62%, var(--text) 84%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out 1.6s infinite;
}

.landing .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 38rem;
  text-align: center;
}

.hero .lead {
  max-width: 34rem;
  font-size: 16px;
  line-height: 1.55;
}

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn .chev {
  transition: transform 0.35s var(--ease);
}

.btn:hover .chev {
  transform: translateX(3px);
}

.btn-dark {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.28);
}

.btn-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn-dark:hover {
  box-shadow:
    0 14px 30px rgba(26, 39, 68, 0.32),
    0 0 0 4px var(--red-soft);
}

.btn-dark:hover::after {
  transform: translateX(120%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.85);
}

:root[data-theme="dark"] .btn-dark {
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="dark"] .btn-dark::after {
  background: linear-gradient(110deg, transparent 30%, rgba(225, 6, 0, 0.16) 50%, transparent 70%);
}

:root[data-theme="dark"] .btn-glass {
  background: rgba(15, 24, 48, 0.4);
  color: #eef1f8;
  border-color: rgba(238, 241, 248, 0.2);
}

.stage-wrap {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 48px));
  margin: 92px auto 0;
  perspective: 1600px;
  --stage: 1;
}

.stage-wrap::before {
  content: "";
  position: absolute;
  inset: 12% 8% -6%;
  border-radius: 40px;
  background: radial-gradient(ellipse at 50% 100%, rgba(225, 6, 0, 0.28), transparent 70%);
  filter: blur(40px);
  opacity: calc(var(--stage) * 0.9);
}

.stage-window {
  position: relative;
  padding: 14px 18px 18px;
  color: #eef1f8;
  background: linear-gradient(180deg, #1a2744 0%, #131d36 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 90px rgba(10, 16, 34, 0.38);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--stage)) * 24deg)) scale(calc(0.9 + var(--stage) * 0.1));
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 14px;
}

.win-dots {
  display: flex;
  gap: 6px;
}

.win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
  background: rgba(255, 255, 255, 0.22);
}

.win-dots i:nth-child(1) {
  background: var(--red);
}

.win-addr {
  flex: 1;
  max-width: 320px;
  height: 18px;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.win-addr i {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.win-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.win-title {
  margin: 0;
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.win-sub {
  margin: 4px 0 0;
  color: #aab5d3;
  font-size: 14px;
}

.win-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e3e8f5;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c4cff0;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

.ok::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--red);
  border-bottom: 1.6px solid var(--red);
  transform: rotate(-45deg) translateY(-1px);
}

.win-body {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 12px;
  margin-top: 16px;
}

.win-tools,
.win-log {
  min-height: 168px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(7, 11, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.win-tools {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.win-tools span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfe5f4;
  font-size: 13px;
  transition:
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    color 0.5s var(--ease);
}

.win-tools span.is-on {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.35);
}

.win-code {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
}

.win-code i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transform-origin: 0 50%;
}

.win-code i:nth-child(1) {
  width: 62%;
}

.win-code i:nth-child(2) {
  width: 84%;
  margin-left: 8%;
}

.win-code i:nth-child(3) {
  width: 48%;
  margin-left: 8%;
  background: rgba(225, 6, 0, 0.55);
}

.win-code i:nth-child(4) {
  width: 70%;
  margin-left: 16%;
}

.win-code i:nth-child(5) {
  width: 38%;
  margin-left: 8%;
}

.win-code i:nth-child(6) {
  width: 22%;
}

.win-log p,
.win-log li {
  margin: 0 0 8px;
  color: #cdd5ea;
  font-size: 13px;
  line-height: 1.45;
}

.log-line {
  display: flex;
  align-items: center;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  background: var(--red);
  animation: blink 1.05s steps(1) infinite;
}

.log-scan {
  display: grid;
  gap: 6px;
  margin: 4px 0 4px;
}

.log-scan i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
}

.log-scan i:nth-child(2) {
  width: 64%;
}

.win-path {
  margin-top: 12px;
  color: #ffffff;
  font-weight: 680;
}

.plan {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plan;
}

.plan li {
  position: relative;
  padding-left: 26px;
  counter-increment: plan;
}

.plan li::before {
  content: counter(plan);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
  color: #aab5d3;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.is-live .plan li::before {
  animation: plan-done 0.5s var(--ease) forwards;
}

.is-live .plan li:nth-child(1)::before {
  animation-delay: 0.9s;
}

.is-live .plan li:nth-child(2)::before {
  animation-delay: 1.7s;
}

.is-live .plan li:nth-child(3)::before {
  animation-delay: 2.5s;
}

.marks-rail {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin: 40px 0 0 calc(50% - 50vw);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marks-track {
  display: flex;
  width: max-content;
}

.motion .marks-track {
  animation: marquee 38s linear infinite;
}

html:not(.motion) .marks-track {
  margin: 0 auto;
}

html:not(.motion) .marks-rail {
  mask-image: none;
}

.marks-rail:hover .marks-track {
  animation-play-state: paused;
}

.marks {
  display: flex;
  flex: 0 0 auto;
  gap: 56px;
  margin: 0;
  padding: 0 56px 0 0;
  list-style: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0.72;
  transition: opacity 0.3s;
}

.marks li:hover {
  opacity: 1;
}

.marks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-2);
}

.marks li:nth-child(2n)::before {
  background: var(--red);
}

:root[data-theme="dark"] .marks li::before {
  background: #8d9ac0;
}

:root[data-theme="dark"] .marks li:nth-child(2n)::before {
  background: var(--red);
}

.band {
  margin-top: 120px;
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.display {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.band-head .display {
  max-width: 14em;
}

.feature-grid,
.principle-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: 1fr 1fr;
}

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

.story {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.story > * {
  position: relative;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(43, 58, 99, 0.09),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

:root[data-theme="dark"] .spot::before {
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(141, 154, 192, 0.14),
    transparent 60%
  );
}

.spot:hover::before {
  opacity: 1;
}

.story:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(43, 58, 99, 0.25);
}

.story h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.story p,
.step p,
.float-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.story-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.story-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hover);
  color: var(--text);
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.5s var(--ease);
}

.story:hover .story-icon {
  background: var(--navy);
  color: #ffffff;
  transform: rotate(-6deg);
}

:root[data-theme="dark"] .story:hover .story-icon {
  background: #ffffff;
  color: var(--ink);
}

.viz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viz-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--line);
  transition: background 0.5s var(--ease) 0.4s;
}

.viz-toggle i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 24, 48, 0.25);
  transition: transform 0.5s var(--ease) 0.4s;
}

.is-in .viz-toggle,
html:not(.motion) .viz-toggle {
  background: var(--navy);
}

.is-in .viz-toggle.viz-red,
html:not(.motion) .viz-toggle.viz-red {
  background: var(--red);
}

.is-in .viz-toggle i,
html:not(.motion) .viz-toggle i {
  transform: translateX(20px);
}

.viz-pair i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: var(--navy);
}

.viz-pair i + i {
  margin-left: -14px;
  background: var(--red);
  transition: margin 0.6s var(--ease);
}

.story:hover .viz-pair i + i {
  margin-left: -4px;
}

.viz-diff {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.viz-diff i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.viz-diff i:nth-child(1) {
  width: 46px;
}

.viz-diff i:nth-child(2) {
  width: 30px;
  background: var(--red);
}

.viz-diff i:nth-child(3) {
  width: 38px;
  background: var(--navy-2);
}

:root[data-theme="dark"] .viz-diff i:nth-child(3) {
  background: #8d9ac0;
}

.landing .announcements {
  margin-top: 16px;
  box-shadow: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.workspace .lead {
  text-align: left;
  margin-left: 0;
}

.workspace-panel {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: #0b1122;
  box-shadow: var(--shadow-lift);
  --ws: 0;
}

.ws-land {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  transform: translateY(calc(var(--ws) * 28px)) scale(1.06);
}

.float-cards {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.float-cards article {
  background: rgba(10, 16, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: #eef1f8;
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.5s var(--ease);
}

.float-cards article:hover {
  transform: translateY(-4px);
}

.card-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.float-cards article:nth-child(2) .card-dot {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.float-cards h3,
.float-cards p {
  color: #eef1f8;
}

.float-cards h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.float-cards p {
  font-size: 13px;
  color: #c4cde3;
}

.steps-layout {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
  --steps: 0;
}

.steps-rail {
  position: absolute;
  left: 42px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps-rail i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--navy-2), var(--red));
  transform: scaleY(var(--steps));
  transform-origin: 50% 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.step h3 {
  margin: 6px 0 8px;
  font-size: 20px;
}

.step-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--page);
  border: 1px solid var(--line);
  font-weight: 700;
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.step.is-lit .step-index {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--red-soft);
}

:root[data-theme="dark"] .step.is-lit .step-index {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.step-viz {
  align-self: center;
  display: grid;
  gap: 6px;
  width: 150px;
  padding: 12px;
  border-radius: 14px;
  background: var(--page-2);
  border: 1px solid var(--line);
}

.step-viz i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.viz-input {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.viz-input i {
  width: 70%;
}

.viz-input b {
  width: 2px;
  height: 14px;
  background: var(--red);
  animation: blink 1.05s steps(1) infinite;
}

.viz-list i {
  position: relative;
  margin-left: 14px;
}

.viz-list i::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-2);
}

.viz-list i:nth-child(2) {
  width: 76%;
}

.viz-list i:nth-child(3) {
  width: 54%;
}

.viz-list i:nth-child(3)::before {
  background: var(--red);
}

.step-viz.viz-diff {
  align-items: stretch;
}

.step-viz.viz-diff i {
  width: auto;
}

.step-viz.viz-diff i:nth-child(1) {
  width: 80%;
}

.step-viz.viz-diff i:nth-child(2) {
  width: 60%;
}

.craft-grid .story h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--red);
  transition: width 0.5s var(--ease);
}

.craft-grid .story:hover h3::before {
  width: 56px;
}

.story-feature {
  background: linear-gradient(160deg, var(--navy) 0%, #111a33 100%);
  border-color: transparent;
}

.story-feature h3 {
  color: #ffffff;
}

.story-feature p {
  color: #c4cde3;
}

.story-feature::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.55), transparent 70%);
}

.landing-foot {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-top: 120px;
  margin-left: calc(50% - 50vw);
  padding: 64px 8vw 0;
  color: #eef1f8;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(225, 6, 0, 0.22), transparent 42%),
    radial-gradient(ellipse at 10% 40%, rgba(43, 58, 99, 0.6), transparent 50%),
    linear-gradient(180deg, #1a2744 0%, #0b1122 80%);
}

.foot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.foot-label {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d9ac0;
}

.foot-link {
  position: relative;
  display: block;
  border: 0;
  background: transparent;
  color: #eef1f8;
  padding: 6px 0;
  text-align: left;
}

.foot-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.foot-link:hover::after {
  transform: scaleX(1);
}

.foot-range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
}

.wordmark {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 48px auto 0;
  overflow: hidden;
  height: 0.62em;
  font-family: var(--serif);
  font-size: clamp(92px, 16vw, 210px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Motion */

.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.motion .story.reveal.is-in {
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms),
    filter 0.9s var(--ease) calc(var(--d, 0) * 90ms),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.motion .story.reveal.is-in:hover,
.motion .float-cards .reveal.is-in:hover {
  transform: translateY(-4px);
}

.motion .wordmark.reveal:not(.is-in) {
  transform: translateY(40%);
}

.motion .hero-kicker,
.motion #hero-body,
.motion .hero-actions {
  animation: rise 1s var(--ease) both;
}

.motion .hero-kicker {
  animation-delay: 0.05s;
}

.motion #hero-body {
  animation-delay: 0.5s;
}

.motion .hero-actions {
  animation-delay: 0.62s;
}

.motion .landing h1 .line > * {
  animation: line-up 1.1s var(--ease) both;
}

.motion .landing h1 .line:nth-child(1) > * {
  animation-delay: 0.15s;
}

.motion .landing h1 .line:nth-child(2) > * {
  animation:
    line-up 1.1s var(--ease) 0.28s both,
    sheen 7s ease-in-out 1.8s infinite;
}

.motion .stage-wrap {
  animation: rise 1.2s var(--ease) 0.75s both;
}

.motion .hero-land {
  animation: land-in 1.8s var(--ease) both;
}

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

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}

@keyframes land-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes sheen {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
}

@keyframes sun-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes dot-beat {
  0%,
  70%,
  100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.3);
  }
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes plan-done {
  to {
    content: "✓";
    background: var(--red);
    border-color: var(--red);
    color: #ffffff;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-25%);
  }
}

@media (max-width: 860px) {
  .win-body,
  .win-head,
  .feature-grid,
  .principle-grid,
  .workspace,
  .float-cards {
    grid-template-columns: 1fr;
  }

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

  .win-head {
    flex-direction: column;
  }

  .win-pills {
    justify-content: flex-start;
  }

  .hero-kicker {
    white-space: normal;
  }

  .workspace-panel {
    min-height: 520px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .step-viz {
    display: none;
  }
}

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

  .motion .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .stage-window,
  .layer,
  .ws-land,
  .landing .hero {
    transform: none;
    opacity: 1;
  }
}

.handoff {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(6px);
}

.handoff[hidden] {
  display: none;
}

.handoff-card {
  width: min(420px, 100%);
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.handoff-card h2 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.handoff-card .muted {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.google-wrap[hidden],
#code-form[hidden],
#auth-form[hidden] {
  display: none;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.google-btn:hover {
  border-color: var(--muted);
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-or::before,
.auth-or::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.code-body {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

#email-code {
  font-size: 18px;
  letter-spacing: 0.3em;
}

.code-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.handoff-card .status.ok {
  color: var(--accent, #2f9e6b);
  font-weight: 600;
}

.handoff-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.handoff-actions button {
  width: 100%;
  justify-content: center;
}

.signed-out-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--hover);
  color: var(--text);
  font-size: 14px;
}

/* Enterprise page */

.ent-page {
  --app-bg: #0d1424;
  --app-panel: #121b2f;
  --app-line: #1f2a44;
  --app-bar: #2a3655;
  --app-text: #c9d1e4;
  --app-muted: #7d89a6;
}

.ent-page .w25 { width: 25%; }
.ent-page .w30 { width: 30%; }
.ent-page .w35 { width: 35%; }
.ent-page .w40 { width: 40%; }
.ent-page .w45 { width: 45%; }
.ent-page .w50 { width: 50%; }
.ent-page .w55 { width: 55%; }
.ent-page .w60 { width: 60%; }
.ent-page .w65 { width: 65%; }
.ent-page .w70 { width: 70%; }
.ent-page .w75 { width: 75%; }
.ent-page .w80 { width: 80%; }

.ent-dim {
  color: var(--muted);
}

.ent-hero {
  padding: 40px 0 8px;
}

.ent-title {
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.ent-lead {
  max-width: 44rem;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.ent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ent-btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

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

.ent-band {
  margin-top: 96px;
}

.ent-h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.ent-h2-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}

.ent-center {
  align-items: center;
  text-align: center;
}

.ent-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.ent-shot {
  padding: 40px clamp(16px, 5vw, 64px) 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(225, 6, 0, 0.16), transparent 55%),
    radial-gradient(90% 80% at 100% 0%, rgba(43, 58, 99, 0.55), transparent 60%),
    var(--ink);
  overflow: hidden;
}

.ent-win {
  border: 1px solid var(--app-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--app-bg);
  color: var(--app-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.ent-dots {
  display: inline-flex;
  gap: 6px;
}

.ent-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.ent-dots i:nth-child(2) {
  background: #febc2e;
}

.ent-dots i:nth-child(3) {
  background: #28c840;
}

.ent-win-body {
  display: grid;
  grid-template-columns: 0.8fr 2fr 1.4fr;
  min-height: 300px;
}

.ent-win-tree,
.ent-win-code,
.ent-win-agent {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
}

.ent-win-tree {
  border-right: 1px solid var(--app-line);
}

.ent-win-agent {
  border-left: 1px solid var(--app-line);
  background: var(--app-panel);
}

.ent-win-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.ent-win-tree i,
.ent-win-code i,
.ent-win-file i,
.ent-app-bubble i,
.ent-app-lines i,
.ent-way-lines i,
.ent-table i,
.ent-vis-stats i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--app-bar);
}

.ent-win-tree i.in,
.ent-win-code i.in {
  margin-left: 14px;
}

.ent-win-tree i.on {
  background: #3b4a75;
  box-shadow: 0 0 0 4px rgba(59, 74, 117, 0.35);
}

.ent-win-code i.k {
  background: #4b5d92;
}

.ent-win-code i.add {
  background: rgba(40, 200, 64, 0.45);
}

.ent-win-code i.del {
  background: rgba(225, 6, 0, 0.5);
}

.ent-win-plan {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #ffffff;
}

.ent-win-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.4;
}

.ent-win-steps li::marker {
  color: var(--red);
}

.ent-win-diff {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  font-size: 12px;
}

.ent-win-file {
  flex: 1;
}

.ent-win-count .plus {
  color: #28c840;
  margin-right: 6px;
}

.ent-win-count .minus {
  color: #ff5f57;
}

.ent-win-review {
  color: var(--app-muted);
}

.ent-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.ent-col h3,
.ent-vis h3,
.ent-sec h3,
.ent-team h3,
.ent-way h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.ent-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ent-col h3 svg,
.ent-sec svg {
  color: var(--red);
}

.ent-col p,
.ent-vis p,
.ent-sec p,
.ent-team p,
.ent-way p,
.ent-flex-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ent-flex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.ent-flex-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-flex-list li {
  padding: 14px 18px;
  border-left: 2px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.ent-flex-list li:hover,
.ent-flex-list li.is-active {
  border-left-color: var(--red);
  background: var(--hover);
}

.ent-flex-list h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
}

.ent-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ent-nodes {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  gap: 32px;
}

.ent-node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.ent-wires {
  position: relative;
  width: calc(4 * 56px + 3 * 32px - 56px);
  height: 44px;
  border-bottom: 1px dashed var(--red);
}

.ent-wires i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--red);
}

.ent-wires i:nth-child(1) { left: 0; }
.ent-wires i:nth-child(2) { left: 33.33%; }
.ent-wires i:nth-child(3) { left: 66.66%; }
.ent-wires i:nth-child(4) { left: 100%; }

.ent-wires::after {
  position: absolute;
  left: 50%;
  bottom: -22px;
  height: 22px;
  border-left: 1px dashed var(--red);
  content: "";
}

.ent-app {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  width: 100%;
  max-width: 420px;
  min-height: 210px;
  margin-top: 22px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--app-bg);
  color: var(--app-text);
  overflow: hidden;
}

.ent-app-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid var(--app-line);
}

.ent-app-side > i {
  height: 18px;
  border: 1px solid var(--app-line);
  border-radius: 5px;
}

.ent-app-task {
  margin: 0 0 4px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--app-panel);
  font-size: 11.5px;
}

.ent-app-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.ent-app-bubble {
  display: grid;
  gap: 6px;
  align-self: flex-end;
  width: 60%;
  padding: 10px;
  border-radius: 8px;
  background: var(--app-panel);
}

.ent-app-bubble i {
  justify-self: end;
}

.ent-app-think {
  margin: 0;
  font-size: 11.5px;
  color: var(--app-muted);
}

.ent-app-lines {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--app-line);
}

.ent-app-lines.ok {
  border-left-color: #28c840;
}

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

.ent-cards2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ent-vis-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 200px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-bg);
  color: var(--app-text);
}

.ent-vis-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ent-vis-stats span,
.ent-quota {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.ent-page small {
  font-size: 11px;
  color: var(--app-muted);
}

.ent-chart {
  width: 100%;
  height: 90px;
}

.ent-chart .grid {
  stroke: var(--app-line);
  stroke-width: 1;
}

.ent-chart polyline {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ent-chart .line-a {
  stroke: var(--red);
}

.ent-chart .line-b {
  stroke: #8b9bd0;
}

.ent-quota-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--app-bar);
  overflow: hidden;
}

.ent-quota-bar i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b4a75, var(--red));
}

.ent-quota-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ent-quota-days i {
  height: 8px;
  border-radius: 4px;
  background: rgba(225, 6, 0, 0.55);
}

.ent-quota-days i:nth-child(3) {
  background: var(--app-bar);
}

.ent-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.ent-table p {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--app-line);
  font-size: 12px;
  color: var(--app-text);
}

.ent-table p.ent-table-head {
  border-top: 0;
  color: var(--app-muted);
  font-size: 11px;
}

.ent-tag {
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid rgba(225, 6, 0, 0.6);
  border-radius: 6px;
  color: #ffb3b0;
  font-size: 11px;
}

.ent-tag.soft {
  border-color: var(--app-bar);
  color: var(--app-text);
}

.ent-sec {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.ent-sec svg {
  display: block;
  margin-bottom: 18px;
}

.ent-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ent-team {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px 26px;
  border-left: 1px solid var(--line);
}

.ent-team:last-child {
  border-right: 1px solid var(--line);
}

.ent-team-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.ent-team p.ent-team-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ent-team-mark i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-size: 16px;
  font-style: normal;
}

.ent-ways .ent-h2 {
  margin-bottom: 36px;
}

.ent-way-art {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 170px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(225, 6, 0, 0.14), transparent 60%),
    var(--app-bg);
  color: var(--app-text);
}

.ent-way-lines {
  display: grid;
  gap: 9px;
}

.ent-way-term {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.ent-way-prompt {
  color: #8fe39b;
}

.ent-way-local {
  align-items: center;
  justify-content: center;
  color: var(--app-text);
}

.ent-way-tag {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ent-way p:not(.ent-way-tag) {
  margin-bottom: 14px;
}

.ent-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.ent-link:hover {
  color: var(--red);
}

.ent-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 110px;
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  text-align: center;
}

.ent-cta h2 {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.02em;
}

.ent-cta-mark {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .ent-win-body {
    grid-template-columns: 1fr;
  }

  .ent-win-tree,
  .ent-win-code {
    display: none;
  }

  .ent-cols,
  .ent-flex,
  .ent-cards3,
  .ent-cards2,
  .ent-team-grid {
    grid-template-columns: 1fr;
  }

  .ent-team {
    min-height: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .ent-nodes {
    gap: 16px;
  }

  .ent-wires {
    width: calc(4 * 56px + 3 * 16px - 56px);
  }
}
