/* Landing page */
.landing { max-width: 1080px; margin: 0 auto; padding: 0 16px 4rem; }

.landing__nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
}

.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -0.02em; }
.hero p { font-size: 1.2rem; color: var(--ink-soft); }
.hero .hero__fine-print { margin: 0.75rem 0 0; font-size: 0.95rem; }
/* Three sample licenses, fanned out like they were tossed on a desk. */
.hero__licenses { display: grid; justify-items: center; padding: 1rem 0 2rem; text-align: left; }
.hero__licenses > .license { grid-area: 1 / 1; width: min(100%, 360px); }
.hero__licenses > .license:nth-child(1) { z-index: 3; transform: translate(-6%, 18%) rotate(-4deg); }
.hero__licenses > .license:nth-child(2) { z-index: 2; transform: translate(8%, -14%) rotate(5deg); }
.hero__licenses > .license:nth-child(3) { z-index: 1; transform: translate(-2%, -40%) rotate(-1deg); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__licenses { padding: 4rem 0 2.5rem; }
  .hero__licenses > .license { width: 84%; }
  .hero p { margin-inline: auto; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2rem;
  padding: 2rem 0 3rem;
  border-top: 2px dashed var(--line);
}

.features h3 { color: var(--accent-deep); }
.features p { margin: 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* A plan's fine print takes the next row, right under its card. The subgrid
   keeps cards side by side the same height. */
.plan { display: grid; grid-template-rows: subgrid; }
.plan:has(.plan__fine-print) { grid-row: span 2; }
.plan__card { display: grid; gap: 0.4rem; align-content: start; }
.plan h3 { margin: 0; }
.plan .button { justify-self: start; }
.plan__price { font: 700 2rem/1 var(--font-display); }
.plan__price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.plan--current .plan__card { border-color: var(--accent); box-shadow: var(--shadow-pop); }
.plan__fine-print { margin: 0; }

/* Stripe's card form brings its own white page, framed like a sheet. */
.checkout { margin-block: 1.25rem; }
.checkout__form { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-blob); overflow: hidden; }
.checkout__form:empty { display: none; }
.checkout__links { margin-top: 1rem; }

.thanks { max-width: 40rem; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* A new team's first steps, numbered until they're done. */
.getting-started { margin-bottom: 1.5rem; transform-origin: top; }
.getting-started__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; cursor: pointer; list-style: none; }
.getting-started__head::-webkit-details-marker { display: none; }
.getting-started__head h2 { margin: 0; }
.getting-started__head h2::after { content: "▾"; display: inline-block; margin-left: 0.4em; font-size: 0.8em; transition: transform 200ms ease; }
.getting-started:not([open]) .getting-started__head h2::after { transform: rotate(-90deg); }
.getting-started__head .muted { margin-left: auto; }
.getting-started[open] .getting-started__head { margin-bottom: 0.75rem; }

.getting-started .checklist { transform-origin: top left; }

.checklist { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.checklist li { position: relative; display: grid; gap: 0.3rem; padding: 0.8rem 0 0.8rem 2.75rem; }
.checklist li + li { border-top: 2px dashed var(--line); }
.checklist li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.75rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font: 700 0.95rem/1 var(--font-display);
}
.checklist .checklist__done::before { content: "✓"; border-color: var(--mint); background: var(--mint-pale); color: var(--mint); }
.checklist .checklist__done > strong { color: var(--ink-soft); }
.checklist .copy-field { max-width: 36rem; margin-top: 0.2rem; }

/* Product details */
.copy-field { display: flex; gap: 0.5rem; }
.copy-field .input { font-size: 0.9rem; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.8rem 0; }
.list li + li { border-top: 2px dashed var(--line); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.6rem 0.5rem; text-align: left; border-bottom: 2px dashed var(--line); }
.table-wrap { overflow-x: auto; }

.menu-choices { display: grid; gap: 0.75rem; }
.menu-choices a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--ink); }

/* Octopus HQ: how many teams stand where. */
.tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.tallies > .sheet { margin-top: 0; }
.tally { display: grid; gap: 0.35rem; align-content: start; }
.tally dt { font-weight: 700; }
.tally dd { margin: 0; }
/* The number comes first, so numbers line up however long the labels are. */
.tally__count { order: -1; font: 700 2rem/1 var(--font-display); }

.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.admin-actions:not(:has(form)) { display: none; }

/* Turning on notifications, on a customer's page. */
.push-notifications p { margin: 0 0 1rem; }
