/* The public site: landing page, contact and legal pages. Builds on portal.css (tokens,
   buttons, forms, .term). The top band is dark in both themes, like the sign-in pages. */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site {
  font-size: 15px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Top band: header and hero */

.site-top {
  --top-text: #f2f5f0;
  --top-muted: #b3beb7;
  --top-line: rgba(255, 255, 255, 0.12);
  background: #0e1714;
  color: var(--top-text);
}

.site-top .eyebrow {
  color: #9ee35f;
}

.site-head {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.site-top-slim .site-head {
  border-bottom: 1px solid var(--top-line);
}

.site .brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
}

.site-top .brand b {
  color: #9ee35f;
}

.site-top .brand span {
  color: var(--top-muted);
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--top-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--top-text);
  background: rgba(255, 255, 255, 0.06);
}

.site-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.btn-ghost-dark,
.btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f2f5f0;
}

.btn-ghost-dark {
  border-color: transparent;
}

.btn-ghost-dark:hover,
.btn-outline-dark:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-lead {
  max-width: 580px;
  margin: 22px 0 30px;
  color: var(--top-muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.hero-side .term {
  max-width: none;
}

.hero-side .term pre {
  overflow-x: auto;
}

.hero-caption {
  margin: 14px 0 0;
  color: var(--top-muted);
  font-size: 13.5px;
}






/* Trust strip, at the bottom of the dark band */

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 24px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--top-line);
}

.trust .eyebrow {
  margin: 0;
}

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

.facts dt {
  color: #9ee35f;
  font: 600 30px/1.1 var(--font-display);
  letter-spacing: -0.01em;
}

.facts dd {
  margin: 6px 0 0;
  color: var(--top-muted);
}

/* Sections */

.band {
  padding: 72px 0;
}

.band-alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.band-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.band-head h1,
.band-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.band-head p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.card-lite {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.band-alt .card-lite {
  background: var(--bg);
}

.card-lite h3,
.steps b {
  display: block;
  margin-bottom: 8px;
  font: 600 17px var(--font-display);
}

.card-lite p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.card-lite p + p {
  margin-top: 12px;
}


.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

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

.band-foot {
  margin: 24px 0 0;
  color: var(--muted);
}

.plain-list {
  max-width: 720px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.plain-list li + li {
  margin-top: 8px;
}

.steps li {
  padding-top: 18px;
  border-top: 2px solid var(--accent);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font: 500 12px var(--font-mono);
}







/* Tables on public pages */

.site table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.site th,
.site td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.site thead th {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.site tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.site .table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}


.site tbody tr:last-child > * {
  border-bottom: 0;
}



/* Questions */

.questions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Each card spans two rows of the grid and shares them with its neighbours (subgrid), so the
   explanations start at the same height in every card of a row, however long the question. */
.questions article {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.questions p {
  margin: 0;
  font: 600 17px/1.35 var(--font-display);
}


.questions small {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.questions .soon {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.questions .question-lookup {
  border-color: var(--accent);
}

/* Pricing */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}



.price-card h3 {
  font: 600 18px var(--font-display);
}

.price-card .price {
  margin: 0;
  color: var(--accent-text);
  font: 600 28px var(--font-display);
}

.price-card .price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 500 13px var(--font-body, inherit);
}

.price-card p {
  margin: 0;
  color: var(--muted);
}

.price-card ul {
  flex: 1;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.price-card li {
  padding: 7px 0 7px 24px;
  border-top: 1px solid var(--border);
  background: no-repeat left 10px / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%235aa829' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}




/* Trial and feeds */











/* Contact and legal pages */

.page-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-form .form-row > .field {
  flex: 1 1 200px;
}

.contact-form .btn {
  align-self: flex-start;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.narrow {
  max-width: 680px;
}

.narrow h1,
.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal {
  max-width: 800px;
  line-height: 1.65;
}

.legal h2 {
  margin: 48px 0 14px;
  font-size: 22px;
  font-weight: 600;
  scroll-margin-top: 24px;
}

.legal .callout {
  margin: 20px 0 8px;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal-list {
  margin: 0 0 12px;
}

.legal-list dt {
  font-weight: 600;
}

.legal-list dd {
  margin: 2px 0 14px;
  color: var(--muted);
}

.address {
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.toc a {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--accent-text);
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}

.site-foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.site-foot-about p {
  max-width: 340px;
  margin: 14px 0 0;
  color: var(--muted);
}

.site-foot nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-foot nav h2 {
  margin-bottom: 4px;
  color: var(--muted);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-foot nav a {
  color: var(--text);
  text-decoration: none;
}

.site-foot nav a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.site-foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 96px; /* Room for the cookie note. */
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.site-foot-base p {
  margin: 0;
}

.site-foot-base .theme-switch {
  width: 200px;
}

/* Narrower screens */

@media (max-width: 1000px) {
  .site-nav {
    display: none;
  }

  .hero,
  .page-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

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

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

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

  .site-foot-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-head {
    gap: 12px;
  }

  .site .brand span {
    display: none;
  }

  .site-actions .btn {
    height: 34px;
    padding: 0 10px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-lead {
    font-size: 16.5px;
  }

  .band {
    padding: 64px 0;
  }

  .trust,
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

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

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

  .cookie-note {
    flex-direction: column;
    align-items: stretch;
  }
}

.legal td.mono {
  white-space: nowrap;
}
