:root {
  --sub-accent: var(--blue);
  --sub-accent-soft: var(--blue-soft);
  --sub-accent-rgb: 6, 117, 232;
}

.segment-b2c {
  --sub-accent: #00a9c7;
  --sub-accent-soft: #e6fbff;
  --sub-accent-rgb: 0, 169, 199;
}

.segment-recruitment {
  --sub-accent: #df9300;
  --sub-accent-soft: #fff7df;
  --sub-accent-rgb: 223, 147, 0;
}

.segment-nonprofit {
  --sub-accent: #15966a;
  --sub-accent-soft: #e7f9f2;
  --sub-accent-rgb: 21, 150, 106;
}

.subpage-main {
  background: #fff;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 82px;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 255, 0.95)),
    #fff;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(6, 117, 232, 0.14) 1px, transparent 1px);
  background-position: 50% 50%;
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 54%, #000 78%, transparent 100%);
  pointer-events: none;
}

.subpage-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(520px, 1.14fr);
  gap: 58px;
  align-items: center;
}

.subpage-hero-copy {
  max-width: 610px;
}

.subpage-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 62px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.subpage-hero h1 span {
  color: var(--sub-accent);
}

.subpage-hero-copy > p:not(.section-kicker) {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.subpage-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.subpage-actions .btn-primary,
.cta-band .btn-primary,
.trial-submit {
  background: var(--sub-accent);
}

.subpage-visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.subpage-visual img,
.diagram-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.subpage-visual::after {
  content: "";
  position: absolute;
  top: 17%;
  right: 15%;
  width: 8px;
  height: 8px;
  background: var(--sub-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(var(--sub-accent-rgb), 0.11);
  animation: subpage-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.proof-rail {
  background: var(--dark);
}

.proof-rail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.proof-item {
  min-width: 0;
  padding: 28px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

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

.proof-item strong {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 24px;
}

.proof-item span {
  display: block;
  margin-top: 5px;
  color: #b8c9dc;
  font-size: 13px;
  line-height: 1.45;
}

.section-shell {
  padding: 92px 0;
  background: #fff;
}

.section-shell.soft {
  background: var(--page-soft);
}

.section-shell.dark {
  color: #fff;
  background: var(--dark);
}

.section-intro {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-intro.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-intro h2,
.split-copy h2,
.story-panel h2,
.cta-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.dark .section-intro h2,
.dark .split-copy h2,
.dark .story-panel h2,
.cta-band h2 {
  color: #fff;
}

.section-intro > p:not(.section-kicker),
.split-copy > p,
.story-panel > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.dark .section-intro > p:not(.section-kicker),
.dark .split-copy > p,
.dark .story-panel > p {
  color: #c4d5e6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}

.split-layout.reverse .split-copy {
  order: 2;
}

.split-layout.reverse .split-media {
  order: 1;
}

.split-media {
  min-width: 0;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.dark .feature-list li {
  color: #d8e8f8;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 19px;
  height: 19px;
  border: 2px solid var(--sub-accent);
  border-radius: 50%;
}

.feature-list li::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 7px;
  height: 4px;
  border-bottom: 2px solid var(--sub-accent);
  border-left: 2px solid var(--sub-accent);
  transform: rotate(-45deg);
}

.feature-list strong {
  color: var(--ink);
}

.dark .feature-list strong {
  color: #fff;
}

.story-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.story-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.story-tab {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.story-tab::before {
  content: attr(data-step-label);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
}

.story-tab.active {
  color: var(--ink);
  background: var(--sub-accent-soft);
}

.story-tab.active::before {
  color: #fff;
  background: var(--sub-accent);
  border-color: var(--sub-accent);
}

.story-stage {
  min-width: 0;
}

.story-panel {
  display: none;
  min-height: 520px;
  animation: panel-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.story-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.story-visual {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fbff, #eef7ff);
  border-radius: var(--radius);
}

.story-visual::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(var(--sub-accent-rgb), 0.3);
  border-radius: 50%;
  animation: story-orbit 18s linear infinite;
}

.story-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  color: #fff;
  background: var(--sub-accent);
  border-radius: 50%;
}

.story-core svg {
  width: 48px;
  height: 48px;
}

.story-node {
  position: absolute;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--sub-accent);
  background: #fff;
  border-radius: 50%;
}

.story-node svg {
  width: 28px;
  height: 28px;
}

.story-node.one { top: 48px; left: 48px; }
.story-node.two { top: 60px; right: 44px; }
.story-node.three { right: 72px; bottom: 42px; }
.story-node.four { bottom: 54px; left: 60px; }

.journey-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.journey-grid::before {
  content: "";
  position: absolute;
  top: 33px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--line);
}

.journey-step {
  position: relative;
  z-index: 1;
}

.journey-step-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--sub-accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.journey-step-icon svg {
  width: 28px;
  height: 28px;
}

.journey-step.active .journey-step-icon {
  color: #fff;
  background: var(--sub-accent);
  border-color: var(--sub-accent);
  transform: scale(1.06);
}

.journey-step.active h3 {
  color: var(--sub-accent);
}

.journey-step h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

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

.outcome-grid,
.principle-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.outcome-card,
.principle-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.outcome-card strong,
.principle-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.outcome-card p,
.principle-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.outcome-label {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--sub-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-band {
  padding: 76px 0;
  color: #fff;
  background: var(--dark);
}

.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 46px;
  align-items: center;
}

.cta-band p {
  max-width: 690px;
  margin: 16px 0 0;
  color: #bfd1e3;
  font-size: 18px;
  line-height: 1.6;
}

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

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: #fff;
  background: var(--sub-accent);
  border-color: var(--sub-accent);
}

.resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease;
}

.resource-card:hover,
.resource-card:focus-within {
  border-color: var(--sub-accent);
  transform: translateY(-3px);
}

.resource-card[hidden] {
  display: none;
}

.resource-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.resource-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.resource-meta {
  color: var(--sub-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-body h2,
.resource-body h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.resource-body p {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.resource-body .text-link {
  margin-top: auto;
}

.playbook-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 34px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  font-size: 14px;
  line-height: 1.55;
}

.playbook-note svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--amber);
}

.use-case-detail {
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: 0 20px 52px rgba(27, 57, 99, 0.07);
}

.use-case-detail.active {
  display: grid;
  animation: panel-in 320ms ease both;
}

.use-case-detail h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
}

.use-case-detail p {
  color: var(--muted);
  line-height: 1.65;
}

.use-case-copy {
  max-width: 820px;
}

.use-case-copy .section-kicker {
  margin-bottom: 14px;
}

.use-case-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  margin-top: 34px;
}

