/*
 * Zapzei public site (screens.md section 10, mock SitePublic: 10a landing,
 * 10b legal page template). Every color, space, radius, shadow and weight
 * reads a token from tokens.css. Loose px values are the ones the mock draws
 * inline (hero type, CTA height, decorative shapes, column widths) and carry
 * a "mock" note; the reference bundle.css values carry a "bundle" note.
 * Light theme only (round 1). No script on these pages.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--text-brand);
  font-weight: var(--weight-semibold);
  text-underline-offset: 3px; /* bundle .zz a */
}

a:hover {
  color: var(--brasa-800);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: calc(-1 * var(--space-16));
  z-index: var(--z-header);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: var(--space-4);
}

.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-muted);
}

.subtle {
  color: var(--text-subtle);
}

.brand {
  color: var(--text-brand);
}

.small {
  font-size: 14px;
  line-height: 20px;
}

.caption {
  font-size: 13px;
  line-height: 18px;
  font-weight: var(--weight-semibold);
}

.h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.015em;
}

.h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.row-flex {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-spacer {
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Logo lockup: tile size and wordmark at round(size * 0.78) (bundle Logo). */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
}

.logo-mark {
  display: block;
}

.logo-tile {
  fill: var(--brasa-500);
}

.logo-z {
  fill: var(--neutral-900);
}

.logo-word {
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-lg .logo-mark {
  width: 34px;
  height: 34px;
}

.logo-lg .logo-word {
  font-size: 27px;
}

.logo-sm .logo-mark {
  width: 26px;
  height: 26px;
}

.logo-sm .logo-word {
  font-size: 20px;
}

.logo-xs .logo-mark {
  width: 18px;
  height: 18px;
}

.logo-xs .logo-word {
  font-size: 14px;
}

.logo-link {
  display: inline-flex;
  text-decoration: none;
  border-radius: var(--radius-md);
}

/* Buttons (bundle .zz-btn). The site CTA is taller on purpose (mock: 56px,
   18px bold): the site is not bound to the in-app 34px rule. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--size-button);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 120ms,
    border-color 120ms,
    color 120ms;
}

.btn-primary {
  background: var(--action-primary);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--action-primary-hover);
  color: var(--text-on-brand);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-control);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-soon,
.btn-soon:hover {
  background: var(--action-disabled);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-cta {
  height: 56px; /* mock */
  padding: 0 28px; /* mock */
  font-size: 18px; /* mock */
  font-weight: var(--weight-bold);
}

.btn-block {
  display: flex;
  width: 100%;
  height: auto;
  min-height: var(--size-button);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  white-space: normal;
  text-align: center;
}

.btn-cta.btn-block {
  min-height: 56px; /* mock */
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  justify-self: start;
  height: 26px; /* bundle */
  padding: 0 var(--space-2) 0 6px; /* bundle */
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 13px;
  line-height: 18px;
  font-weight: var(--weight-semibold);
}

.badge-brand {
  color: var(--text-brand);
  background: var(--brasa-50);
  border-color: var(--brasa-200);
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 15px;
  line-height: 22px;
}

.banner .icon {
  margin-top: 1px;
}

.banner-body {
  flex: 1;
  display: grid;
  gap: 2px; /* bundle */
}

.banner-body b {
  font-weight: var(--weight-bold);
}

.banner-neutral {
  color: var(--text);
  background: var(--surface-sunken);
  border-color: var(--border);
}

.header-link {
  display: inline-flex;
  align-items: center;
  height: var(--size-control);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.header-link:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* Header and footer. */
.nav-inner,
.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--size-content);
  margin: 0 auto;
  padding: 0 var(--space-16);
}

.nav-inner {
  height: 80px; /* mock */
}

.nav-links {
  display: flex;
  gap: var(--space-1);
}

.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  flex-wrap: wrap;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.footer-links,
.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.language-switch {
  padding-left: var(--space-6);
  border-left: 1px solid var(--border);
}

