/* Teams page. Loaded after styles.css, home.css, home-more.css and
   product.css. */

/* ---- Before and after: two columns of plain statements ------------------- */

.versus {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.versus li {
  display: grid;
  gap: 8px 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.versus .before {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.versus .after {
  position: relative;
  padding-left: 30px;
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.versus .after::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--tint);
  border-bottom: 2.5px solid var(--tint);
  transform: rotate(-45deg);
}

.versus-head {
  display: none;
}

@media (min-width: 900px) {
  .versus li {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
  }

  .versus-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    padding-bottom: 14px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--ink-soft);
  }

  .versus-head span:last-child {
    color: var(--tint);
  }
}

/* ---- Three ways the team stays tidy ---------------------------------------- */

.tidy {
  display: grid;
  gap: 16px;
  margin-top: 96px;
}

.tidy .cell {
  min-height: 300px;
}

.tidy .cell.log {
  background: var(--panel);
  justify-content: flex-start;
  padding-bottom: 0;
}

.tidy .cell.log img {
  display: block;
  width: min(84%, 320px);
  height: 280px;
  object-fit: cover;
  object-position: top;
  margin: 28px auto 0;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.tidy .cell.hand {
  background: linear-gradient(140deg, var(--tint-soft), var(--paper) 70%);
}

/* Two people and the leads passing between them. */
.handover {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 auto;
  padding-bottom: 36px;
}

.handover .who {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
}

.handover .who.to {
  border-color: var(--tint);
}

.handover .path {
  position: relative;
  flex: 1;
  max-width: 180px;
  height: 2px;
  background: linear-gradient(to right, var(--glow-a), var(--glow-c));
}

.handover .path i {
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tint);
}

@media (prefers-reduced-motion: no-preference) {
  .handover .path i {
    animation: pass 2.6s var(--ease) infinite;
  }

  .handover .path i:nth-child(2) {
    animation-delay: 0.5s;
  }

  .handover .path i:nth-child(3) {
    animation-delay: 1s;
  }
}

@keyframes pass {
  from {
    left: 0;
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  to {
    left: calc(100% - 12px);
    opacity: 0;
  }
}

.domain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.domain i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint);
  position: relative;
}

.domain i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--on-ink);
  border-bottom: 2px solid var(--on-ink);
  transform: rotate(-45deg);
}

.cell.join {
  gap: 0;
}

.cell.join .domain {
  margin-bottom: 36px;
}

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

  .tidy .cell.hand {
    grid-column: span 7;
  }

  .tidy .cell.log {
    grid-column: span 5;
    grid-row: span 2;
  }

  .tidy .cell.log img {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  .tidy .cell.join {
    grid-column: span 7;
  }
}

/* ---- Every seat: what each person gets ------------------------------------- */

.seat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 48px;
  border-top: 1px solid var(--line);
}

.seat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.seat-list span {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-align: right;
}

@media (min-width: 900px) {
  .seat-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Roles: who can do what ------------------------------------------------- */

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

.role {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

/* The owner card keeps the turning border from .glow. */
.role.owner {
  border-width: 1.5px;
  border-color: transparent;
}

.role h3 {
  font-size: 1.5rem;
}

.role p {
  margin: 6px 0 18px;
  color: var(--ink-soft);
}

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

.role li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

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

/* ---- Price: one large number, three examples -------------------------------- */

.price-panel {
  --glow-fill: var(--paper);
  display: grid;
  gap: 40px;
  padding: 40px 32px;
  border-radius: 28px;
}

.price-panel .figure {
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.price-panel .figure small {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ink-soft);
}

.price-panel .actions {
  margin-top: 32px;
}

.examples {
  margin: 0;
  display: grid;
  align-content: center;
}

.examples div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.examples div:first-child {
  border-top: 1px solid var(--line);
}

.examples dt {
  color: var(--ink-soft);
}

.examples dd {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.examples dd small {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.price-notes {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px 40px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .price-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 72px;
    padding: 56px;
  }

  .price-notes {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
}

/* ---- Three steps -------------------------------------------------------------- */

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

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

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--tint);
}

.steps b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.steps span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 34ch;
}

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

@media (prefers-reduced-motion: reduce) {
  .handover .path i {
    left: 45%;
  }
}

/* ---- One company voice: what admins set once -------------------------------- */

.kit {
  display: grid;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.kit li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.kit .tag {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--tint);
}

.kit h3 {
  margin: 0;
  line-height: 1.25;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
}

.kit p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .kit {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 72px;
  }
}
