@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 220ms ease-out both site-fade-out;
}

::view-transition-new(root) {
  animation: 220ms ease-out both site-fade-in;
}

@keyframes site-fade-out {
  to {
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes site-fade-in {
  from {
    opacity: 0;
    filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
    filter: none;
  }
}

:root {
  --bg: oklch(1 0 0);
  --ink: oklch(0.19 0.012 265);
  --ink-soft: oklch(0.37 0.014 265);
  --muted: oklch(0.5 0.013 265);
  --primary: oklch(0.3 0.022 265);
  --primary-deep: oklch(0.21 0.018 265);
  --primary-bright: oklch(0.81 0.018 265);
  --primary-pale: oklch(0.945 0.008 265);
  --accent: oklch(0.55 0.2 27);
  --accent-deep: oklch(0.45 0.17 27);
  --surface: oklch(0.965 0.005 265);
  --surface-strong: oklch(0.91 0.008 265);
  --line: oklch(0.85 0.008 265);
  --line-dark: oklch(0.45 0.02 265);
  --success: oklch(0.5 0.1 150);
  --warning: oklch(0.62 0.14 70);
  --danger: oklch(0.52 0.19 27);
  --white: oklch(1 0 0);
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --space-page: clamp(1.25rem, 4vw, 4.5rem);
  --content-max: 92rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 20;
  --z-modal: 40;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font-family: var(--font-body);
}

a {
  color: inherit;
}

button,
input {
  font-size: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-modal);
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  transition: transform 160ms var(--ease-out);
}

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

.analytics-choice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-modal);
  display: grid;
  width: min(calc(100% - 2rem), 42rem);
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 1.2rem 3rem oklch(0.19 0.012 265 / 18%);
  gap: 1rem;
}

.analytics-choice p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

.analytics-choice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.analytics-choice-actions a {
  padding: 0.5rem;
  font-weight: 700;
}

.analytics-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 0.75rem;
}

.analytics-controls p {
  flex-basis: 100%;
  margin: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header,
.site-footer {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-inline: var(--space-page);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  color: var(--white);
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.site-header nav > a:not(.button),
.site-footer nav a {
  text-decoration: none;
  font-weight: 600;
}

.site-header nav > a:not(.button) {
  color: var(--surface-strong);
}

.site-header nav > a:not(.button):hover {
  color: var(--white);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0.28rem;
  border: 2px solid currentcolor;
  border-radius: 50%;
}

.wordmark-mark i {
  display: block;
  width: 3px;
  background: currentcolor;
}

.wordmark-mark i:nth-child(1) {
  height: 45%;
}

.wordmark-mark i:nth-child(2) {
  height: 82%;
}

.wordmark-mark i:nth-child(3) {
  height: 60%;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

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

.button:active {
  transform: translateY(0);
}

.button-small {
  min-height: 2.55rem;
  padding: 0.64rem 1rem;
}

.button-light {
  background: var(--white);
  color: var(--primary-deep);
}

.button-light:hover {
  background: var(--primary-pale);
}

.button-dark {
  background: var(--primary-deep);
  color: var(--white);
}

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

.button-accent {
  background: var(--accent);
  color: var(--white);
}

.button-accent:hover {
  background: var(--accent-deep);
}

.button-secondary {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.button-secondary:hover {
  background: var(--primary-pale);
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.text-link:hover span {
  transform: translateX(3px);
}

.text-link span {
  transition: transform 180ms var(--ease-out);
}

.text-link-light {
  color: var(--white);
}

.hero-wrap {
  background: var(--primary);
  color: var(--white);
}

.hero {
  display: grid;
  width: min(100%, var(--content-max));
  min-height: 45rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 8rem) var(--space-page) clamp(4rem, 7vw, 7rem);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 0.86fr) minmax(30rem, 1.14fr);
}

.hero-copy {
  max-width: 42rem;
  animation: hero-copy-in 720ms var(--ease-out) both;
}

.checkout-summary > p:first-child {
  font-weight: 700;
}

.hero h1 {
  margin-bottom: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(3.05rem, 5.4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.97;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--primary-bright);
}

.hero-lede {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: var(--white);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.microcopy {
  max-width: 33rem;
  margin: 1.2rem 0 0;
  color: var(--primary-bright);
  font-size: 0.91rem;
}

.browser-artifact {
  min-width: 0;
  animation: hero-artifact-in 850ms 100ms var(--ease-out) both;
}

.artifact-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: oklch(0.88 0.012 265);
  font-size: 0.88rem;
}

.demo-site-switch,
.demo-switch {
  display: flex;
  padding: 0.2rem;
  border: 1px solid color-mix(in oklch, var(--primary-bright), transparent 40%);
  border-radius: var(--radius-sm);
}

.demo-site-switch button,
.demo-switch button {
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: oklch(0.88 0.012 265);
  font-weight: 700;
}

.demo-site-switch button[aria-pressed="true"],
.demo-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--primary-deep);
}

.browser-frame {
  overflow: hidden;
  border: 2px solid color-mix(in oklch, var(--primary-bright), transparent 30%);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
}

.browser-chrome {
  display: flex;
  height: 2.8rem;
  align-items: center;
  gap: 0.36rem;
  padding: 0 0.8rem;
  background: var(--surface-strong);
}

.browser-chrome > span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--line-dark);
}

