/* ==========================================================================
   Inner pages: FAQs, Learn (index + article), Feedback.
   Figma: ☠️ 25 Marketing website (FAQs 328:4654, Learn 335:5173, Feedback 343:5623).
   Mobile first (Size=sm, 393), desktop from 992 (Size=lg, 1512). Text is centred
   everywhere except interactive rows (accordion), as DESIGN.md §5 asks.
   Type maps the library styles onto the licensed Greed cuts: headings Condensed
   Heavy, body and labels Standard Regular / SemiBold.
   ========================================================================== */

html.page, .page body { background: var(--bg-default); }
.page-main { color: var(--fg-primary); }
.page-main section { min-height: 0; } /* the home page's acts are a screen tall each; these sections aren't */

/* ---------- page hero (title + intro) ---------- */

.page-hero {
  display: flex; flex-direction: column; gap: 16px;
  max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto;
  padding: 48px var(--gutter);
  text-align: center;
}
.page-hero--wide { max-width: calc(880px + 2 * var(--gutter)); }
.page-hero__title { font-stretch: 75%; font-weight: 900; font-size: 80px; line-height: 80px; letter-spacing: -.02em; }
.page-hero__intro { font-size: 20px; line-height: 28px; }
@media (min-width: 992px) {
  .page-hero { gap: 24px; padding-top: 96px; padding-bottom: 96px; }
  .page-hero__title { font-size: 120px; line-height: 120px; }
  .page-hero__intro { font-size: 24px; line-height: 32px; }
}

/* ---------- label (category): label/sm, 4px x 12px, status fill per topic ---------- */

.label--cat { align-self: center; padding: 3px 12px; font-size: 14px; line-height: 16px; }
.label--info { background: var(--brand-tertiary); }
.label--warning { background: var(--status-warning); }
.label--success { background: var(--status-success); }
.label--brand { background: var(--brand-secondary); }

.avatar { flex: none; width: 48px; height: 48px; border: 1px solid var(--border-solid); border-radius: 50%; object-fit: cover; }

/* ==========================================================================
   FAQs: topics of accordion rows (accordion 328:4637). Native <details>, so it works
   without the script; each answer opens and shuts on its own.
   ========================================================================== */

