/* AiCasso home page. Other Universe pages keep css/site.css.
   Colours, greys and radii are the app's own tokens (app_theme.dart,
   app_persona_styles.dart) so the real screens sit flush on the page. */

:root {
  --bg: #0a0a0a;
  --band: #121212;
  --card: #151515;
  --card-2: #1e1e1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f5f5f5;
  --ink-2: #b8b8b8;
  --ink-3: #8d8d8d;
  --orange: #ff5722;
  --amber: #ffc822;
  --paper: #f4efe8;
  --paper-ink: #17130f;
  --paper-ink-2: #4a4038;
  --paper-ink-3: #6b6158;
  --ring: linear-gradient(90deg, var(--orange), var(--amber));
  --radius-card: 20px;
  --radius-dialog: 24px;
  --radius-pill: 999px;
  --wrap: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 1600px) {
  :root {
    --wrap: 1280px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.header-nav {
  display: none;
  gap: 32px;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-cta {
  margin-left: auto;
  transition: opacity 160ms ease-out;
}

/* Compound selectors so these win over .web-cta's display. */
.header-cta.header-cta--web {
  display: none;
}

.site-header.is-page-cta-visible .header-cta {
  visibility: hidden;
  opacity: 0;
}

@media (min-width: 760px) {
  .header-cta.header-cta--web {
    display: inline-flex;
  }

  .header-cta.header-cta--get {
    display: none;
  }
}

@media (min-width: 860px) {
  .header-nav {
    display: flex;
  }

  .header-cta {
    margin-left: 8px;
  }
}

/* Calls to action: official store badges first, then the web app button.
   The button is the app's own gradient-ring pill (the Personas opener chips). */

.cta-block {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 16px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  height: 50px;
  border-radius: 10px;
}

.store-badge img {
  height: 100%;
  width: auto;
}

/* Google's badge artwork carries a transparent margin; the negative margin
   keeps the visible badge 50px tall at its true ratio (about 169 x 50). */
.store-badge--google img {
  height: 75px;
  max-width: none;
  margin: -12.5px;
}

.web-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--ring) border-box;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease-out;
}

.web-cta:hover {
  background: linear-gradient(#2e1912, #2e1912) padding-box, var(--ring) border-box;
}

.web-cta:active {
  background: linear-gradient(#3a1f15, #3a1f15) padding-box, var(--ring) border-box;
}

.web-cta:focus-visible {
  border-radius: var(--radius-pill);
}

.web-cta__icon {
  flex: none;
  color: var(--amber);
}

.web-cta--sm {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.cta-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 374px) {
  .store-row,
  .cta-block {
    gap: 12px;
  }

  .store-badge {
    height: 40px;
  }

  .store-badge--google img {
    height: 60px;
    margin: -10px;
  }

  .web-cta {
    min-height: 46px;
    font-size: 0.9375rem;
  }
}

/* Real app screens, shown without a drawn device frame */

.screen-crop {
  margin: 0;
}

.screen-crop img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  background: var(--bg);
}

/* Hero */

.hero {
  padding: 24px 0 0;
}

.hero-grid {
  display: grid;
}

.hero h1 {
  max-width: 15em;
  font-size: clamp(2.5rem, 1.7rem + 2.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-lede {
  max-width: 32rem;
  margin: 16px 0 28px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

.hero-screen {
  width: 100%;
  margin-top: 40px;
}

/* The crop ends under the adoptable kitten; its flat bottom edge sits on the
   Create band like a screen that continues below the fold. */
.hero-screen img {
  aspect-ratio: 780 / 1227;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 28px 28px 0 0;
}

@media (min-width: 720px) {
  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: end;
  }

  .hero-copy {
    align-self: center;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-screen {
    width: 100%;
    max-width: 420px;
    margin-top: 0;
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    gap: 64px;
  }

  .hero-copy {
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 1.7rem + 2.6vw, 4.25rem);
  }
}

@media (min-width: 1200px) {
  .hero-screen {
    max-width: 460px;
  }
}

/* Story: three different shapes, not five clones */

.chapter {
  padding: 72px 0;
}

.chapter-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.chapter-label img {
  border-radius: 8px;
}

.chapter h2 {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1.08;
}

.chapter-copy {
  max-width: 30rem;
}

.chapter-copy > p:not(.chapter-label) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* Create: real creations on the #121212 band */

.chapter--create {
  background: var(--band);
}

.creations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "video image"
    "song song";
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0;
}

.creation {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.creation--tall {
  grid-area: video;
  aspect-ratio: 4 / 5;
}

.creation--square {
  grid-area: image;
  aspect-ratio: 4 / 5;
}

.creation--tall video:focus-visible {
  outline-offset: -3px;
}

.creation--tall video,
.creation--square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creation--portrait img {
  object-position: 50% 18%;
}

.video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  cursor: pointer;
}

.video-toggle svg {
  width: 18px;
  height: 18px;
}

.video-toggle[data-state="paused"] .video-toggle__pause,
.video-toggle[data-state="playing"] .video-toggle__play {
  display: none;
}

.video-toggle[hidden] {
  display: none;
}

.creation--song {
  grid-area: song;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "button meta"
    "progress progress";
  align-content: end;
  align-items: center;
  gap: 14px 12px;
  padding: 16px;
}

.song-toggle {
  grid-area: button;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.song-toggle:hover {
  background: #ff6a3d;
}

.song-toggle svg {
  width: 20px;
  height: 20px;
}

.song-toggle__pause,
.song-toggle[aria-pressed="true"] .song-toggle__play {
  display: none;
}

.song-toggle[aria-pressed="true"] .song-toggle__pause {
  display: block;
}

.song-meta {
  grid-area: meta;
  line-height: 1.3;
}

.song-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
}

.song-meta span {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The song's own waveform; the played part turns amber. */
.song-wave {
  grid-area: progress;
  position: relative;
  display: block;
  height: 36px;
}

.song-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.song-wave__base {
  fill: rgba(255, 255, 255, 0.22);
}

.song-wave__fill {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc((1 - var(--progress, 0)) * 100%) 0 0);
}

.song-wave__played {
  fill: var(--amber);
}

.creations figcaption {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* Pets: the real Pets app is a light UI, so it gets a warm paper band */

.chapter--pets {
  background: var(--paper);
  color: var(--paper-ink);
}

.chapter--pets .chapter-label {
  color: var(--paper-ink-3);
}

.chapter--pets .chapter-copy > p:not(.chapter-label) {
  color: var(--paper-ink-2);
}

.pets-screen {
  width: 100%;
  max-width: 560px;
}

/* The room card's own bottom corners are part of the capture. */
.pets-screen img {
  border-radius: 20px 20px 7.5% 7.5% / 20px 20px 9.1% 9.1%;
  outline-color: rgba(0, 0, 0, 0.08);
  background: var(--paper);
}

/* Adventures, Personas and Quizzes: one row of three */

.trio {
  padding: 64px 0;
  background: var(--bg);
}

.trio-grid {
  display: grid;
  gap: 56px;
}

.trio-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  max-width: 560px;
}

.trio-item h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.15;
}

.trio-item > p:not(.chapter-label) {
  margin: 10px 0 24px;
  color: var(--ink-2);
  font-size: 1rem;
}

.trio-item .screen-crop {
  align-self: end;
}

.also-line {
  max-width: 44rem;
  margin-top: 56px;
  color: var(--ink-2);
  font-size: 1rem;
}

.also-line strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 720px) {
  .chapter {
    padding: 96px 0;
  }

  .chapter--create .chapter-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
  }

  .chapter--create .chapter-copy {
    max-width: 28rem;
  }

  .creations {
    grid-template-areas:
      "video image"
      "video song";
    justify-self: end;
  }

  .creation--tall {
    aspect-ratio: auto;
  }

  .creation--square {
    aspect-ratio: 1;
  }

  .creation--song {
    align-content: center;
  }

  .chapter--pets .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .chapter--pets .pets-screen {
    order: -1;
  }

  /* Until three fit across, each screen sits beside its own text. */
  .trio {
    padding: 96px 0;
  }

  .trio-grid {
    gap: 72px;
  }

  .trio-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    grid-template-rows: auto auto 1fr;
    column-gap: 40px;
    max-width: none;
  }

  .trio-item > :not(.screen-crop) {
    grid-column: 1;
  }

  .trio-item .screen-crop {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
  }

  .also-line {
    margin-top: 72px;
  }
}

