/* css/pages.css — About / Contact / Documentation (self-contained, no Tailwind purge) */

.page-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 7.5rem 1.25rem 5rem;
}

.page-shell__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ── Hero ── */
.page-hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  margin-bottom: 1.35rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-1, #2feecc);
  background: rgba(47, 238, 204, 0.08);
  border: 1px solid rgba(47, 238, 204, 0.28);
  border-radius: 999px;
}

.page-hero__eyebrow svg,
.page-hero__eyebrow i {
  width: 14px;
  height: 14px;
}

.page-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 10%, var(--accent-1, #2feecc) 55%, var(--accent-2, #a8fff0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.page-hero__sub {
  max-width: 40rem;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

/* ── Cards / grid ── */
.page-grid {
  display: grid;
  gap: 1.25rem;
}

.page-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.page-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.page-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.page-card {
  position: relative;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(160deg, rgba(4, 40, 34, 0.85), rgba(3, 31, 26, 0.92));
  border: 1px solid rgba(47, 238, 204, 0.16);
  border-radius: 1.15rem;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.page-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1, #2feecc), transparent);
  opacity: 0.45;
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 238, 204, 0.4);
  box-shadow: 0 18px 40px -22px rgba(47, 238, 204, 0.55);
}

.page-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  background: rgba(47, 238, 204, 0.12);
  border: 1px solid rgba(47, 238, 204, 0.28);
  color: var(--accent-1, #2feecc);
}

.page-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.page-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.55rem;
}

.page-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

/* ── Section blocks ── */
.page-section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-section__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-1, #2feecc);
  margin-bottom: 0.75rem;
}

.page-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.page-section__lead {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 1.75rem;
}

/* ── Stats ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1rem;
}

.stat-pill {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 1rem;
  background: rgba(47, 238, 204, 0.06);
  border: 1px solid rgba(47, 238, 204, 0.18);
}

.stat-pill strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-1, #2feecc);
  letter-spacing: -0.02em;
}

.stat-pill span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-left: 1.35rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1, #2feecc), transparent);
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  padding: 1.15rem 1.25rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.9rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.48rem;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-1, #2feecc);
  box-shadow: 0 0 10px var(--accent-1, #2feecc);
}

.timeline__item h4 {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.timeline__item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* ── CTA band ── */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.75rem 1.75rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at top left, rgba(47, 238, 204, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(4, 48, 40, 0.95), rgba(3, 31, 26, 0.98));
  border: 1px solid rgba(47, 238, 204, 0.28);
}

.cta-band h3 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.cta-band p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #02150f;
  background: linear-gradient(180deg, #45f6d7, #2feecc 55%, #1dd9b6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(47, 238, 204, 0.7);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.25s ease;
}

.page-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.page-btn:focus-visible {
  outline: 2px solid var(--accent-1, #2feecc);
  outline-offset: 3px;
}

.page-btn--ghost {
  color: var(--accent-1, #2feecc);
  background: rgba(47, 238, 204, 0.08);
  border-color: rgba(47, 238, 204, 0.4);
  box-shadow: none;
}

.page-btn--ghost:hover {
  background: rgba(47, 238, 204, 0.14);
}

.page-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Contact layout ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.contact-channels {
  display: grid;
  gap: 1rem;
}

.channel-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.channel-card:hover {
  border-color: rgba(47, 238, 204, 0.4);
  transform: translateY(-2px);
}

.channel-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(47, 238, 204, 0.12);
  border: 1px solid rgba(47, 238, 204, 0.28);
  color: var(--accent-1, #2feecc);
}

.channel-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.channel-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.channel-card span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-word;
}

/* Form */
.contact-form {
  padding: 1.6rem 1.45rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(4, 40, 34, 0.9), rgba(3, 31, 26, 0.95));
  border: 1px solid rgba(47, 238, 204, 0.2);
}

.contact-form h3 {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1, #2feecc);
  margin-bottom: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

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

.form-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(47, 238, 204, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 238, 204, 0.12);
}

.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.55;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-1) 50%),
    linear-gradient(135deg, var(--accent-1) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field select option {
  background: #031f1a;
  color: #fff;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.form-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(47, 238, 204, 0.35);
  background: rgba(47, 238, 204, 0.1);
  color: var(--accent-1, #2feecc);
}

.form-status.is-visible {
  display: block;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent-1, #2feecc);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Docs layout ── */
.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .docs-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.docs-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1rem 0.85rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(47, 238, 204, 0.14);
}

.docs-toc__label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-1, #2feecc);
  margin-bottom: 0.75rem;
  padding: 0 0.35rem;
}

.docs-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.docs-toc a {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-radius: 0.55rem;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.docs-toc a:hover,
.docs-toc a.is-active {
  color: var(--accent-1, #2feecc);
  background: rgba(47, 238, 204, 0.08);
  border-left-color: var(--accent-1, #2feecc);
}

.docs-content {
  min-width: 0;
}

.docs-block {
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.15rem;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgba(4, 40, 34, 0.75), rgba(3, 31, 26, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  scroll-margin-top: 6rem;
}

.docs-block h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}

.docs-block h2 svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent-1, #2feecc);
  flex-shrink: 0;
}

.docs-block h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1, #2feecc);
  margin: 1.15rem 0 0.5rem;
}

.docs-block p,
.docs-block li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.docs-block ul,
.docs-block ol {
  padding-left: 1.25rem;
  margin: 0.65rem 0;
}

.docs-block li + li {
  margin-top: 0.35rem;
}

.docs-block code {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 0.35em;
  background: rgba(47, 238, 204, 0.1);
  border: 1px solid rgba(47, 238, 204, 0.2);
  color: var(--accent-1, #2feecc);
}

.docs-steps {
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.docs-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-step__n {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  color: #02150f;
  background: var(--accent-1, #2feecc);
}

.docs-step strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.docs-step span {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.docs-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.docs-table th,
.docs-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-table th {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(47, 238, 204, 0.05);
}

.docs-table td {
  color: rgba(255, 255, 255, 0.65);
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table td:first-child {
  color: #fff;
  font-weight: 700;
}

.verdict-legend {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.verdict-legend__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
}

.verdict-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.verdict-dot--human {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.verdict-dot--mixed {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.7);
}

.verdict-dot--ai {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

.verdict-legend__row strong {
  color: #fff;
  min-width: 4.5rem;
}

/* Reveal helpers */
.page-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-card,
  .page-btn,
  .channel-card {
    transition: none;
  }
}