.faq { display: flex; flex-direction: column; gap: 64px; max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 96px; }
.faq-topic { display: flex; flex-direction: column; gap: 16px; }
.faq-topic__title { text-align: center; font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
@media (min-width: 992px) {
  .faq { gap: 96px; padding-bottom: 160px; }
  .faq-topic { gap: 24px; }
  .faq-topic__title { font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
}

.accordion__item { border-bottom: 1px solid var(--border-subtle); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__trigger {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  font-size: 16px; line-height: 24px; font-weight: 600;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.accordion__trigger::-webkit-details-marker { display: none; }
.accordion__trigger > span:first-child { flex: 1; }
.accordion__trigger > span:first-child { text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms var(--ease); }
.accordion__trigger:hover > span:first-child { text-decoration-color: currentColor; }
.accordion__trigger:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 2px; border-radius: 4px; }
.accordion__trigger .icon { transition: transform 300ms var(--ease); }
.accordion__item[open]:not(.is-closing) .accordion__trigger .icon { transform: rotate(180deg); }
.accordion__content { overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 0 32px 16px 0; font-size: 16px; line-height: 24px; }
.accordion__content a { text-underline-offset: 3px; }
@media (min-width: 992px) {
  .accordion__trigger { gap: 24px; padding: 24px 0; font-size: 20px; line-height: 28px; }
  .accordion__content { padding: 0 48px 24px 0; }
}

/* ==========================================================================
   Learn: topic chips, then the cards (blog-card 335:5195).
   ========================================================================== */

.learn { padding: 0 var(--gutter) 96px; }
@media (min-width: 992px) { .learn { padding-bottom: 160px; } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 345px; margin: 0 auto 32px; }
@media (min-width: 768px) { .chips { max-width: none; margin-bottom: 48px; } }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border-solid); border-radius: var(--radius-full);
  background: var(--bg-surface); color: var(--fg-primary);
  font-size: 14px; line-height: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.chip .icon { display: none; }
.chip.is-active { background: var(--brand-secondary); }
.chip.is-active .icon { display: inline-block; }

.posts { display: grid; gap: 40px; max-width: 1032px; margin: 0 auto; }
@media (min-width: 768px) { .posts { grid-template-columns: 1fr 1fr; gap: 64px 48px; } }
.posts--three { max-width: none; }
@media (min-width: 768px) and (max-width: 1199px) { .posts--three .post-card:nth-child(3) { display: none; } }
/* on phones the related cards are a swipe row: the next card peeks in */
@media (max-width: 767px) {
  .posts--three {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  }
  .posts--three::-webkit-scrollbar { display: none; }
  .posts--three .post-card { flex: 0 0 80%; scroll-snap-align: start; }
}
@media (min-width: 1200px) { .posts--three { grid-template-columns: repeat(3, 1fr); } }
.post-card[hidden] { display: none; }

.post-card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.post-card__img { aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid var(--border-solid); border-radius: 24px; background: var(--bg-surface); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card--songs .post-card__img img { object-position: 50% 50%; }
.post-card__text { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.post-card__title { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.post-card__link { text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 24px; } /* the whole card is the link */
.post-card__link:focus-visible { outline: none; }
.post-card__link:focus-visible::after { outline: 2px solid var(--brand-secondary); outline-offset: 4px; }
/* The hover underline is for mouse devices only: on touch screens :hover sticks after a tap and the titles look underlined. */
@media (hover: hover) {
  .post-card__title { text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms var(--ease); }
  .post-card:has(.post-card__link):hover .post-card__title { text-decoration-color: currentColor; }
}
.post-card__excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--fg-secondary); font-size: 16px; line-height: 24px;
}
.post-card__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--fg-tertiary); font-size: 12px; line-height: 12px; }

/* ---------- article (Learn article 337:5417) ---------- */

.article__header {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto;
  padding: 32px var(--gutter);
  text-align: center;
}
.back-link {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--brand-secondary); font-size: 14px; line-height: 16px; font-weight: 600;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--ease);
}
.back-link:hover { text-decoration-color: currentColor; }
.article__title { font-stretch: 75%; font-weight: 900; font-size: 40px; line-height: 48px; letter-spacing: -.02em; }
.article__lead { color: var(--fg-secondary); font-size: 20px; line-height: 28px; }
.author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.author__byline { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.author__name { font-size: 16px; line-height: 20px; font-weight: 600; }
.author__meta { display: flex; gap: 8px; color: var(--fg-secondary); font-size: 14px; line-height: 16px; }

.article__hero { max-width: calc(1032px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.article__hero img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }

.article__body {
  display: flex; flex-direction: column; gap: 16px;
  max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto;
  padding: 40px var(--gutter);
  text-align: center; font-size: 16px; line-height: 24px;
}
.article__body h2 { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.ticks { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ticks li { display: flex; gap: 8px; text-align: left; }
.ticks .icon { color: var(--brand-secondary); }
.pull-quote { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.pull-quote p { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.pull-quote footer { color: var(--fg-secondary); font-size: 14px; line-height: 16px; }
.article__body figure { display: flex; flex-direction: column; gap: 12px; }
.article__body figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.article__body figcaption { color: var(--fg-secondary); font-size: 14px; line-height: 20px; }

@media (min-width: 992px) {
  .article__header { gap: 24px; padding-top: 64px; padding-bottom: 48px; }
  .article__title { font-size: 56px; line-height: 64px; }
  .article__lead { font-size: 24px; line-height: 32px; }
  .article__hero img { aspect-ratio: 1032 / 580; }
  .article__body { gap: 24px; padding-top: 64px; padding-bottom: 64px; font-size: 18px; line-height: 28px; }
  .article__body h2 { font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
  .ticks { font-size: 16px; line-height: 24px; }
}

.more-posts { padding: 24px var(--gutter) 96px; } /* sits right under the article, which pads its own bottom */
.more-posts__title { margin-bottom: 24px; text-align: center; font-stretch: 75%; font-weight: 900; font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
@media (min-width: 992px) {
  .more-posts { padding-top: 32px; padding-bottom: 160px; }
  .more-posts__title { margin-bottom: 40px; font-size: 40px; line-height: 48px; }
}

/* ==========================================================================
   Feedback: scrapbook mosaic of quote cards (feedback-card 343:5704), then
   "Got something to say?" and the drawer that sends to ClickUp.
   Phones: one column, tilt ≤1°. Tablets: two columns. Desktop: the four
   Figma columns, each starting a little lower or higher, tilt ±1–2°.
   ========================================================================== */

.mosaic { padding: 16px var(--gutter) 96px; }
.mosaic__col { display: contents; }
.fb-card { break-inside: avoid; margin: 0 0 24px; }
@media (min-width: 768px) and (max-width: 1199px) { .mosaic { columns: 2; column-gap: 24px; } }
@media (min-width: 1200px) {
  .mosaic { display: flex; align-items: flex-start; gap: 24px; max-width: calc(1352px + 2 * var(--gutter)); margin: 0 auto; }
  .mosaic__col { display: flex; flex: 1 0 0; flex-direction: column; gap: 24px; min-width: 0; }
  .mosaic__col--2 { padding-top: 40px; }
  .mosaic__col--3 { padding-top: 12px; }
  .mosaic__col--4 { padding-top: 56px; }
  .fb-card { margin: 0; }
}

.fb-card {
  --fb-bg: var(--bg-surface); --fb-fg: var(--fg-primary); --fb-fg2: var(--fg-secondary);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 32px 24px;
  border: 1px solid var(--border-solid); border-radius: var(--radius-16);
  box-shadow: 0 3px 0 var(--border-solid);
  background: var(--fb-bg); color: var(--fb-fg);
  text-align: center;
  rotate: calc(var(--tilt, 0deg) / 2);
}
@media (min-width: 768px) { .fb-card { rotate: var(--tilt, 0deg); } }
.fb-card--aqua { --fb-bg: var(--brand-tertiary); }
.fb-card--yellow { --fb-bg: var(--brand-quaternary); }
.fb-card--orange { --fb-bg: var(--brand-secondary); }
.fb-card--green { --fb-bg: var(--brand-primary); --fb-fg: var(--fg-invert); --fb-fg2: var(--fg-invert-secondary); }
.fb-card__source { color: var(--fb-fg2); font-size: 12px; line-height: 12px; }
.fb-card--headline .fb-card__quote { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.fb-card--story .fb-card__quote { font-size: 20px; line-height: 28px; }
.fb-card__quote strong { font-weight: 600; }
.fb-card__person { display: flex; align-items: center; gap: 8px; text-align: left; }
.fb-card__person > span { display: flex; flex-direction: column; gap: 8px; }
.fb-card__name { font-size: 16px; line-height: 20px; font-weight: 600; }
.fb-card__role { color: var(--fb-fg2); font-size: 14px; line-height: 16px; }

.share { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 96px; text-align: center; }
.share__title { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.share__body { font-size: 20px; line-height: 28px; }
.share__btn { width: 100%; }
@media (min-width: 768px) {
  .share { padding-bottom: 160px; }
  .share__title { font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
  .share__btn { width: auto; }
}

/* ---------- feedback drawer (a native <dialog>: focus trap, Esc and the backdrop come for free).
   Not in the Figma file yet; built from the design-system tokens: phones get a bottom sheet,
   larger screens a panel on the right. ---------- */

.drawer {
  width: 100%; max-width: 100%; height: auto; max-height: 92dvh;
  margin: auto 0 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0; border-top: 2px solid var(--border-solid);
  background: var(--bg-default); color: var(--fg-primary);
}
.drawer::backdrop { background: rgba(4, 17, 6, .5); }
@media (min-width: 768px) {
  .drawer { width: 480px; max-height: none; height: 100dvh; margin: 0 0 0 auto; border: 0; border-left: 2px solid var(--border-solid); border-radius: 0; }
}
.drawer[open] { animation: drawer-up 300ms var(--ease); }
@media (min-width: 768px) { .drawer[open] { animation-name: drawer-in; } }
@keyframes drawer-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }

.drawer__panel { display: flex; flex-direction: column; min-height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 8px 24px; }
.drawer__title { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.drawer__body { display: flex; flex-direction: column; gap: 16px; padding: 8px 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.drawer__intro { color: var(--fg-secondary); }
.drawer__error { padding: 12px 16px; border: 1px solid var(--border-solid); border-radius: var(--radius-8); background: var(--status-warning); font-size: 14px; line-height: 20px; }
.drawer__send { margin-top: 8px; }
.drawer__body[hidden] { display: none; }
.drawer__done { align-items: flex-start; }
.drawer__done-title { font-stretch: 75%; font-weight: 900; font-size: 32px; line-height: 40px; letter-spacing: -.02em; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.field-row .field--age { flex: 0 0 96px; }
.field__label { font-size: 14px; line-height: 16px; font-weight: 600; }
.field__opt { color: var(--fg-secondary); font-weight: 400; }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--border-solid); border-radius: var(--radius-16);
  background: var(--bg-surface); color: var(--fg-primary);
  font: inherit; font-size: 16px; line-height: 24px;
}
textarea.field__input { resize: vertical; }
.field__input:focus { outline: 2px solid var(--brand-secondary); outline-offset: 1px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand-primary); }


/* ---------- Learn extras: links in copy, call to action, quick answers, links styled as chips and labels ---------- */

a.label, a.chip { text-decoration: none; }
.article__body a:not(.btn) { color: var(--brand-secondary); text-decoration-line: underline; text-underline-offset: 3px; }

.cta {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px; border: 2px solid var(--border-solid); border-radius: 24px; background: var(--bg-surface);
}
.cta__title { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.cta__btn { width: 100%; }
@media (min-width: 768px) { .cta { padding: 32px; } .cta__btn { width: auto; } }
@media (min-width: 992px) { .cta__title { font-size: 32px; line-height: 40px; letter-spacing: -.02em; } }
.article__body .accordion { text-align: left; }

/* A nudge to join, in the halfway image's place: brand green with the site's black stroke, centred like the rest of the page, with an orange button. */
.nudge {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 24px; border: 2px solid var(--border-solid); border-radius: 24px;
  background: var(--brand-primary); color: var(--fg-invert); text-align: center;
}
.nudge__text { max-width: 640px; font-size: 16px; line-height: 24px; }
.nudge .btn { --btn-bg: var(--brand-secondary); --btn-fg: var(--fg-primary); }
@media (min-width: 768px) { .nudge { padding: 16px 32px; } }

/* ==========================================================================
   About (Figma: About 486:6026, lg 487:6034, sm 488:6138). Centred sections on a
   720 measure, a green "our name" band, three sample cards, info-cards
   (a swipe row on phones, three-up from 992).
   ========================================================================== */

.about-section { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 0 0 96px; }
.about-section--green { padding: 96px 0; background: var(--brand-primary); color: var(--fg-invert); }
.about-section--green + .about-section { padding-top: 96px; } /* sections only pad their bottom, and the green band's sits behind its own background */
.about-section--last { padding-bottom: 160px; }
.about-copy {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; max-width: calc(720px + 2 * var(--gutter)); padding: 0 var(--gutter);
  text-align: center; font-size: 16px; line-height: 24px;
}
.about-head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.about-title { font-stretch: 75%; font-weight: 900; font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
.about-strong { font-size: 20px; line-height: 28px; font-weight: 600; }
.about-small { font-size: 14px; line-height: 20px; color: var(--fg-secondary); }
.about-link { color: var(--brand-secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.about-link:hover { text-decoration-thickness: 2px; }
.about-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; }

/* founders photo: 3:2 on phones, 16:9 from 992, cropped from the bottom to keep both heads in */
.about-photo { width: calc(100% - 2 * var(--gutter)); max-width: 720px; height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-16); object-fit: cover; object-position: 50% 20%; }

/* three sample Twentyfive Cards */
.about-cards { display: flex; justify-content: center; gap: 8px; width: 100%; padding: 0 var(--gutter); }
.about-cards img { width: calc((100% - 16px) / 3); max-width: 272px; height: auto; aspect-ratio: 690 / 1226; object-fit: cover; }

/* info-card: 2px ink border, hard bottom shadow */
.info-cards {
  display: flex; gap: 16px; width: 100%; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.info-cards::-webkit-scrollbar { display: none; }
.info-card {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 280px; scroll-snap-align: start;
  padding: 32px 24px; border: 2px solid var(--border-solid); border-radius: var(--radius-16);
  background: var(--bg-surface); box-shadow: var(--shadow-md); text-align: center;
}
.info-card h3 { font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 32px; }
.info-card p { color: var(--fg-secondary); font-size: 16px; line-height: 24px; }
.info-card__link { padding-top: 8px; color: var(--brand-secondary); font-weight: 600; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; }
.info-card__link:hover { text-decoration-thickness: 2px; }

@media (min-width: 992px) {
  .about-section { gap: 40px; padding-bottom: 120px; }
  .about-section--green { padding: 120px 0; }
  .about-section--green + .about-section { padding-top: 120px; }
  .about-section--last { padding-bottom: 160px; }
  .about-photo { aspect-ratio: 720 / 405; }
  .about-copy { gap: 24px; font-size: 20px; line-height: 28px; }
  .about-head { gap: 16px; }
  .about-title { font-size: 40px; line-height: 48px; }
  .about-small { font-size: 14px; line-height: 20px; }
  .about-cards { gap: 48px; }
  .about-cards img { width: 272px; }
  .info-cards { justify-content: center; gap: 48px; max-width: calc(1032px + 2 * var(--gutter)); overflow: visible; }
  .info-card { flex: 1 1 0; width: auto; min-width: 0; }
}
