.local-banner {
  min-height: 38px;
  padding: 8px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #d8e4e1;
  font-size: 12px;
  text-align: center;
}
.local-banner {
  position: sticky;
  top: 0;
  z-index: 70;
}
.local-banner + .site-header { top: 38px; }
.local-banner strong { color: #ff9b78; }
.sales-main { background: #f7f7f4; min-height: calc(100vh - 250px); }
.sales-intro {
  padding: 56px clamp(20px, 7vw, 104px) 36px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.sales-intro h1 {
  margin-top: 14px;
  max-width: 820px;
  font-size: 46px;
  letter-spacing: 0;
}
.sales-intro p { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.sales-price-hero {
  min-height: 560px;
  background-color: var(--paper);
  background-image: url("assets/ui-dashboard-hero.png");
  background-repeat: no-repeat;
  background-position: right 12% center;
  background-size: min(52vw, 760px) auto;
}
.sales-price-hero > * { max-width: 46%; }
.pricing-disclaimer {
  max-width: 920px;
  margin: -18px auto 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.price-contract {
  min-height: 46px;
  margin: -6px 0 12px;
  color: #516361;
  font-size: 11px;
}
.purchase-flow {
  max-width: 1100px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.purchase-flow > div { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); }
.purchase-flow > div:last-child { border-right: 0; }
.purchase-flow small { color: var(--accent-dark); font-weight: 800; }
.purchase-flow h2 { margin-top: 24px; font-size: 19px; letter-spacing: 0; }
.purchase-flow p { color: var(--muted); font-size: 13px; }
.sales-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 84px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}
.flow-panel,
.summary-panel,
.account-panel,
.login-panel,
.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.flow-panel { min-width: 0; }
.flow-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.flow-head h2,
.account-panel h2,
.login-panel h2,
.legal-panel h2 {
  font-size: 23px;
  letter-spacing: 0;
}
.flow-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stepper span {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid var(--line);
}
.stepper span:last-child { border-right: 0; }
.stepper i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eef0ed;
  color: #697675;
  font-style: normal;
  font-size: 11px;
}
.stepper span.active { color: var(--ink); background: #edf3ef; }
.stepper span.active i,
.stepper span.done i { background: var(--accent); color: white; }
.form-step { display: none; padding: 28px; }
.form-step.active { display: block; }
.form-step h3 { font-size: 19px; letter-spacing: 0; }
.form-step > p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.plan-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan-option {
  position: relative;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.plan-option:hover { border-color: #98aaa6; }
.plan-option.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #fff8f5;
}
.plan-option b,
.plan-option small,
.plan-option em { display: block; }
.plan-option b { font-size: 15px; }
.plan-option small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.plan-option em { margin-top: 13px; color: var(--accent-dark); font-style: normal; font-size: 13px; font-weight: 800; }
.segmented {
  width: max-content;
  max-width: 100%;
  margin: 18px 0;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.segmented button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--ink); color: white; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field-grid .wide { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3f5151;
  font-size: 12px;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd5d1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  outline: 0;
  font: inherit;
  font-weight: 500;
}
.field input:focus,
.field select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(255, 120, 73, .16); }
.field small { color: var(--muted); font-weight: 500; }
.seat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 12px;
  margin-top: 18px;
}
.review-list { margin: 0; }
.review-list div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 15px;
  border-bottom: 1px solid #eceeeb;
}
.review-list dt { color: var(--muted); font-size: 12px; }
.review-list dd { margin: 0; font-size: 13px; font-weight: 700; }
.consent-list { display: grid; gap: 10px; margin-top: 22px; }
.check-row {
  padding: 12px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #475858;
  font-size: 12px;
}
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.flow-actions {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}
.secondary-button:hover { border-color: #9aa9a6; }
.summary-panel {
  position: sticky;
  top: 136px;
  padding: 22px;
}
.summary-panel h2 { font-size: 18px; letter-spacing: 0; }
.summary-plan { margin: 14px 0 20px; }
.summary-plan small,
.summary-plan b,
.summary-plan span { display: block; }
.summary-plan small { color: var(--accent-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.summary-plan b { margin-top: 4px; font-size: 20px; }
.summary-plan span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.price-lines { border-top: 1px solid var(--line); }
.price-lines p {
  margin: 0;
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.price-lines p strong { color: var(--ink); }
.price-lines .total { padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.summary-note {
  margin: 18px 0 0;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: #fff5f0;
  color: #6d4d42;
  font-size: 11px;
}
.form-error {
  display: none;
  margin: 0 28px 20px;
  padding: 11px 13px;
  border: 1px solid #e7b8ad;
  border-radius: 6px;
  background: #fff0ed;
  color: #9d3426;
  font-size: 12px;
}
.form-error.visible { display: block; }
.success-panel {
  display: none;
  padding: 42px;
  text-align: center;
}
.success-panel.visible { display: block; }
.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dceee6;
  color: #26765a;
  font-size: 23px;
  font-weight: 800;
}
.success-panel h2 { font-size: 27px; letter-spacing: 0; }
.success-panel p { max-width: 600px; margin: 12px auto; color: var(--muted); }
.success-actions { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; }
.account-panel,
.login-panel,
.legal-panel { padding: 26px; }
.login-panel { width: min(520px, 100%); margin: 0 auto; }
.login-panel form { display: grid; gap: 14px; margin-top: 22px; }
.account-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  background: #dceee6;
  color: #26765a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-badge.cancelled { background: #fff0e8; color: #ad522e; }
.metric-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.metric-list div { min-height: 90px; padding: 15px; border-right: 1px solid var(--line); }
.metric-list div:last-child { border-right: 0; }
.metric-list small,
.metric-list b { display: block; }
.metric-list small { color: var(--muted); font-size: 10px; }
.metric-list b { margin-top: 8px; font-size: 16px; }
.account-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.danger-button { color: #a43a2e; border-color: #dfb8b1; }
.event-list { margin: 16px 0 0; padding: 0; list-style: none; }
.event-list li { padding: 11px 0; border-bottom: 1px solid #eceeeb; }
.event-list b,
.event-list small { display: block; }
.event-list b { font-size: 12px; }
.event-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.change-form { display: grid; gap: 13px; margin-top: 18px; }
.legal-stack { display: grid; gap: 18px; }
.legal-panel p,
.legal-panel li { color: var(--muted); font-size: 14px; }
.legal-panel h3 { margin: 26px 0 8px; font-size: 17px; letter-spacing: 0; }
.confirm-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(19, 42, 43, .26);
}
.confirm-dialog::backdrop { background: rgba(9, 28, 29, .66); }
.confirm-dialog form { padding: 25px; }
.confirm-dialog h2 { margin: 0; font-size: 21px; letter-spacing: 0; }
.confirm-dialog p { color: var(--muted); font-size: 13px; }
.confirm-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 900px) {
  .checkout-layout,
  .account-grid { grid-template-columns: 1fr; }
  .purchase-flow { grid-template-columns: 1fr; }
  .purchase-flow > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .purchase-flow > div:last-child { border-bottom: 0; }
  .summary-panel { position: static; order: -1; }
  .sales-intro h1 { font-size: 38px; }
  .sales-price-hero {
    min-height: 0;
    background-image: none;
  }
  .sales-price-hero > * { max-width: 100%; }
}
@media (max-width: 640px) {
  .sales-shell { width: min(100% - 24px, 1180px); padding-top: 24px; }
  .sales-intro { padding: 38px 20px 28px; }
  .sales-intro h1 { font-size: 33px; }
  .flow-head,
  .form-step,
  .flow-actions,
  .account-panel,
  .login-panel,
  .legal-panel { padding-left: 18px; padding-right: 18px; }
  .stepper span { justify-content: center; font-size: 0; }
  .stepper span i { font-size: 11px; }
  .plan-options,
  .field-grid,
  .seat-grid,
  .metric-list { grid-template-columns: 1fr; }
  .field-grid .wide { grid-column: auto; }
  .metric-list div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-list div:last-child { border-bottom: 0; }
  .review-list div { grid-template-columns: 1fr; gap: 3px; }
  .flow-actions { align-items: stretch; flex-direction: column-reverse; }
  .flow-actions .button,
  .flow-actions .secondary-button { width: 100%; }
}

/* Status-aware sales pages */
.sales-status-bar {
  min-height: 36px;
  padding: 7px 22px;
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #c8d6d2;
  background: #102726;
  font-size: 11px;
  text-align: center;
}
.sales-status-bar strong { color: var(--white); }
.sales-status-bar .status-dot { width: 7px; height: 7px; }
.sales-status-bar + .site-header { top: 36px; }

.price-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.price-hero::after {
  content: "";
  position: absolute;
  inset: 0 45% 0 0;
  z-index: 1;
  background: rgba(16, 39, 38, .97);
}
.price-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.price-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1360px);
  min-height: 540px;
  margin: 0 auto;
  padding: 72px max(24px, calc((100vw - 1360px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.price-hero-copy > * { max-width: 620px; }
.price-hero h1 {
  margin: 17px 0 0;
  color: var(--white);
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
}
.price-hero-copy > p:not(.eyebrow) { margin: 22px 0 0; color: #c1d0cc; font-size: 17px; }

.pricing-section {
  padding: 94px max(24px, calc((100vw - 1320px) / 2));
  background: #f5f8f6;
}
.pricing-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.pricing-heading h2,
.mode-section h2,
.legal-next-step h2 {
  margin: 14px 0 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}
.billing {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}
.billing button {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0 !important;
  cursor: pointer;
}
.billing button:last-child { border-right: 0; }
.billing button.active { background: var(--ink); }
.billing span { color: #ff9b78; }
.pricing-disclaimer {
  max-width: none;
  margin: 28px 0 24px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  color: #5c6d69;
  background: var(--white);
  text-align: left;
}
.pricing-grid {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pricing-loading {
  min-height: 280px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.pricing-loading svg { width: 19px; animation: pricing-spin 1s linear infinite; }
@keyframes pricing-spin { to { transform: rotate(360deg); } }

.price-card {
  min-width: 0;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  background: var(--white);
}
.price-card.featured-price {
  border: 2px solid var(--accent);
  transform: none;
  box-shadow: 0 18px 40px rgba(19, 42, 43, .1);
}
.price-card-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-label { color: var(--accent-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.recommend {
  position: static;
  padding: 4px 7px;
  border-radius: 12px;
  color: #8b432c;
  background: #ffe6dd;
  white-space: nowrap;
}
.price-card h3 {
  min-height: 52px;
  margin: 17px 0 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}
.price-card .plan-description {
  min-height: 102px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.price-card .price {
  min-height: 69px;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
}
.price-card .price b { font-size: 31px; line-height: 1.15; }
.price-card .price span { margin-top: 3px; }
.price-card .price-contract {
  min-height: 58px;
  margin: 8px 0 14px;
  color: #60706d;
  font-size: 11px;
}
.price-card .button { width: 100%; margin: 0 0 20px; padding: 0 14px; gap: 9px; }
.price-card .outline-button { border: 1px solid #acbbb6; color: var(--ink); background: var(--white); box-shadow: none; }
.price-card .outline-button:hover { border-color: var(--ink); color: var(--white); background: var(--ink); }
.price-card ul { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.price-card li { margin: 10px 0; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.price-card li::before { content: none; }
.price-card li svg { width: 15px; height: 15px; flex: 0 0 auto; color: #288266; }

.seat-pricing {
  margin-top: 62px;
  padding: 38px 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.seat-pricing h2 { margin: 13px 0 0; font-size: 31px; letter-spacing: 0; }
.seat-pricing dl { margin: 0; }
.seat-pricing dl > div {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.seat-pricing dl > div:last-child { border-bottom: 0; }
.seat-pricing dt { color: #52625f; font-size: 13px; }
.seat-pricing dd { margin: 0; font-size: 13px; font-weight: 800; text-align: right; }

.mode-section {
  padding: 92px max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 70px;
  background: #e5f0eb;
}
.mode-section-copy > p:not(.eyebrow) { margin-top: 20px; color: #536460; font-size: 16px; }
.mode-panel {
  grid-column: 1 / -1;
  padding: 35px 0;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 28px;
}
.mode-panel > svg { width: 42px; height: 42px; color: var(--accent-dark); }
.mode-panel h2 { font-size: 34px; }
.mode-panel p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.mode-panel .inline-actions { margin-top: 0; }
.price-faq {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 24px 110px;
}
.price-faq h2 { font-size: 34px; letter-spacing: 0; }
.price-faq a { color: #a64629; text-decoration: underline; text-underline-offset: 2px; }

.sales-main { background: #f4f7f5; }
.sales-intro {
  padding: 60px max(24px, calc((100vw - 1180px) / 2)) 40px;
  background: var(--white);
}
.sales-intro h1 { margin-top: 13px; font-size: 48px; line-height: 1.06; }
.sales-intro p:not(.eyebrow) { max-width: 760px; }
.checkout-page .sales-shell { width: min(1180px, calc(100% - 40px)); }
.checkout-gate {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 70px;
}
.checkout-gate-copy > svg { width: 38px; height: 38px; margin-bottom: 22px; color: var(--accent-dark); }
.checkout-gate-copy h2 { margin: 13px 0 0; font-size: 36px; letter-spacing: 0; }
.checkout-gate-copy > p:not(.eyebrow) { color: var(--muted); }
.checkout-gate-copy .secondary-button { margin-top: 16px; }
.checkout-paused { min-height: 440px; grid-template-columns: 1fr; }
.checkout-paused .checkout-gate-copy { max-width: 720px; }

.checkout-layout { grid-template-columns: minmax(0, 1fr) 330px; }
.flow-panel,
.summary-panel { border-color: #cfd8d4; }
.flow-head { padding: 27px 28px 22px; }
.flow-head h2 { margin-top: 9px; }
.flow-head .eyebrow { margin-bottom: 0; }
.stepper span { min-width: 0; }
.stepper span.active { background: #e8f1ed; }
.form-step h3 { scroll-margin-top: 140px; }
.plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-option {
  min-height: 112px;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: start;
  gap: 10px;
  border-radius: 6px;
  cursor: pointer;
}
.plan-option > span { min-width: 0; }
.plan-option b,
.plan-option small { display: block; }
.plan-option em { grid-column: 1; margin-top: 3px; }
.plan-option > svg {
  width: 21px;
  height: 21px;
  padding: 3px;
  border: 1px solid #c5d0cc;
  border-radius: 50%;
  color: transparent;
}
.plan-option.selected > svg { border-color: var(--accent); color: var(--white); background: var(--accent); }
.field .optional { color: #82908e; font-weight: 500; }

.payment-options {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.payment-options legend { margin-bottom: 9px; color: #3f5151; font-size: 12px; font-weight: 800; }
.payment-options label {
  min-height: 70px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 18px 38px 1fr 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid #ccd6d2;
  border-bottom: 0;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.payment-options label:first-of-type { border-radius: 6px 6px 0 0; }
.payment-options label:last-of-type { border-bottom: 1px solid #ccd6d2; border-radius: 0 0 6px 6px; }
.payment-options label:has(input:checked) { border-color: var(--accent); background: #fff7f3; box-shadow: inset 3px 0 0 var(--accent); }
.payment-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent-dark); }
.payment-options strong,
.payment-options small { display: block; }
.payment-options small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.payment-options label > svg { width: 17px; color: #7d8c89; }
.payment-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #315e71;
  background: #e7f0f3;
}
.payment-icon.paypal { color: #745725; background: #f7edce; }
.payment-icon svg { width: 18px; height: 18px; }

.checkout-legal-links {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.checkout-legal-links a {
  min-height: 55px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
}
.checkout-legal-links span { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.payment-note {
  margin: 18px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #596a67;
  font-size: 11px;
}
.payment-note svg { width: 16px; flex: 0 0 auto; color: var(--accent-dark); }
.summary-panel { top: 130px; }
.summary-eyebrow { margin: 0; color: var(--accent-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.summary-panel > h2 { margin-top: 6px; font-size: 22px; }
.summary-panel > h2 + p { margin: 4px 0 20px; color: var(--muted); font-size: 11px; }
.summary-demo-link { margin-top: 17px; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; }
.summary-demo-link svg { width: 15px; }

.legal-page { background: #f4f7f5; }
.legal-hero {
  padding: 76px max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 70px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.legal-hero h1 { margin-top: 15px; max-width: 760px; font-size: 52px; line-height: 1.06; }
.legal-hero > div:first-child > p:last-child { max-width: 720px; color: var(--muted); font-size: 17px; }
.legal-mode-note {
  padding: 20px;
  border-left: 3px solid var(--accent);
  background: #f5f7f6;
}
.legal-mode-note span,
.legal-mode-note strong { display: block; }
.legal-mode-note > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.legal-mode-note strong { margin-top: 5px; font-size: 17px; }
.legal-mode-note p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

.document-index {
  padding: 34px max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #edf2ef;
}
.document-index a {
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 25px 1fr 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  background: var(--white);
}
.document-index a > svg:first-child { width: 21px; color: var(--accent-dark); }
.document-index a > svg:last-child { width: 14px; color: #8a9895; }
.document-index strong,
.document-index small { display: block; overflow-wrap: anywhere; }
.document-index strong { font-size: 12px; }
.document-index small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.legal-content {
  padding: 30px max(24px, calc((100vw - 960px) / 2)) 100px;
}
.legal-document {
  scroll-margin-top: 130px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.legal-document header { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.legal-document header > div { display: flex; align-items: baseline; gap: 18px; }
.legal-document header > div > span { color: var(--accent-dark); font-size: 11px; font-weight: 850; }
.legal-document h2 { font-size: 28px; letter-spacing: 0; }
.legal-document > p { max-width: 780px; margin: 19px 0 0; color: var(--muted); font-size: 15px; }
.legal-document h3 {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: 16px;
  letter-spacing: 0;
}
.legal-document a { color: var(--accent-dark); text-underline-offset: 3px; }
.document-badge {
  min-height: 27px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #8a4934;
  background: #ffe7de;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.document-badge[data-document-state="veröffentlicht"] { color: #236f55; background: #dfeee8; }
.legal-caution { padding-left: 18px; display: flex; gap: 9px; border-left: 2px solid var(--accent); }
.legal-caution svg { width: 16px; flex: 0 0 auto; }
.legal-next-step {
  padding: 72px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  color: var(--white);
  background: var(--ink);
}
.legal-next-step > div { max-width: 760px; }
.legal-next-step h2 { font-size: 36px; }
.legal-next-step p:not(.eyebrow) { color: #b5c6c2; }

@media (max-width: 1120px) {
  .price-hero::after { right: 30%; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card h3,
  .price-card .plan-description,
  .price-card .price-contract { min-height: 0; }
  .document-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pricing-heading { align-items: flex-start; flex-direction: column; }
  .seat-pricing,
  .mode-section,
  .checkout-gate,
  .legal-hero { grid-template-columns: 1fr; gap: 42px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; order: -1; }
  .mode-panel { grid-template-columns: 45px 1fr; }
  .mode-panel > .button,
  .mode-panel > .inline-actions { grid-column: 2; justify-self: start; }
  .legal-hero { align-items: start; }
  .legal-mode-note { max-width: 520px; }
}

@media (max-width: 680px) {
  .sales-status-bar {
    min-height: 42px;
    padding: 7px 12px;
    flex-wrap: wrap;
    column-gap: 7px;
    line-height: 1.25;
    position: static;
  }
  .sales-status-bar > span:last-child { flex-basis: 100%; }
  .sales-status-bar + .site-header { top: 0; }
  .price-hero { min-height: 620px; }
  .price-hero::after { inset: 0; background: rgba(16, 39, 38, .88); }
  .price-hero > img { object-position: top left; }
  .price-hero-copy { min-height: 620px; padding: 64px 20px; }
  .price-hero h1 { font-size: 43px; }
  .price-hero .hero-actions { width: 100%; align-items: stretch; }
  .price-hero .hero-actions .button { width: 100%; }
  .pricing-section { padding: 70px 18px; }
  .pricing-heading h2,
  .mode-section h2 { font-size: 33px; }
  .billing { width: 100%; }
  .billing button { flex: 1; padding: 0 8px; font-size: 11px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { padding: 23px; }
  .seat-pricing { margin-top: 46px; padding: 30px 0; }
  .seat-pricing dl > div { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .seat-pricing dd { text-align: left; }
  .mode-section { padding: 70px 20px; }
  .mode-panel { padding: 20px 0; grid-template-columns: 1fr; }
  .mode-panel > .button,
  .mode-panel > .inline-actions { grid-column: 1; }
  .price-faq { padding: 72px 20px 90px; }
  .sales-intro { padding: 44px 20px 30px; }
  .sales-intro h1 { font-size: 36px; }
  .checkout-page .sales-shell { width: min(100% - 24px, 1180px); }
  .checkout-gate { padding-top: 34px; }
  .plan-options,
  .field-grid,
  .seat-grid { grid-template-columns: 1fr; }
  .field-grid .wide { grid-column: auto; }
  .form-step { padding: 23px 18px; }
  .flow-head,
  .flow-actions { padding-left: 18px; padding-right: 18px; }
  .payment-options label { grid-template-columns: 18px 36px 1fr; }
  .payment-options label > svg:last-child { display: none; }
  .checkout-legal-links { grid-template-columns: 1fr; }
  .flow-actions { align-items: stretch; flex-direction: column-reverse; }
  .flow-actions .button,
  .flow-actions .secondary-button { width: 100%; }
  .document-index { padding: 24px 18px; grid-template-columns: 1fr; }
  .document-index a { min-height: 64px; }
  .legal-hero { padding: 56px 20px; }
  .legal-hero h1 { font-size: 38px; }
  .legal-content { padding: 16px 20px 72px; }
  .legal-document { padding: 34px 0; }
  .legal-document header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .legal-document h2 { font-size: 24px; }
  .legal-next-step { padding: 60px 20px; align-items: flex-start; flex-direction: column; }
  .legal-next-step h2 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-loading svg { animation: none; }
}
