@import "./pot-design-tokens.css";
@import "./pot-dashboard.css";

:root {
  --public-header-height: 74px;
}

[x-cloak] {
  display: none !important;
}

body {
  background:
    linear-gradient(180deg, var(--pot-surface-2) 0, var(--pot-bg) 420px);
}

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pot-glass-surface);
  border-bottom: 1px solid var(--pot-line);
  backdrop-filter: blur(14px);
}

.public-header__inner {
  width: min(100% - (var(--pot-gutter) * 2), var(--pot-admin-max));
  min-height: var(--public-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--pot-ink);
  text-decoration: none;
}

.brand-lockup__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--pot-radius-card);
  background: var(--pot-ink);
  color: var(--pot-surface);
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-xs);
  font-weight: 760;
}

.brand-lockup__text {
  display: grid;
  gap: 1px;
  font-weight: 720;
}

.brand-lockup__sub {
  font-size: var(--pot-text-xs);
  color: var(--pot-muted);
  font-weight: 560;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.public-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: var(--pot-radius-control);
  color: var(--pot-muted);
  font-weight: 650;
  text-decoration: none;
}

.public-nav a:hover,
.public-nav a[aria-current="page"] {
  background: var(--pot-bg-2);
  color: var(--pot-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-button {
  display: none;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--pot-radius-control);
  background: var(--pot-brand);
  color: var(--pot-on-dark);
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pot-transition), box-shadow var(--pot-transition), background var(--pot-transition);
}

.button:hover {
  color: var(--pot-on-dark);
  background: var(--pot-brand-deep);
  transform: translateY(-1px);
  box-shadow: var(--pot-shadow-raised);
}

.button:focus-visible,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: var(--pot-focus);
  border-color: var(--pot-brand);
}

.button--secondary {
  background: var(--pot-surface);
  border-color: var(--pot-line-2);
  color: var(--pot-ink);
}

.button--secondary:hover {
  background: var(--pot-bg-2);
  color: var(--pot-ink);
}

.button--urgent {
  background: var(--pot-crit);
  color: var(--pot-on-dark);
}

.button--urgent:hover {
  background: var(--pot-crit-deep);
}

.button--quiet {
  background: transparent;
  border-color: var(--pot-line);
  color: var(--pot-ink);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.main-content {
  flex: 1;
}

.home-hero {
  min-height: min(760px, calc(100vh - var(--public-header-height) - 72px));
  display: grid;
  align-items: end;
  background-image:
    linear-gradient(90deg, var(--pot-hero-overlay-strong) 0, var(--pot-hero-overlay-mid) 48%, var(--pot-hero-overlay-soft) 100%),
    url("https://images.pexels.com/photos/10117517/pexels-photo-10117517.jpeg?auto=compress&cs=tinysrgb&w=1800");
  background-size: cover;
  background-position: center;
  color: var(--pot-on-dark);
}

.home-hero__inner {
  width: min(100% - (var(--pot-gutter) * 2), var(--pot-page-max));
  margin-inline: auto;
  padding: clamp(72px, 12vw, 148px) 0 clamp(58px, 8vw, 96px);
  display: grid;
  gap: 22px;
}

.home-hero h1,
.home-hero p {
  color: var(--pot-on-dark);
  text-wrap: balance;
}

.home-hero h1 {
  max-width: 780px;
}

.home-hero p {
  max-width: 620px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.page-hero {
  padding: clamp(54px, 8vw, 92px) 0 clamp(30px, 5vw, 54px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.page-hero__copy {
  display: grid;
  gap: 18px;
}

.page-hero__copy p {
  max-width: 720px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

.signal-panel {
  display: grid;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
}

.signal-panel__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--pot-line);
}

.signal-panel__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.signal-panel__value {
  font-family: var(--pot-font-mono);
  font-weight: 760;
  color: var(--pot-ink);
}

.section {
  padding: clamp(36px, 6vw, 74px) 0;
}

.section--surface {
  background: var(--pot-surface);
  border-block: 1px solid var(--pot-line);
}

.section__head {
  display: grid;
  gap: 10px;
  max-width: 800px;
  margin-bottom: 24px;
}

.section__head p {
  max-width: 660px;
}

.proof-grid,
.card-grid,
.steps-grid,
.box-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-card,
.info-card,
.step-card,
.box-item {
  min-height: 100%;
  display: grid;
  gap: 11px;
  align-content: start;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
}

.proof-card {
  animation: proof-reveal linear both;
  animation-timeline: view();
  animation-range: entry 8% cover 26%;
}

@supports not (animation-timeline: view()) {
  .proof-card {
    animation: none;
  }
}

@keyframes proof-reveal {
  from {
    opacity: 0.25;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proof-card__value {
  font-family: var(--pot-font-mono);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 760;
  color: var(--pot-brand);
}

.step-card__number,
.timeline__marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pot-info-soft);
  color: var(--pot-info);
  font-family: var(--pot-font-mono);
  font-weight: 760;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--pot-line);
  text-align: left;
  vertical-align: top;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th {
  width: 28%;
  color: var(--pot-muted);
  font-size: var(--pot-text-xs);
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
}

.timeline__body {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pot-line);
}

.timeline__time {
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-sm);
  color: var(--pot-muted);
}

.callout {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--pot-line);
  border-left: var(--pot-border-status) solid var(--pot-member);
  border-radius: var(--pot-radius-card);
  background: linear-gradient(90deg, var(--pot-member-soft), var(--pot-surface) 46%);
}

