/* =============================================================================
   Redesigned Features and Community pages (2026-10-17, round 2).

   Built from the iOS app's "1C" look: white and mist surfaces, ink text,
   court green as an accent, real app screens in soft phone frames, and plain
   text where other sites would put an icon. Green only ever carries white
   text. Manrope stays the font, as on the rest of the site.
   ========================================================================== */

.pg {
  --ink: #242428;
  --body: #4a4a52;
  --grey: #6d6d78;
  --mist: #f3f3f5;
  --line: #e6e6eb;
  --green: #12a150;
  --green-deep: #0e8743;
  --green-tint: #dcf2e3;
  color: var(--ink);
}

.pg-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.pg-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.pg h1,
.pg h2,
.pg h3 {
  color: var(--ink);
}

.pg-lede {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--body);
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* A real app screen in a soft phone frame. */
.pg-phone {
  display: block;
  width: min(300px, 72vw);
  height: auto;
  margin: 0 auto;
  border-radius: 38px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 60px rgba(36, 36, 40, 0.12), 0 2px 6px rgba(36, 36, 40, 0.06);
}

/* ---------- Hero ----------------------------------------------------------- */

.pg-hero {
  margin-top: -1px;
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
}

.pg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
}

.pg-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pg-hero__media {
  position: relative;
}

/* A second screen tucked behind the first, for depth. */
.pg-hero__media .pg-phone--back {
  position: absolute;
  top: 40px;
  right: 50%;
  width: min(240px, 56vw);
  transform: translateX(-20%) rotate(-6deg);
  opacity: 0.95;
  z-index: 0;
}

.pg-hero__media .pg-phone--front {
  position: relative;
  z-index: 1;
  transform: translateX(14%) rotate(3deg);
}

@media (max-width: 900px) {
  .pg-hero {
    padding: 36px 0 56px;
  }

  .pg-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pg-hero__media .pg-phone--front {
    transform: translateX(10%) rotate(3deg);
  }
}

/* ---------- Proof strip: real app facts, not user counts -------------------- */

.pg-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pg-proof li {
  padding: 28px 20px;
  border-left: 1px solid var(--line);
}

.pg-proof li:first-child {
  border-left: 0;
}

.pg-proof strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.pg-proof span {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--grey);
}

@media (max-width: 760px) {
  .pg-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-proof li:nth-child(3) {
    border-left: 0;
  }

  .pg-proof li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Story rows: screen on one side, words on the other -------------- */

.pg-section {
  padding: 88px 0;
}

.pg-section--mist {
  background: var(--mist);
}

.pg-section__head {
  max-width: 720px;
  margin-bottom: 48px;
}

.pg-section__head h2,
.pg-row h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.pg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.pg-row + .pg-row {
  margin-top: 96px;
}

.pg-row--flip .pg-row__media {
  order: 2;
}

.pg-row__media {
  display: flex;
  justify-content: center;
  padding: 36px 0;
  border-radius: 28px;
  background: var(--mist);
}

.pg-section--mist .pg-row__media {
  background: #ffffff;
}

.pg-row__copy p {
  margin: 16px 0 0;
  max-width: 50ch;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--body);
}

/* Specifics as plain lines, separated by hairlines. No icons. */
.pg-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pg-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--body);
}

.pg-points strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pg-section {
    padding: 64px 0;
  }

  .pg-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pg-row + .pg-row {
    margin-top: 72px;
  }

  .pg-row--flip .pg-row__media {
    order: 0;
  }
}

/* ---------- Tier ladder ------------------------------------------------------ */

.pg-ladder {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-ladder li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Each tier sits a little higher than the last: a climb. */
.pg-ladder li:nth-child(1) { margin-top: 70px; }
.pg-ladder li:nth-child(2) { margin-top: 60px; }
.pg-ladder li:nth-child(3) { margin-top: 50px; }
.pg-ladder li:nth-child(4) { margin-top: 40px; }
.pg-ladder li:nth-child(5) { margin-top: 30px; }
.pg-ladder li:nth-child(6) { margin-top: 20px; }
.pg-ladder li:nth-child(7) { margin-top: 10px; }

.pg-ladder img {
  width: 100%;
  max-width: 96px;
  height: auto;
}

.pg-ladder b {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.pg-ladder small {
  font-size: 0.8rem;
  color: var(--grey);
}

@media (max-width: 760px) {
  .pg-ladder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 24px;
  }

  .pg-ladder li:nth-child(n) {
    margin-top: 0;
  }
}

/* ---------- Badges (the app's achievement art) ----------------------------- */

.pg-badges {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.pg-badges img {
  width: 100%;
  max-width: 96px;
  height: auto;
}

.pg-badges b {
  font-size: 0.92rem;
  font-weight: 700;
}

.pg-badges small {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--grey);
}

@media (max-width: 900px) {
  .pg-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 24px;
  }
}

/* ---------- Text cards: no icons, a number or a word does the work ----------- */

.pg-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.pg-card__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.pg-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pg-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--body);
}

.pg-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  font-weight: 700;
  color: var(--green-deep);
}

@media (max-width: 1000px) {
  .pg-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pg-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pro, explained honestly ----------------------------------------- */

.pg-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.pg-pro__col {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.pg-pro__col--pro {
  border-color: var(--ink);
}

.pg-pro__col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.pg-pro__col h3 img {
  width: 28px;
  height: 28px;
}

.pg-pro__col p {
  margin: 0;
  color: var(--grey);
}

@media (max-width: 760px) {
  .pg-pro {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ------------------------------------------------------------- */

.pg-faq {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

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

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

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

.pg-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s ease;
}

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

.pg-faq details p {
  margin: 0 0 20px;
  max-width: 65ch;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Closing band: green carries white text only ---------------------- */

.pg-cta {
  padding: 80px 0;
  background: var(--green);
  color: #ffffff;
}

.pg-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.pg-cta h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.pg-cta p {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
}

.pg-cta .pg-actions {
  margin-top: 0;
}

/* On green: a white pill and a white outline pill. */
.pg-btn-light,
.pg-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.pg-btn-light {
  background: #ffffff;
  color: var(--ink);
}

.pg-btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.pg-btn-light:hover {
  background: #f1f7f3;
}

.pg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .pg-cta {
    padding: 56px 0;
  }

  .pg-cta__inner {
    grid-template-columns: 1fr;
  }
}

/* A quiet text link under a section. */
.pg-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--green-deep);
}
