/* Customer-facing acquisition and first-code flow. Uses the shared theme tokens. */
:root {
  --action-bg: #047857;
  --action-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --action-bg: #34d399;
    --action-text: #101311;
  }
}

.site-title a {
  display: block;
}
.site-header {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.site-footer .footer-brand h3 {
  color: var(--chrome-text);
}
.public-nav .nav-link {
  background: transparent;
}
.site-header .public-nav .nav-link.demo-link {
  background: var(--action-bg);
  color: var(--action-text);
  border: 0;
}
.action-primary,
.action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.action-primary {
  background: var(--action-bg);
  color: var(--action-text);
  border: 1px solid var(--action-bg);
}
.action-primary:hover {
  background: var(--action-bg);
  color: var(--action-text);
  filter: brightness(0.92);
  text-decoration: none;
}
.action-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.action-secondary:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.text-link {
  color: var(--action-bg);
  text-underline-offset: 4px;
  font-weight: 600;
}
.action-primary:focus-visible,
.action-secondary:focus-visible,
.text-link:focus-visible,
.start-faq summary:focus-visible,
.optional-fields summary:focus-visible {
  outline: 3px solid var(--action-bg);
  outline-offset: 4px;
}
.eyebrow {
  color: var(--action-bg);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
body.page-landing main h2,
body.page-landing main h3 {
  border: 0;
  padding: 0;
}
body.page-landing main h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
}
body.page-landing main h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}
.start-hero {
  background: var(--surface);
  padding: 4.5rem 0;
}
.start-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.start-copy h1 {
  color: var(--text);
  font-size: clamp(2.7rem, 4.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 0 0 1.5rem;
}
.start-copy h1 span {
  color: var(--action-bg);
}
.start-lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 48ch;
  margin-bottom: 0.8rem;
}
.start-benefit {
  color: var(--text);
  font-weight: 600;
}
.start-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.start-assurances li::before {
  content: "✓";
  color: var(--action-bg);
  margin-right: 0.45rem;
  font-weight: 700;
}
.start-card {
  min-width: 0;
  background: var(--surface);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--action-bg);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 6%);
  scroll-margin-top: 1.5rem;
}
body.page-landing .start-card h2 {
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
}
.start-card > p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.start-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.start-field {
  display: grid;
  gap: 0.45rem;
}
.start-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.start-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.75rem;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.start-field input:focus {
  outline: 2px solid var(--action-bg);
  outline-offset: 2px;
}
.start-field small {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.start-form .start-form-note {
  margin: -0.4rem 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}
.start-card-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.start-card-footer a {
  color: var(--action-bg);
  font-weight: 600;
}
.promise-band {
  border-block: 1px solid var(--border);
  padding: 1.25rem 0;
}
.promise-band .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
}
.promise-band span {
  color: var(--text-soft);
}
.product-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-block: 4.5rem;
}
.product-story > div > p:not(.eyebrow) {
  color: var(--text-soft);
  max-width: 52ch;
}
.product-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text-soft);
}
.product-benefits strong {
  color: var(--text);
}
.placement-preview {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 2rem;
  box-shadow: 0 12px 36px rgb(0 0 0 / 4%);
}
.placement-preview figcaption {
  margin-bottom: 1.75rem;
}
.placement-preview figcaption strong,
.placement-preview figcaption span {
  display: block;
}
.placement-preview figcaption span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.placement-row {
  margin: 1.15rem 0;
}
.placement-row > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.placement-row meter {
  display: block;
  width: 100%;
  height: 12px;
  appearance: none;
  background: var(--surface-soft);
  border-radius: 4px;
}
.placement-row meter::-webkit-meter-bar {
  background: var(--surface-soft);
  border: 0;
  border-radius: 4px;
  height: 12px;
}
.placement-row meter::-webkit-meter-optimum-value {
  background: var(--action-bg);
  border-radius: 4px;
}
.placement-row meter::-moz-meter-bar {
  background: var(--action-bg);
  border-radius: 4px;
}
.placement-preview > p {
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.start-steps {
  padding-block: 1rem 4rem;
}
.start-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  gap: 2.5rem;
}
.step-index {
  color: var(--action-bg);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 0.75rem;
}
.start-steps li p {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.starter-pricing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 1168px;
}
.starter-pricing > div > p:not(.eyebrow) {
  color: var(--text-soft);
  max-width: 65ch;
}
.starter-pricing-action {
  min-width: 220px;
}
.starter-pricing-action p {
  margin-bottom: 1rem;
}
.starter-pricing-action strong {
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.06em;
}
.starter-pricing-action span {
  font-size: 0.85rem;
}
.customer-notes {
  padding-block: 4rem 2rem;
}
.customer-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.customer-note-grid figure {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brand);
}
.customer-note-grid blockquote {
  color: var(--text-soft);
}
.customer-note-grid figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.start-faq {
  max-width: 840px;
  padding-block: 3rem;
}
.start-faq details {
  border-bottom: 1px solid var(--border);
}
.start-faq summary {
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 600;
}
.start-faq details p {
  padding: 0 0 1.2rem;
  color: var(--text-soft);
}
.start-faq > a {
  display: inline-block;
  margin-top: 1.25rem;
}
.start-final {
  padding-block: 2rem 4rem;
  text-align: center;
}
.start-final p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