.address-bar {
  overflow: hidden;
  flex: 1;
  margin-left: 0.45rem;
  padding: 0.34rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  position: relative;
  display: grid;
  min-height: 25rem;
  grid-template-columns: 7.5rem minmax(14rem, 1fr) 9.5rem;
}

.demo-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 0.75rem;
  background: var(--surface);
  font-size: 0.75rem;
}

.demo-rail strong {
  margin-bottom: 0.65rem;
  color: var(--danger);
  font-size: 0.96rem;
}

.demo-rail span {
  padding: 0.42rem 0.48rem;
  border-radius: var(--radius-xs);
}

.demo-rail .kept {
  background: var(--primary-pale);
  color: var(--primary);
  font-weight: 700;
}

.demo-feed {
  padding: 1.25rem;
}

.demo-feed-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.demo-feed-heading span {
  color: var(--muted);
  font-size: 0.66rem;
}

.video-row {
  display: grid;
  align-items: start;
  gap: 0.8rem;
  grid-template-columns: 6.4rem 1fr;
  margin-bottom: 1rem;
}

.video-row strong,
.video-row small {
  display: block;
}

.video-row strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.video-row small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
}

.thumb-one {
  background: var(--primary-bright);
}

.thumb-two {
  background: var(--accent);
}

.video-thumb::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid oklch(1 0 0 / 0.88);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.video-thumb span {
  position: absolute;
  right: 0.25rem;
  bottom: 0.2rem;
  padding: 0.05rem 0.2rem;
  border-radius: var(--radius-xs);
  background: oklch(0.15 0 0 / 0.84);
  color: var(--white);
  font-size: 0.54rem;
}

.shorts-shelf {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.shorts-shelf > div {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.shorts-shelf i {
  width: 2.7rem;
  height: 4.3rem;
  border-radius: var(--radius-xs);
  background: var(--surface-strong);
}

.recommendations {
  padding: 1.3rem 0.8rem;
  border-left: 1px solid var(--line);
  font-size: 0.72rem;
}

.recommendations div {
  height: 3rem;
  margin-top: 0.75rem;
  border-radius: var(--radius-xs);
  background: var(--surface-strong);
}

.x-browser-content {
  grid-template-columns: 7.5rem minmax(15rem, 1fr) 11.5rem;
}

.x-demo-rail strong {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
}

.x-demo-feed {
  padding: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.x-tabs {
  display: flex;
  min-height: 3.35rem;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  transition: justify-content 240ms var(--ease-out);
}

.x-tabs span {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 0;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.x-tabs .kept {
  color: var(--ink);
}

.x-tabs .kept::after {
  position: absolute;
  bottom: 0;
  width: 2.4rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  content: "";
}

.x-post {
  display: grid;
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--line);
  gap: 0.65rem;
  grid-template-columns: 2rem 1fr;
}

.x-post strong,
.x-post small,
.x-post p,
.x-post span {
  display: block;
}

.x-post strong {
  font-size: 0.72rem;
  line-height: 1.25;
}

.x-post small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 400;
}

.x-post p {
  margin: 0.28rem 0 0.6rem;
  font-size: 0.66rem;
  line-height: 1.35;
}

.x-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-bright);
}

.x-avatar.avatar-two {
  background: var(--accent);
}

.x-post-media {
  height: 4rem;
  margin-bottom: 0.55rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-pale) 0 56%, var(--primary-bright) 56%);
}

.x-post-actions {
  color: var(--muted);
  font-size: 0.6rem;
}

.x-right-rail {
  padding: 0.8rem;
}

.x-search {
  padding: 0.48rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.68rem;
}

.x-search span {
  display: inline;
  margin-right: 0.2rem;
  font-size: 0.88rem;
}

