/* Info pages — shared stylesheet for /info, /terms, /privacy, /changelog */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.info-page {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--home-text, #160e0e);
  background: var(--home-bg, #f0efe7);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.info-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background: var(--home-primary, #582f0e);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.info-nav-logo img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
}

.info-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    background 0.2s,
    color 0.2s;
}
.info-nav-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.info-nav-back i {
  font-size: 1rem;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.info-hero {
  margin-top: 60px;
  background: linear-gradient(
    135deg,
    var(--home-primary, #582f0e) 0%,
    var(--home-secondary, #7f4f24) 100%
  );
  padding: 64px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.info-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.info-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.info-hero-tag {
  display: inline-block;
  position: relative;
  padding: 6px 18px 6px 30px;
  background: rgba(200, 148, 40, 0.14);
  border: 1.5px solid rgba(220, 170, 60, 0.55);
  border-radius: 5px;
  color: rgba(255, 222, 110, 0.95);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 220, 100, 0.1);
}
/* Punched hole — physical tag detail */
.info-hero-tag::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 10, 2, 0.7);
  border: 1.5px solid rgba(220, 165, 50, 0.5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.info-hero-title {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.info-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin: 0 auto;
}

/* ── CONTENT ─────────────────────────────────────────────────────────────── */
.info-content {
  padding: 56px 24px 80px;
}
.info-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.info-section {
  margin-bottom: 48px;
}
.info-section:last-child {
  margin-bottom: 0;
}

.info-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-primary, #582f0e);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(88, 47, 14, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-section h2 i {
  font-size: 1.1rem;
  opacity: 0.75;
}

.info-section p {
  color: var(--home-text, #160e0e);
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 10px;
}
.info-section p:last-child {
  margin-bottom: 0;
}

.info-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.info-section ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--home-text, #160e0e);
  opacity: 0.88;
}

.info-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-primary, #582f0e);
  opacity: 0.45;
}

.info-section ul li strong {
  color: var(--home-primary, #582f0e);
  font-weight: 600;
}

/* Email card — contact section */
.info-email-card {
  margin: 16px 0 8px;
  border: 1.5px solid rgba(88, 47, 14, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  max-width: 380px;
}

.info-email-card-meta {
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(88, 47, 14, 0.08);
}

.info-email-card-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.info-email-card-label {
  min-width: 52px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(88, 47, 14, 0.38);
}

.info-email-card-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--home-primary, #582f0e);
}

.info-email-card-subject-value {
  font-size: 0.88rem;
  color: rgba(22, 14, 14, 0.55);
}

.info-email-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--home-primary, #582f0e), #7f4f24);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, filter 0.2s;
}
.info-email-card-action:hover {
  opacity: 0.9;
  filter: brightness(1.08);
}
.info-email-card-action i {
  font-size: 1rem;
}

.info-last-updated {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

/* Placeholder state */
.info-placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(88, 47, 14, 0.03),
    rgba(88, 47, 14, 0.03) 4px,
    transparent 4px,
    transparent 12px
  );
  border: 1.5px dashed rgba(88, 47, 14, 0.18);
  border-radius: 10px;
  padding: 18px 20px;
  font-style: italic;
  color: rgba(88, 47, 14, 0.55) !important;
  font-size: 0.88rem !important;
  opacity: 1 !important;
}

