/* The website tutorials (site/tutorials/), on top of the product page's styles (../landing.css): its
   colours, type, top bar, buttons, screenshot frames and entrances. Dark only, like the page. */

.top nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */
.t-hero {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px 8px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(198, 151, 74, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(31, 111, 235, 0.1), transparent 70%);
}
.crumbs {
  color: var(--faint);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--text);
}
.t-hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 22px;
}
.t-hero h1 .gold {
  color: var(--gold);
}
.t-hero .tagline {
  max-width: 620px;
}
/* The verse a tutorial is built on, under its title. */
.t-verse {
  max-width: 560px;
  margin: 26px auto 0;
  font-family: var(--greek);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
}
.t-verse cite {
  display: block;
  margin-top: 6px;
  font: 13px var(--ui);
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 15px;
  color: var(--muted);
}
.meta svg,
.tip svg,
.checks svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  stroke-width: 1.8;
}

/* Mac or Windows: chosen at the top, followed by the install steps and every key. */
.pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 30px;
}
.pick p {
  font-size: 17px;
  color: var(--muted);
}
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--band);
  border: 1px solid var(--line);
}
.seg button {
  position: relative;
  z-index: 1;
  min-width: 128px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 500 15px var(--ui);
  cursor: pointer;
  transition: color 0.25s;
}
.seg button[aria-selected="true"] {
  color: #fff;
}
.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--blue-deep);
  transition: transform 0.35s var(--ease);
}
.seg[data-mode="1"] .seg-thumb {
  transform: translateX(100%);
}
.pick-note {
  flex-basis: 100%;
  font-size: 14px !important;
  color: var(--faint) !important;
}
.os-pane[data-os="win"],
[data-os="win"] .os-pane[data-os="mac"] {
  display: none;
}
[data-os="win"] .os-pane[data-os="win"] {
  display: block;
}
[data-os="win"] .tip.os-pane[data-os="win"] {
  display: flex;
}
/* A word or two that differs on Windows, inline. */
[data-os="win"] .mac-only,
.win-only {
  display: none;
}
[data-os="win"] .win-only {
  display: inline;
}

/* The story card: who you are and what you'll do. */
.brief {
  max-width: 900px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.brief-card {
  border-radius: 22px;
  padding: 36px 40px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(198, 151, 74, 0.1), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, rgba(31, 111, 235, 0.1), transparent 60%), var(--band);
  border: 1px solid var(--line);
}
.eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.brief-card p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.brief-card p + p {
  margin-top: 14px;
}
.brief-card b {
  color: var(--text);
  font-weight: 600;
}
.makes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.makes li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}
.makes b {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--text);
}

/* Layout: the steps beside a sticky list of them. */
.t-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 84px;
}
.toc > p {
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.toc a span {
  font: 500 13px/1.6 var(--mono);
  color: var(--faint);
}
.toc a:hover {
  color: var(--text);
}
.toc a.on {
  color: var(--text);
  border-left-color: var(--gold);
}
.toc a.on span {
  color: var(--gold);
}
.toc .bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin-top: 20px;
  overflow: hidden;
}
.toc .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: width 0.3s var(--ease);
}

/* A step */
.lesson {
  scroll-margin-top: 76px;
  padding-bottom: 88px;
}
.lesson + .lesson {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d9ac5f, #9c6f2c);
  color: #1a1206;
  font: 700 18px var(--ui);
  margin-bottom: 18px;
  box-shadow: 0 8px 22px -8px rgba(198, 151, 74, 0.6);
}
.lesson h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}
.lesson .why {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  margin-top: 16px;
  max-width: 36em;
}
.lesson h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 40px 0 0;
}

/* Numbered instructions */
.do {
  counter-reset: do;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  max-width: 40em;
}
.do > li {
  counter-increment: do;
  position: relative;
  padding: 0 0 0 46px;
  font-size: 18px;
  line-height: 1.6;
}
.do > li + li {
  margin-top: 16px;
}
.do > li::before {
  content: counter(do);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font: 700 14px var(--ui);
}
.do b {
  font-weight: 600;
  color: #fff;
}
.do ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.do ul li + li {
  margin-top: 4px;
}
kbd,
code {
  font: 500 0.86em var(--mono);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  white-space: nowrap;
}
kbd {
  border-bottom-width: 2px;
}

