/* Scopeform Pro — brand v2 tokens ("The band": brackets, a scale, one measured range) */
:root {
  --paper: #f5f3ee;
  --paper-deep: #ebe7de;
  --white: #fffefb;
  --ink: #16181d;
  --ink-soft: #3a3d44;
  --muted: #6b6a64;
  --line: rgba(22, 24, 29, 0.12);
  --line-strong: rgba(22, 24, 29, 0.26);
  --aare: #2e45d6; /* Scope Blue — kept var name for compatibility */
  --aare-soft: #e4e7fb;
  --focus: #2e45d6;
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --measure: 38rem;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow-soft: 0 1px 0 rgba(22, 24, 29, 0.04);
  --shadow-card: 0 1px 2px rgba(22, 24, 29, 0.05), 0 18px 48px -18px rgba(22, 24, 29, 0.18);
  --accent: var(--aare);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--space);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--paper) !important;
  background: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper) !important;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 49;
  display: grid;
  padding: 0.5rem var(--space) 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

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

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-on-dark:hover {
  background: transparent;
  color: #f5f3ee;
  border-color: rgba(245, 245, 241, 0.55);
}

.btn-ghost-on-dark {
  background: transparent;
  color: #f5f3ee;
  border-color: rgba(245, 245, 241, 0.4);
}

.btn-ghost-on-dark:hover {
  border-color: #f5f3ee;
  color: #f5f3ee;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--space);
}

.section-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  transform-origin: left;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Product story — editorial, not card grid */
.story {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.story-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 920px) {
  .story-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

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

.story-steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.2rem;
}

.story-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Estimator */
.estimator {
  background: var(--paper-deep);
}

.estimator-shell {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .estimator-shell {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.estimator-form {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}

.segment {
  position: relative;
  cursor: pointer;
}

.segment input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.segment span {
  display: grid;
  place-items: center;
  min-height: 2.85rem;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-right: 1px solid var(--line-strong);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.segment:last-child span {
  border-right: 0;
}

.segment:hover span {
  background: color-mix(in srgb, var(--aare-soft) 45%, var(--paper));
}

.segment input:checked + span {
  background: var(--accent);
  color: var(--paper);
}

.segment input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.slider-field {
  display: grid;
  gap: 0.65rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.slider-label output {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  border-radius: 0;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: pointer;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.estimate-result {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.estimate-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.estimate-value {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s var(--ease);
}

.estimate-value.is-updating {
  opacity: 0.35;
}

.estimate-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 36ch;
}

.powered-by {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.powered-by a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.lead-capture {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.lead-capture label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.lead-capture input,
.lead-capture textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.lead-capture textarea,
.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.lead-msg {
  margin: 0;
  font-size: 0.88rem;
  color: var(--accent);
  min-height: 1.25rem;
}

/* Pricing strip — two columns, not three cards */
.pricing {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  gap: 0;
  max-width: 52rem;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .plan {
    border-bottom: 0;
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  }

  .plan:first-child {
    border-right: 1px solid var(--line);
    padding-left: 0;
  }

  .plan:last-child {
    padding-right: 0;
  }
}

.plan-price {
  margin: 0.35rem 0 1rem;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plan ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.plan li::before {
  content: "— ";
  color: var(--muted);
}

.plan-featured .plan-price {
  color: var(--accent);
}

.plan-cta-wrap {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.trust-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22rem;
}

.pricing-trust {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Sticky Go Pro — mobile-first, tasteful */
.sticky-buy {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem var(--space);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}

.sticky-buy.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-buy-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.sticky-buy-copy strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.sticky-buy .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .sticky-buy {
    left: auto;
    right: var(--space);
    bottom: var(--space);
    width: auto;
    max-width: 22rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding-bottom: 0.75rem;
  }
}

/* Embed path */
.embed-path {
  background: var(--paper);
}

.snippet-block {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.snippet-block pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  background: var(--ink);
  color: #e9e7e1;
  font-size: 0.8rem;
  line-height: 1.55;
  border-radius: var(--radius);
}

.snippet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.copy-status {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.preview-frame-wrap {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
}

.preview-frame-wrap iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
  background: var(--paper);
}

/* Dashboard layout */
.dash-body {
  padding-top: calc(var(--header-h) + 2rem);
}

.dash-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space) 4rem;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 960px) {
  .dash-shell {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
}

.panel + .panel {
  margin-top: 1rem;
}

.panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: none;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-pill {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
}

.plan-pill.is-pro {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dash-title,
.checkout-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  max-width: none;
}

.dash-lede {
  margin-bottom: 1.5rem;
}

.pro-gate {
  margin-bottom: 1rem;
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--aare-soft) 35%, var(--paper));
}

.pro-gate[hidden] {
  display: none;
}

.rates-block {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.rates-block legend {
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.panel-subhead {
  margin-top: 1.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  max-width: none;
}

.code-block {
  margin: 0 0 1rem;
  padding: 1.25rem;
  overflow-x: auto;
  background: var(--ink);
  color: #e9e7e1;
  font-size: 0.8rem;
  line-height: 1.55;
}

.leads-panel {
  margin-top: 1rem;
}

.leads-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.lead-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.lead-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.preview-frame-wrap {
  margin-top: 1rem;
}

input:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--paper-deep);
}

code {
  font-size: 0.88em;
}

/* Checkout */
.checkout-shell {
  max-width: 32rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) var(--space) 4rem;
}

.checkout-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--paper);
}

.checkout-summary {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.checkout-summary p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.success-state[hidden] {
  display: none;
}

/* Preview client site */
.client-site {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46, 69, 214, 0.06), transparent 45%),
    linear-gradient(180deg, #ece8df 0%, var(--paper) 40%);
  min-height: 100svh;
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--space);
  border-bottom: 1px solid var(--line);
}

.client-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.client-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem var(--space) 4rem;
}

