/* Every page but the home page: About, Livestreaming, the founder profiles,
   the articles and the legal pages, in the home page's design. The frame
   (header, buttons, download section, footer) is in site.css. */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

/* --------------------------------------------------------------- hero */

.hero {
  max-width: 820px;
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  text-wrap: balance;
}

.hero > p {
  margin: 20px 0 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 19px;
}

/* Articles and profiles: the date under the title. */
.article-page .hero,
.article-page .article-actions,
.article-page main > .long-article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .hero {
  padding-bottom: 20px;
}

.article-page .hero > p {
  font-size: 15px;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.about-highlights span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  color: var(--muted);
}

.about-highlights a {
  color: var(--ink);
  text-decoration: none;
}

.about-highlights span:has(a):hover {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}

/* ------------------------------------------------------------- content */

main {
  display: block;
}

main > section {
  max-width: 820px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

main h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 16px;
}

main h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

main p,
main li {
  color: var(--muted);
}

main p {
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

main strong {
  color: var(--ink);
}

main a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Buttons in content are the look's color unless they're ghosts. */
.page .btn {
  /* Long labels wrap on small phones; the header button never does. */
  white-space: normal;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
}

.page .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.page .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
}

.notice {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  background: var(--card);
}

/* Legal pages: numbered sections, plain and readable. */
.legal main > section {
  padding: 0 0 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal main h2 {
  font-size: 22px;
}

/* --------------------------------------------------------------- about */

.about-values {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--wash-a) 16%, transparent), transparent 70%),
    var(--card);
}

.profiles-stack {
  display: grid;
  gap: 18px;
}

.profile-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.profile-copy h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.profile-copy p {
  overflow-wrap: anywhere;
  margin-bottom: 8px;
  font-size: 16px;
}

.profile-copy .btn {
  margin-top: 8px;
}

.about-cta-panel {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* ------------------------------------------------------------ articles */

.article-actions {
  margin: 0 0 20px;
}

.long-article {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.long-article p {
  color: #cfd6dd;
  margin-bottom: 20px;
}

.long-article h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 3vw, 30px);
}

.long-article ul,
.long-article ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.long-article li {
  margin-bottom: 8px;
  color: #cfd6dd;
}

.long-article-cover {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 25%;
  margin: 0 0 36px;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.article-inline-shot {
  margin: 32px 0;
}

.article-inline-shot img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.article-inline-shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Breadcrumbs and the date line above an article. */
.crumbs {
  display: flex;
  gap: 8px;
  max-width: 760px;
  margin: clamp(28px, 5vw, 48px) auto 0;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.article-page .crumbs + .hero {
  padding-top: 18px;
}

.hero .meta {
  margin-top: 14px !important;
  font-size: 14px !important;
  color: var(--muted);
}

/* Real app screens, shown as phones beside the text. */
.article-shot {
  margin: 32px auto;
  max-width: 300px;
  text-align: center;
}

.article-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 6px solid #050607;
  box-shadow: 0 0 0 1px #2b2f34, 0 24px 50px -16px rgba(0, 0, 0, 0.7);
}

.article-shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.long-article code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--card);
  font-size: 0.9em;
}

/* Comparison tables. */
.table-wrap {
  margin: 24px 0 28px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #cfd6dd;
}

.table-wrap th {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.article-faq {
  margin-top: 44px;
}

.article-faq details p {
  font-size: 17px;
}

/* "Keep reading" under an article. */
.related {
  max-width: none !important;
  margin: 24px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

/* The articles index: sections of cards. */
.articles-list {
  max-width: none;
}

.articles-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  max-width: none !important;
}

.articles-section-title {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.articles-section-title h2 {
  margin-bottom: 6px;
}

.articles-section-title p {
  margin: 0;
}

.article-teaser {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-teaser:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 22px;
}

.article-body .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

.article-body h2 {
  font-size: 21px;
  margin-bottom: 8px;
}

.article-body h2 a {
  color: var(--ink) !important;
  text-decoration: none !important;
}

/* The title's link covers the whole card, so a tap anywhere opens it. */
.article-body h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.article-teaser:focus-within {
  border-color: var(--primary);
}

.article-body p {
  font-size: 15px;
}

.article-body .btn {
  align-self: flex-start;
  margin-top: auto;
  background: transparent;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

/* ------------------------------------------------------- livestreaming */

.livestream-shell > section {
  max-width: none;
}

.live-mini-label,
.live-metric-label {
  display: block;
  margin: 0 0 8px;
  color: var(--primary);
  font: 700 12px/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-metric-label {
  color: var(--muted);
  font-weight: 600;
}

.livestream-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 24px;
}

.livestream-page-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}

.livestream-lead {
  margin-top: 20px !important;
  font-size: 19px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.livestream-hero-statline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.livestream-stat-chip,
.live-visual-card,
.livestream-value-card,
.livestream-detail-card,
.product-card,
.community-item {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}

.livestream-stat-chip {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
}

.livestream-stat-value {
  font: 800 26px/1.1 var(--display);
}

.livestream-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.livestream-page-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.live-visual-card {
  padding: 20px;
}

.live-earnings-top strong {
  display: block;
  font: 800 64px/1 var(--display);
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.live-earnings-top span {
  display: block;
  margin: 8px 0 12px;
  font-weight: 600;
}

.live-earnings-copy {
  font-size: 14px;
}

.live-earnings-metrics {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.live-earnings-metrics div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.live-earnings-metrics strong {
  font: 700 20px/1.2 var(--display);
}

.live-gift-row {
  display: flex;
  gap: 10px;
}

.live-gift-row img {
  width: 38px;
  height: 38px;
}

.livestream-screen-head span {
  font-size: 13px;
  color: var(--muted);
}

.livestream-screen-shell {
  position: relative;
  margin-top: 14px;
}

.phone-frame {
  border-radius: 28px;
  border: 6px solid #050607;
  box-shadow: 0 0 0 1px #2b2f34, 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.phone-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.livestream-floating-note {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 14, 0.82);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.note-a {
  top: 12%;
  right: -6px;
}

.note-b {
  top: 52%;
  left: -6px;
}

.note-c {
  bottom: 10%;
  right: -6px;
}

.livestream-value-band,
.livestream-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.livestream-value-card,
.product-card,
.community-item {
  padding: 22px;
}

.livestream-value-card h2,
.product-card h3 {
  font-size: 22px;
}

.livestream-money-grid,
.livestream-story-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.livestream-split-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.livestream-split-list > div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}

.livestream-split-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 18px;
}

.livestream-money-visuals {
  display: grid;
  gap: 14px;
}

.livestream-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.livestream-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.livestream-photo-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.livestream-photo-overlay h3 {
  margin: 0;
  font-size: 20px;
}

.livestream-detail-card {
  padding: 20px;
}

.customization-list {
  margin: 0;
  padding-left: 20px;
}

.customization-list li {
  margin-bottom: 8px;
}

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

.community-item h3 {
  font-size: 18px;
}

.community-item p {
  margin: 0;
  font-size: 15px;
}

.livestream-faq {
  max-width: 820px;
}

.section-head {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------- small */

@media (max-width: 860px) {
  .livestream-page-hero,
  .livestream-money-grid,
  .livestream-story-band {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-photo {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .livestream-page-visuals,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .livestream-hero-statline {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .long-article {
    font-size: 17px;
  }

  .hero > p {
    font-size: 17px;
  }
}
