/*
 * collaboratorsapp.com.
 *
 * The design system is collabrun.com's, shared on purpose: same tokens, type,
 * buttons, header, footer and contrast rules. Sections below "Tools" are this
 * site's own components, built from the same tokens.
 *
 * Colours: coral and cobalt are the two partners in the mark. Coral and cobalt are accents: they are never body text on a light
 * ground. Checked for contrast (WCAG AA, 4.5:1 for text):
 *   ink on paper 16.9, muted on paper 6.8, white on cobalt 5.3,
 *   ink on coral 5.9, paper on ink 16.9, muted-dark on ink 8.4.
 */

:root {
  --coral: #ff5a36;
  --cobalt: #2b59ff;
  --ink: #121419;
  --paper: #f4f5f7;
  --mid: #8a90a0;
  --tile: #1e212a;

  --bg: var(--paper);
  --surface: #ffffff;
  --text: var(--ink);
  --muted: #4f5566;
  --line: #dfe2e8;
  --accent-text: #1f46d6;
  --band-bg: var(--ink);
  --band-surface: var(--tile);
  --band-text: var(--paper);
  --band-muted: #a9afbd;
  --band-line: #2c303b;
  --shadow: 0 1px 2px rgb(18 20 25 / 0.05), 0 12px 32px -12px rgb(18 20 25 / 0.14);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  /* The wordmark's face, as the logo sets it: Plus Jakarta Sans 800. */
  --font-wordmark: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --section: clamp(64px, 10vw, 120px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: var(--tile);
    --text: var(--paper);
    --muted: #a9afbd;
    --line: #2c303b;
    --accent-text: #7c97ff;
    --band-bg: var(--tile);
    --band-surface: #262a35;
    --band-line: #343947;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--cobalt);
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p,
figure {
  margin: 0;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* ── Brand ─────────────────────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  font-family: var(--font-wordmark);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: lowercase;
}

/*
 * Sized by HEIGHT, about as tall as the type is large, as the logo sets it.
 * The width comes from the mark file's own proportions, so any mark dropped
 * into assets/brand/mark.svg keeps its shape (Grip is 84 by 52).
 */
.brand img {
  height: 1.05em;
  width: auto;
  flex: none;
}

/* ── Header ────────────────────────────────────────────────────────────── */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.site-header .brand {
  margin-right: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="page"],
.menu nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--cobalt);
}

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

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--surface);
}

.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: grid;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.menu nav a {
  padding: 12px;
  text-decoration: none;
  border-radius: 8px;
  min-height: 44px;
}

.menu nav a:hover {
  background: var(--bg);
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }
  .menu {
    display: none;
  }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cobalt);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1f46d6;
  text-decoration: none;
}

.btn-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-quiet:hover {
  border-color: var(--mid);
  text-decoration: none;
}

.site-header .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
}

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

/* ── Chips and badges ──────────────────────────────────────────────────── */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral) 50%, var(--cobalt) 50%);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed var(--mid);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--section);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 38em;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.two-col {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.two-col > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col.flip > :first-child {
    order: 2;
  }
}

.ticks {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

/* The tick is positioned, not a grid column: a price or a link inside the
   sentence must stay part of the sentence, not become its own cell. */
.ticks li {
  position: relative;
  padding-left: 34px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 22px no-repeat,
    var(--cobalt);
}

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

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(48px, 9vw, 104px) var(--section);
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

/* ── Pillars ───────────────────────────────────────────────────────────── */

.pillars {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  gap: 12px;
  align-content: start;
}

.pillar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
}

.pillar p {
  color: var(--muted);
}

/* ── Legal placeholder ─────────────────────────────────────────────────── */

.prose {
  max-width: 44rem;
  display: grid;
  gap: 18px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 16px;
}