body.page-try .try-wrap {
  max-width: 650px;
  padding-block: 3rem;
}
body.page-try .try-card {
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: none;
}
body.page-try .try-card h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
body.page-try .try-sub {
  text-align: left;
}
body.page-try .try-form input {
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  min-width: 0;
}
.optional-fields {
  margin: 0.5rem 0;
  border-block: 1px solid var(--border);
}
.optional-fields summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
}
.optional-fields > label {
  display: block;
  margin-top: 0.5rem;
}
.optional-fields > input {
  width: 100%;
  margin: 0.5rem 0 1rem;
}
.optional-fields fieldset {
  margin-bottom: 1rem;
}
.trial-steps {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.trial-next {
  max-width: 750px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.trial-next h2 {
  font-size: 1.3rem;
  border: 0;
}
.trial-next ol {
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.trial-next li {
  margin: 0.5rem 0;
}
body.page-try-result .qr-card h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 1rem 0;
}
body.page-try-result .stats-card h2 {
  font-size: 1.3rem;
  border: 0;
}
body.page-try-result .result-wrap {
  padding-top: 2rem;
}

body.page-pricing .pricing-page {
  padding-top: 3rem;
}
body.page-pricing .plan-card {
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
body.page-pricing .plan-card h3 {
  border: 0;
}
body.page-pricing .plan-card > .btn,
body.page-pricing .plan-card > form {
  margin-top: auto;
}
body.page-pricing .plan-card > form .btn {
  width: 100%;
}
body.page-pricing .plan-card .btn-primary {
  background: var(--action-bg);
  color: var(--action-text);
}
body.page-pricing .plan-purpose {
  font-size: 0.9rem;
  color: var(--text-muted);
}
body.page-pricing .plan-save {
  color: var(--action-bg);
}
body.page-index .welcome-section {
  padding-top: 2rem;
}
.first-code-guide {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.first-code-guide h2 {
  border: 0;
}
.first-code-guide p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.first-code-guide ol {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-soft);
}
.first-code-guide li {
  padding: 0.25rem 0;
}

@media (max-width: 800px) {
  .start-hero {
    padding: 2.5rem 0;
  }
  .start-grid,
  .product-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .start-copy h1 {
    font-size: clamp(2.6rem, 7vw, 3.8rem);
  }
  .start-lead {
    max-width: 60ch;
  }
  .start-card {
    padding: 1.5rem;
  }
  .product-story {
    padding-block: 3rem;
  }
  .start-steps ol {
    gap: 1.25rem;
  }
  .starter-pricing {
    margin-inline: 1rem;
    width: calc(100% - 2rem);
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .customer-note-grid {
    gap: 1.5rem;
  }
}
@media (max-width: 540px) {
  .start-hero {
    padding-top: 2rem;
  }
  .start-copy .eyebrow {
    max-width: 32ch;
  }
  .start-assurances {
    gap: 0.45rem 0.85rem;
    font-size: 0.8rem;
    margin-block: 1.25rem;
  }
  .start-card {
    padding: 1.25rem;
  }
  .promise-band .container {
    justify-content: flex-start;
  }
  .start-steps ol,
  .customer-note-grid {
    grid-template-columns: 1fr;
  }
  .placement-preview {
    padding: 1.25rem;
  }
  .start-steps {
    padding-bottom: 2.5rem;
  }
  .customer-notes {
    padding-top: 2.5rem;
  }
  .start-faq {
    padding-block: 2rem;
  }
  body.page-try .try-wrap {
    padding: 1.5rem 1rem;
  }
  body.page-try .try-card {
    padding: 1.25rem;
  }
  .trial-next {
    padding: 1.25rem;
  }
}
