/* Community mockup: deliberately plain, using the existing site's type, spacing,
   black/white surfaces and hairline borders. */

[hidden] {
  display: none !important;
}

.community-page {
  background: var(--white);
  color: var(--black);
}

.community-page .desktop-nav {
  gap: clamp(14px, 2vw, 34px);
}

.community-shell {
  width: min(1120px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.community-hero {
  padding: calc(var(--header-height) + clamp(76px, 9vw, 138px)) 0 clamp(54px, 7vw, 96px);
}

.community-intro {
  max-width: 960px;
}

.community-eyebrow {
  margin: 0 0 20px;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .07em;
  opacity: .56;
  text-transform: uppercase;
}

.community-hero h1,
.privacy-notice h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7.6vw, 104px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.community-lead {
  max-width: 900px;
  margin: 34px 0 0;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.38;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

.community-workspace {
  padding: 0 0 clamp(92px, 10vw, 160px);
}

.community-tabs {
  display: flex;
  padding: 0 0 20px;
  overflow-x: auto;
  gap: 10px;
  scrollbar-width: thin;
}

.community-tab {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 17px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  flex: 0 0 auto;
  font: 500 12px/1.25 var(--mono);
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.community-tab:hover {
  border-color: var(--black);
}

.community-tab[data-style="vip"] {
  border-color: rgba(123, 52, 206, .42);
  background: rgba(123, 52, 206, .055);
}

.community-tab[data-style="vip"]::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--purple);
  content: "";
}

.community-tab[aria-selected="true"] {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.community-tab[aria-selected="true"][data-style="vip"]::before {
  background: #ceb0dc;
}

.community-panel {
  display: grid;
  padding: clamp(44px, 6vw, 82px) 0 clamp(62px, 8vw, 112px);
  border-top: 1px solid var(--line-dark);
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: clamp(42px, 7vw, 96px);
}

.community-panel-copy {
  align-self: center;
}

.community-panel h2,
.signup-heading h2,
.chat-card h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.community-panel-copy > p:last-child,
.signup-heading > p:last-child,
.chat-card > p:last-child {
  max-width: 620px;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.tab-detail {
  padding: clamp(42px, 6vw, 72px) 0 clamp(66px, 8vw, 108px);
  border-top: 1px solid var(--line-dark);
}

.draft-copy-label,
.consent-draft {
  display: inline-flex;
  margin: 0 0 28px;
  padding: 8px 11px;
  border: 1px solid rgba(180, 35, 24, .3);
  border-radius: 999px;
  background: rgba(180, 35, 24, .05);
  color: var(--red-deep);
  font: 500 10px/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tab-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.tab-detail article {
  padding-top: 22px;
  border-top: 1px solid var(--black);
}

.tab-detail h3 {
  margin: 0 0 18px;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.tab-detail article p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
}

.tab-source-note {
  margin: 28px 0 0;
  font: 500 11px/1.5 var(--mono);
  opacity: .6;
}

.video-slot {
  position: relative;
  display: grid;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(0, 0, 0, .32);
  border-radius: 8px;
  background: #f6f6f3;
}

.video-slot-placeholder {
  display: grid;
  padding: 24px;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.video-slot-placeholder::before {
  display: grid;
  width: 52px;
  height: 52px;
  padding-left: 3px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "▶";
  font-size: 15px;
}

.video-slot-placeholder strong {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
}

.video-slot figcaption {
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  font: 500 10px/1.3 var(--mono);
  opacity: .56;
  text-align: center;
  text-transform: uppercase;
}

.video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup-section {
  display: grid;
  padding: clamp(58px, 7vw, 92px) 0;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: minmax(240px, .66fr) minmax(0, 1.34fr);
  gap: clamp(42px, 8vw, 110px);
}

.signup-heading h2 {
  font-size: clamp(34px, 3.9vw, 54px);
}

.signup-card {
  position: relative;
  min-width: 0;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--red-deep);
  background: rgba(180, 35, 24, .06);
  font-size: 15px;
  line-height: 1.45;
}

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

.field {
  margin-bottom: 22px;
}

.field label,
.consent-group legend {
  display: block;
  margin-bottom: 9px;
  font: 500 12px/1.25 var(--mono);
  letter-spacing: .02em;
}

.field label span {
  opacity: .56;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .26);
  border-radius: 5px;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
}

.field input:focus,
.field select:focus {
  border-color: var(--black);
  outline: 3px solid rgba(0, 166, 63, .2);
  outline-offset: 1px;
}

.field input[aria-invalid="true"] {
  border-color: var(--red-deep);
}

.field-help,
.field-error {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.field-help {
  opacity: .62;
}

.field-error {
  color: var(--red-deep);
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

.contact-error {
  margin: -10px 0 22px;
}

.consent-group {
  margin: 8px 0 28px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line-dark);
}

.consent-group legend {
  padding: 0;
}

.consent-draft {
  margin-bottom: 20px;
}

.check-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.check-field + .check-field,
.checkbox-error + .check-field {
  margin-top: 20px;
}

.check-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.check-field label {
  font-size: 14px;
  line-height: 1.55;
}

.check-field a,
.privacy-prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.checkbox-error {
  margin: 8px 0 0 34px;
}

.community-button {
  display: inline-grid;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid var(--black);
  border-radius: 999px;
  place-items: center;
  background: var(--black);
  color: var(--white);
  font: 500 13px/1 var(--mono);
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
}

.community-button:hover {
  background: var(--green);
  border-color: var(--green);
}

.text-button,
.community-back-link {
  display: inline-flex;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 500 12px/1.2 var(--mono);
  cursor: pointer;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-notice,
.result-card,
.member-view {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #f6f6f3;
}

.demo-notice {
  margin-bottom: 26px;
}

.demo-notice strong,
.result-label {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.demo-notice p {
  margin: 8px 0 0;
}

.demo-notice code {
  padding: 2px 5px;
  background: var(--white);
  font-family: var(--mono);
  font-weight: 600;
}

.code-field {
  max-width: 300px;
}

.code-field input {
  font: 500 26px/1 var(--mono);
  letter-spacing: .22em;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.result-card,
.member-view {
  background: #f3faf5;
  border-color: rgba(0, 132, 61, .25);
}

.result-card h3,
.member-view h3 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}

.result-card > p:not(.result-label),
.member-view > p:not(.result-label, .member-local-note) {
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.55;
}

.result-label {
  margin: 0;
  color: var(--green);
}

.member-details {
  display: grid;
  margin: 0 0 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 132, 61, .18);
  border-bottom: 1px solid rgba(0, 132, 61, .18);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.member-details div {
  min-width: 0;
}

.member-details dt {
  margin-bottom: 6px;
  font: 500 10px/1.2 var(--mono);
  letter-spacing: .04em;
  opacity: .58;
  text-transform: uppercase;
}

.member-details dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.member-local-note {
  margin: 0 0 20px;
  font-size: 13px;
  opacity: .64;
}

.chat-card {
  max-width: 760px;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid rgba(123, 52, 206, .3);
  border-radius: 8px;
  background: rgba(123, 52, 206, .055);
}

.chat-card h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.privacy-main {
  padding: calc(var(--header-height) + clamp(76px, 9vw, 138px)) 0 clamp(92px, 10vw, 150px);
}

.privacy-notice {
  max-width: 820px;
}

.privacy-notice h1 {
  font-size: clamp(44px, 6vw, 78px);
}

.draft-badge {
  display: inline-flex;
  margin: 30px 0 44px;
  padding: 9px 12px;
  border: 1px solid rgba(180, 35, 24, .34);
  border-radius: 999px;
  background: rgba(180, 35, 24, .055);
  color: var(--red-deep);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.privacy-prose {
  padding-top: 42px;
  border-top: 1px solid var(--line-dark);
}

.privacy-prose p {
  margin: 0 0 22px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.community-back-link {
  margin-top: 26px;
}

/* Revival join modal */
.revival-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  z-index: 999;
}

.revival-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(620px, calc(100% - 36px));
  max-height: 90vh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .16);
  z-index: 1000;
  overflow: auto;
  animation: modal-in .3s ease;
}

.revival-modal::backdrop {
  display: none;
}

@keyframes modal-in {
  from {
    opacity: 0;
    scale: .92;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.modal-content {
  padding: clamp(42px, 6vw, 62px);
}

.modal-step {
  text-align: center;
}

.revival-modal h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.modal-subtitle {
  margin: 0 0 42px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  opacity: .8;
}

.modal-thankyou {
  margin: 0 0 16px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  font-weight: 500;
}

.modal-teaser {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.5;
  opacity: .7;
}

.modal-choices {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  grid-template-columns: 1fr 1fr 1fr;
}

.modal-choice {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
  font: inherit;
  color: inherit;
}

.modal-choice:hover {
  border-color: rgba(0, 0, 0, .3);
  background: rgba(0, 0, 0, .03);
}

.modal-choice:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.choice-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 15px;
}

.choice-desc {
  display: block;
  font-size: 13px;
  opacity: .7;
  line-height: 1.4;
}

.modal-close-btn {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .community-page .header-actions {
    display: none;
  }

  .community-panel,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .tab-detail-grid {
    grid-template-columns: 1fr;
  }

  .community-panel {
    gap: 34px;
  }

  .community-panel-copy {
    max-width: 720px;
  }

  .signup-section {
    gap: 38px;
  }
}

@media (max-width: 640px) {
  .community-shell {
    width: min(100% - 36px, 1120px);
  }

  .community-hero {
    padding-top: calc(var(--header-height) + 66px);
    padding-bottom: 46px;
  }

  .community-hero h1 {
    font-size: clamp(48px, 15.2vw, 60px);
  }

  .community-lead {
    margin-top: 26px;
    font-size: 19px;
  }

  .community-tabs {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .community-tab {
    max-width: 290px;
    white-space: normal;
  }

  .community-panel {
    padding-top: 42px;
  }

  .community-panel h2,
  .signup-heading h2 {
    font-size: 38px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .community-button {
    width: 100%;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .member-details {
    grid-template-columns: 1fr;
  }

  .text-button {
    align-self: center;
  }

  .modal-choices {
    grid-template-columns: 1fr;
  }

  .modal-choice {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-main {
    padding-top: calc(var(--header-height) + 66px);
  }

  .privacy-notice h1 {
    font-size: 46px;
  }
}
