:root {
  /* Paneweaver design-system primitives */
  --pine-950: #0e1f18;
  --pine-900: #14291f;
  --pine-800: #1b3a2c;
  --pine-700: #244b39;
  --pine-600: #2f6249;
  --pine-500: #3d7b5d;
  --pine-400: #5a9b79;
  --pine-300: #86b89c;
  --pine-200: #b6d7c3;
  --pine-100: #dbebe1;
  --pine-50: #eff6f1;
  --sage-500: #7f9c86;
  --sage-400: #9db6a3;
  --sage-300: #bdd0c1;
  --sage-200: #d6e3d9;
  --sage-100: #e9f0ea;
  --paper: #f7f5ee;
  --birch: #efebe0;
  --linen: #fcfaf4;
  --sand: #e4ddcd;
  --bark-200: #d9d2c2;
  --bark-300: #c6bdaa;
  --stone: #8a8371;
  --slate: #5b6a61;
  --ink: #17251d;
  --lichen: #c9b368;
  --lichen-soft: #eadfb6;
  --clay: #c67b57;
  --clay-soft: #f0d2c0;
  --sky: #7fa6b8;
  --sky-soft: #d3e2e9;
  --plum: #9c7b98;
  --plum-soft: #e4d6e2;
  --success: #3d7b5d;
  --success-soft: #dbebe1;
  --warning: #b8912f;
  --warning-soft: #f1e5c1;
  --danger: #b4544a;
  --danger-soft: #f2d8d3;
  --info: #5f8ca0;
  --info-soft: #d3e2e9;

  --brand: var(--pine-700);
  --brand-hover: var(--pine-800);
  --brand-active: var(--pine-900);
  --brand-contrast: var(--linen);
  --brand-subtle: var(--pine-100);
  --bg-app: var(--paper);
  --bg-sunken: var(--birch);
  --surface-card: var(--linen);
  --surface-raised: #fff;
  --surface-inset: var(--sage-100);
  --text-strong: var(--ink);
  --text-body: #2c3b32;
  --text-muted: var(--slate);
  --text-subtle: var(--stone);
  --border-subtle: var(--bark-200);
  --border-default: var(--bark-300);
  --ring-focus: 0 0 0 3px rgba(90, 155, 121, 0.4);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 1px rgba(20, 41, 31, 0.05);
  --shadow-sm: 0 1px 2px rgba(20, 41, 31, 0.06), 0 1px 3px rgba(20, 41, 31, 0.05);
  --shadow-md: 0 2px 4px rgba(20, 41, 31, 0.06), 0 6px 14px rgba(20, 41, 31, 0.08);
  --shadow-lg: 0 4px 8px rgba(20, 41, 31, 0.07), 0 16px 32px rgba(20, 41, 31, 0.1);
  --shadow-xl: 0 8px 16px rgba(20, 41, 31, 0.08), 0 28px 56px rgba(20, 41, 31, 0.14);
  --shadow-inset: inset 0 1px 2px rgba(20, 41, 31, 0.07);

  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1220px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-app);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button,
summary {
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

h1,
h2,
h3 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(3.25rem, 6.1vw, 5.4rem);
  line-height: 0.99;
}

h2 {
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}

::selection {
  background: var(--pine-200);
  color: var(--pine-950);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

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

.icon {
  width: 1.08em;
  height: 1.08em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--space-12) 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-150%);
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 245, 238, 0.88);
  backdrop-filter: blur(18px);
  transition: background var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
}

.site-header.is-scrolled {
  border-color: rgba(198, 189, 170, 0.72);
  background: rgba(252, 250, 244, 0.94);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--pine-900);
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--motion-fast) var(--ease-standard);
}

.desktop-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--pine-500);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-base) var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--pine-800);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--pine-800);
}

.menu-close-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.mobile-nav {
  display: none;
}

/* Buttons */
.button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}

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

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 3px 8px rgba(36, 75, 57, 0.18);
}

.button-primary:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  box-shadow: 0 5px 12px rgba(36, 75, 57, 0.2);
}

.button-primary:active {
  border-color: var(--brand-active);
  background: var(--brand-active);
}