/* 10a Landing. */
.hero,
.steps,
.pricing {
  max-width: var(--size-content);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr); /* mock */
  gap: var(--space-12);
  align-items: center;
  padding: 56px var(--space-16) 80px; /* mock */
}

.hero-copy {
  display: grid;
  gap: var(--space-6);
}

.display {
  font-size: 60px; /* mock, over the 52px display style */
  line-height: 62px;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.025em;
}

.lead {
  font-size: 20px; /* mock */
  line-height: 30px;
}

.hero-art {
  position: relative;
  height: 420px; /* mock */
}

.hero-shape {
  position: absolute;
}

.hero-shape-brasa {
  right: -40px; /* mock */
  top: -20px;
  width: 260px;
  height: 260px;
  border-radius: 48px;
  background: var(--brasa-500);
}

.hero-shape-sol {
  left: 20px; /* mock */
  bottom: -30px;
  width: 120px;
  height: 64px;
  border-radius: 32px;
  background: var(--sol-400);
}

.shot {
  position: absolute;
  left: 40px; /* mock */
  top: 20px;
  width: min(605px, calc(100% - 40px));
  height: 378px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface-page);
  font-size: 13px;
  line-height: 18px;
}

.shot-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
  padding: 0 var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.shot-usage {
  padding: 2px var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.shot-body {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.shot-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.shot-title {
  font-size: 17px;
  line-height: 22px;
  font-weight: var(--weight-extrabold);
}

.shot-meta {
  color: var(--text-muted);
}

.shot-stat {
  white-space: nowrap;
}

.shot-stat strong {
  font-size: 22px;
  line-height: 24px;
  font-weight: var(--weight-extrabold);
}

.shot-stat span {
  color: var(--text-subtle);
  font-weight: var(--weight-bold);
}

.shot-stat em {
  font-style: normal;
  color: var(--text-muted);
}

.shot-progress {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--neutral-100);
}

.shot-progress-sent {
  width: 41%; /* 128 of 312 */
  background: var(--status-sent-fill);
}

.shot-progress-skipped {
  width: 1.3%; /* 4 of 312 */
  background: var(--status-skipped-fill);
}

.shot-table {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px 92px;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
  padding: 0 var(--space-3);
  border-top: 1px solid var(--border);
}

.shot-row:first-child {
  border-top: 0;
}

.shot-row.is-next {
  background: var(--surface-next);
  box-shadow: inset 0 0 0 2px var(--ring-next);
}

.shot-name {
  overflow: hidden;
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-row.is-sent .shot-name {
  color: var(--text-muted);
}

.shot-phone {
  color: var(--text-muted);
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-1);
  height: 22px;
  padding: 0 var(--space-2) 0 5px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
}

.status-sent {
  color: var(--status-sent-fg);
  background: var(--status-sent-bg);
  border-color: var(--status-sent-border);
}

.status-pending {
  color: var(--status-pending-fg);
  background: var(--status-pending-bg);
  border-color: var(--status-pending-border);
}

.status-next {
  padding: 0 var(--space-2);
  color: var(--text-on-brand);
  background: var(--action-primary);
  border-color: var(--action-primary);
}

.shot-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 26px;
  border-radius: var(--radius-md);
  background: var(--action-primary);
  color: var(--text-on-brand);
  font-weight: var(--weight-bold);
}

.shot-send.is-sent {
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.section-title {
  font-size: 36px; /* mock */
  line-height: 44px;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  gap: var(--space-10);
  padding: 72px var(--space-16); /* mock */
}

.page-landing .steps {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-landing .steps > * {
  width: 100%;
  max-width: calc(var(--size-content) - 2 * var(--space-16));
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  gap: 14px; /* mock */
  align-content: start;
}

.step p {
  font-size: 17px; /* mock */
  line-height: 26px;
}

.step-tile,
.feature-tile {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text);
}

.step-tile {
  width: 56px; /* mock */
  height: 56px;
  border-radius: var(--radius-lg);
}

.step-tile-brand {
  background: var(--brasa-500);
}

.pricing {
  display: grid;
  gap: var(--space-8);
  padding: 72px var(--space-16); /* mock */
}

.pricing-head {
  display: grid;
  gap: var(--space-2);
}

.pricing-sub {
  font-size: 18px; /* mock */
  line-height: 28px;
}

.pricing-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr); /* mock */
  overflow: hidden;
  border-color: var(--brasa-400);
  box-shadow: var(--shadow-md);
}