.client-main h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.025em;
}

.client-main > p {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* Footer */
.site-footer {
  display: grid;
  gap: 0.35rem;
  padding: 2.5rem var(--space) 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-size: 0.85rem;
}

.footer-meta {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.site-footer p {
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

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

.faq-item h3 {
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.section-rule[data-reveal].is-visible {
  transform: scaleX(1);
}

.section-rule[data-reveal] {
  transform: scaleX(0.18);
  opacity: 1;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}


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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* Embed page body */
body.embed-page {
  background: transparent;
  min-height: 0;
}

body.embed-page .estimator-form {
  margin: 0;
  max-width: none;
}


/* ===== Brand v2 layer ===== */
body { font-size: 1rem; }
h1, h2, h3, .estimate-value, .plan-price { font-feature-settings: "ss01", "cv11"; }
h2 { font-weight: 600; letter-spacing: -0.03em; }
h3 { font-weight: 600; letter-spacing: -0.02em; }
.eyebrow, .estimate-label, .step-num, .footer-meta, .plan-pill, .powered-by, .slider-ticks, .widget-bar-label {
  font-family: var(--mono);
  font-weight: 400;
}
.eyebrow { letter-spacing: 0.08em; font-size: 0.74rem; color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 0.9em; height: 2px; margin-right: 0.55em; vertical-align: middle; background: var(--accent); }

/* Brand mark (symbol + wordmark) */
.brand-mark, .footer-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -0.02em; text-transform: none; text-decoration: none; color: var(--ink);
}
.brand-mark em, .footer-brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.brand-symbol { width: 1.55rem; height: 1.55rem; fill: var(--ink); flex: none; }
.brand-symbol .sym-track { fill-opacity: 0.28; }
.brand-symbol .sym-band { fill: #2e45d6; }
.site-nav a { font-size: 0.9rem; letter-spacing: 0; }
.nav-cta { padding: 0.45rem 0.9rem; }

/* Buttons */
.btn { font-weight: 500; letter-spacing: 0; }
.btn-primary:hover, .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn-ghost { background: transparent; }

/* Hero — product first: copy left, the real widget right */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) var(--space) clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--paper-deep) 100%);
  overflow: hidden;
}
.hero-grid { max-width: 76rem; margin: 0 auto; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.02fr; grid-template-areas: "copy demo" "facts demo"; row-gap: 0; }
  .hero-content { grid-area: copy; align-self: end; }
  .hero-demo { grid-area: demo; }
  .hero-facts { grid-area: facts; align-self: start; }
}
@media (max-width: 979px) { .hero-grid { gap: 2.25rem; } .hero-actions { margin-bottom: 0; } .hero-title { font-size: clamp(2.5rem, 11vw, 3.4rem); } }
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-title {
  margin: 0 0 1.25rem; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 11ch;
}
.hero-lead { margin: 0 0 2rem; max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.5; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 32rem; }
.hero-facts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.hero-facts span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.hero-demo { position: relative; }
.widget-frame {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.widget-bar { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.widget-dots { display: inline-flex; gap: 6px; }
.widget-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(22, 24, 29, 0.14); }
.widget-bar-label { margin: 0; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); }
.widget-bar-label::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.5em; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }
.hero-widget.estimator-form { border: 0; box-shadow: none; background: var(--white); gap: 1.35rem; padding: clamp(1.25rem, 2.6vw, 1.85rem); }
.hero-demo-note { margin: 0.9rem 0.25rem 0; font-size: 0.82rem; color: var(--muted); max-width: 52ch; }
.hero-scale {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 64px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) bottom / 100% 6px no-repeat;
}
@media (min-width: 980px) { .hero { min-height: 100svh; display: grid; align-items: center; } }