.placeholder {
  padding: 18px 20px;
  border: 2px dashed var(--coral);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.placeholder strong {
  display: block;
  margin-bottom: 4px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
}

.site-footer .wrap {
  display: grid;
  gap: 28px;
}

@media (min-width: 820px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-brand p,
.copyright {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav a,
  .menu nav a {
    transition:
      background-color 120ms ease,
      border-color 120ms ease,
      text-decoration-color 120ms ease;
  }
}

.more {
  margin-top: 24px;
}

.plan-title {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.two-col.top {
  align-items: start;
}

/* The smallest phones: the logo, Start free and Menu still share one row. */
@media (max-width: 400px) {
  .site-header .wrap {
    gap: 8px;
  }
  .site-header .brand {
    font-size: 1.3rem;
  }
  .site-header .btn {
    padding: 0 12px;
  }
  .menu summary {
    padding: 10px;
  }
}

/* ══ This site's components ═════════════════════════════════════════════ */

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

.pillars {
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips a {
  text-decoration: none;
}

.chips li:has(a:hover) {
  border-color: var(--mid);
}

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  padding-inline: 8px;
  color: var(--mid);
}

.crumbs a {
  display: inline-block;
  padding-block: 6px;
}

/* ── Tools ─────────────────────────────────────────────────────────────── */

.tool-hero {
  padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 72px);
}

.tool-hero .section-head {
  margin-bottom: 28px;
}

.tool {
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  gap: 24px;
}

.tool-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.field > label,
.field legend {
  font-weight: 600;
  padding: 0;
}

.hint {
  font-size: 0.92rem;
  color: var(--muted);
}

.hint:empty {
  display: none;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
}

.field-narrow {
  width: 11rem;
}

.field-narrow-wide {
  width: min(100%, 20rem);
}

input[type="number"],
input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--mid);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 1px;
  border-color: var(--cobalt);
}

/* Two or three choices shown as one pill row; real radio buttons underneath. */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segmented label {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.segmented input:checked + label {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(18 20 25 / 0.08);
  font-weight: 600;
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  justify-self: start;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--cobalt);
}

button.btn {
  cursor: pointer;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
}

/* ── Results ───────────────────────────────────────────────────────────── */

.result {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.result[hidden] {
  display: none;
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.result-title {
  font-size: 1.6rem;
}

.result-title:focus {
  outline: none;
}

.teams {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.team {
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  align-content: start;
  box-shadow: none;
}

.team:nth-child(odd) {
  border-top: 4px solid var(--cobalt);
}

.team:nth-child(even) {
  border-top: 4px solid var(--coral);
}

.team-size {
  font-size: 0.88rem;
  color: var(--muted);
}

.team ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.team li,
.order li {
  overflow-wrap: anywhere;
}

.order {
  margin: 0;
  padding-left: 1.6em;
  display: grid;
  gap: 6px;
  columns: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Icebreaker card ───────────────────────────────────────────────────── */

.question-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 11rem;
  align-content: center;
}

.question {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

/* ── Meeting cost ──────────────────────────────────────────────────────── */

@media (min-width: 980px) {
  .tool-split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
  .tool-split .result-side {
    padding-top: 0;
    padding-left: 28px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .tool-split noscript {
    grid-column: 1 / -1;
  }
}

.groups {
  display: grid;
  gap: 12px;
}

.group {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.group-name {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.group .btn-remove {
  grid-column: 1 / -1;
  justify-self: start;
}

.group .btn-remove[hidden] {
  display: none;
}

@media (min-width: 560px) {
  .group {
    grid-template-columns: 7rem 1fr auto;
  }
  .group .btn-remove {
    grid-column: auto;
  }
}

#add-group {
  justify-self: start;
}

#add-group[hidden] {
  display: none;
}

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

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin: 0;
}

.stats[hidden],
#cost-results[hidden] {
  display: none;
}

.stat {
  display: grid;
  gap: 2px;
  align-content: start;
}

.stat dt {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stat dd.stat-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--muted);
}

.stat-main {
  grid-column: 1 / -1;
}

.stat-main dd {
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  letter-spacing: -0.03em;
}

.timer {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--band-bg);
  color: var(--band-text);
  border: 1px solid var(--band-line);
}

.timer-label {
  font-size: 0.9rem;
  color: var(--band-muted);
  font-weight: 500;
}

.timer-cost {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.timer-time {
  color: var(--band-muted);
}

.timer .actions {
  margin-top: 8px;
}

.timer .btn-quiet {
  background: transparent;
  color: var(--band-text);
  border-color: var(--band-line);
}

/* ── Reading content ───────────────────────────────────────────────────── */

.content {
  padding-block: clamp(40px, 6vw, 72px) var(--section);
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-top: 28px;
}

.prose h1.guide-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
}

.prose .ticks {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.4em;
}

.steps li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-text);
}

