/* The dedicated topic pages: /features, /community, /discretion,
   /how-it-works and /about. Builds on landing.css and app-previews.css. */

.pg { overflow-x: clip; }
.pg-crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke-dim); }
.pg-crumb a { color: var(--smoke); }
.pg-crumb a:hover { color: var(--gold-bright); }

/* ---------- hero ---------- */
.pg-hero { position: relative; padding: 160px 0 70px; }
.pg-hero::before { content: ""; position: absolute; inset: 0 0 -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 20% 30%, var(--pg-glow, rgba(107, 26, 48, 0.32)), transparent 72%), radial-gradient(ellipse 40% 40% at 85% 20%, rgba(199, 166, 92, 0.08), transparent 70%); }
.pg-hero h1.display-xl { font-size: clamp(46px, 6.4vw, 92px); max-width: 15ch; margin-top: 18px; }
.pg-hero .section-lede { font-size: 19px; max-width: 58ch; }
.pg-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pg-jump a { padding: 10px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); transition: color .3s ease, box-shadow .3s ease; }
.pg-jump a:hover { color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold); }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- feature rows: words beside a phone, alternating ---------- */
.pg-rows { display: flex; flex-direction: column; gap: 150px; padding: 80px 0 120px; }
.pg-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(50px, 8vw, 120px); align-items: center; scroll-margin-top: 100px; }
.pg-row.flip { grid-template-columns: 360px minmax(0, 1fr); }
.pg-row.flip .pg-copy { order: 2; }
.pg-copy .display-xl { font-size: clamp(36px, 4.2vw, 60px); }
.pg-copy .section-lede { max-width: 52ch; }
.pg-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 560px; }
.pg-points li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.65; color: var(--smoke); }
.pg-points li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-text); box-shadow: 0 0 10px rgba(228, 198, 135, 0.35); }
.pg-points b { color: var(--cream); font-weight: 500; }
.tier-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.45); }
.tier-tag.black { color: #E7A1B4; box-shadow: inset 0 0 0 1px rgba(176, 68, 95, 0.55); }
.tier-tag.all { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.3); }
.pg-more { display: inline-flex; margin-top: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); }
.pg-more::after { content: "→"; margin-left: 8px; transition: transform .3s ease; }
.pg-more:hover::after { transform: translateX(4px); }
.fp-phone { position: relative; display: flex; justify-content: center; }

/* ---------- the feature tour (tabs above a phone and its story) ---------- */
.tour { padding-top: 40px; padding-bottom: 60px; }
.tour-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab { position: relative; flex: 1 0 auto; padding: 16px 18px; border: 0; background: none; cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--smoke-dim); white-space: nowrap; transition: color .3s ease; }
.tour-tab:hover { color: var(--cream); }
.tour-tab.active { color: var(--cream); }
.tour-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-text); transform: scaleX(0); transform-origin: left; }
.tour-tab.active::after { transform: scaleX(1); }
.tour-tab.active.playing::after { animation: tourFill var(--tour-ms, 7000ms) linear forwards; }
.tour.paused .tour-tab.active::after { animation-play-state: paused; }
@keyframes tourFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(50px, 8vw, 120px); align-items: center; }
.tour-copy { min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.tour-panel .display-xl { font-size: clamp(34px, 3.8vw, 54px); }
.tour-panel { animation: panelIn .6s ease; }
.tour-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.tour-cta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); }