.pricing-price {
  display: grid;
  gap: var(--space-4);
  align-content: center;
  padding: var(--space-10);
  background: var(--brasa-50);
  border-right: 1px solid var(--brasa-200);
}

.price {
  font-size: 72px; /* mock */
  line-height: 72px;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
}

.price-term {
  font-size: 20px; /* mock */
  line-height: 28px;
  font-weight: var(--weight-bold);
}

.price-limits {
  color: var(--text-muted);
}

.pricing-body {
  display: grid;
  gap: 28px; /* mock */
  padding: var(--space-10);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px var(--space-8); /* mock */
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  gap: 10px; /* mock */
  align-content: start;
}

.feature strong {
  font-size: 17px; /* mock */
  font-weight: var(--weight-bold);
}

.feature .muted {
  font-size: 15px; /* mock */
  line-height: 22px;
}

.feature-tile {
  width: 40px; /* mock */
  height: 40px;
  border-radius: var(--radius-md);
}

.pricing-note {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.pricing-note strong {
  color: var(--text);
}

/* 10b Legal page template: numbered h2, 17/28 paragraphs, 720px measure,
   fixed table of contents on the left (mock). */
.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px); /* mock */
  gap: var(--space-16);
  justify-content: center;
  padding: var(--space-10) var(--space-16) var(--space-16);
  counter-reset: legal;
}

.legal-toc {
  position: sticky;
  top: var(--space-6);
  display: grid;
  gap: 2px; /* mock */
  align-content: start;
  align-self: start;
}

.legal-toc .caption {
  margin-bottom: var(--space-2);
}

.legal-toc .header-link {
  height: auto;
  min-height: 36px; /* mock */
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.legal-article {
  display: grid;
  gap: var(--space-5);
  font-size: 17px; /* mock */
  line-height: 28px;
}

.legal-head {
  display: grid;
  gap: var(--space-2);
}

.legal-section {
  display: grid;
  gap: var(--space-4);
  scroll-margin-top: var(--space-6);
}

.legal-section h2::before {
  counter-increment: legal;
  content: counter(legal) ". ";
}

.legal-section ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-6);
}

.table-wrap {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

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

.legal thead th {
  border-top: 0;
  background: var(--surface-sunken);
  font-size: 13px;
  line-height: 18px;
}

.legal tbody th {
  font-weight: var(--weight-semibold);
}

.placeholder {
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning-fg);
  box-shadow: inset 0 0 0 1px var(--warning-border);
  font-weight: var(--weight-semibold);
}

.not-found {
  display: grid;
  gap: var(--space-4);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-16);
}

/* Narrower screens: the mock is drawn at 1440px; below it the columns stack
   in the same order, on the same tokens. */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .pricing-price {
    border-right: 0;
    border-bottom: 1px solid var(--brasa-200);
  }
}

@media (max-width: 860px) {
  .nav-inner,
  .footer-inner,
  .hero,
  .steps,
  .pricing,
  .legal {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .nav-links {
    display: none;
  }

  .display {
    font-size: 40px;
    line-height: 44px;
  }

  .section-title {
    font-size: 28px;
    line-height: 36px;
  }

  .hero-art {
    display: none;
  }

  .steps-grid,
  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .legal {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .legal-toc {
    position: static;
  }

  .language-switch {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    height: var(--size-header);
    gap: var(--space-3);
  }

  .nav .btn span {
    display: none;
  }

  .btn-cta {
    width: 100%;
    height: auto;
    min-height: 56px; /* mock */
    white-space: normal;
    text-align: center;
  }
}