.x-side-module {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.x-side-module strong,
.x-side-module small,
.x-side-module span {
  display: block;
}

.x-side-module strong {
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

.x-side-module small,
.x-side-module span {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.3;
}

.blocked-stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: none;
  padding: 0.68rem 0.8rem;
  transform: rotate(-4deg);
  border: 3px solid var(--accent);
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--accent-deep);
  line-height: 1;
  text-align: center;
}

.blocked-stamp span,
.blocked-stamp strong {
  display: block;
}

.blocked-stamp span {
  margin-bottom: 0.3rem;
  font-size: 0.58rem;
}

.blocked-stamp strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.browser-artifact[data-state="after"] .pushed {
  opacity: 0.1;
  filter: grayscale(1);
  text-decoration: line-through;
  transition: opacity 240ms var(--ease-out), filter 240ms var(--ease-out);
}

.browser-artifact[data-state="after"] .blocked-stamp {
  display: block;
  animation: stamp-in 330ms var(--ease-out) both;
}

.browser-artifact[data-state="after"] .x-tabs .pushed {
  display: none;
}

.browser-artifact[data-state="after"] .x-tabs {
  justify-content: center;
}

.browser-artifact[data-state="after"] .x-tabs .kept {
  flex: 0 1 11rem;
}

.artifact-note {
  margin: 0.75rem 0 0;
  color: oklch(0.87 0.012 265);
  font-size: 0.88rem;
}

.artifact-note span {
  margin-right: 0.35rem;
  color: var(--primary-bright);
}

.site-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.5rem var(--space-page);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

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

.site-strip ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 1rem clamp(1.25rem, 3vw, 2.8rem);
  list-style: none;
}

.site-strip li {
  font-weight: 700;
}

.boundary-preview,
.how-it-works,
.pricing,
.faq {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) var(--space-page);
}

.boundary-preview {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(17rem, 0.8fr) minmax(28rem, 1.2fr);
}

.section-intro h2,
.how-it-works > h2,
.pricing h2,
.faq h2,
.app-intro h1,
.purchase-result h2,
.legal-main h1,
.checkout-summary h1,
.portal-shell h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-intro h2,
.how-it-works > h2,
.pricing h2,
.faq h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
}