.callout--attention {
  border-left-color: var(--pot-payment);
  background: linear-gradient(90deg, var(--pot-payment-soft), var(--pot-surface) 46%);
}

.callout--urgent {
  border-left-color: var(--pot-crit);
  background: linear-gradient(90deg, var(--pot-crit-soft), var(--pot-surface) 46%);
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
}

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

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

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

.field label,
.check-field {
  font-size: var(--pot-text-sm);
  font-weight: 680;
  color: var(--pot-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pot-line-2);
  border-radius: var(--pot-radius-control);
  background: var(--pot-surface);
  color: var(--pot-ink);
  padding: 10px 12px;
}

.field small {
  color: var(--pot-muted);
  font-size: var(--pot-text-xs);
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
}

.check-field input {
  margin-top: 2px;
}

.form-result {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: var(--pot-radius-control);
  border: 1px solid var(--pot-line);
  background: var(--pot-ok-soft);
  color: var(--pot-ink);
}

.form-result--urgent {
  background: var(--pot-crit-soft);
  border-color: color-mix(in srgb, var(--pot-crit) 35%, var(--pot-line));
}

.pricing-hero {
  padding: clamp(34px, 5vw, 74px) 0 clamp(46px, 7vw, 90px);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(640px, 1.28fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}

.pricing-layout--quote-ready {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.pricing-copy {
  position: sticky;
  top: calc(var(--public-header-height) + 22px);
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.pricing-copy h1 {
  font-size: clamp(42px, 3.8vw, 56px);
  line-height: 0.98;
}

.pricing-copy p:last-child {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.48;
}

.pricing-form,
.price-card {
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
}

.pricing-form {
  grid-column: 2;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.pricing-form__section {
  display: grid;
  gap: 15px;
  padding: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid var(--pot-line);
}

.pricing-form__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-form__step {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pot-info-soft);
  color: var(--pot-info);
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-xs);
  font-weight: 760;
}

.segmented,
.service-toggle {
  display: grid;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  background: var(--pot-bg-2);
}

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

.segmented button,
.service-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--pot-radius-control) - 3px);
  background: transparent;
  color: var(--pot-muted);
  font-weight: 720;
  cursor: pointer;
}

.segmented button[aria-pressed="true"],
.service-toggle button[aria-pressed="true"] {
  background: var(--pot-surface);
  color: var(--pot-ink);
  box-shadow: var(--pot-shadow-card);
}

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

.service-toggle button {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: left;
  padding: 11px 13px;
}

.service-toggle span,
.switch-row small {
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
}

.service-toggle button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.measurement-guide {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-bg-2);
}

.measurement-guide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--pot-radius-card) - 4px);
  background: var(--pot-surface);
}

