/* Homepage, on top of buy.css (tokens, top bar, title, card ring, buttons, motion, footer) */

.home__main {
  flex: 1 0 auto;
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-bottom: 1rem;
}

.home .hero { margin-bottom: 3rem; }

/* Features: the shared card's ring, a 2x2 grid inside */

.features { margin-bottom: 2.5rem; }
.features .card__body { padding: 0; overflow: hidden; }
.features__row { display: flex; }
.features__row + .features__row { border-top: 1px solid var(--line); }

.feature { flex: 1 1 0; min-width: 0; padding: 1.35rem 1.25rem; transition: background-color 160ms var(--enter); }
.feature:hover { background: rgba(255, 255, 255, 0.015); }
.feature + .feature { border-left: 1px solid var(--line); }

.feature__icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.feature__icon svg { width: 15px; height: 15px; }
.feature__icon--1 { background: rgba(59, 130, 246, 0.08); color: var(--primary-light); }
.feature__icon--2 { background: rgba(139, 92, 246, 0.08); color: #a78bfa; }
.feature__icon--3 { background: rgba(6, 182, 212, 0.08); color: var(--accent); }
.feature__icon--4 { background: rgba(245, 158, 11, 0.08); color: var(--warn); }
.feature__title { font-size: 0.8rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.feature__line { font-size: 0.7rem; line-height: 1.45; color: var(--text-faint); }

/* Discord, Buy Polar, Docs */

.home__actions { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }

/* Sections below the hero: the shop's .sec, .plain, .ticks and .faq */

.secs { width: 100%; max-width: 880px; container-type: inline-size; display: grid; gap: 40px; margin: 3.5rem 0 1rem; }
.hero + .secs, .hero__note + .secs { margin-top: 0; } /* subpages: straight under the title */
.hero__note { margin: -1.25rem 0 2rem; font-size: 0.8rem; color: var(--plus); text-align: center; }
.sec__text { font-size: 0.84rem; line-height: 1.6; color: var(--text-dim); text-align: center; max-width: 64ch; justify-self: center; text-wrap: pretty; }
.sec__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.secs .faq { max-width: none; } /* every block the full width here */
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }

/* Link cards (homepage): one shape, each a link */

.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link { display: grid; gap: 0.4rem; align-content: start; padding: 1.2rem 1.25rem; color: var(--text); text-decoration: none; transition: border-color 160ms var(--enter); }
.link:hover { border-color: var(--line-strong); color: var(--text); }
.link > svg.i { width: 18px; height: 18px; margin-bottom: 0.2rem; color: var(--accent-label); }
.link__title { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.02em; }
.link__line { font-size: 0.82rem; line-height: 1.5; color: var(--text-dim); }

/* Area panels (/macros): full width, rows in two columns */

.area { display: grid; gap: 0.8rem; padding: 1.35rem 1.4rem; }
.area__name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.area__line { font-size: 0.84rem; line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }
.area__note { padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.78rem; line-height: 1.6; color: var(--text-faint); text-wrap: pretty; }
.area__more { font-size: 0.8rem; font-weight: 600; color: var(--accent-label); text-decoration: none; }
.area__more:hover { color: var(--text); }

/* Download: two paths, then the fakes */

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; }
.path__name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.path .ticks { flex: 1; }
.path .btn { width: 100%; justify-content: center; }
.warn { padding: 1.15rem 1.3rem; border-left: 2px solid var(--warn); }
.warn__title { display: flex; align-items: center; gap: 8px; margin-bottom: 0.45rem; font-size: 0.95rem; font-weight: 800; }
.warn__title svg.i { color: var(--warn); }
.warn p { font-size: 0.84rem; line-height: 1.6; color: var(--text-dim); }
.warn p + p { margin-top: 0.5rem; }

@container (max-width: 640px) {
  .links, .paths, .ticks--cols { grid-template-columns: minmax(0, 1fr); }
}

/* Policy pages: rendered markdown */

.prose { width: 100%; max-width: 760px; margin-bottom: 2rem; font-size: 0.9rem; line-height: 1.7; color: var(--text-dim); }
.prose h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--text); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin: 2rem 0 0.6rem; }
.prose h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin: 1.4rem 0 0.4rem; }
.prose p, .prose ul, .prose ol, .prose table { margin-bottom: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

@media (max-width: 540px) {
  .features__row { flex-direction: column; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .home__actions { flex-direction: column; width: 100%; max-width: 240px; }
  .home__actions .btn { width: 100%; }
  .secs { gap: 32px; margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .feature { transition: none; }
}
