/* Layla AI · the free class pages and the class list. Loaded after /home.css, which brings the fonts, colours,
   buttons, promo bar, top bar, footer, tags and tiles, so these pages look and feel like the homepage.
   Written for phones first (one column, big tap targets, nothing sideways), then widened for tablet and desktop.
   Flat Blush Sheet colours, no gradients, no blur. */

body.fc { background: var(--paper); }
.fc-body { padding-bottom: 72px; }
.fc .eyebrow { margin-bottom: 10px; }
.fc h2 { font-size: clamp(34px, 1.8vw + 26px, 52px); }

/* ---------- the class header: crumbs, tags, title, tools, two buttons, the reel ---------- */
.fc-hero { padding: 24px 0 40px; }
.fc-hero__wrap { display: grid; gap: 32px; }
.fc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.fc-crumbs a { color: var(--brown); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.fc-hero h1, .fc-head h1 { margin-top: 14px; font-size: clamp(36px, 2.6vw + 22px, 60px); line-height: .98; }
.fc-hero .lead { margin-top: 14px; }
.fc-logos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.fc-jump { display: grid; gap: 10px; margin-top: 24px; }
.fc-jump .btn { width: 100%; min-height: 52px; }
.fc-video { justify-self: center; width: min(230px, 64vw); padding: 8px; border-radius: 30px; background: var(--ink); box-shadow: 0 8px 0 rgba(56, 44, 44, .16); }
.fc-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: var(--card); }

/* ---------- small pieces used everywhere ---------- */
.fc-label { font: 400 19px/1.05 var(--px); color: var(--brown); }
.fc-time {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.fc-time .ic { width: 12px; height: 12px; color: var(--deep); }
.fc-ticks { display: grid; gap: 10px; margin-top: 12px; font-size: 15px; line-height: 1.45; }
.fc-ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; text-wrap: pretty; }
.fc-ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--pink) center / 10px 9px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' fill='%23382c2c'%3E%3Cpath d='M6 0h1v1H6zM5 1h1v1H5zM4 2h1v1H4zM0 2h1v1H0zM1 3h1v1H1zM3 3h1v1H3zM2 4h1v1H2z'/%3E%3C/svg%3E");
  image-rendering: pixelated;
}

/* ---------- your class kit: what you need + the downloads ---------- */
.fc-kitbox {
  display: grid; gap: 24px; padding: 20px; border-radius: 22px; background: var(--white); border: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.fc-kitbox h2 { font-size: clamp(30px, 1.2vw + 24px, 40px); }
.fc-kitbox__need .fc-label { margin-top: 20px; }
.fc-files { display: grid; gap: 10px; }
.fc-file { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.fc-file__kind { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blush); border: 1.5px solid var(--ink); font: 400 16px/1 var(--px); letter-spacing: .04em; }
.fc-file__kind--zip { background: var(--pink); }
.fc-file__kind--csv, .fc-file__kind--xlsx { background: var(--cream); }
.fc-file__text { display: grid; gap: 2px; min-width: 0; }
.fc-file__text b { font-size: 15px; line-height: 1.3; }
.fc-file__text > span { font-size: 13px; line-height: 1.35; color: var(--soft); text-wrap: pretty; }
.fc-file__text > a { justify-self: start; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.fc-file__btn { background: var(--white); }

/* ---------- the lesson ---------- */
.fc-sec { margin-top: 56px; scroll-margin-top: 84px; }
.fc-sec h2 { scroll-margin-top: 84px; }
.fc-toc { display: grid; margin-top: 20px; padding: 6px 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.fc-toc li + li { border-top: 1px solid var(--line); }
.fc-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; font-weight: 600; }
.fc-toc b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blush); font: 400 17px/1 var(--px); }
.fc-toc a > span { text-wrap: pretty; }
.fc-lesson { display: grid; gap: 16px; margin-top: 16px; }
.fc-step { padding: 20px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); scroll-margin-top: 84px; }
.fc-step__head { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 12px; }
.fc-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--pink); border: 1.5px solid var(--ink); font: 400 21px/1 var(--px); }
.fc-step h3 { font-size: 26px; line-height: 1.02; padding-top: 5px; text-wrap: balance; }
.fc-step__text { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--brown); max-width: 64ch; text-wrap: pretty; }