/* What to type, set like the box it goes in. */
.type {
  margin: 12px 0 0;
  padding: 14px 18px;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 400 15px/1.7 var(--mono);
  color: var(--text);
  white-space: pre-wrap;
  overflow-x: auto;
}
.type .k {
  color: var(--blue);
}
.type .t {
  color: var(--gold);
}

/* Scripture quoted in a step. */
.scripture {
  margin: 28px 0 0;
  max-width: 38em;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--greek);
  font-size: 21px;
  line-height: 1.55;
  color: var(--text);
}
.scripture cite {
  display: block;
  margin-top: 8px;
  font: 14px var(--ui);
  font-style: normal;
  color: var(--faint);
}

/* Screenshots: the page's frame (.shot), under each step's text. */
.figure {
  margin: 40px 0 0;
}
.figure figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--faint);
  text-align: center;
}
/* A cropped screenshot, at its own shape and no wider than its pixels at 2x. */
.figure .shot.free {
  margin: 0 auto;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.pair .figure {
  margin: 0;
}

/* Tips */
.tip {
  display: flex;
  gap: 14px;
  margin: 32px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.14);
  max-width: 44em;
}
.tip svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  stroke: var(--blue);
  stroke-width: 1.8;
}
.tip p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.tip b {
  color: var(--text);
}
.tip.warm {
  background: var(--gold-soft);
  border-color: rgba(198, 151, 74, 0.24);
}
.tip.warm svg {
  stroke: var(--gold);
}

/* Ask, set out so it's clear what you type, what the assistant reads, and what it answers. */
.ask {
  margin: 32px 0 0;
  max-width: 44em;
  border-radius: 16px;
  overflow: hidden;
  background: var(--band);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.ask-part {
  padding: 18px 22px 20px;
}
.ask-part + .ask-part {
  border-top: 1px solid var(--line);
}
.ask-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.ask-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}
.ask-you .ask-label {
  color: var(--blue);
}
.ask-reads .ask-label {
  color: var(--muted);
}
.ask-answer .ask-label {
  color: var(--gold);
}
.ask-q {
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}
.ask-src {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ask-src li {
  font-size: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}
.ask-a {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}
.ask-a p + p,
.ask-a p + ul,
.ask-a ul + p {
  margin-top: 10px;
}
.ask-a ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.ask-a b {
  color: #fff;
}
/* The parts arrive one after another as it scrolls in. */
.js .ask.rise .ask-part {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.js .ask.rise.in .ask-part {
  opacity: 1;
  transform: none;
}
.ask.in .ask-part:nth-child(2) {
  transition-delay: 0.5s;
}
.ask.in .ask-part:nth-child(3) {
  transition-delay: 1.1s;
}

/* The finish */
.done {
  text-align: center;
  padding: 96px 24px 110px;
  background: var(--band);
  border-top: 1px solid var(--line);
}
.done h2 {
  font-size: clamp(38px, 5.6vw, 66px);
}
.done .tagline {
  max-width: 640px;
}
.checks {
  max-width: 660px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  text-align: left;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 17px;
  color: var(--muted);
}
.checks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  stroke: var(--gold);
  stroke-width: 2.2;
}
.done .actions {
  align-items: center;
}
.link {
  color: var(--muted);
  font-size: 16px;
}
.link:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .t-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 48px;
  }
  .toc {
    display: none;
  }
  .makes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .brief-card {
    padding: 26px 22px;
  }
  .pair,
  .checks {
    grid-template-columns: 1fr;
  }
  .do > li {
    font-size: 17px;
  }
  .lesson .why {
    font-size: 18px;
  }
  .seg button {
    min-width: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .ask.rise .ask-part {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .seg-thumb {
    transition: none;
  }
}
