/* GlassCount Partner Pages Styles */
/* Used by partners.html and partners/welcome.html */

/* ==========================================
   Partner Hero
   ========================================== */

.partner-hero {
  text-align: center;
  padding: 4rem 0 2rem;
  position: relative;
}

.partner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  right: -50%;
  bottom: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% -10%,
    rgba(16, 185, 129, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.partner-hero > * {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero__headline {
  font-size: clamp(1.875rem, 5vw + 0.5rem, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__headline .highlight {
  color: var(--success);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__footnote {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ==========================================
   Trust Bar
   ========================================== */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 2.5rem;
}

.trust-bar__item {
  background: var(--card);
  padding: 1.25rem 1rem;
  text-align: center;
}

.trust-bar__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.trust-bar__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==========================================
   Buttons (Partner-specific)
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--success);
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  min-height: 48px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn--primary:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
  color: #FFFFFF;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  padding: 0.875rem 2rem;
  min-height: 48px;
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--text);
  text-decoration: none;
}

@media (max-width: 480px) {
  .btn--primary,
  .btn--secondary {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================
   Steps
   ========================================== */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 3rem;
  margin: 1.5rem 0;
}

.steps::before {
  content: '';
  position: absolute;
  left: 1.1875rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--border);
}

.step {
  position: relative;
  padding: 1rem 0;
}

.step__number {
  position: absolute;
  left: -3rem;
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--background);
}

.step__content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.step__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.step__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   Copy Block
   ========================================== */

.copy-block {
  position: relative;
  background: #1F2937;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.copy-block--light {
  background: var(--background-secondary);
  border: 1px solid var(--border);
}

.copy-block--light .copy-block__text {
  color: var(--text);
}

.copy-block__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9CA3AF;
  margin-bottom: 0.25rem;
}

.copy-block--light .copy-block__label {
  color: var(--text-secondary);
}

.copy-block__text {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.9375rem;
  color: #E5E7EB;
  font-weight: 500;
  word-break: break-all;
  flex: 1;
  line-height: 1.4;
}

.copy-block__text--large {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #E5E7EB;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
  text-align: center;
}

.copy-block--light .copy-btn {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-block--light .copy-btn:hover {
  background: var(--background);
}

.copy-btn--copied {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: var(--success) !important;
}

/* ==========================================
   Tabs (CSS-only with radio inputs)
   ========================================== */

.tabs__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tabs__label {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.tabs__label:hover {
  color: var(--text);
}

#tab-ios:checked ~ .tabs__nav .tabs__label[for="tab-ios"],
#tab-android:checked ~ .tabs__nav .tabs__label[for="tab-android"] {
  color: var(--text);
  border-bottom-color: var(--success);
  font-weight: 600;
}

.tabs__panel {
  display: none;
}

#tab-ios:checked ~ .tabs__panels .tabs__panel--ios {
  display: block;
}

#tab-android:checked ~ .tabs__panels .tabs__panel--android {
  display: block;
}

/* ==========================================
   FAQ Accordion (details/summary)
   ========================================== */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

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

.faq-item summary::after {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--success);
}