/* screenshots: one big, or several (side by side on wide screens, a swipe row on phones) */
.fc-gallery { margin-top: 16px; }
.fc-fig { margin: 0; }
.fc-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--paper); }
.fc-shot img { width: 100%; height: auto; }
.fc-fig figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--soft); }
.fc-fig figcaption b { font: 400 14px/1 var(--px); color: var(--ink); background: var(--blush); padding: 3px 6px 2px; border-radius: 6px; }
.fc-gallery--many { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -20px; padding: 0 20px 4px; scroll-padding-inline: 20px; }
.fc-gallery--many::-webkit-scrollbar { display: none; }
.fc-gallery--many .fc-fig { scroll-snap-align: start; }

/* the blocks inside a step: a prompt, a tool, a checklist, a file, a tip */
.fc-card { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.fc-prompt { margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; text-wrap: pretty; }
.fc-prompt mark { background: var(--pink); border-radius: 4px; padding: 0 2px; }
.fc-copy { margin-top: 12px; }
.fc-copy .ic { width: 12px; height: 12px; }
.fc-tool__line { margin-top: 6px; font-size: 15px; color: var(--brown); text-wrap: pretty; }
.fc-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 10px; }
.fc-code-row .fc-copy { margin-top: 0; }
.fc-code { padding: 10px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font: 600 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.fc-open { margin-top: 12px; background: var(--white); }
.fc-card > .btn:not(.fc-copy) { margin-top: 12px; background: var(--white); }
.fc-check { display: grid; gap: 8px; margin-top: 12px; }
.fc-check button {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 11px 12px; text-align: left;
  border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font: 500 15px/1.45 var(--sans); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fc-check button::before { content: ""; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ink); background: var(--white) center / 10px 9px no-repeat; }
.fc-check button[aria-pressed="true"] { background: var(--blush); }
.fc-check button[aria-pressed="true"]::before {
  background-color: var(--pink); image-rendering: pixelated;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' fill='%23382c2c'%3E%3Cpath d='M6 0h1v1H6zM5 1h1v1H5zM4 2h1v1H4zM0 2h1v1H0zM1 3h1v1H1zM3 3h1v1H3zM2 4h1v1H2z'/%3E%3C/svg%3E");
}
.fc-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--blush); font-size: 15px; line-height: 1.5; color: var(--brown); text-wrap: pretty; }
.fc-note::before { content: "Tip"; display: block; margin-bottom: 4px; font: 400 18px/1 var(--px); color: var(--ink); }

/* ---------- the kit at the end (and the free kit on the class list) ---------- */
.fc-kit {
  display: grid; gap: 20px; margin-top: 56px; padding: 18px 18px 22px; border-radius: 22px;
  background: var(--pink); border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.fc-kit__art { display: grid; place-items: center; height: 200px; border-radius: 16px; background: var(--white); overflow: hidden; }
.fc-kit__art img { width: 184px; height: auto; }
.fc-kit--start .fc-kit__art img { width: 320px; max-width: none; }
.fc-kit .eyebrow { color: var(--ink); }
.fc-kit .eyebrow .ic { color: var(--ink); }
.fc-kit h2 { font-size: clamp(32px, 1.4vw + 26px, 46px); }
.fc-kit .fc-ticks { margin-top: 16px; }
.fc-kit .fc-ticks li::before { background-color: var(--white); }
.fc-kit__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.fc-kit__price b { font: 400 48px/.8 var(--px); }
.fc-kit__price s { font-size: 17px; color: var(--brown); }
.fc-kit__save { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--white); white-space: nowrap; }
.fc-kit__btns { display: grid; gap: 10px; margin-top: 20px; }
.fc-kit__btns .btn { width: 100%; min-height: 52px; }
.fc-kit__btns .btn--primary { background: var(--white); }
.fc-kit__btns .btn--ghost { border-color: rgba(56, 44, 44, .35); }
.fc-back { margin-top: 40px; }
.fc-back__ic { rotate: 180deg; }

/* ---------- the class list ---------- */
.fc-head { padding: 32px 0 8px; }
.fc-head__wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fc-head .lead { margin-top: 14px; }
.fc-head__layla { display: none; width: 87px; height: auto; flex: none; }
.fc-filter { display: inline-flex; gap: 4px; margin: 24px 0 20px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.fc-filter button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--soft);
  font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fc-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fc-grid { display: grid; gap: 12px; }