/* ---------- card grids ---------- */
.pg-section { padding: 110px 0; }
.pg-head { max-width: 760px; margin-bottom: 50px; }
.pg-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.pg-head.center .section-lede { margin-left: auto; margin-right: auto; }
.pg-head .display-xl { font-size: clamp(36px, 4.4vw, 62px); }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pg-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.16); transition: box-shadow .4s ease, transform .4s ease; }
.pg-card:hover { box-shadow: inset 0 0 0 1px rgba(228, 198, 135, 0.42); transform: translateY(-3px); }
.pg-card svg { width: 30px; height: 30px; color: var(--gold-bright); }
.pg-card h3 { margin: 4px 0 0; font-family: var(--font-serif); font-style: normal; font-size: 21px; line-height: 1.25; color: var(--cream); }
.pg-card p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--smoke); }
.pg-card .tier-tag { align-self: flex-start; margin-top: auto; padding: 4px 10px; font-size: 10px; }
.pg-card a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.pg-card--wine { background: linear-gradient(150deg, rgba(107, 26, 48, 0.42), rgba(20, 12, 16, 0.4)); box-shadow: inset 0 0 0 1px rgba(176, 68, 95, 0.28); }
.pg-card--forest { background: linear-gradient(150deg, rgba(30, 74, 56, 0.42), rgba(12, 20, 16, 0.4)); box-shadow: inset 0 0 0 1px rgba(78, 156, 121, 0.25); }

/* ---------- who can do what ---------- */
.pg-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.pg-table th, .pg-table td { padding: 15px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.pg-table thead th { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.pg-table thead th:nth-child(2) { color: #E2E6EB; } .pg-table thead th:nth-child(3) { color: var(--gold-bright); } .pg-table thead th:nth-child(4) { color: #E7A1B4; }
.pg-table td { color: var(--smoke); }
.pg-table td:first-child { color: var(--cream); }
.pg-table td.y { color: var(--forest-bright); }
.pg-table td.n { color: var(--smoke-dim); }
.pg-table-wrap { overflow-x: auto; border-radius: 18px; padding: 8px 18px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- steps (how it works) ---------- */
.pg-step-num { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 18px; font-family: var(--font-mono); font-size: 14px; color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 30px rgba(199, 166, 92, 0.12); }

/* ---------- about ---------- */
.pg-letter { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 70px); border-radius: 26px; background: linear-gradient(160deg, rgba(107, 26, 48, 0.3), rgba(16, 10, 13, 0.6)); box-shadow: inset 0 0 0 1px rgba(176, 68, 95, 0.28), 0 40px 80px rgba(0, 0, 0, 0.4); }
.pg-letter p { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.65; color: var(--cream); margin: 0 0 18px; }
.pg-letter cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.pg-prose { max-width: 760px; }
.pg-prose p { font-size: 18px; line-height: 1.8; color: rgba(242, 236, 223, 0.86); margin: 0 0 18px; }
.pg-prose a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- closing band ---------- */
.pg-cta { padding: 40px 0 140px; }

@media (max-width: 1000px) {
  .pg-hero { padding-top: 130px; }
  .pg-row, .pg-row.flip, .tour-body { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 60px; }
  .pg-row.flip .pg-copy { order: 0; }
  .pg-row .fp-phone, .tour-body .tour-phone { order: -1; }
  .pg-rows { gap: 110px; }
  .tour-copy { min-height: 0; }
}
@media (max-width: 600px) {
  .pg-hero { padding: 120px 0 40px; }
  .pg-hero .section-lede { font-size: 17px; }
  .pg-rows { gap: 90px; padding: 50px 0 80px; }
  .pg-section { padding: 80px 0; }
  .tour-tabs { margin-bottom: 40px; }
  .tour-tab { padding: 14px 12px; font-size: 11px; }
  .pg-table { font-size: 14px; }
  .pg-cta { padding-bottom: 100px; }
}

/* closing panel, centred */
.pg-cta-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; }
.pg-cta-panel .section-lede { margin-left: auto; margin-right: auto; }
.pg-cta-panel .masq-cta { justify-content: center; }
/* the chatroom card standing in for a phone */
.tg-card--solo { width: 100%; max-width: 380px; justify-self: center; }
.tg-card--solo .tg-visual { min-height: 0; }
.pg-row .tier-tag + .pg-more { margin-left: 18px; }

@media (min-width: 1101px) { .pg-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
