/* likwest.com — guides layer.
   Loaded ONLY by the Musaic guide pages (/musaic/guides/, /musaic/de/anleitungen/, /musaic/es/guias/). Everything here sits on top of
   landing.css (tokens, nav.top, main.v2-doc, footer.site) and adds the four
   things a task page needs that a legal page never did: the card wall, the
   numbered steps, a cropped screenshot, and the copy-me summary. Kept in its
   own file so a mistake here cannot reach the landing pages. */

/* ------------------------------------------------------- the card wall */
/* Used twice: on /guides/ as the whole page, and on the Musaic landing page
   as one section. Three across on a desktop - which is why the copy on a card
   is one line: a card that wraps to four lines breaks the row's rhythm. */
.g-wall {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .g-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-wall { grid-template-columns: 1fr; } }

.g-card {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.g-card:hover { border-color: var(--brand); transform: translateY(-2px); }
/* Icon and category on one line - the label says which corner of the app
   this is about, and putting it beside the icon costs no extra height. */
.g-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.g-kind {
  font-family: var(--meta);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.g-card:hover .g-kind { color: var(--brand); }

.g-card h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.g-card p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dim);
}
.g-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  color: var(--brand);
}
.g-ico svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-ico svg .solid { fill: currentColor; stroke: none; }

/* The guides index is a card page, not a text page: it needs more than the
   760px the legal pages read at. The prose inside keeps its own measure. */
.g-doc .wrap { max-width: 1000px; }
.g-doc h1 + .v2-lede { max-width: 56ch; }

/* ----------------------------------------------------------- guide page */
/* The first block of every guide: three sentences that answer the question
   on their own, so they can be pasted into a forum reply without the link
   being the answer. */
.g-tldr {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-card);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
}
.g-req {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--faint);
}
.g-req strong { color: var(--dim); font-weight: 650; }

.g-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g-step;
  border-top: 1px solid var(--line-soft);
}
.g-steps > li {
  position: relative;
  counter-increment: g-step;
  padding: 24px 0 24px 44px;
  border-bottom: 1px solid var(--line-soft);
}
.g-steps > li::before {
  content: counter(g-step);
  position: absolute;
  left: 0;
  top: 24px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.g-steps h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.g-steps p {
  margin: 9px 0 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--dim);
}
.g-steps a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* A cropped screenshot — the button, not the whole phone. The .phone frame
   is marketing; in a guide it only makes the target smaller. */
.g-shot { margin: 16px 0 0; }
.g-shot img {
  display: block;
  max-width: 100%;
  /* A phone screenshot is portrait; at the full width of the text column it
     would tower over the step it belongs to. Height is the useful bound. */
  max-height: 520px;
  width: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}
.g-shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}
/* Placeholder while the real screenshot is still missing. Deliberately loud:
   an empty slot that looks finished is how a page ships without its picture. */
.g-shot.is-todo > div {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: repeating-linear-gradient(135deg,
              transparent 0 10px,
              color-mix(in srgb, var(--faint) 8%, transparent) 10px 20px);
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* An aside for the thing that looks like a bug but is not. */
.g-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dim);
}
.g-note strong { color: var(--text); font-weight: 650; }

.g-stamp {
  margin-top: 28px;
  font-size: 13px;
  color: var(--faint);
}

/* --------------------------------------------------------- feature list */
/* The options inside one mode or area ("Lean over border" in Mosaic,
   "Behind person" in Lyrics). Each is one card with an icon, a name that
   matches the label in the app, one or two sentences, and a Pro or Beta
   badge where it applies. Two across, so a sentence has room to finish. */
.g-feats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 620px) { .g-feats { grid-template-columns: 1fr; } }
.g-feats > li {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.g-feats h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.g-feats p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dim);
}
.g-feats .g-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  vertical-align: 2px;
}
.g-feats .g-badge.is-pro { border-color: var(--brand); color: var(--brand); }

/* A row of screenshots, e.g. the Mosaic layouts. Scrolls sideways inside its
   own box on a phone instead of shrinking every shot to a stamp. */
.g-row {
  margin: 16px 0 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.g-row figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.g-row img {
  display: block;
  height: 300px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}
.g-row figcaption { margin-top: 6px; font-size: 12.5px; color: var(--faint); }

/* The video or screenshot at the top of a guide, in the same phone frame as
   the landing page, so a reader recognises the app. Capped in height: a phone
   at the full column width would push the steps off the first screen. */
.g-media { margin: 22px auto 0; width: min(260px, 70vw); }
.g-media .phone { width: 100%; }

/* A label as the app shows it ("Record", "Layout & Border"). Italics made a
   step read like a quotation; a heavier weight reads like a button name. */
.g-tldr em, .g-req em, .g-steps em, .g-feats em, .v2-qa em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}
/* The caption wraps at the width of its screenshot (set inline from the
   image's aspect ratio) instead of stretching the figure. */
.g-row figure img { width: 100%; height: auto; }

/* ------------------------------------------------------ phone strips */
/* The guides as small phones, one row per group, scrolling sideways (native
   scrolling, see SITE.md). Used on the hub pages and in the #guides section
   of the Musaic landing pages. The picture is the guide's own poster or
   screenshot; the label is the short name, the line under it says what the
   page covers. The full question is the link's title. */
.g-group { margin: 26px 0 12px; }
.g-strip {
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.g-strip > li { flex: 0 0 148px; scroll-snap-align: start; }
.g-phone { display: block; color: inherit; text-decoration: none; }
.g-screen {
  display: block;
  aspect-ratio: 9 / 19.5;
  padding: 5px;
  border-radius: 24px;
  background: linear-gradient(160deg, #3a3a46, #17171d 40%, #101016);
  box-shadow: 0 16px 34px -20px rgba(24, 32, 64, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s var(--ease);
}
.g-pic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 19px;
  background: #000;
}
.g-phone:hover .g-screen { transform: translateY(-3px); }
.g-phone .g-kind { display: block; margin-top: 12px; }
.g-phone:hover .g-kind { color: var(--brand); }
.g-phone .g-sub {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--dim);
}
@media (max-width: 520px) {
  .g-strip > li { flex-basis: 128px; }
  .g-strip { gap: 14px; }
}

/* The fold on the landing page: the first group, a slice of the second,
   faded, then the link to open the rest (site.js, initFolds). Gated on
   html.js: without JS every group shows. The link wears the site's own
   underlined-caps link style (.v2-lnk.is-primary) plus a chevron. */
html.js .g-fold { overflow: hidden; }
html.js .g-fold:not(.is-open) {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
}
.g-more-wrap { text-align: center; margin-top: 8px; }
.g-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  cursor: pointer;
}
.g-more svg { width: 11px; height: 11px; transition: transform 0.2s var(--ease); }
.g-more[aria-expanded="true"] svg { transform: rotate(180deg); }