.pricing-copy > p {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.boundary-ledger {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.boundary-ledger article {
  display: grid;
  grid-template-columns: 10rem 1fr;
  padding: 1.4rem 0;
}

.boundary-ledger article + article {
  border-top: 1px solid var(--line);
}

.boundary-ledger header {
  display: grid;
  align-content: start;
  grid-template-columns: 2rem 1fr;
}

.boundary-ledger header > span {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
}

.ledger-blocked header > span {
  background: var(--accent);
}

.ledger-kept header > span {
  background: var(--success);
}

.boundary-ledger h3 {
  margin: 0;
}

.boundary-ledger h3 {
  font-size: 1.2rem;
}

.boundary-ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-ledger li {
  padding: 0.54rem 0;
  border-bottom: 1px solid var(--line);
}

.boundary-ledger li:last-child {
  border: 0;
}

.boundary-ledger li span {
  display: inline-block;
  min-width: 6.5rem;
  font-weight: 700;
}

.how-it-works {
  background: var(--surface);
}

.how-it-works > h2 {
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.steps {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.steps li {
  display: grid;
  padding: 1.6rem 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
  gap: 1.5rem;
  grid-template-columns: 3rem 1fr;
}

.steps > li > span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
}

.steps p {
  max-width: 50rem;
  margin: 0;
  color: var(--muted);
}

.pricing {
  display: grid;
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(17rem, 0.85fr) minmax(27rem, 1.15fr);
}

.pricing-trial {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-list {
  border-top: 2px solid var(--ink);
}

.plan-list article {
  display: grid;
  align-items: center;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.plan-list h3,
.plan-list p {
  margin: 0;
}

.plan-list h3 {
  font-size: 1.35rem;
}

.plan-list article > div p,
.billing-note {
  color: var(--muted);
}

.plan-list .price {
  display: flex;
  min-width: 7.5rem;
  align-items: baseline;
  gap: 0.3rem;
}

.price strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.price span {
  color: var(--muted);
}

.billing-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.faq {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(17rem, 0.7fr) minmax(28rem, 1.3fr);
}

.install-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.faq > p {
  max-width: 54rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.site-footer {
  display: grid;
  align-items: center;
  min-height: 8rem;
  color: var(--ink);
  gap: 1.5rem;
  grid-template-columns: 1fr auto;
}

.site-footer nav {
  justify-content: flex-end;
}

.site-footer nav a {
  color: var(--muted);
}

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

.product-page .site-header,
.legal-page .site-header {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.product-page .site-header nav > a:not(.button),
.legal-page .site-header nav > a:not(.button) {
  color: var(--muted);
}

.product-page .site-header .button-light,
.legal-page .site-header .button-light {
  background: var(--primary);
  color: var(--white);
}

.app-main {
  width: min(100%, 78rem);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) var(--space-page);
}

.app-intro {
  margin-bottom: 3.5rem;
}

.app-intro h1 {
  margin: 0;
  font-size: clamp(2.9rem, 5.5vw, 5rem);
}

.status-panel {
  display: flex;
  min-height: 11rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-md);
  background: var(--primary-deep);
  color: var(--white);
}

.status-panel[data-status="inert"],
.status-panel[data-status="past_due"] {
  background: var(--accent-deep);
}

.status-panel p {
  margin: 0;
  color: oklch(0.85 0.012 265);
}

.status-panel h2 {
  margin: 0.15rem 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.status-days {
  min-width: 9rem;
  text-align: right;
}

.status-days strong,
.status-days span {
  display: block;
}

.status-days strong {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.status-days span {
  margin-top: 0.4rem;
  color: oklch(0.85 0.012 265);
}

.app-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
}

.app-section {
  min-width: 0;
  padding: 2rem;
  border-bottom: 1px solid var(--line);
}

.app-section:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.app-section-heading {
  display: grid;
  margin-bottom: 2rem;
  gap: 0.85rem;
  grid-template-columns: 2rem 1fr;
}

.app-section-heading > span {
  color: var(--accent-deep);
  font-weight: 700;
}

.app-section-heading h2 {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
}

.app-section-heading p {
  margin: 0;
  color: var(--muted);
}

.app-plans {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-plan {
  display: flex;
  width: 100%;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.app-plan:hover,
.app-plan[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-pale);
}

.app-plan span,
.app-plan strong,
.app-plan small {
  display: block;
}

.app-plan small,
.app-plan > span:last-child {
  color: var(--muted);
}

.app-plan b {
  color: var(--ink);
  font-size: 1.4rem;
}

.app-plan-recommended small {
  color: var(--accent-deep);
  font-weight: 700;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stacked-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.field-action {
  display: flex;
  gap: 0.6rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.68rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus {
  border-color: var(--primary);
}

.inline-message {
  min-height: 1.45rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.inline-message[data-kind="error"] {
  color: var(--danger);
}

.inline-message[data-kind="success"] {
  color: var(--success);
}

.install-panel details {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.install-panel ol {
  margin-bottom: 0;
  color: var(--muted);
}

code {
  padding: 0.08em 0.3em;
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.purchase-result {
  margin-top: 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-md);
  background: var(--primary-bright);
}

.purchase-result h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.license-reveal {
  display: flex;
  max-width: 42rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.license-reveal code {
  overflow-x: auto;
  flex: 1;
  padding: 1rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--white);
  white-space: nowrap;
}

.license-reveal button {
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-deep);
  color: var(--white);
  font-weight: 700;
}

.checkout-page {
  min-height: 100vh;
  background: var(--primary-deep);
}

.checkout-shell,
.portal-shell {
  display: grid;
  width: min(calc(100% - 2rem), 70rem);
  min-height: 100vh;
  margin: 0 auto;
  align-content: center;
  color: var(--white);
}

.checkout-shell {
  gap: 2rem clamp(3rem, 9vw, 8rem);
  grid-template-columns: 1fr minmax(20rem, 0.72fr);
}

.checkout-shell > .wordmark,
.portal-shell > .wordmark {
  position: absolute;
  top: 2rem;
}

.checkout-summary h1,
.portal-shell h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.checkout-summary > p:first-child {
  color: var(--primary-bright);
}

.checkout-summary ul {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.checkout-summary li {
  padding: 0.45rem 0;
  color: oklch(0.85 0.012 265);
}

.checkout-summary li::before {
  margin-right: 0.6rem;
  color: var(--primary-bright);
  content: "✓";
}

.checkout-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
}

.checkout-form h2 {
  margin-bottom: 1.5rem;
}

.checkout-form label:not(.checkbox-label) {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.checkout-form input[type="email"] {
  margin-bottom: 1.2rem;
}

.demo-badge {
  display: inline-block;
  padding: 0.32rem 0.52rem;
  border-radius: var(--radius-xs);
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.checkbox-label {
  display: grid;
  align-items: start;
  margin-bottom: 1.2rem;
  gap: 0.55rem;
  grid-template-columns: 1.2rem 1fr;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-label input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--primary);
}

.checkout-form > p:last-child {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.portal-shell {
  max-width: 52rem;
}

.portal-facts {
  display: grid;
  margin: 2rem 0;
  border-top: 1px solid var(--line-dark);
}

.portal-facts div {
  display: grid;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 9rem 1fr;
}

.portal-facts dt {
  color: var(--primary-bright);
}

.portal-facts dd {
  margin: 0;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.portal-shell .button-secondary {
  border-color: var(--primary-bright);
  color: var(--white);
}

.portal-shell .text-link {
  color: var(--primary-bright);
}

.legal-main {
  width: min(calc(100% - 2.5rem), 62rem);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.legal-main > header {
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--ink);
}

.legal-main > header > p:first-child {
  color: var(--accent-deep);
  font-weight: 700;
}

.legal-main h1 {
  max-width: 56rem;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-main > header > p:last-child {
  max-width: 50rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.legal-main > section {
  display: grid;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1.5rem 3rem;
  grid-template-columns: 13rem 1fr;
}

.legal-main h2,
.legal-main section > p,
.legal-main section > ul {
  margin: 0;
}

.legal-copy {
  max-width: 70ch;
  color: var(--ink-soft);
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy > :last-child {
  margin-bottom: 0;
}

.legal-copy p,
.legal-copy ul {
  margin-bottom: 1rem;
}

.legal-copy ul {
  padding-left: 1.25rem;
}

.legal-main section > p,
.legal-main section > ul {
  max-width: 70ch;
  color: var(--ink-soft);
}

.legal-copy {
  max-width: 70ch;
  color: var(--ink-soft);
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy > :last-child {
  margin-bottom: 0;
}

.legal-copy p,
.legal-copy ul {
  margin-bottom: 1rem;
}

.legal-copy ul {
  padding-left: 1.25rem;
}

.legal-main li + li {
  margin-top: 0.5rem;
}

.policy-table {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.policy-table h3 {
  margin-bottom: 0.4rem;
}

.policy-table p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-source {
  margin-top: 2rem;
  color: var(--muted);
}

@keyframes hero-copy-in {
  from {
    opacity: 0.2;
    transform: translateY(18px);
  }
}

@keyframes hero-artifact-in {
  from {
    opacity: 0.2;
    transform: translateY(24px) scale(0.985);
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: scale(1.2) rotate(-4deg);
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .browser-artifact {
    max-width: 52rem;
  }

  .boundary-preview,
  .pricing,
  .faq {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .section-intro,
  .pricing-copy,
  .faq > h2 {
    max-width: 48rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

}

@media (max-width: 760px) {
  .analytics-choice {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .site-header {
    min-height: 4.8rem;
  }

  .site-header nav > a:not(.button) {
    display: none;
  }

  .site-header nav {
    gap: 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.4rem);
  }

  .browser-content {
    min-height: 21rem;
    grid-template-columns: 5.2rem 1fr;
  }

  .demo-rail {
    padding-inline: 0.4rem;
  }

  .demo-feed {
    padding: 0.85rem;
  }

  .recommendations {
    display: none;
  }

  .x-browser-content {
    grid-template-columns: 5.2rem 1fr;
  }

  .x-right-rail {
    display: none;
  }

  .video-row {
    grid-template-columns: 5rem 1fr;
  }

  .site-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .boundary-ledger article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .plan-list article {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .plan-list article .button {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 2rem;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .app-grid,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .status-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-days {
    text-align: left;
  }

  .app-section {
    padding-inline: 0;
  }

  .app-section:nth-child(odd) {
    border-right: 0;
  }

  .field-action,
  .portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-shell {
    padding: 7rem 0 3rem;
  }

  .legal-main > section {
    grid-template-columns: 1fr;
  }

  .policy-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .wordmark > span:last-child {
    font-size: 0.92rem;
  }

  .button-small {
    padding-inline: 0.75rem;
  }

  .artifact-caption {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .demo-site-switch,
  .demo-switch {
    flex: 1 1 auto;
  }

  .demo-site-switch button,
  .demo-switch button {
    flex: 1;
    padding-inline: 0.55rem;
  }

  .demo-feed-heading span,
  .video-row small {
    display: none;
  }

  .x-post-media {
    height: 3.2rem;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
