/* Landing page (ticket #382). Colours, type, radii and fonts come from tokens.css, the tokens of the
   published theme (generated by scripts/assemble-site.mjs); no value of the design is repeated here
   except layout measures. No animation and no transition on purpose. */
/* Vertical rhythm between a card grid and the lines that follow it (shared, declared once). */
:root {
  --site-cards-gap: 1rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-rop-surface);
  color: var(--color-rop-text);
  font-family: var(--font-rop-sans);
  font-size: 1rem;
  line-height: 1.5;
}
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
a {
  color: var(--color-rop-blue-700);
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
.code:focus-visible {
  outline: 2px solid var(--color-rop-primary);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: var(--text-rop-title-lg);
}
h3 {
  font-size: var(--text-rop-title-sm);
}
p {
  margin: 0 0 0.75rem;
}
code {
  font-family: var(--font-rop-mono);
  font-size: 0.9em;
}
.muted {
  color: var(--color-rop-text-muted);
  font-size: var(--text-rop-body);
}

/* Target of the skip link: focusable by script only (tabindex="-1"), so no ring around the whole page. */
main:focus {
  outline: none;
}
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: var(--z-index-rop-sticky);
  padding: 0.5rem 1rem;
  background: var(--color-rop-surface);
  border: 1px solid var(--color-rop-border);
  border-radius: var(--radius-rop-md);
}
.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  border-bottom: 1px solid var(--color-rop-border-subtle);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  color: var(--color-rop-text);
  font-weight: 600;
  text-decoration: none;
}
.nav-list,
.footer-list,
.cards,
.pro-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

section {
  padding: 2.5rem 0;
}
.hero {
  padding: 3.5rem 0 3rem;
}
.band {
  background: var(--color-rop-surface-subtle);
}
#pro,
#license,
#waitlist {
  scroll-margin-top: 1rem;
}
.aka {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}
.lead {
  max-width: 40rem;
  font-size: var(--text-rop-title-md);
  line-height: var(--text-rop-title-md--line-height);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  max-width: 100%;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-rop-primary);
  border-radius: var(--radius-rop-md);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-rop-primary);
  color: var(--color-rop-primary-contrast);
}
.btn-secondary {
  background: var(--color-rop-surface);
  color: var(--color-rop-blue-700);
}
.btn[hidden] {
  display: none;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.code {
  flex: 1 1 18rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: var(--color-rop-surface);
  border: 1px solid var(--color-rop-border);
  border-radius: var(--radius-rop-md);
  user-select: all;
}
.copy-status {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
  color: var(--color-rop-success);
  font-size: var(--text-rop-body);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.card {
  padding: 1.25rem;
  border: 1px solid var(--color-rop-border-subtle);
  border-radius: var(--radius-rop-lg);
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
}

.status {
  font-weight: 600;
}
.pro-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.cta {
  max-width: 36rem;
}
.cta .muted {
  margin-top: 0.75rem;
}

/* Pro-for-teams and privacy pages (ticket #490). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.section-lead {
  max-width: 40rem;
}
.hero .status {
  margin-bottom: 0;
}
.pro-more {
  margin-bottom: 1.5rem;
}
.compare {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.compare {
  font-size: 0.875rem;
}
.compare th,
.compare td {
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--color-rop-border-subtle);
  text-align: left;
  vertical-align: top;
  /* break-word, not anywhere: a word is only split when it cannot fit a cell on its own line. */
  overflow-wrap: break-word;
}
.compare thead th {
  border-bottom-color: var(--color-rop-border);
}
.compare th[scope='row'] {
  font-weight: 600;
}
.compare th:first-child {
  width: 36%;
}
@media (max-width: 36rem) {
  .compare th,
  .compare td {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}
.license-line {
  font-size: var(--text-rop-title-md);
  line-height: var(--text-rop-title-md--line-height);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.price {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.prose .wrap > * {
  max-width: 44rem;
}
.prose h2 {
  margin-top: 1.5rem;
}
.prose h2:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--color-rop-border-subtle);
  color: var(--color-rop-text-muted);
  font-size: var(--text-rop-body);
}
.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

@media (max-width: 36rem) {
  h1 {
    font-size: 1.75rem;
  }
  .actions {
    flex-direction: column;
  }
  .actions .btn,
  .cta .btn,
  .copy-btn {
    width: 100%;
  }
}

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

.cards + .muted {
  margin-top: var(--site-cards-gap);
}
/* The claim row under the cards (/teams/): the same space above and below. The paragraph margin below
   would otherwise be 0.75rem against 0 above, so both sides use the shared gap. */
.cards + .section-lead {
  margin-block: var(--site-cards-gap);
}