.faq-content {
  padding: 0 0 1.125rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-content p {
  margin-bottom: 0.5rem;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   Badges
   ========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--success {
  background: #D1FAE5;
  color: #059669;
}

.badge--neutral {
  background: #F3F4F6;
  color: var(--text-secondary);
}

.badge--warning {
  background: #FEF3C7;
  color: #92400E;
}

/* ==========================================
   Do's and Don'ts
   ========================================== */

.do-dont {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .do-dont {
    grid-template-columns: 1fr 1fr;
  }
}

.do-dont__col {
  background: var(--card);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.do-dont__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.do-dont__title--do {
  color: var(--success);
}

.do-dont__title--dont {
  color: var(--error);
}

.do-dont__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.do-dont__col li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.do-dont__col li:last-child {
  margin-bottom: 0;
}

.do-dont__col li::before {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 0.0625rem;
}

.do-dont__col--do li::before {
  content: "\2713";
  color: var(--success);
}

.do-dont__col--dont li::before {
  content: "\2717";
  color: var(--error);
}

/* ==========================================
   Code Entry Form (fallback for no params)
   ========================================== */

.code-entry {
  text-align: center;
  padding: 1rem 0;
}

.code-entry__form {
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
  margin: 1rem auto;
}

.code-entry__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  transition: border-color 0.2s ease;
  text-transform: uppercase;
}

.code-entry__input:focus {
  outline: none;
  border-color: var(--success);
}

.code-entry__input::placeholder {
  text-transform: none;
  font-family: inherit;
  color: var(--text-light);
}

.code-entry__btn {
  padding: 0.75rem 1.5rem;
  background: var(--success);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.code-entry__btn:hover {
  background: #059669;
}

.code-entry__help {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.code-entry__help a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ==========================================
   Partner Code Display
   ========================================== */

.code-display {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 2px solid #A7F3D0;
  border-radius: 12px;
  margin: 1rem 0;
}

.code-display__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.code-display__code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.code-display__copy {
  padding: 0.5rem 1.25rem;
  background: var(--success);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-display__copy:hover {
  background: #059669;
}

.code-display__copy--copied {
  background: #059669;
}

.code-display__note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ==========================================
   Card Grid
   ========================================== */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid .card {
  margin-bottom: 0;
}

/* ==========================================
   Benefit Card
   ========================================== */

.benefit-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.benefit-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.benefit-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.benefit-card__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   Content Level Cards
   ========================================== */

.level-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.level-card:last-child {
  margin-bottom: 0;
}

.level-card__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.level-card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: #D1FAE5;
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.level-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.level-card__effort {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-left: auto;
  white-space: nowrap;
}

.level-card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   Science Cards
   ========================================== */

.science-card {
  border-left: 3px solid var(--success);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.science-card:last-child {
  margin-bottom: 0;
}

.science-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.science-card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.science-card__text:last-child {
  margin-bottom: 0;
}

.science-card__source {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
}

/* ==========================================
   Stat Highlight
   ========================================== */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 1rem;
  background: #F0FDF4;
  border-radius: 10px;
}

.stat-item__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==========================================
   Commission Table
   ========================================== */

.commission-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.commission-table thead th {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
}

.commission-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.commission-table tbody tr:last-child td {
  border-bottom: none;
}

.commission-table .highlight-cell {
  font-weight: 700;
  color: var(--success);
}

/* ==========================================
   Notice/Alert Boxes
   ========================================== */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.notice--warning {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.notice--info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.notice__icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.notice p {
  margin: 0;
  color: inherit;
}

/* ==========================================
   Section Divider
   ========================================== */

.section-divider {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ==========================================
   Instruction List (Numbered)
   ========================================== */

.instruction-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: instruction;
}

.instruction-list li {
  counter-increment: instruction;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.instruction-list li::before {
  content: counter(instruction) ".";
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  min-width: 1.25rem;
}

.instruction-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================
   Welcome Page Specific
   ========================================== */

.welcome-closing {
  text-align: center;
  padding: 2rem 0;
}

.welcome-closing__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.welcome-closing__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ==========================================
   Disclosure Section
   ========================================== */

.disclosure-block {
  margin-bottom: 1.25rem;
}

.disclosure-block:last-child {
  margin-bottom: 0;
}

.disclosure-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media (max-width: 640px) {
  .partner-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 1px;
    margin-bottom: 2rem;
  }

  .trust-bar__item {
    padding: 1rem;
  }

  .trust-bar__item:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .steps {
    padding-left: 2.5rem;
  }

  .step__number {
    left: -2.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .steps::before {
    left: 0.9375rem;
  }

  .code-entry__form {
    flex-direction: column;
  }

  .code-display__code {
    font-size: 1.375rem;
  }

  .stat-row {
    gap: 0.75rem;
  }

  .stat-item {
    min-width: 0;
    padding: 0.75rem;
  }

  .stat-item__number {
    font-size: 1.25rem;
  }

  .commission-table {
    font-size: 0.8125rem;
  }

  .commission-table thead th,
  .commission-table tbody td {
    padding: 0.625rem 0.75rem;
  }

  .copy-block {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .copy-btn {
    width: 100%;
  }

  .tabs__label {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

/* ==========================================
   Print: Hide interactive elements
   ========================================== */

@media print {
  .copy-btn,
  .code-entry,
  .tabs__nav,
  .btn {
    display: none;
  }

  .tabs__panel {
    display: block !important;
  }

  .copy-block {
    background: #F3F4F6;
    color: #111111;
    border: 1px solid #E5E7EB;
  }

  .copy-block__text {
    color: #111111;
  }
}