.measurement-guide figcaption {
  margin: 0;
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
  line-height: 1.48;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  background: var(--pot-bg-2);
}

.switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--pot-brand);
}

.switch-row span {
  display: grid;
  gap: 2px;
}

.transport-assumption {
  padding: 13px 14px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  background: var(--pot-info-soft);
  color: var(--pot-ink);
}

.transport-assumption span {
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
}

.location-suggestions {
  display: grid;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
}

.location-suggestions button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--pot-line);
  background: transparent;
  color: var(--pot-ink);
  font: inherit;
  font-weight: 640;
  text-align: left;
  cursor: pointer;
}

.location-suggestions button:first-child {
  border-top: 0;
}

.location-suggestions button:hover,
.location-suggestions button:focus-visible {
  background: var(--pot-info-soft);
  outline: 0;
}

.location-status {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  background: var(--pot-bg-2);
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
  font-weight: 640;
}

.location-status--error {
  border-color: color-mix(in srgb, var(--pot-crit) 38%, var(--pot-line));
  background: var(--pot-crit-soft);
  color: var(--pot-crit-deep);
}

.location-status--ok {
  border-color: color-mix(in srgb, var(--pot-ok) 32%, var(--pot-line));
  background: var(--pot-ok-soft);
  color: var(--pot-ok-deep);
}

.pac-container {
  z-index: 40;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  box-shadow: var(--pot-shadow-card);
  font-family: var(--pot-font-sans);
}

.pac-item {
  min-height: 42px;
  padding: 9px 12px;
  border-top: 1px solid var(--pot-line);
  color: var(--pot-muted);
  cursor: pointer;
}

.pac-item:first-child {
  border-top: 0;
}

.pac-item-query {
  color: var(--pot-ink);
  font-weight: 720;
}

.pricing-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 26px);
}

.pricing-loading {
  color: var(--pot-muted);
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-sm);
  opacity: 0;
}

.pricing-loading.htmx-request {
  opacity: 1;
}

.price-panel {
  grid-column: 2;
  min-height: 100%;
}

.pricing-layout--quote-ready .price-panel,
.price-panel--quote-ready {
  grid-column: 1;
  width: 100%;
}

.price-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.price-card--ready {
  border-top: 5px solid var(--pot-member);
}

.price-card--error {
  border-top: 5px solid var(--pot-crit);
  background: linear-gradient(180deg, var(--pot-crit-soft), var(--pot-surface) 44%);
}

.price-card--empty {
  border-top: 5px solid var(--pot-info);
  background: linear-gradient(180deg, var(--pot-info-soft), var(--pot-surface) 44%);
}

.price-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-card__eyebrow span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pot-bg-2);
  color: var(--pot-muted);
  font-size: var(--pot-text-xs);
  font-weight: 740;
  text-transform: uppercase;
}

.price-card__price {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-block: 1px solid var(--pot-line);
}

.price-card__price span {
  color: var(--pot-brand);
  font-family: var(--pot-font-mono);
  font-size: clamp(40px, 7vw, 70px);
  font-weight: 760;
  line-height: 0.98;
}

.price-card__price small {
  color: var(--pot-muted);
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-sm);
}

.price-card__note {
  color: var(--pot-ink-2);
  font-weight: 620;
}

.included-list {
  display: grid;
  gap: 9px;
}

.included-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--pot-line);
}

.included-list__item:last-child {
  border-bottom: 0;
}

.included-list__item span {
  grid-column: 1 / -1;
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
}

.included-list__item em {
  color: var(--pot-ink);
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-sm);
  font-style: normal;
  font-weight: 720;
}

.price-cta {
  display: grid;
  gap: 10px;
}

.price-cta p {
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
}

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

.quote-comparison__head p:last-child {
  max-width: 280px;
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
}

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

.product-option {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
}

.product-option--disabled {
  background: var(--pot-bg-2);
  color: var(--pot-muted);
}

.product-option__head,
.product-option__body {
  display: grid;
  gap: 12px;
}

