:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --soft: #f1f6f3;
  --ink: #1d2521;
  --muted: #66736d;
  --line: #dfe6e1;
  --green: #1f7a4d;
  --green-dark: #145c39;
  --amber: #a8610b;
  --red: #b33939;
  --shadow: 0 18px 50px rgba(30, 42, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.96);
  padding: 12px clamp(16px, 4vw, 40px);
}

.brand {
  display: grid;
  grid-template-columns: 40px minmax(0, auto);
  gap: 10px;
  align-items: center;
  min-width: 220px;
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 122, 77, 0.16);
  flex: 0 0 auto;
  object-fit: contain;
}

.brand .brand-icon {
  grid-row: span 2;
}

.brand strong,
.brand small {
  display: block;
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-name,
.brand-separator,
.brand-context {
  display: inline;
}

.brand small,
.muted {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.logout-form {
  margin: 0;
}

.nav-link,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover,
.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.content-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px clamp(14px, 4vw, 32px) 64px;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px clamp(14px, 4vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.footer-brand {
  color: var(--ink);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
}

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

.filter-card {
  margin-bottom: 18px;
}

.export-card {
  margin-bottom: 18px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-actions .button,
.filter-actions .button-secondary {
  width: auto;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(16, 35, 24, 0.07) 0%, rgba(247, 245, 239, 0) 42%),
    var(--bg);
  padding: clamp(18px, 4vw, 48px);
}

.auth-card {
  width: min(460px, 100%);
}

.auth-card-plain {
  box-shadow: var(--shadow);
}

.auth-purchase-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  width: min(1060px, 100%);
  overflow: hidden;
  border: 1px solid rgba(20, 92, 57, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(30, 42, 36, 0.16);
}

.auth-purchase-hero {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 650px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 42%),
    #102318;
  color: #fff;
  padding: clamp(26px, 4vw, 46px);
}

.auth-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 900;
}

.auth-brand-line .brand-icon {
  width: 42px;
  height: 42px;
}

.auth-purchase-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 0.94;
}

.auth-purchase-copy p {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.auth-selected-plan {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.auth-selected-plan > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-selected-plan strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
}

.auth-selected-plan p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.auth-selected-plan b {
  color: #fff;
  font-size: 1.25rem;
}

.auth-plan-limits,
.auth-flow {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.auth-plan-limits li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.auth-plan-limits li::before {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #d38b1f;
  content: "";
  flex: 0 0 auto;
}

.auth-flow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.auth-flow span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1be72;
  font-weight: 900;
}

.auth-flow p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.42;
}

.auth-flow strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
}

.auth-form-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}