/* Changelog list */
.info-changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-changelog-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-changelog-badge {
  flex-shrink: 0;
  background: var(--home-primary, #582f0e);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.info-changelog-desc {
  font-size: 0.92rem;
  color: var(--home-text, #160e0e);
  opacity: 0.85;
}
.info-changelog-date {
  display: block;
  font-size: 0.78rem;
  color: rgba(88, 47, 14, 0.5);
  margin-top: 2px;
}

/* ── Changelog accordion ─────────────────────────────────────────────────── */

.cl-accordion {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.cl-item {
  border: 1.5px solid rgba(88, 47, 14, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cl-item.is-open {
  border-color: rgba(88, 47, 14, 0.2);
  box-shadow: 0 4px 18px rgba(88, 47, 14, 0.07);
}

.cl-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--home-primary, #582f0e);
  text-align: left;
  transition: background 0.15s;
}

.cl-trigger:hover {
  background: rgba(88, 47, 14, 0.04);
}

.cl-item.is-open .cl-trigger {
  background: rgba(88, 47, 14, 0.03);
}

.cl-trigger-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(88, 47, 14, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--home-primary, #582f0e);
  transition: background 0.25s, color 0.25s;
}

.cl-item.is-open .cl-trigger-icon {
  background: var(--home-primary, #582f0e);
  color: #fff;
}

.cl-chevron {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.cl-item.is-open .cl-chevron {
  transform: rotate(180deg);
  opacity: 0.7;
}

.cl-body {
  height: 0;
  overflow: hidden;
  transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.cl-body-inner {
  padding: 6px 16px 16px 56px;
  border-top: 1px solid rgba(88, 47, 14, 0.07);
}

.cl-body-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cl-body-inner li {
  position: relative;
  padding-left: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--home-text, #160e0e);
  opacity: 0.82;
}

.cl-body-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--home-primary, #582f0e);
  opacity: 0.35;
}

.cl-body-inner li a {
  color: var(--home-primary, #582f0e);
  font-weight: 600;
  text-decoration: none;
}
.cl-body-inner li a:hover {
  text-decoration: underline;
}

.cl-version-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cl-version-tag {
  display: inline-block;
  background: var(--home-primary, #582f0e);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 8px;
  flex-shrink: 0;
}

.cl-version-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--home-text, #160e0e);
  margin: 0;
}

.cl-version-date {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgba(88, 47, 14, 0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cl-version-intro {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--home-text, #160e0e);
  opacity: 0.78;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(88, 47, 14, 0.08);
}

.cl-version-intro a {
  color: var(--home-primary, #582f0e);
  font-weight: 600;
  text-decoration: none;
}
.cl-version-intro a:hover {
  text-decoration: underline;
}

.cl-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cl-category {
  border: 1.5px solid rgba(88, 47, 14, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
}

.cl-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--home-primary, #582f0e);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  padding: 12px 18px;
  background: rgba(88, 47, 14, 0.04);
  border-bottom: 1px solid rgba(88, 47, 14, 0.08);
}

.cl-category-title i {
  font-size: 1rem;
  opacity: 0.7;
}

.cl-feature-list {
  list-style: none;
  margin: 0;
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cl-feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--home-text, #160e0e);
  opacity: 0.85;
}

.cl-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--home-primary, #582f0e);
  opacity: 0.4;
}

.cl-feature-list li strong {
  color: var(--home-primary, #582f0e);
  font-weight: 600;
}

@media (max-width: 520px) {
  .cl-version-header {
    gap: 10px;
  }
  .cl-version-date {
    margin-left: 0;
    width: 100%;
  }
}

/* ── Info page — callout / highlight ─────────────────────────────────────── */

.info-callout {
  background: rgba(88, 47, 14, 0.05);
  border-left: 3px solid rgba(88, 47, 14, 0.35);
  border-radius: 0 10px 10px 0;
  padding: 13px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--home-text, #160e0e);
  opacity: 0.85;
}

.info-inline-link {
  color: var(--home-primary, #582f0e);
  font-weight: 600;
  text-decoration: none;
}
.info-inline-link:hover {
  text-decoration: underline;
}

/* ── Team cards ──────────────────────────────────────────────────────────── */

.info-team {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0 4px;
}

.info-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1.5px solid rgba(88, 47, 14, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-person:hover {
  border-color: rgba(88, 47, 14, 0.2);
  box-shadow: 0 3px 14px rgba(88, 47, 14, 0.07);
}

.info-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--home-primary, #582f0e), #7f4f24);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.info-person-info {
  flex: 1;
  min-width: 0;
}

.info-person-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--home-text, #160e0e);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-person-role {
  font-size: 0.78rem;
  color: rgba(88, 47, 14, 0.52);
}

.info-person-links {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.info-person-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border: 1.5px solid rgba(88, 47, 14, 0.15);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--home-primary, #582f0e);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.info-person-link:hover {
  background: rgba(88, 47, 14, 0.06);
  border-color: rgba(88, 47, 14, 0.28);
}

/* ── Example query boxes ─────────────────────────────────────────────────── */

.info-subsection-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(88, 47, 14, 0.42);
  margin: 22px 0 8px;
}

.info-examples-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 4px;
}

.info-example {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(88, 47, 14, 0.1);
  border-radius: 11px;
  padding: 11px 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.info-example:hover {
  border-color: rgba(88, 47, 14, 0.18);
  box-shadow: 0 2px 10px rgba(88, 47, 14, 0.05);
}

.info-example-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(88, 47, 14, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--home-primary, #582f0e);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-example-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--home-text, #160e0e);
  opacity: 0.82;
  padding-top: 4px;
}

.info-example-text code {
  background: rgba(88, 47, 14, 0.08);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84em;
  color: var(--home-primary, #582f0e);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 540px) {
  .info-person {
    flex-wrap: wrap;
    gap: 10px;
  }
  .info-person-links {
    width: 100%;
    padding-left: 54px;
  }
}