@media (min-width: 960px) {
  .chapter {
    padding: 128px 0;
  }

  .chapter--create .chapter-grid {
    gap: 64px;
  }

  .chapter--pets .chapter-grid {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 64px;
  }

  .trio {
    padding: 112px 0;
  }

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

  .trio-item {
    grid-template-columns: none;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 0;
  }

  .trio-item > :not(.screen-crop),
  .trio-item .screen-crop {
    grid-column: auto;
    grid-row: auto;
  }

  .trio-item .screen-crop {
    align-self: end;
  }

  .trio-item h2 {
    min-height: 2.3em;
  }
}

/* Community feed (cards are built by js/feed.js) */

.community {
  padding: 64px 0;
  background: var(--band);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-head h2,
.faq h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem);
  line-height: 1.1;
}

.section-head p {
  max-width: 34rem;
  color: var(--ink-2);
}

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

.feed-skeleton {
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: var(--card);
}

.feed-skeleton:first-child {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.feed-card {
  position: relative;
}

.feed-card:first-child {
  grid-column: span 2;
}

.feed-preview-trigger,
.feed-card > a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.feed-card:first-child .feed-media {
  aspect-ratio: 4 / 3;
}

.feed-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pet artwork is a full-body sprite; it sits on the Pets band's paper. */
.feed-media--sprite {
  background: var(--paper);
  outline-color: rgba(0, 0, 0, 0.06);
}

/* Pet thumbnails carry a wide transparent margin; scale the art up from its
   base so the pet fills the tile and sits just above the title. */
.feed-media--sprite > img {
  object-fit: contain;
  object-position: 50% 100%;
  padding: 0 0 16%;
  transform: scale(1.35);
  transform-origin: 50% 84%;
}

.feed-card:has(.feed-media--sprite) .feed-body {
  background: none;
  color: var(--paper-ink);
}

/* Hover ring drawn above the image; keyboard focus uses the page's amber ring. */
.feed-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.feed-preview-trigger:hover .feed-media::after {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.feed-media__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.feed-media__play svg {
  width: 52px;
  height: 52px;
  padding: 15px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
}

.feed-body {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 14px 12px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.86) 0, rgba(10, 10, 10, 0.5) 50%, rgba(10, 10, 10, 0.18) 80%, rgba(10, 10, 10, 0) 100%);
  pointer-events: none;
}