.question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 2em;
  font-variant-numeric: tabular-nums;
}

.question-list li::marker {
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq h2 {
  margin-bottom: 8px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  min-height: 44px;
}

.faq details p {
  padding: 0 18px 16px;
  color: var(--muted);
}

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--cobalt);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: grid;
  gap: 12px;
  justify-items: start;
}

/* ── Link and tool cards ───────────────────────────────────────────────── */

.link-grid,
.tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.link-card,
.tool-card {
  height: 100%;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  align-content: start;
  text-decoration: none;
}

.link-card:hover,
.tool-card:hover {
  border-color: var(--mid);
}

.link-card strong,
.tool-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.tool-card strong {
  font-size: 1.35rem;
}

.link-card span,
.tool-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-card {
  padding: clamp(22px, 3vw, 28px);
  gap: 10px;
}

.tool-card .tool-go {
  margin-top: 8px;
  color: var(--accent-text);
  font-weight: 600;
}

/* ── Ads ───────────────────────────────────────────────────────────────── */

/* Ads sit between reading sections only, and are always labelled. */
.ad {
  margin-block: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  min-height: 120px;
}

.ad-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.adsbygoogle {
  display: block;
}

@media print {
  .site-header,
  .site-footer,
  .tool,
  .ad,
  .crumbs {
    display: none;
  }
}

/* On narrow phones the two choices stack, so the pill becomes a rounded box. */
@media (max-width: 480px) {
  .segmented {
    display: grid;
    border-radius: var(--radius-sm);
  }
  .segmented label {
    border-radius: 8px;
  }
}

/* ══ Home page ══════════════════════════════════════════════════════════ */

.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}

/* Two very large, faint rings from the mark, behind the hero. */
.home-hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -140px;
  width: 720px;
  height: 504px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Ccircle cx='14' cy='14' r='10.5' fill='none' stroke='%232b59ff' stroke-width='1.2'/%3E%3Ccircle cx='26' cy='14' r='10.5' fill='none' stroke='%23ff5a36' stroke-width='1.2'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.home-hero .wrap {
  position: relative;
}

.home-hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
}

/* A coral marker stroke under the words; the text itself stays ink. */
.swash {
  background: linear-gradient(transparent 62%, rgb(255 90 54 / 0.55) 62%, rgb(255 90 54 / 0.55) 90%, transparent 90%);
  padding-inline: 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 500;
  color: var(--muted);
}

.hero-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-ticks li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    var(--cobalt);
}

/* ── The stage: three live previews of the tools ───────────────────────── */

.stage {
  display: grid;
  gap: 14px;
}

.stage-card {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stage-card:hover {
  text-decoration: none;
}

.stage-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.stage-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px dashed var(--mid);
}

.stage-foot {
  font-size: 0.88rem;
  font-weight: 500;
}

.stage-question {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
  min-height: 200px;
  align-content: space-between;
}

.stage-question .stage-label {
  color: rgb(255 255 255 / 0.82);
}

.stage-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  transition: opacity 250ms ease, transform 250ms ease;
}

.stage-q.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.mini-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-team {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border-top: 4px solid var(--cobalt);
}

.mini-team + .mini-team {
  border-top-color: var(--coral);
}

.mini-team span {
  font-size: 0.95rem;
}

.stage-cost {
  background: var(--band-bg);
  border-color: var(--band-line);
  color: var(--band-text);
}