.button-secondary {
  border-color: var(--border-default);
  background: var(--surface-card);
  color: var(--pine-800);
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover {
  border-color: var(--pine-300);
  background: var(--pine-50);
}

.button-quiet {
  color: var(--pine-700);
}

.button-quiet:hover {
  background: var(--pine-50);
}

.button-large {
  min-height: 52px;
  padding-inline: 22px;
  font-size: 1rem;
}

.button-full {
  width: 100%;
}

.button-light {
  border-color: var(--linen);
  background: var(--linen);
  color: var(--pine-900);
}

.button-light:hover {
  background: #fff;
}

.button-dark-outline {
  border-color: rgba(219, 235, 225, 0.45);
  background: transparent;
  color: var(--pine-50);
}

.button-dark-outline:hover {
  border-color: var(--pine-200);
  background: rgba(239, 246, 241, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pine-600);
  font-weight: 700;
}

.text-link .icon {
  transition: transform var(--motion-base) var(--ease-out);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 84px) 0 0;
  background: var(--paper);
}

.hero::after {
  position: absolute;
  top: 86px;
  right: -180px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(134, 184, 156, 0.34);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 82px rgba(219, 235, 225, 0.18), 0 0 0 165px rgba(233, 240, 234, 0.14);
  pointer-events: none;
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image: linear-gradient(rgba(20, 41, 31, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 41, 31, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black 0, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(600px, 1.14fr);
  align-items: center;
  gap: 74px;
}

.hero-copy {
  padding-bottom: 66px;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 30px;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  line-height: 1.58;
}

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

.hero-proof {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof .icon {
  color: var(--pine-500);
}

.hero-product {
  position: relative;
  min-width: 0;
  padding: 58px 0 46px;
  perspective: 1700px;
}

.product-window {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(20, 41, 31, 0.28);
  border-radius: 18px;
  background: var(--pine-900);
  box-shadow: var(--shadow-xl);
  cursor: zoom-in;
}

.hero-window {
  width: min(760px, 100%);
  margin-left: auto;
  transform: rotateX(1.5deg) rotateY(-4.5deg) rotateZ(0.35deg);
  transform-origin: center;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}

.hero-window:hover {
  transform: rotateX(0) rotateY(-1deg) rotateZ(0);
  box-shadow: 0 12px 28px rgba(20, 41, 31, 0.12), 0 42px 76px rgba(20, 41, 31, 0.18);
}

.product-window-bar {
  height: 34px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  background: var(--pine-900);
  color: var(--pine-200);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.product-window-bar > span:nth-child(2) {
  text-align: center;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.traffic-lights i:nth-child(2) {
  background: var(--lichen);
}

.traffic-lights i:nth-child(3) {
  background: var(--pine-300);
}

.window-expand,
.screen-frame-top button,
.source-figure-toolbar button {
  justify-self: end;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
}

.window-expand:hover,
.screen-frame-top button:hover,
.source-figure-toolbar button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.product-window img,
.tour-figure img,
.source-figure img,
.angled-screen img {
  width: 100%;
  height: auto;
}

.hero-callout {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(252, 250, 244, 0.95);
  color: var(--pine-800);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-callout .icon {
  width: 22px;
  height: 22px;
  color: var(--pine-500);
}

.hero-callout span {
  display: grid;
}

.hero-callout strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.hero-callout small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hero-callout-state {
  top: 20px;
  left: 8px;
  transform: rotate(-2deg);
}

.hero-callout-native {
  right: -8px;
  bottom: 12px;
  transform: rotate(2deg);
}

.actual-product-note {
  margin: 19px 178px 0 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.actual-product-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine-400);
  box-shadow: 0 0 0 4px rgba(90, 155, 121, 0.14);
}

.proof-rail {
  position: relative;
  z-index: 3;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(252, 250, 244, 0.5);
}

.proof-rail div {
  min-height: 104px;
  padding: 23px 24px;
  display: grid;
  align-content: center;
  border-right: 1px solid var(--border-subtle);
}

.proof-rail div:last-child {
  border-right: 0;
}

.proof-rail strong {
  color: var(--pine-800);
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.proof-rail span {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Shared headings */
.section-heading {
  margin-bottom: 50px;
}

.section-heading h2,
.pricing-heading h2,
.final-cta h2,
.faq-heading h2 {
  margin-bottom: 0;
}

.section-label {
  margin-bottom: 14px;
  color: var(--pine-600);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-label-light {
  color: var(--pine-300);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 90px;
}

.split-heading > p {
  max-width: 540px;
  margin: 0 0 7px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.centered-heading {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading > p:last-child {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* Workflow */
.workflow-section {
  background: var(--linen);
}

.workflow-steps {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.workflow-steps::before {
  position: absolute;
  top: 42px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--border-default);
  content: "";
}

.workflow-steps li {
  position: relative;
  z-index: 1;
  padding: 0 25px 0 0;
}

.workflow-steps li + li {
  padding-left: 25px;
}

.workflow-steps li > .icon {
  width: 46px;
  height: 46px;
  margin: 20px 0 24px;
  padding: 11px;
  border: 1px solid var(--pine-200);
  border-radius: 50%;
  background: var(--pine-50);
  color: var(--pine-600);
  box-shadow: 0 0 0 10px var(--linen);
}

.step-number {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.workflow-steps h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.workflow-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.91rem;
}

/* Product tour */
.product-tour-section {
  background: var(--paper);
}

.tour-shell {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
}

.tour-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--birch);
}

.tour-tab {
  min-height: 68px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}

.tour-tab:last-child {
  border-right: 0;
}

.tour-tab:hover {
  color: var(--pine-700);
  background: rgba(239, 246, 241, 0.58);
}

.tour-tab.is-active {
  position: relative;
  color: var(--pine-800);
  background: var(--surface-card);
}

.tour-tab.is-active::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--pine-500);
  content: "";
}

.tour-stage {
  min-height: 620px;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: 58px;
}

.tour-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.tour-copy > p:not(.section-label) {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.check-list,
.mini-list,
.status-column ul,
.pricing-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li,
.mini-list li,
.status-column li,
.pricing-card li {
  position: relative;
  padding-left: 25px;
}

.check-list li::before,
.mini-list li::before,
.status-column li::before,
.pricing-card li::before {
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--pine-500);
  border-left: 2px solid var(--pine-500);
  content: "";
  transform: rotate(-45deg);
}

.tour-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(20, 41, 31, 0.22);
  border-radius: 15px;
  background: var(--pine-900);
  box-shadow: var(--shadow-xl);
  cursor: zoom-in;
}

.screen-frame-top {
  height: 34px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  background: var(--pine-900);
  color: var(--pine-200);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.screen-frame-top > span:first-child {
  width: 24px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--clay) 0 30%, transparent 30% 36%, var(--lichen) 36% 66%, transparent 66% 72%, var(--pine-300) 72% 100%);
}

.screen-frame-top > span:nth-child(2) {
  text-align: center;
}

/* Starting points */
.starting-points-section {
  background: var(--birch);
}

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

.starting-point {
  min-height: 380px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.starting-point-primary,
.starting-point-import {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: 36px;
}

.starting-point-primary {
  grid-column: 1 / -1;
}

.starting-point-import {
  grid-column: 1 / -1;
  background: var(--pine-900);
  color: var(--pine-100);
}

.starting-point-import h3 {
  color: var(--linen);
}

.starting-point-import p,
.starting-point-import li {
  color: var(--pine-200);
}

.starting-point-import .starting-number {
  color: var(--pine-300);
}

.starting-point-import .mini-list li::before {
  border-color: var(--pine-300);
}

.starting-number {
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.starting-point h3 {
  margin: 18px 0 13px;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

.starting-point p {
  color: var(--text-muted);
}

.mini-list {
  margin-top: 22px;
  display: grid;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.angled-screen {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  cursor: zoom-in;
}

.angled-screen-light {
  border: 1px solid var(--border-default);
  transform: rotate(1.2deg);
}

.angled-screen-dark {
  border: 1px solid rgba(219, 235, 225, 0.26);
  transform: rotate(-1.2deg);
}

.template-miniatures {
  margin-top: 34px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.template-miniature {
  position: relative;
  flex: 1;
  min-height: 165px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.template-miniature::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--sage-100);
  content: "";
}

.template-miniature i,
.template-miniature b {
  position: absolute;
  display: block;
  border-radius: 5px;
}

.template-miniature i {
  top: 25px;
  right: 16px;
  left: 36%;
  height: 8px;
  background: var(--bark-300);
}

.template-miniature b {
  top: 54px;
  right: 16px;
  bottom: 20px;
  left: 36%;
  background: var(--pine-200);
}

.template-miniature-settings b:nth-of-type(2) {
  top: 90px;
  height: 18px;
  background: var(--lichen-soft);
}

.template-miniature-settings b:nth-of-type(3) {
  top: 117px;
  height: 18px;
  background: var(--sky-soft);
}

.template-miniature-launcher {
  background: var(--pine-900);
}

.template-miniature-launcher::before {
  width: 100%;
  height: 32px;
  background: var(--pine-950);
}

.template-miniature-launcher i {
  top: 51px;
  left: 20px;
  right: 20px;
  height: 28px;
  background: var(--linen);
}

.template-miniature-launcher b {
  top: 92px;
  left: 20px;
  right: 20px;
  bottom: 18px;
  background: var(--pine-800);
}

/* Framework */
.framework-section {
  background: var(--paper);
}

.framework-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 100px;
}

.framework-copy h2 {
  margin-bottom: 25px;
}

.framework-copy > p:not(.section-label) {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.framework-notes {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.framework-notes span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.framework-notes .icon {
  color: var(--pine-500);
}

.framework-stack {
  display: grid;
  gap: 14px;
}

.framework-row {
  min-height: 112px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}

.framework-row:hover {
  border-color: var(--pine-300);
  box-shadow: var(--shadow-md);
  transform: translateX(-6px);
}

.framework-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--pine-900);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
}

.framework-react .framework-mark {
  background: var(--sky-soft);
}

.framework-vue .framework-mark {
  background: var(--pine-100);
}

.framework-svelte .framework-mark {
  background: var(--clay-soft);
}

.framework-row h3 {
  margin-bottom: 5px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.framework-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.framework-row code {
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Native */
.native-section {
  overflow: hidden;
  background: var(--pine-900);
  color: var(--pine-100);
}

.native-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 92px;
}

.native-copy h2 {
  color: var(--linen);
  margin-bottom: 25px;
}

.native-copy > p:not(.section-label) {
  color: var(--pine-200);
  font-size: 1.04rem;
}

.native-visual {
  position: relative;
  padding: 70px 0;
}

.native-orbit {
  position: absolute;
  border: 1px solid rgba(134, 184, 156, 0.18);
  border-radius: 50%;
}

.native-orbit-one {
  inset: -10% 13% 2% -7%;
}

.native-orbit-two {
  inset: 10% -1% -15% 18%;
}

.native-window {
  position: relative;
  z-index: 2;
  transform: rotateY(3deg) rotateZ(-0.3deg);
}

.product-window-bar-dark {
  background: var(--pine-950);
}

.capability-list {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.capability-list span {
  padding: 7px 11px;
  border: 1px solid rgba(182, 215, 195, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(239, 246, 241, 0.06);
  color: var(--pine-100);
  font-size: 0.78rem;
  font-weight: 600;
}

.native-trust-note {
  margin-top: 34px;
  padding: 18px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  border: 1px solid rgba(182, 215, 195, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(239, 246, 241, 0.06);
}

.native-trust-note .icon {
  width: 26px;
  height: 26px;
  color: var(--pine-300);
}

.native-trust-note p {
  margin: 0;
  color: var(--pine-200);
  font-size: 0.88rem;
}

.native-trust-note strong {
  color: var(--linen);
}

/* Source */
.source-section {
  background: var(--linen);
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 90px;
}

.source-copy h2 {
  margin-bottom: 24px;
}

.source-copy > p:not(.section-label) {
  color: var(--text-muted);
  font-size: 1.04rem;
}

.source-file-list {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
}

.source-file-list li {
  padding: 13px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.source-file-list code {
  color: var(--pine-700);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.source-file-list span {
  color: var(--text-subtle);
  font-size: 0.78rem;
  text-align: right;
}

.source-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(20, 41, 31, 0.28);
  border-radius: var(--radius-xl);
  background: var(--pine-950);
  box-shadow: var(--shadow-xl);
  transform: rotate(0.7deg);
  cursor: zoom-in;
}

.source-figure-toolbar {
  height: 37px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  align-items: center;
  color: var(--pine-200);
  background: var(--pine-950);
}

.source-figure-toolbar > span {
  display: flex;
  gap: 6px;
}

.source-figure-toolbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.source-figure-toolbar i:nth-child(2) {
  background: var(--lichen);
}

.source-figure-toolbar i:nth-child(3) {
  background: var(--pine-300);
}

.source-figure-toolbar code {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

/* Status */
.status-section {
  background: var(--paper);
}

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

.status-column {
  padding: 34px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.status-current {
  border-color: var(--pine-200);
  background: var(--pine-50);
}

.status-planned {
  background: var(--sky-soft);
  border-color: rgba(95, 140, 160, 0.25);
}

.status-heading {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-heading > .icon {
  width: 29px;
  height: 29px;
  color: var(--info);
}

.status-heading div {
  display: grid;
}

.status-heading strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.status-heading small {
  color: var(--text-muted);
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pine-500);
  box-shadow: 0 0 0 6px rgba(61, 123, 93, 0.13);
}

.status-column ul {
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.status-planned li::before {
  border-color: var(--info);
}

/* Templates */
.templates-section {
  background: var(--birch);
}

.template-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.template-showcase-card {
  grid-column: span 2;
  min-height: 356px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}

.template-showcase-card:nth-child(4),
.template-showcase-card:nth-child(5) {
  grid-column: span 3;
}

.template-showcase-card:hover {
  border-color: var(--pine-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.template-showcase-card > div:last-child {
  padding: 23px 24px 25px;
}

.template-showcase-card h3 {
  margin: 8px 0 10px;
  font-size: 1.48rem;
}

.template-showcase-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.template-type {
  color: var(--pine-600);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-sketch {
  position: relative;
  height: 182px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--paper);
}

.template-sketch::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--sage-100);
  content: "";
}

.template-sketch::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 41, 31, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 41, 31, 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  pointer-events: none;
}

.template-sketch span,
.template-sketch i,
.template-sketch b {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 6px;
}

.template-sketch span {
  top: 24px;
  right: 24px;
  left: 33%;
  height: 8px;
  background: var(--bark-300);
}

.template-sketch i {
  top: 52px;
  right: 24px;
  bottom: 23px;
  left: 33%;
  background: var(--pine-200);
}

.template-showcase b:first-of-type,
.template-focus b:first-of-type {
  top: 52px;
  right: 28%;
  bottom: 23px;
  left: 33%;
  background: var(--pine-300);
}

.template-showcase b:nth-of-type(2),
.template-focus b:nth-of-type(2) {
  top: 52px;
  right: 24px;
  bottom: 23px;
  left: 75%;
  background: var(--plum-soft);
}

.template-settings b {
  right: 24px;
  left: 33%;
  height: 20px;
  background: var(--pine-100);
}

.template-settings b:first-of-type {
  top: 57px;
}

.template-settings b:nth-of-type(2) {
  top: 89px;
  background: var(--lichen-soft);
}

.template-settings b:nth-of-type(3) {
  top: 121px;
  background: var(--sky-soft);
}

.template-launcher {
  background: var(--pine-900);
}

.template-launcher::before {
  width: 100%;
  height: 35px;
  background: var(--pine-950);
}

.template-launcher span {
  top: 54px;
  left: 28px;
  right: 28px;
  height: 30px;
  background: var(--linen);
}

.template-launcher i {
  top: 97px;
  left: 28px;
  right: 28px;
  bottom: 24px;
  background: var(--pine-800);
}

/* Pricing */
.pricing-section {
  overflow: hidden;
  background: var(--pine-900);
  color: var(--pine-100);
}

.pricing-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(45deg, rgba(182, 215, 195, 0.035) 25%, transparent 25%, transparent 75%, rgba(182, 215, 195, 0.035) 75%), linear-gradient(45deg, rgba(182, 215, 195, 0.035) 25%, transparent 25%, transparent 75%, rgba(182, 215, 195, 0.035) 75%);
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
  pointer-events: none;
}

.pricing-section > .container {
  position: relative;
}

.pricing-heading {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.pricing-heading h2 {
  max-width: 850px;
  color: var(--linen);
}

.pricing-heading > div:first-child > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--pine-200);
  font-size: 1.02rem;
}

.billing-toggle {
  padding: 4px;
  display: flex;
  border: 1px solid rgba(182, 215, 195, 0.24);
  border-radius: var(--radius-md);
  background: rgba(14, 31, 24, 0.58);
}

.billing-toggle button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 7px;
  background: transparent;
  color: var(--pine-200);
  font-size: 0.78rem;
  font-weight: 700;
}

.billing-toggle button span {
  margin-left: 4px;
  color: var(--pine-300);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.billing-toggle button.is-active {
  background: var(--linen);
  color: var(--pine-900);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 14px;
}

.pricing-card {
  position: relative;
  grid-column: span 2;
  min-height: 620px;
  padding: 27px 24px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(182, 215, 195, 0.2);
  border-radius: var(--radius-lg);
  background: var(--linen);
  color: var(--text-body);
  box-shadow: 0 10px 28px rgba(5, 17, 12, 0.17);
}

.pricing-card.is-recommended {
  border-color: var(--pine-300);
  box-shadow: 0 0 0 2px rgba(134, 184, 156, 0.22), 0 18px 38px rgba(5, 17, 12, 0.22);
  transform: translateY(-10px);
}

.plan-status {
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--bark-200);
  border-radius: var(--radius-pill);
  background: var(--birch);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-status-current {
  border-color: var(--pine-200);
  background: var(--pine-100);
  color: var(--pine-700);
}

.recommended-label {
  position: absolute;
  top: 25px;
  right: 24px;
  color: var(--pine-600);
  font-size: 0.68rem;
  font-weight: 700;
}

.pricing-card h3 {
  margin: 28px 0 8px;
  font-size: 1.8rem;
}

.plan-audience {
  min-height: 67px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.plan-price {
  margin-bottom: 27px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.plan-price span {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.pricing-card ul {
  margin-bottom: 28px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pricing-card .button {
  margin-top: auto;
}

.cloud-allowance {
  margin: 15px 0 0;
  color: var(--text-subtle);
  font-size: 0.7rem;
  text-align: center;
}

.enterprise-strip {
  margin-top: 22px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) auto;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(182, 215, 195, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(239, 246, 241, 0.06);
}

.enterprise-strip h3 {
  margin: 12px 0 0;
  color: var(--linen);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.enterprise-strip p {
  margin: 0;
  color: var(--pine-200);
  font-size: 0.85rem;
}

.pricing-compare {
  margin-top: 22px;
  border: 1px solid rgba(182, 215, 195, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(14, 31, 24, 0.45);
}

.pricing-compare summary {
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--linen);
  font-weight: 700;
  list-style: none;
}

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

.pricing-compare summary .icon {
  transition: transform var(--motion-base) var(--ease-out);
}

.pricing-compare[open] summary .icon {
  transform: rotate(180deg);
}

.pricing-compare-body {
  padding: 0 22px 22px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(182, 215, 195, 0.18);
  border-radius: var(--radius-md);
}

.compare-table-wrap table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--linen);
  color: var(--text-body);
  font-size: 0.76rem;
}

.compare-table-wrap th,
.compare-table-wrap td {
  padding: 13px 14px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.compare-table-wrap th:last-child,
.compare-table-wrap td:last-child {
  border-right: 0;
}

.compare-table-wrap tr:last-child th,
.compare-table-wrap tr:last-child td {
  border-bottom: 0;
}

.compare-table-wrap thead th {
  background: var(--birch);
  color: var(--pine-800);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table-wrap tbody th {
  color: var(--ink);
  font-weight: 700;
}

.credit-model {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(239, 246, 241, 0.07);
}

.credit-model h3 {
  margin-bottom: 13px;
  color: var(--linen);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.credit-model > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.credit-model span {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(182, 215, 195, 0.2);
  border-radius: var(--radius-md);
  color: var(--pine-100);
  font-size: 0.72rem;
}

.credit-model strong {
  color: var(--linen);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.credit-model p {
  margin: 13px 0 0;
  color: var(--pine-300);
  font-size: 0.72rem;
}

/* FAQ */
.faq-section {
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 100px;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 35px);
}

.faq-heading h2 {
  margin-bottom: 22px;
}

.faq-heading > p:not(.section-label) {
  color: var(--text-muted);
}

.faq-heading .text-link {
  margin-top: 20px;
}

.faq-list {
  border-top: 1px solid var(--border-default);
}

.faq-list details {
  border-bottom: 1px solid var(--border-default);
}

.faq-list summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary .icon {
  transition: transform var(--motion-base) var(--ease-out);
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

.faq-list details p {
  max-width: 780px;
  margin: -5px 0 28px;
  color: var(--text-muted);
}

/* Final CTA */
.final-cta-section {
  padding: 0 0 var(--space-12);
  background: var(--paper);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 58px 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  border-radius: var(--radius-2xl);
  background: var(--pine-900);
  color: var(--pine-100);
  box-shadow: var(--shadow-xl);
}

.final-cta::after {
  position: absolute;
  right: -95px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(182, 215, 195, 0.15);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 55px rgba(182, 215, 195, 0.035), 0 0 0 110px rgba(182, 215, 195, 0.025);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  max-width: 760px;
  color: var(--linen);
}

.final-cta p:not(.section-label) {
  margin: 18px 0 0;
  color: var(--pine-200);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Footer */
.site-footer {
  padding: 64px 0 24px;
  background: var(--pine-950);
  color: var(--pine-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
}

.brand-dark {
  color: var(--linen);
}

.footer-brand p {
  max-width: 360px;
  margin: 20px 0 0;
  color: var(--pine-300);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: var(--linen);
  font-size: 0.78rem;
}

.footer-links a {
  color: var(--pine-300);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--linen);
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(182, 215, 195, 0.14);
  color: var(--pine-400);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

/* Lightbox */
.lightbox {
  width: min(1320px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 14px;
  overflow: visible;
  border: 1px solid rgba(182, 215, 195, 0.28);
  border-radius: var(--radius-xl);
  background: var(--pine-950);
  color: var(--pine-100);
  box-shadow: 0 26px 90px rgba(5, 17, 12, 0.42);
}

.lightbox::backdrop {
  background: rgba(14, 31, 24, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(182, 215, 195, 0.3);
  border-radius: 50%;
  background: var(--linen);
  color: var(--pine-900);
  box-shadow: var(--shadow-lg);
}

.lightbox p {
  margin: 10px 2px 0;
  color: var(--pine-300);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* Privacy page */
.legal-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + 70px) 0 100px;
  background: var(--paper);
}

.legal-shell {
  max-width: 850px;
}

.legal-shell h1 {
  margin-bottom: 25px;
  font-size: clamp(2.9rem, 6vw, 4.8rem);
}

.legal-shell h2 {
  margin: 44px 0 16px;
  font-size: 1.8rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--text-muted);
}

.legal-shell code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.legal-note {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid var(--pine-200);
  border-radius: var(--radius-lg);
  background: var(--pine-50);
}

/* Reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1180px) {
  :root {
    --container: 1040px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(510px, 1.15fr);
    gap: 45px;
  }

  .hero-callout-state {
    left: -14px;
  }

  .hero-callout-native {
    right: -12px;
  }

  .tour-stage {
    padding: 42px;
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .pricing-card {
    grid-column: span 2;
  }

  .pricing-card:nth-child(4),
  .pricing-card:nth-child(5) {
    grid-column: span 3;
  }

  .pricing-card.is-recommended {
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    padding: 18px 24px 28px;
    display: grid;
    gap: 4px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(252, 250, 244, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
    color: var(--pine-800);
    font-weight: 700;
  }

  .mobile-nav a:hover {
    background: var(--pine-50);
  }

  .hero {
    padding-top: calc(var(--header-height) + 68px);
  }

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

  .hero-copy {
    max-width: 820px;
    padding-bottom: 0;
  }

  .hero-product {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-window {
    margin-inline: auto;
  }

  .proof-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-rail div:nth-child(3) {
    border-right: 0;
  }

  .proof-rail div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .proof-rail div:nth-child(4) {
    grid-column: 1 / 2;
  }

  .proof-rail div:nth-child(5) {
    grid-column: 2 / 4;
    border-right: 0;
  }

  .split-heading,
  .framework-layout,
  .native-layout,
  .source-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 18px;
  }

  .workflow-steps::before {
    display: none;
  }

  .workflow-steps li,
  .workflow-steps li + li {
    padding: 0;
  }

  .workflow-steps li > .icon {
    margin-top: 15px;
    box-shadow: none;
  }

  .tour-stage {
    grid-template-columns: 1fr;
  }

  .tour-copy {
    max-width: 700px;
  }

  .starting-point-primary,
  .starting-point-import {
    grid-template-columns: 1fr;
  }

  .framework-layout {
    gap: 50px;
  }

  .native-layout {
    gap: 40px;
  }

  .native-copy {
    order: -1;
  }

  .source-layout {
    gap: 48px;
  }

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

  .pricing-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .billing-toggle {
    justify-self: start;
  }

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

  .pricing-card,
  .pricing-card:nth-child(4),
  .pricing-card:nth-child(5) {
    grid-column: span 1;
  }

  .pricing-card:last-child {
    grid-column: 1 / -1;
  }

  .pricing-card {
    min-height: 0;
  }

  .enterprise-strip {
    grid-template-columns: 1fr;
  }

  .enterprise-strip .button {
    justify-self: start;
  }

  .faq-heading {
    position: static;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .header-actions > .button-primary {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 55px);
  }

  .hero::after {
    right: -430px;
    top: 100px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    display: grid;
  }

  .hero-product {
    padding-top: 80px;
  }

  .hero-window {
    transform: none;
  }

  .hero-callout {
    max-width: 205px;
  }

  .hero-callout-state {
    top: 25px;
    left: 8px;
  }

  .hero-callout-native {
    right: 6px;
    bottom: 14px;
  }

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

  .proof-rail div,
  .proof-rail div:nth-child(3),
  .proof-rail div:nth-child(4),
  .proof-rail div:nth-child(5) {
    grid-column: auto;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .proof-rail div:nth-child(even),
  .proof-rail div:last-child {
    border-right: 0;
  }

  .proof-rail div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .tour-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .tour-tab:nth-child(3) {
    border-right: 0;
  }

  .tour-tab:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .tour-stage {
    min-height: 0;
    padding: 30px 22px;
  }

  .starting-points-grid {
    grid-template-columns: 1fr;
  }

  .starting-point,
  .starting-point-primary,
  .starting-point-import {
    grid-column: auto;
    min-height: 0;
    padding: 26px;
  }

  .template-miniatures {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .template-miniature {
    min-width: 150px;
  }

  .framework-row {
    grid-template-columns: 48px 1fr;
  }

  .framework-row code {
    grid-column: 2;
  }

  .native-visual {
    padding: 25px 0 0;
  }

  .source-file-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .source-file-list span {
    text-align: left;
  }

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

  .template-showcase-card,
  .template-showcase-card:nth-child(4),
  .template-showcase-card:nth-child(5) {
    grid-column: auto;
    min-height: 0;
  }

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

  .pricing-card,
  .pricing-card:last-child {
    grid-column: auto;
  }

  .credit-model > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-cta {
    padding: 42px 30px;
  }

  .final-cta-actions {
    display: grid;
  }

  .final-cta-actions .button {
    width: 100%;
  }

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

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .brand-word {
    font-size: 1.25rem;
  }

  .hero-callout {
    padding: 9px 11px;
  }

  .hero-callout small {
    display: none;
  }

  .actual-product-note {
    margin: 14px 0 0;
    justify-content: flex-start;
  }

  .proof-rail div {
    min-height: 92px;
    padding: 18px;
  }

  .tour-tab {
    min-height: 60px;
    gap: 5px;
    font-size: 0.78rem;
  }

  .tour-tab .icon {
    width: 0.95em;
    height: 0.95em;
  }

  .tour-stage {
    padding: 24px 16px;
  }

  .status-column {
    padding: 26px;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .recommended-label {
    position: static;
    margin-top: 12px;
  }

  .credit-model > div,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links > div:last-child {
    grid-column: auto;
  }

  .lightbox {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 8px;
  }

  .lightbox-close {
    top: 5px;
    right: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-window,
  .native-window,
  .source-figure,
  .angled-screen {
    transform: none;
  }
}