.feed-title {
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.feed-audio,
.feed-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.feed-unavailable svg {
  width: 48px;
  height: 48px;
}

.waveform {
  display: none;
}

.feed-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--ink-3);
}

@media (min-width: 720px) {
  .community {
    padding: 96px 0;
  }

  .feed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .feed-card:first-child,
  .feed-skeleton:first-child {
    grid-row: span 2;
  }

  .feed-card:first-child .feed-media,
  .feed-skeleton:first-child {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Preview dialog */

body.preview-open {
  overflow: hidden;
}

.media-preview {
  width: min(100% - 24px, 720px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-dialog);
  background: var(--card);
  color: var(--ink);
  outline: 1px solid var(--line-strong);
}

.media-preview::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.media-preview__panel {
  display: grid;
  max-height: calc(100dvh - 24px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.media-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 12px 24px;
}

.media-preview__type {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.media-preview__header h2 {
  font-size: 1.25rem;
}

.media-preview__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--ink);
  cursor: pointer;
}

.media-preview__close svg {
  width: 20px;
  height: 20px;
}

.media-preview__stage {
  display: grid;
  place-items: center;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  max-height: min(70dvh, 640px);
  padding: 0 16px;
}

.media-preview__image,
.media-preview__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 16px;
  background: var(--card-2);
}

.media-preview__audio {
  display: grid;
  gap: 16px;
  width: 100%;
}

.media-preview__audio-artwork {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.media-preview__audio-label {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.media-preview__audio-player {
  width: 100%;
}

.media-preview__error {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--ink-3);
}

.media-preview__error svg {
  width: 48px;
  height: 48px;
}

.media-preview__details {
  display: grid;
  gap: 12px;
  padding: 16px 24px 24px;
}

.media-preview__details p {
  color: var(--ink-2);
}

.media-preview__details p:empty {
  display: none;
}

.media-preview__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* FAQ */

.faq {
  padding: 64px 0;
  background: var(--bg);
}

.faq-head {
  margin-bottom: 24px;
}

.faq-head p {
  margin-top: 12px;
  color: var(--ink-2);
}

.faq-head a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-2);
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 160ms ease-out;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 38rem;
  padding: 0 0 24px;
  color: var(--ink-2);
}

.faq-item a {
  color: var(--ink);
  text-underline-offset: 4px;
}

@media (min-width: 960px) {
  .faq {
    padding: 96px 0;
  }

  .faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
  }

  .faq-list {
    max-width: none;
  }
}

/* Closing */

.closing {
  padding: 64px 0;
  background: var(--band);
}

.closing-grid {
  display: grid;
  gap: 28px;
}

.closing h2 {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1.08;
}

.closing-copy p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

@media (min-width: 720px) {
  .closing {
    padding: 96px 0;
  }

  .closing-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .closing-grid {
    gap: 64px;
  }
}

/* Footer */

.site-footer {
  padding: 48px 0 32px;
  background: var(--bg);
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
}

.footer-social a:hover {
  background: var(--card-2);
}

.footer-column {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-column h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.875rem;
  letter-spacing: 0;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.footer-legal {
  max-width: 48rem;
  font-size: 0.75rem;
}

@media (max-width: 559px), (pointer: coarse) {
  .footer-column {
    gap: 0;
  }

  .footer-column a {
    padding: 10px 0;
  }
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header-cta,
  .faq-item summary::after {
    transition: none;
  }
}