.stage-cost .stage-label,
.stage-cost .stage-foot {
  color: var(--band-muted);
}

.stage-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* On wide screens the cards overlap a little and tilt, like a desk. */
@media (min-width: 960px) {
  .stage {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 12px 0 24px;
  }
  .stage-question {
    grid-column: 1 / 6;
    grid-row: 1;
    transform: rotate(-2deg);
    z-index: 2;
  }
  .stage-teams {
    grid-column: 2 / 7;
    grid-row: 2;
    margin-top: -26px;
    transform: rotate(1.5deg);
    z-index: 1;
  }
  .stage-cost {
    grid-column: 1 / 5;
    grid-row: 3;
    margin-top: -22px;
    transform: rotate(-1deg);
    z-index: 3;
  }
}

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .stage-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .stage-card:hover {
    transform: rotate(0deg) translateY(-4px);
    z-index: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-q {
    transition: none;
  }
}

/* ── Facts strip ───────────────────────────────────────────────────────── */

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.fact-row > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 22px 16px;
}

.fact-row > div + div {
  border-left: 1px solid var(--line);
}

.fact-row > div:nth-child(3) {
  border-left: 0;
}

.fact-row > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.fact-row dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.fact-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

@media (min-width: 820px) {
  .fact-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .fact-row > div:nth-child(3) {
    border-left: 1px solid var(--line);
  }
  .fact-row > div:nth-child(n + 3) {
    border-top: 0;
  }
}

/* ── Tool cards with icons ─────────────────────────────────────────────── */

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.tone-cobalt {
  background: var(--cobalt);
  color: #ffffff;
}

.tone-coral {
  background: var(--coral);
  color: var(--ink);
}

.tone-ink {
  background: var(--ink);
  color: var(--paper);
}

@media (prefers-color-scheme: dark) {
  .tone-ink {
    background: var(--paper);
    color: var(--ink);
  }
}

.tool-card .tool-go {
  display: inline-flex;
  gap: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .tool-card,
  .link-card {
    transition: transform 160ms ease, border-color 160ms ease;
  }
  .tool-card:hover,
  .link-card:hover {
    transform: translateY(-3px);
  }
  .tool-card .arrow,
  .stage-foot .arrow {
    transition: transform 160ms ease;
  }
  .tool-card:hover .arrow,
  .stage-card:hover .arrow {
    transform: translateX(4px);
  }
}

.arrow {
  display: inline-block;
}

/* ── Dark band (from collabrun) ────────────────────────────────────────── */

.band {
  background: var(--band-bg);
  color: var(--band-text);
  --text: var(--band-text);
  --muted: var(--band-muted);
  --line: var(--band-line);
  --surface: var(--band-surface);
  --accent-text: #7c97ff;
  --shadow: none;
}

.section.band + .section,
.section + .section.band {
  border-top: 0;
}

.band .pillar h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral) 50%, var(--cobalt) 50%);
}

/* ── Closing call to action ────────────────────────────────────────────── */

.cta-section .cta img {
  height: 72px;
}

.cta-section h2 {
  max-width: 16em;
}

.chips li a {
  display: inline-block;
}

.cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.cta img {
  height: 64px;
  width: auto;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

/* The overlapped cards keep their own label clear of the card above. */
@media (min-width: 960px) {
  .stage-teams {
    padding-top: 44px;
  }
  .stage-cost {
    margin-left: -8px;
  }
}

.fact-row > div {
  justify-content: flex-end;
}

@media (prefers-color-scheme: dark) {
  .swash {
    background: linear-gradient(transparent 64%, rgb(255 90 54 / 0.42) 64%, rgb(255 90 54 / 0.42) 90%, transparent 90%);
  }
}

/* On phones the rings sit off to the side so they never cross the text. */
@media (max-width: 959px) {
  .home-hero::before {
    width: 380px;
    height: 266px;
    right: -230px;
    top: -40px;
    opacity: 0.12;
  }
}