.fc-class[hidden] { display: none; }
.fc-class a {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fc-thumb { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--card); }
.fc-class__body { display: grid; gap: 8px; align-content: start; padding: 4px 4px 4px 0; min-width: 0; }
.fc-class__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-class__title { font: 400 22px/1.02 var(--px); text-wrap: balance; }
.fc-line { display: none; font-size: 14px; line-height: 1.45; color: var(--soft); text-wrap: pretty; }
.fc-gets { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-gets i { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; border: 1px dashed var(--line2); white-space: nowrap; }
.fc-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.fc-go .ic { width: 10px; height: 10px; transition: translate .18s ease; }
@media (hover: hover) {
  .fc-class a:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 8px 0 rgba(56, 44, 44, .06); }
  .fc-class a:hover .fc-go .ic { translate: 3px 0; }
  .fc-toc a:hover span { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .fc-filter button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--paper); }
}
.fc-class a:focus-visible { outline-offset: 3px; border-radius: 20px; }

/* ---------- the copy toast (above the buy bar) ---------- */
.fc-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60; translate: -50% 12px; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .2s ease;
}
.fc-toast.is-on { opacity: 1; translate: -50% 0; }
.fc-toast:empty { display: none; }

/* ---------- fades ---------- */
.fc-fade-on .fc-fade { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1); }
.fc-fade-on .fc-fade.is-in { opacity: 1; transform: none; }

/* ---------- bigger phones and small tablets ---------- */
@media (min-width: 480px) {
  .fc-jump { grid-template-columns: repeat(2, max-content); }
  .fc-jump .btn { width: auto; }
  .fc-kit__btns { grid-template-columns: repeat(2, max-content); }
  .fc-kit__btns .btn { width: auto; }
  .fc-class a { grid-template-columns: 112px minmax(0, 1fr); }
  .fc-line { display: block; }
}
@media (max-width: 479px) {
  .fc-kit--start .fc-kit__art img { width: 160px; }
  .fc-kit--start .fc-kit__art { height: 150px; }
  .fc-code-row { grid-template-columns: minmax(0, 1fr); }
  .fc-code-row .fc-copy { justify-self: start; }
  .fc-file__btn { width: 44px; min-height: 44px; padding: 0; }
  .fc-file__word { display: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 760px) {
  .fc-hero { padding: 40px 0 56px; }
  .fc-hero__wrap { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 48px; }
  .fc-video { width: 280px; justify-self: end; }
  .fc-kitbox { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; padding: 28px; }
  .fc-step { padding: 28px; }
  .fc-step h3 { font-size: 30px; padding-top: 3px; }
  .fc-gallery--many { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 16px 0 0; padding: 0; }
  .fc-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .fc-toc li + li { border-top: 0; }
  .fc-toc li { border-bottom: 1px solid var(--line); }
  .fc-kit { grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 32px; padding: 24px 32px 24px 24px; margin-top: 72px; }
  .fc-kit__art { height: 100%; min-height: 260px; }
  .fc-kit--start .fc-kit__art img { width: 320px; }
  .fc-sec { margin-top: 72px; }
  .fc-head { padding: 48px 0 8px; }
  .fc-head__layla { display: block; }
  .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fc-body { padding-bottom: 96px; }
}
@media (min-width: 760px) and (max-width: 999px) {
  .fc-hero__wrap { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .fc-video { width: 240px; }
}

/* ---------- desktop ---------- */
@media (min-width: 1000px) {
  .fc-hero__wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .fc-video { width: 300px; }
  .fc-lesson { gap: 20px; }
  .fc-step { padding: 32px 36px; }
  .fc-step__text, .fc-card, .fc-note, .fc-gallery { margin-left: 50px; }
  .fc-gallery--many { margin-left: 50px; }
  .fc-kit { grid-template-columns: 300px minmax(0, 1fr); }
}

/* the toc on 2 columns breaks its bottom lines: drop the last one(s) */
@media (min-width: 760px) { .fc-toc li:last-child, .fc-toc li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fc-fade-on .fc-fade { opacity: 1; transform: none; transition: none; }
}