.product-option__price {
  display: grid;
  gap: 4px;
  padding-block: 12px;
  border-block: 1px solid var(--pot-line);
}

.product-option__price span {
  color: var(--pot-brand);
  font-family: var(--pot-font-mono);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 760;
  line-height: 0.98;
}

.product-option__price small {
  color: var(--pot-muted);
  font-family: var(--pot-font-mono);
  font-size: var(--pot-text-sm);
}

.product-option__price--disabled span {
  color: var(--pot-muted);
  font-size: var(--pot-text-xl);
}

.product-option__description,
.product-option__ideal p {
  margin: 0;
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
  line-height: 1.55;
}

.product-option__ideal,
.product-option__included {
  display: grid;
  gap: 8px;
}

.product-option ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--pot-muted);
  font-size: var(--pot-text-sm);
  line-height: 1.45;
}

.quote-breakdown {
  border-top: 1px solid var(--pot-line);
  padding-top: 10px;
}

.quote-breakdown summary {
  cursor: pointer;
  font-weight: 720;
}

.quote-sent__body {
  display: grid;
  gap: 8px;
}

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

.quote-sent__meta div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-control);
  background: var(--pot-bg-2);
}

.quote-sent__meta dt {
  color: var(--pot-muted);
  font-size: var(--pot-text-xs);
  font-weight: 740;
  text-transform: uppercase;
}

.quote-sent__meta dd {
  margin: 0;
  color: var(--pot-ink);
  font-weight: 650;
}

.emergency-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.emergency-phone {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--pot-crit) 28%, var(--pot-line));
  border-left: 5px solid var(--pot-crit);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
}

.emergency-phone__number {
  font-family: var(--pot-font-mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 760;
  color: var(--pot-crit);
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--pot-line);
  border-radius: var(--pot-radius-card);
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--pot-ink);
  padding: 16px 18px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--pot-ink-2);
}

.legal-list {
  display: grid;
  gap: 10px;
}

.legal-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pot-line);
}

.legal-row dt {
  color: var(--pot-muted);
  font-weight: 680;
}

.legal-row dd {
  margin: 0;
}

.public-footer {
  border-top: 1px solid var(--pot-line);
  background: var(--pot-ink);
  color: var(--pot-on-dark);
}

.public-footer__inner {
  width: min(100% - (var(--pot-gutter) * 2), var(--pot-admin-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px 0;
}

.public-footer p,
.public-footer a,
.public-footer small {
  color: var(--pot-dark-muted);
}

.public-footer a:hover {
  color: var(--pot-on-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mobile-emergency {
  display: none;
}

@media (max-width: 980px) {
  .public-header__inner {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
    min-width: 42px;
    padding: 0;
  }

  .public-nav {
    order: 4;
    width: 100%;
    display: none;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--pot-line);
  }

  .public-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .button--urgent span {
    display: none;
  }

  .page-hero__grid,
  .split,
  .emergency-layout,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .pricing-copy,
  .price-card {
    position: static;
  }

  .proof-grid,
  .card-grid,
  .steps-grid,
  .box-grid {
    grid-template-columns: 1fr;
  }

  .public-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .pricing-form,
  .price-panel {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --public-header-height: 64px;
  }

  body {
    padding-bottom: 64px;
  }

  .brand-lockup__sub {
    display: none;
  }

  .public-nav.is-open {
    grid-template-columns: 1fr;
  }

  .header-actions .button--secondary {
    display: none;
  }

  .home-hero {
    min-height: min(680px, calc(100vh - 112px));
    background-position: 58% center;
  }

  .form-grid,
  .legal-row,
  .dimension-grid,
  .service-toggle,
  .product-compare,
  .quote-sent__meta,
  .included-list__item {
    grid-template-columns: 1fr;
  }

  .quote-comparison__head {
    display: grid;
  }

  .pricing-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-emergency {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--pot-radius-card);
    background: var(--pot-crit);
    color: var(--pot-on-dark);
    text-decoration: none;
    box-shadow: var(--pot-shadow-raised);
  }

  .mobile-emergency strong,
  .mobile-emergency span {
    color: var(--pot-on-dark);
  }
}