.use-case-subheading {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-use-cases .outcome-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-use-cases .outcome-card {
  padding: 22px;
}

.use-case-flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-case-flow li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  background: var(--page-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.use-case-flow strong {
  color: var(--ink);
}

.use-case-flow span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--sub-accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
}

.pricing-plans-hero {
  padding: 108px 0 44px;
  background:
    radial-gradient(circle at 92% 10%, rgba(3, 169, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.pricing-plans-header {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pricing-plans-header > div:first-child {
  max-width: 760px;
}

.pricing-plans-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.02;
}

.pricing-plans-header > div:first-child > p:not(.section-kicker) {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.pricing-grid-primary .pricing-card {
  display: flex;
  min-height: 398px;
  flex-direction: column;
  padding: 22px;
}

.pricing-grid-primary .pricing-card h2 {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.pricing-grid-primary .pricing-card ul {
  flex: 1;
  gap: 9px;
  margin-bottom: 18px;
}

.pricing-grid-primary .pricing-card li {
  font-size: 13px;
}

.pricing-grid-primary .price {
  font-size: 31px;
}

.pricing-estimator-section {
  padding-top: 72px;
}

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr);
  gap: 46px;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimator label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
}

.estimator-output {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.estimator-output output {
  color: var(--sub-accent);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
}

.estimator input[type="range"] {
  width: 100%;
  accent-color: var(--sub-accent);
}

.estimator-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.plan-recommendation {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: #fff;
  background: var(--dark);
  border-radius: var(--radius);
}

.plan-recommendation .section-kicker {
  color: #7fd2ff;
}

.plan-recommendation strong {
  display: block;
  font-size: 30px;
}

.plan-recommendation p {
  margin: 10px 0 0;
  color: #c3d5e7;
  line-height: 1.55;
}

.billing-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #edf5fc;
  border-radius: var(--radius);
}

.billing-control button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.billing-control button.active {
  color: #fff;
  background: var(--sub-accent);
}

.pricing-card.recommended {
  border-color: var(--sub-accent);
  box-shadow: 0 0 0 2px rgba(var(--sub-accent-rgb), 0.12);
}

.price-note {
  min-height: 42px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.article-hero {
  padding: 150px 0 70px;
  background: var(--page-soft);
}

.article-hero-inner {
  max-width: 900px;
}

.article-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.05;
}

.article-hero p:not(.section-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.article-cover {
  margin: 40px 0 0;
}

.article-cover img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px);
  gap: 64px;
  justify-content: center;
}

.article-toc {
  position: sticky;
  top: 105px;
  align-self: start;
}

.article-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.article-toc a:hover {
  color: var(--blue);
}

.article-prose {
  min-width: 0;
}

.article-prose h2 {
  margin: 54px 0 16px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.15;
  scroll-margin-top: 110px;
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 23px;
}

.article-prose p,
.article-prose li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.article-prose ul,
.article-prose ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.article-callout {
  margin: 34px 0;
  padding: 24px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
}

.article-callout strong {
  color: var(--ink);
}

.trial-hero {
  padding-bottom: 52px;
}

.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 64px;
  align-items: start;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  gap: 72px;
  align-items: start;
}

.contact-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  line-height: 1.04;
}

.contact-copy .lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.6;
}

