/* Local Bins marketing pages (marketing-site M6). Linked after styles.css only by pages whose
   PAGES entry has marketing: true. It reads only the aliases from the styles.css block, never
   a --kb-* token (web spec D7). Replicas are plain HTML marked "Example", never screenshots. */

/* Page hero */

.page-hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7) var(--space-6);
}

.page-hero h1 {
  margin-block: var(--space-3) var(--space-4);
}

.page-hero .lead {
  max-width: 52ch;
}

.page-hero .notice {
  max-width: 65ch;
  margin-top: var(--space-5);
}

@media (min-width: 1000px) {
  .page-hero-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-7);
  }
}

/* A full-width band that sets a section apart */

.band {
  border-block: 1px solid var(--rule);
  background: var(--card-soft);
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
}

/* Feature rows: words beside a replica */

.feature-row {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.feature-copy {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  max-width: 60ch;
}

.feature-copy h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
}

.feature-copy p {
  color: var(--text-2);
}

@media (min-width: 720px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-7);
  }

  .feature-row-flip > .feature-copy {
    order: 2;
  }
}

.tag-plus {
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.replicas {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.replica-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.875rem;
  font-weight: 700;
}

.replica-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Lock Screen and Apple Watch replicas: fixed night colours in both themes, like the night
   scene (#ECF0EB on #22314A is checked in styles.test.mjs). */

.lock-card,
.watch-card {
  display: grid;
  gap: var(--space-3);
  background: #22314A;
  color: #ECF0EB;
  box-shadow: var(--shadow-1);
}

.lock-card {
  width: 100%;
  max-width: 380px;
  padding: var(--space-4) var(--space-5);
  border-radius: 26px;
}

.watch-card {
  width: 196px;
  padding: var(--space-4);
  border-radius: 44px;
}

.lock-card .example-tag,
.watch-card .example-tag {
  border-color: #ECF0EB;
  color: #ECF0EB;
}

.replica-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.replica-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lock-card .replica-button,
.watch-card .replica-button {
  background: #ECF0EB;
  color: #22314A;
}

/* Home Screen widget replica */

.widget-card {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  width: 170px;
  min-height: 170px;
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-1);
}

/* What goes where replica */

.sort-card {
  display: grid;
  gap: var(--space-3);
  max-width: 420px;
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.sort-never {
  color: var(--danger);
  font-weight: 700;
}

/* Plans */

.plan-cards {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .plan-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.plan-card-plus {
  border: 2px solid var(--brand);
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-for {
  color: var(--text-2);
}

.price-list {
  display: grid;
  padding: 0;
  list-style: none;
}

.price-list li {
  padding-block: var(--space-2);
  border-top: 1px solid var(--rule);
}

.plan-note,
.fine-print {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Plan comparison table: three fixed columns from 720 px, stacked rows below (like .fact-table) */

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.plan-table caption {
  padding-bottom: var(--space-2);
  font-weight: 700;
  text-align: left;
}

.plan-table th,
.plan-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.plan-table thead th {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan-table td .ic {
  margin-right: var(--space-2);
  vertical-align: -3px;
}

.plan-table .is-yes .ic {
  color: var(--brand);
}

.plan-table .is-no {
  color: var(--text-2);
}

@media (min-width: 720px) {
  .plan-table {
    table-layout: fixed;
  }

  .plan-table th:first-child {
    width: 46%;
  }

  .plan-table th:not(:first-child) {
    width: 27%;
  }
}

@media (max-width: 719px) {
  .plan-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .plan-table tr,
  .plan-table th,
  .plan-table td {
    display: block;
  }

  .plan-table tr {
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--rule);
  }

  .plan-table th,
  .plan-table td {
    padding: var(--space-1) 0;
    border: 0;
  }

  .plan-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text);
    font-weight: 700;
  }
}

/* Questions and answers: native details and summary */

.faq {
  display: grid;
  max-width: 75ch;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  min-height: 44px;
  padding-block: var(--space-3);
  font-weight: 700;
  cursor: pointer;
}

.faq details > p {
  padding-bottom: var(--space-4);
  color: var(--text-2);
}

/* Call to action band: gum, with on-gum text, focus ring and button */

.cta-band {
  --focus: var(--on-brand);
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--brand);
  color: var(--on-brand);
}

.cta-band h2 {
  color: var(--on-brand);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.cta-band p {
  max-width: 52ch;
}

.button-inverse {
  border-color: var(--on-brand);
  background: var(--on-brand);
  color: var(--brand);
}

.button-inverse:hover {
  color: var(--brand);
  text-decoration-line: underline;
}

/* Council enquiry form: the interests checkboxes (the 44 px target is the whole label) */

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  padding: 0;
  font-weight: 700;
}

.field .choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}

.field .choice input {
  flex: none;
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

/* Preferences */

@media (forced-colors: active) {
  .cta-band,
  .plan-card,
  .lock-card,
  .watch-card,
  .widget-card,
  .sort-card,
  .tag-plus,
  .replica-button {
    border: 1px solid CanvasText;
  }
}