/* Estimator (shared with embed) */
.estimator-form { background: var(--white); border-radius: var(--radius-lg); }
legend, .slider-label { font-size: 0.86rem; color: var(--ink-soft); font-weight: 500; }
.segmented { border-radius: var(--radius); overflow: hidden; background: var(--paper); border-color: var(--line-strong); }
.segment span { font-size: 0.86rem; min-height: 2.6rem; }
.segment:hover span { background: var(--aare-soft); }
.segment input:checked + span { background: var(--accent); color: #fff; }
.slider-label output { font-family: var(--mono); font-size: 0.86rem; font-weight: 500; color: var(--ink); }
input[type="range"] { height: 2px; background: var(--line-strong); border-radius: 2px; margin: 0.45rem 0; }
input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; background: var(--white); border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(22,24,29,0.18); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--white); border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(22,24,29,0.18); }
.slider-ticks { font-size: 0.7rem; letter-spacing: 0; }
.estimate-result { position: relative; padding: 1.1rem 1.1rem 1rem 1.35rem; border: 0; border-radius: var(--radius); background: var(--paper); }
.estimate-result::before { content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.estimate-label { letter-spacing: 0.08em; font-size: 0.7rem; }
.estimate-value { font-weight: 600; letter-spacing: -0.01em; word-spacing: 0.08em; font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--ink); margin-bottom: 0.4rem; }
.estimate-note { font-size: 0.84rem; }
.powered-by { letter-spacing: 0.02em; text-transform: none; font-size: 0.72rem; margin-top: 0.7rem; }
.lead-capture { margin-top: 0; padding-top: 0; border-top: 0; }
.hero-widget .lead-capture { grid-template-columns: 1fr auto; align-items: end; column-gap: 0.6rem; }
.hero-widget .lead-capture .lead-msg { grid-column: 1 / -1; }
.lead-capture input, .lead-capture textarea, .field input, .field select, .field textarea { background: var(--white); border-radius: var(--radius); }
.lead-capture input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
@media (max-width: 520px) { .hero-widget .lead-capture { grid-template-columns: 1fr; } }

/* Sections */
.story-steps li { grid-template-columns: 3.25rem 1fr; }
.step-num { font-size: 0.8rem; color: var(--accent); }
.snippet-block pre, .code-block { font-family: var(--mono); border-radius: var(--radius); background: var(--ink); }
.preview-frame-wrap { border-radius: var(--radius-lg); }
.plan-price { font-weight: 600; letter-spacing: -0.03em; }
.plan-featured { position: relative; }
.plan li::before { content: "—  "; color: var(--accent); }
.sticky-buy { border-radius: var(--radius); }
.panel, .checkout-card { border-radius: var(--radius-lg); background: var(--white); }
.pro-gate { background: var(--aare-soft); }
.client-brand { letter-spacing: -0.01em; }
.site-footer { border-top: 1px solid var(--line); }
.footer-brand { font-size: 1rem; letter-spacing: -0.02em; }
.checkout-title { line-height: 1.05; }
.footer-meta { letter-spacing: 0.06em; }
body.embed-page { background: transparent; }

/* Sticky buy: fully hidden until scrolled (old 110% offset left it peeking on desktop) */
.sticky-buy { opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s var(--ease); }
.sticky-buy.is-visible { opacity: 1; }
@media (min-width: 720px) { .sticky-buy:not(.is-visible) { transform: translateY(calc(100% + 3rem)); } }

/* One 76rem column for every section, header and footer */
.section, .site-footer, .site-header { padding-left: max(var(--space), calc((100% - 76rem) / 2)); padding-right: max(var(--space), calc((100% - 76rem) / 2)); }
.hero { padding-left: var(--space); padding-right: var(--space); }

/* Legal + checkout card: readable sub-heads */
.checkout-card h2 { font-size: 1.3rem; line-height: 1.2; max-width: none; margin-bottom: 0; }
.checkout-card .field-hint { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }

/* Mobile: keep dashboard grid items from growing to the snippet's line length */
.dash-shell > *, .panel, .snippet-block { min-width: 0; }
.code-block, .snippet-block pre { max-width: 100%; white-space: pre; overflow-x: auto; }

/* Legal pages */
.legal { max-width: 46rem; }
.legal .lede a { color: var(--accent); }
.legal-card { margin-top: 1.5rem; }
.legal-card h2 { margin-top: 1.6rem; }
.legal-card h2:first-child, .legal-card .eyebrow + h2 { margin-top: 0; }
.legal-card p, .legal-card address { margin: 0.6rem 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); font-style: normal; }
.legal-card a { color: var(--accent); }
.legal-card code { font-family: var(--mono); font-size: 0.85em; }

/* Lead form honeypot (bots fill it, people never see it) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.dash-key { white-space: pre-wrap; font-family: var(--mono); word-break: break-all; background: var(--ink); color: #fff; padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.85rem; }
.dash-note { border-left: 3px solid var(--accent); padding-left: 0.8rem; }
.inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 14rem; margin: 0; }