.auth-form-header span {
  display: block;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form-header h2 {
  margin: 7px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.auth-form-header p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  grid-template-columns: 1fr;
}

.auth-form .button {
  min-height: 50px;
  width: 100%;
}

.auth-form .flash {
  grid-column: 1 / -1;
}

.auth-resend-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.auth-inline-link {
  justify-self: start;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-inline-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.auth-form-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-header h1,
.section-title h2 {
  margin: 0;
  letter-spacing: 0;
}

.page-header p,
.section-title p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid,
.list {
  display: grid;
  gap: 16px;
}

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

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

.card,
.visit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-body,
.visit-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.subscription-card {
  margin-top: 16px;
}

.subscription-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.subscription-header h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.subscription-header p {
  margin: 6px 0 0;
}

.subscription-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.subscription-form .field {
  min-width: 180px;
}

.pricing-plan-action {
  margin: 0;
}

.pricing-plan-action .landing-button {
  width: 100%;
}

.pricing-owner-notice {
  min-height: 42px;
  margin: 0;
  color: #56645b;
  font-size: 0.88rem;
}

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

.billing-owner-notice {
  max-width: 260px;
  margin: 0;
  color: #56645b;
  font-size: 0.88rem;
}

.billing-profile {
  max-width: 760px;
}

.billing-profile-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.billing-profile-summary h2,
.billing-profile-summary strong,
.billing-profile-summary .muted {
  display: block;
}

.billing-profile-summary h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.billing-profile-summary strong {
  margin: 4px 0;
}

.billing-profile-submit {
  display: flex;
  justify-content: flex-end;
}

.billing-intent,
.auth-plan-notice {
  grid-column: 1 / -1;
  border: 1px solid #b8e2c8;
  border-radius: 8px;
  background: #f1fbf5;
  color: #17623d;
  padding: 14px;
}

.billing-intent {
  margin-top: 16px;
}

.billing-intent strong,
.auth-plan-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #123f29;
}

.billing-intent p,
.auth-plan-notice p {
  margin: 0;
}

.billing-intent-warning {
  border-color: #f2d09a;
  background: #fff7e8;
  color: #87500b;
}

.subscription-usage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stripe-billing-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stripe-billing-panel h3 {
  margin: 4px 0 0;
}

.stripe-billing-panel code {
  overflow-wrap: anywhere;
}

.stripe-billing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stripe-plan-form,
.stripe-portal-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.stripe-plan-form strong,
.stripe-plan-form span {
  display: block;
}

.stripe-plan-form .button,
.stripe-plan-form .button-secondary {
  min-width: 108px;
}

.stripe-plan-form button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.stripe-plan-form-selected {
  border-color: #d38b1f;
  box-shadow: 0 0 0 3px rgba(211, 139, 31, 0.14);
}

.stripe-portal-form {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.usage-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.usage-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.usage-item-head span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.usage-track {
  overflow: hidden;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #e7eee9;
}

.usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.usage-track-over span {
  background: var(--red);
}

.usage-warning {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-title {
  margin: 26px 0 12px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field label {
  color: #344039;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}

.textarea {
  min-height: 86px;
  resize: vertical;
}

.tag-field {
  min-width: 0;
}

.tag-list,
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list:empty,
.location-tags:empty {
  display: none;
}

.tag-chip,
.location-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.tag-chip {
  gap: 6px;
  background: #e3f5ea;
  color: #17623d;
  padding: 4px 5px 4px 10px;
}

.tag-chip span {
  overflow-wrap: anywhere;
}

.tag-remove {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 98, 61, 0.12);
  color: #17623d;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.tag-remove:hover {
  background: rgba(23, 98, 61, 0.2);
}

.tag-entry {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.tag-text-input {
  width: auto;
  flex: 1 1 18rem;
  min-width: 0;
}

.tag-add-button {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.location-tags {
  margin-top: 8px;
}

.location-tag {
  min-height: 24px;
  background: #edf0ee;
  color: #344039;
  padding: 0 8px;
}

.button {
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.button:hover {
  background: var(--green-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.list-row strong,
.list-row span:not(.badge) {
  display: block;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-actions form {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 28px;
  white-space: nowrap;
}

.badge-green {
  background: #e3f5ea;
  color: #17623d;
}

.badge-amber {
  background: #fff1d9;
  color: #87500b;
}

.badge-red {
  background: #fde7e7;
  color: #9a2e2e;
}

.badge-muted {
  background: #edf0ee;
  color: #63706a;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.assortment-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) 110px minmax(520px, 2.8fr) auto auto auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.assortment-row .tag-field {
  min-width: 300px;
}

.assortment-row .tag-text-input {
  flex-basis: 420px;
  min-width: 360px;
}

.assortment-row-inactive {
  opacity: 0.86;
}

.inactive-assortments {
  margin-top: 14px;
}

.inactive-assortments summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

.inactive-assortments summary::-webkit-details-marker {
  display: none;
}

.visit-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.visit-list-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(120px, 0.8fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.inline-action-form {
  margin: 0;
}

.button-small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.button-danger {
  border-color: #f2b9b9;
  color: #9a2e2e;
}

.visit-card {
  display: grid;
  gap: 12px;
}

.visit-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quantity-grid,
.summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.summary-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.quantity-box {
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
}

.quantity-box span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.quantity-box strong {
  display: block;
  margin-top: 3px;
  font-size: 1.2rem;
}

.inspection-input {
  width: 100%;
  min-height: 50px;
  border: 2px solid #cfd9d3;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  box-shadow: var(--shadow);
}

.empty,
.flash {
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  border: 1px dashed #b9c7bf;
  color: var(--muted);
}

.flash-success {
  border-style: solid;
  border-color: #b8e2c8;
  color: #17623d;
}

.flash-error {
  border-style: solid;
  border-color: #f2b9b9;
  color: #9a2e2e;
}

.cookie-consent {
  position: fixed;
  top: auto !important;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  width: min(1120px, calc(100vw - 28px));
  max-height: min(76svh, 620px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(161, 178, 168, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.985);
  padding: 20px;
  box-shadow: 0 26px 80px rgba(24, 33, 28, 0.28);
  transform: translateX(-50%);
  overscroll-behavior: contain;
  contain: layout paint;
}

.cookie-consent[hidden],
.cookie-preferences-button[hidden],
.cookie-settings[hidden],
.cookie-consent-actions[hidden] {
  display: none;
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-consent-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: #e3f5ea;
  color: #17623d;
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.cookie-consent-copy strong {
  display: block;
  margin-top: 10px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(1.03rem, 1.8vw, 1.18rem);
  line-height: 1.18;
}

.cookie-consent-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  gap: 8px;
  min-width: min(440px, 100%);
}

.cookie-consent-actions .button,
.cookie-consent-actions .button-secondary {
  width: 100%;
  min-width: 132px;
  white-space: nowrap;
}

.cookie-settings {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cookie-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.cookie-settings .cookie-consent-actions {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid rgba(223, 230, 225, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), #fff 32%);
  padding-top: 12px;
}

.cookie-choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.cookie-choice strong,
.cookie-choice small {
  display: block;
}

.cookie-choice small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-choice-disabled {
  background: #f2f5f3;
}

.cookie-preferences-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #c8d5ce;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.cookie-preferences-button:hover {
  border-color: #9fb2a8;
}

@media (max-width: 860px) {
  .app-header,
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .auth-shell {
    min-height: auto;
    place-items: start center;
  }

  .auth-purchase-shell {
    grid-template-columns: 1fr;
  }

  .auth-purchase-hero {
    min-height: auto;
  }

  .grid-2,
  .grid-3,
  .stripe-billing-actions,
  .subscription-usage,
  .summary-band {
    grid-template-columns: 1fr;
  }

  .subscription-header {
    display: grid;
  }

  .subscription-form {
    justify-content: stretch;
  }

  .subscription-actions,
  .billing-profile-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-actions .button,
  .subscription-actions .button-secondary,
  .billing-profile-submit .button {
    width: 100%;
  }

  .subscription-form .field,
  .subscription-form .button {
    width: 100%;
  }

  .stripe-plan-form {
    align-items: stretch;
    flex-direction: column;
  }

  .stripe-plan-form .button,
  .stripe-plan-form .button-secondary,
  .stripe-portal-form .button-secondary {
    width: 100%;
  }

  .form-grid,
  .list-row,
  .assortment-row {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    justify-content: stretch;
  }

  .inline-actions form,
  .inline-actions .button-secondary {
    width: 100%;
  }

  .visit-list-main {
    grid-template-columns: 1fr;
  }

  .assortment-row .tag-field {
    min-width: 0;
  }

  .assortment-row .tag-text-input {
    flex-basis: auto;
    min-width: 0;
  }

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

  .sticky-actions {
    flex-direction: column;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
    width: calc(100vw - 24px);
    max-height: min(82svh, 680px);
    padding: 16px;
  }

  .cookie-settings {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
    min-width: 0;
  }

  .cookie-consent-actions .button,
  .cookie-consent-actions .button-secondary {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 861px) and (max-width: 1060px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-consent-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
  }
}

.public-body {
  background: #ffffff;
  color: #141a17;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(20, 26, 23, 0.1);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px min(5vw, 56px);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.landing-brand .brand-icon {
  width: 38px;
  height: 38px;
}

.landing-brand strong {
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.landing-nav a,
.landing-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  color: #3f4d46;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.landing-nav a:hover {
  background: #f1f5f3;
  color: #142119;
}

.landing-nav .landing-login {
  border: 1px solid #173f2d;
  background: #173f2d;
  color: #fff;
}

.landing-hero {
  display: grid;
  align-items: center;
  min-height: 78svh;
  background-image:
    linear-gradient(90deg, rgba(250, 252, 249, 0.98) 0%, rgba(250, 252, 249, 0.88) 40%, rgba(250, 252, 249, 0.18) 72%),
    url("landing-hero.jpg");
  background-position: center right;
  background-size: cover;
  padding: 72px min(5vw, 56px) 56px;
}

.landing-hero-content {
  width: min(690px, 100%);
}

.landing-hero h1 {
  margin: 0;
  color: #111915;
  font-size: 4.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #314138;
  font-size: 1.22rem;
  line-height: 1.62;
}

.landing-actions,
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #173f2d;
  border-radius: 8px;
  background: #173f2d;
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  text-align: center;
}

.landing-button:hover {
  background: #0f3020;
}

.landing-button-secondary {
  border-color: rgba(20, 26, 23, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #142119;
}

.landing-button-secondary:hover {
  background: #fff;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-left: 3px solid #d38b1f;
  background: rgba(255, 255, 255, 0.7);
  color: #26332d;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 900;
}

.landing-section {
  padding: 82px min(5vw, 56px);
}

.landing-section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.landing-section-heading h2,
.future-copy h2 {
  margin: 0;
  color: #121916;
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.landing-section-heading p,
.future-copy p,
.pilot-panel p,
.impact-item p,
.workflow-step p,
.pricing-plan p,
.pricing-note {
  color: #5e6b64;
  line-height: 1.65;
}

.landing-section-heading p,
.future-copy p {
  margin: 12px 0 0;
  font-size: 1.06rem;
}

.landing-impact {
  background: #f7faf8;
}

.impact-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.impact-item {
  min-height: 240px;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.impact-item span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e9f5ee;
  color: #17623d;
  font-weight: 900;
}

.impact-item h3,
.workflow-step h3,
.pricing-plan h3,
.pilot-panel h3 {
  margin: 18px 0 8px;
  color: #142119;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.impact-item p,
.workflow-step p,
.pricing-plan p,
.pilot-panel p {
  margin: 0;
}

.workflow-section {
  background: #ffffff;
}

.workflow-list {
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
}

.workflow-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid #e3ebe7;
  padding: 22px 0;
}

.workflow-step > span {
  color: #2b6f8f;
  font-size: 1.4rem;
  font-weight: 900;
}

.workflow-step h3 {
  margin-top: 0;
}

.pricing-section {
  background: #102318;
}

.pricing-section .landing-section-heading h2,
.pricing-section .landing-section-heading p,
.pricing-note {
  color: #fff;
}

.pricing-section .landing-section-heading p,
.pricing-note {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

.pricing-plan-featured {
  border-color: #d38b1f;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.pricing-label {
  align-self: flex-start;
  border-radius: 8px;
  background: #fff0d8;
  color: #87500b;
  padding: 7px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.pricing-label-free {
  background: #e3f5ea;
  color: #17623d;
}

.plan-price {
  display: grid;
  gap: 4px;
  margin: 20px 0;
}

.plan-price strong {
  color: #121916;
  font-size: 2.2rem;
  line-height: 1;
}

.plan-price span {
  color: #63706a;
  font-size: 0.9rem;
  font-weight: 800;
}

.plan-limits,
.plan-features,
.future-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-limits {
  border-top: 1px solid #e5ece8;
  border-bottom: 1px solid #e5ece8;
  padding: 14px 0;
  color: #142119;
  font-weight: 900;
}

.plan-features {
  flex: 1;
  margin: 16px 0 24px;
  color: #4e5c55;
}

.plan-features li,
.future-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}

.plan-features li::before,
.future-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: #1f7a4d;
  content: "✓";
  font-weight: 900;
}

.pricing-note {
  width: min(860px, 100%);
  margin: 24px 0 0;
}

.future-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
  background: #f5f8fb;
}

.future-list {
  border-left: 3px solid #2b6f8f;
  padding-left: 20px;
}

.pilot-panel {
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.pilot-panel h3 {
  margin-top: 0;
}

.pilot-panel .landing-button {
  margin-top: 18px;
}

.legal-main {
  background: #fff;
}

.legal-section {
  max-width: 980px;
}

.legal-section .landing-section-heading {
  max-width: 820px;
}

.legal-document {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  border-top: 1px solid #dfe6e1;
  padding-top: 26px;
}

.legal-document h2 {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.legal-document p {
  max-width: 820px;
  margin: 0;
  color: #4f5c55;
  line-height: 1.65;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e9e5;
  background: #fff;
  padding: 24px min(5vw, 56px);
  color: #5c6962;
  font-size: 0.92rem;
}

.landing-footer .footer-brand {
  color: #142119;
  font-weight: 900;
}

@media (max-width: 980px) {
  .landing-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-hero {
    min-height: 76svh;
    background-image:
      linear-gradient(90deg, rgba(250, 252, 249, 0.98) 0%, rgba(250, 252, 249, 0.92) 56%, rgba(250, 252, 249, 0.46) 100%),
      url("landing-hero.jpg");
    background-position: center right 28%;
  }

  .landing-hero h1 {
    font-size: 3.3rem;
  }

  .landing-hero p {
    font-size: 1.08rem;
  }

  .impact-grid,
  .pricing-grid,
  .future-section {
    grid-template-columns: 1fr;
  }

  .future-list {
    border-left: 0;
    border-top: 3px solid #2b6f8f;
    padding-top: 18px;
    padding-left: 0;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .landing-header {
    padding: 12px 16px;
  }

  .brand-context,
  .brand-separator {
    display: none;
  }

  .landing-nav a:not(.landing-login) {
    display: none;
  }

  .landing-hero,
  .landing-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .landing-hero {
    min-height: 74svh;
    padding-top: 46px;
    padding-bottom: 42px;
  }

  .landing-hero h1 {
    font-size: 2.65rem;
  }

  .landing-section-heading h2,
  .future-copy h2 {
    font-size: 2rem;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-button,
  .landing-button-secondary {
    width: 100%;
  }
}
