/* Product, Pricing and About pages: shares tokens, nav, buttons and footer with styles.css */
:root {
  --line: rgba(255, 255, 255, 0.075);
}

.page {
  padding: 72px 0 120px;
  overflow-x: clip;
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8c8cf;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title {
  margin-top: 24px;
  max-width: 680px;
  font-family: var(--font-brand);
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-title:first-child {
  margin-top: 0;
}

.page-lead {
  margin-top: 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

/* Product pages */
.feature__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 36px;
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chev {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__aside {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.feature__aside:hover {
  opacity: 0.8;
}

/* App screenshot in a window frame, cropped by the panel's right and bottom edges */
.shot {
  --glow-a: #2383e2;
  --glow-b: #8cc4ff;
  position: relative;
  margin: 56px 0 0;
  aspect-ratio: 16 / 10;
  padding: 64px 0 0 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    url("/assets/grain.svg"),
    radial-gradient(30% 40% at 12% 0%, color-mix(in srgb, var(--glow-b) 18%, transparent), transparent 70%),
    radial-gradient(55% 65% at 10% 0%, color-mix(in srgb, var(--glow-a) 55%, transparent), transparent 70%),
    #050506;
}

/* Variants only move the light; every panel stays in the blue palette */
.shot--green { --glow-b: #ededea; }
.shot--purple { --glow-a: #1f74cc; }
.shot--orange { --glow-b: #b8dbff; }
.shot--teal { --glow-a: #2a8cf0; --glow-b: #ededea; }

.shot__window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
  background: #121212;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1c;
}

.shot__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.shot__tab {
  margin-left: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 72px;
}

.highlight h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
}

.highlight p {
  color: var(--muted);
  font-size: 15px;
}

/* Pricing */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  max-width: 880px;
  margin-top: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
}

.plan__name {
  color: #c8c8cf;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan__price {
  margin-top: 12px;
  font-family: var(--font-brand);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.plan .btn {
  margin-top: 28px;
}

.plan__fine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.plan__features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan__features li {
  display: flex;
  gap: 10px;
}

.plan__features svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: #5f9a74;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 800px;
  margin-top: 48px;
}

.plans .plan {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 24px;
  max-width: none;
  margin-top: 0;
  padding: 30px;
}

.plans ~ .faq {
  max-width: 800px;
}

/* Two lines of note text, so both plans' buttons sit on the same line. */
.plans .plan__note {
  min-height: 3.2em;
}

.plan__name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(237, 237, 234, 0.08);
  color: #c8c8cf;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan__features .plan__tag {
  align-self: center;
}

/* FAQ page: one .faq block per category */
.faq--page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 48px;
  margin-top: 64px;
}

.faq--page .faq__title {
  grid-column: 1;
  grid-row: 1 / span 20;
  margin: 0;
  padding-top: 10px;
  font-size: 18px;
}

.faq--page details {
  grid-column: 2;
}

@media (max-width: 720px) {
  .faq--page {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq--page .faq__title {
    grid-row: auto;
    margin-bottom: 16px;
    padding-top: 0;
  }

  .faq--page details {
    grid-column: 1;
  }
}

.faq--page + .faq--page {
  margin-top: 56px;
}

/* About */
.about {
  max-width: 720px;
}

.about__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.about__body {
  margin-top: 32px;
  color: #d4d4d8;
  font-size: 17px;
  line-height: 1.75;
}

.about__body p {
  margin-bottom: 20px;
}

.about__body a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.about__body a:hover {
  opacity: 0.7;
}

.about__body .about__signoff {
  margin-top: 40px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.about__body h2 {
  margin: 48px 0 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.principle {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101012;
}

.principle h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Desktop app */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101012;
  color: var(--muted);
  font-size: 15px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(237, 237, 234, 0.08);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 500;
}

.section-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps-title {
  margin-top: 88px;
}

.steps-title + .steps {
  margin-top: 20px;
}

/* Use cases: example goals */
.goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.goals li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101012;
}

.goals svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #c8c8cf;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.goals h3 {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.goals p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Changelog */
.contrib {
  max-width: 880px;
  margin: 48px 0 0;
}

.contrib__months,
.contrib__grid {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  gap: 5px;
}

.contrib__months {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.contrib__months span {
  grid-row: 1;
  white-space: nowrap;
}

.contrib__grid {
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
}

.contrib__cell {
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.contrib__cell[data-level="1"] { background: rgba(35, 131, 226, 0.25); }
.contrib__cell[data-level="2"] { background: rgba(35, 131, 226, 0.45); }
.contrib__cell[data-level="3"] { background: rgba(35, 131, 226, 0.7); }
.contrib__cell[data-level="4"] { background: #2383e2; }

.contrib__cell--future {
  background: transparent;
}

.contrib__cell[data-tip] {
  position: relative;
}

.contrib__cell[data-tip]:hover {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

.contrib__cell[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1a1a1d;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.contrib__grid > :nth-last-child(-n + 21):hover::after {
  left: auto;
  right: 0;
  transform: none;
}

.contrib__grid > :nth-child(-n + 21):hover::after {
  left: 0;
  transform: none;
}

a.contrib__cell {
  cursor: pointer;
}

.release {
  scroll-margin-top: 24px;
}

@media (max-width: 720px) {
  .contrib__months,
  .contrib__grid {
    gap: 2px;
  }

  .contrib__months {
    font-size: 10px;
  }

  .contrib__cell {
    border-radius: 2px;
  }
}

.releases {
  max-width: 880px;
  margin-top: 56px;
}

.release {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.release time {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.release h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.release__summary {
  margin-top: 8px;
  color: var(--muted);
}

.release ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.release--compact ul {
  display: none;
}

.release li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}

.kind {
  justify-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.kind--new { background: rgba(35, 131, 226, 0.16); color: #8fbdf0; }
.kind--improved { background: rgba(95, 154, 116, 0.18); color: #b6d8c0; }
.kind--fixed { background: rgba(189, 122, 74, 0.18); color: #e2b08c; }

@media (max-width: 860px) {
  .goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps,
  .highlights,
  .principles {
    grid-template-columns: 1fr;
  }

  .plan,
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 48px 0 88px;
  }

  .page-lead {
    font-size: 17px;
  }

  .shot {
    margin-top: 40px;
    aspect-ratio: 4 / 3;
    padding: 28px 0 0 20px;
  }

  .shot__bar {
    height: 28px;
    gap: 6px;
  }

  .shot__dot {
    width: 8px;
    height: 8px;
  }

  .shot__tab {
    display: none;
  }

  .plan,
  .plans .plan {
    padding: 24px;
  }

  .release {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .goals {
    grid-template-columns: 1fr;
  }
}

/* Product pages: how it works, beside a product mockup */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 120px;
}

.detail__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

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

.detail__steps li {
  position: relative;
  padding-left: 42px;
  color: var(--muted);
  font-size: 15px;
  counter-increment: step;
}

.detail__steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(237, 237, 234, 0.08);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.detail__steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 500;
}

.detail__link {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.detail__link:hover {
  opacity: 0.8;
}

.mock {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #161618;
  font-size: 14px;
  line-height: 1.5;
}

.mock__label {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mock__label--gap {
  margin-top: 24px;
}

.mock__head,
.mock__metric,
.mock__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mock__head strong {
  font-size: 16px;
  font-weight: 500;
}

.mock__head span,
.mock__metric span:last-child,
.mock__row span:last-child {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

.mock__metric {
  margin: 14px 0 8px;
  color: #c8c8cf;
  font-size: 13px;
}

.mock__bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mock__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2383e2;
}

.mock__row {
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.mock__row span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mock__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mock__check {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(237, 237, 234, 0.35);
  border-radius: 4px;
}

.mock__check--done {
  border-color: #6fbf8a;
  background: #6fbf8a;
}

.mock__timer {
  margin: 28px 0 20px;
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
}

.mock__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mock__actions--end {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mock__btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #c8c8cf;
  font-size: 13px;
  line-height: 1;
}

.mock__btn--primary {
  border-color: var(--text);
  background: var(--text);
  color: #0b0b0d;
}

.mock__note,
.mock__card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #c8c8cf;
}

.mock__card {
  padding-top: 2px;
}

.mock__card .mock__row:first-child {
  border-top: 0;
}

.mock__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #c8c8cf;
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mock__stats > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mock__stats strong {
  font-size: 22px;
  font-weight: 500;
}

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
}

.mock__chart span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: #2383e2;
  opacity: 0.6;
}

.mock__chart span:nth-child(4) {
  opacity: 1;
}

.mock__days {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mock__days span {
  flex: 1;
  text-align: center;
}

.faq--feature {
  margin: 120px auto 0;
  text-align: center;
}

.faq--feature details {
  text-align: left;
}

@media (max-width: 860px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