.contact-copy > p:last-child {
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-guide {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-guide span {
  padding: 9px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #b7d9f8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.contact-form textarea {
  min-height: 170px;
}

.contact-privacy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.confirmation-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-large);
  box-shadow: 0 30px 90px rgba(0, 16, 38, 0.32);
}

.confirmation-dialog::backdrop {
  background: rgba(0, 16, 38, 0.62);
  backdrop-filter: blur(5px);
}

.confirmation-dialog-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  text-align: center;
}

.confirmation-dialog-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 0 0 10px var(--blue-soft);
}

.confirmation-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.confirmation-dialog p {
  margin: 14px 0 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.trial-benefits {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.trial-benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.trial-benefit span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.trial-benefit svg {
  width: 20px;
  height: 20px;
}

.trial-benefit strong {
  color: var(--ink);
}

.trial-benefit p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.trial-form {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.form-legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.form-field textarea {
  min-height: 108px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(6, 117, 232, 0.12);
}

.form-field [aria-invalid="true"] {
  border-color: var(--red);
}

.form-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: #b4233d;
  font-size: 12px;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.trial-submit {
  width: 100%;
  margin-top: 18px;
  color: #fff;
}

.trial-submit[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  color: #0d684c;
  background: #e6fbf3;
}

.form-status.error {
  color: #8f1f36;
  background: #fff0f3;
}

.legal-page main {
  background: var(--page-soft);
}

.legal-page .legal-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@keyframes subpage-pulse {
  0%, 100% { transform: scale(0.86); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes story-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .subpage-hero-grid,
  .split-layout,
  .trial-layout,
  .contact-layout,
  .estimator {
    grid-template-columns: 1fr;
  }

  .subpage-hero-copy {
    max-width: 780px;
  }

  .subpage-visual {
    max-width: 820px;
    margin: 0 auto;
  }

  .story-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
  }

  .story-panel.active {
    grid-template-columns: 1fr;
  }

  .story-panel {
    min-height: 0;
  }

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

  .pricing-plans-header {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .subpage-hero {
    padding: 112px 0 58px;
  }

  .subpage-hero-grid {
    gap: 32px;
  }

  .subpage-hero h1,
  .article-hero h1 {
    font-size: 43px;
  }

  .subpage-hero-copy > p:not(.section-kicker),
  .article-hero p:not(.section-kicker) {
    font-size: 18px;
  }

  .proof-rail-grid,
  .journey-grid,
  .outcome-grid,
  .principle-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section-shell {
    padding: 68px 0;
  }

  .section-intro h2,
  .split-copy h2,
  .story-panel h2,
  .cta-band h2 {
    font-size: 33px;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-nav {
    position: static;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    overflow-x: auto;
    padding: 0 0 12px;
    border-left: 0;
  }

  .story-tab {
    grid-template-columns: 28px 1fr;
    white-space: nowrap;
  }

  .story-tab::before {
    width: 26px;
    height: 26px;
  }

  .journey-grid::before {
    display: none;
  }

  .cta-band-inner,
  .use-case-detail,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .article-toc {
    position: static;
    display: none;
  }

  .trial-layout {
    gap: 38px;
  }

  .use-case-body {
    grid-template-columns: 1fr;
  }

  .pricing-plans-hero {
    padding: 104px 0 56px;
  }

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

  .contact-layout {
    gap: 38px;
  }
}

@media (max-width: 560px) {
  .subpage-hero h1,
  .article-hero h1,
  .contact-copy h1 {
    font-size: 36px;
  }

  .subpage-actions,
  .cta-band-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .subpage-actions .btn,
  .cta-band-actions .btn {
    width: 100%;
  }

  .proof-rail-grid,
  .journey-grid,
  .outcome-grid,
  .principle-grid,
  .resource-grid,
  .pricing-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .story-visual {
    min-height: 330px;
  }

  .story-node {
    width: 58px;
    height: 58px;
  }

  .story-node.one { top: 28px; left: 24px; }
  .story-node.two { top: 36px; right: 22px; }
  .story-node.three { right: 42px; bottom: 26px; }
  .story-node.four { bottom: 32px; left: 30px; }

  .estimator,
  .trial-form,
  .use-case-detail {
    padding: 24px;
  }

  .pricing-plans-header .billing-control {
    width: 100%;
  }

  .confirmation-dialog-card {
    padding: 30px 22px;
  }

  .form-field.full {
    grid-column: auto;
  }

  .article-hero {
    padding: 118px 0 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-visual::after,
  .story-visual::before {
    animation: none;
  }

  .story-panel,
  .use-case-detail {
    animation: none;
  }
}
