/* ------------------------------------------------------------------
   Product pages for the Cobra Digital Group Chrome extensions
   (/youskip/, /wilson/ and their /privacy/ pages). Loaded after
   styles.css; each page sets --acc on <body> and adds its own flavor.
   ------------------------------------------------------------------ */
.x-page {
  --acc: #f2c66f;
  --acc-ink: #0a0a0a;
}

.x-page .bg-glow {
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--acc) 22%, transparent) 0%, color-mix(in srgb, var(--acc) 7%, transparent) 30%, transparent 62%);
}

.x-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0;
}

.x-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}

.x-home img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.x-home:hover,
.x-nav a:hover {
  color: var(--text);
}

.x-nav {
  display: flex;
  gap: 1.2rem;
}

.x-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Hero */
.x-hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

.x-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.x-brand img {
  height: 56px;
  width: auto;
}

.x-brand span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.x-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.x-status {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.14em;
  font-size: 0.64rem;
  color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
}

.x-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--acc) 55%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.x-lede {
  margin: 1.3rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: #c9ccc8;
}

.x-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2.2rem;
}

/* No store link yet: same footprint as a CTA, but dashed and inert */
.x-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.3rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--acc) 60%, transparent);
  cursor: default;
}

.x-soon::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: x-pulse 1.8s ease-in-out infinite;
}

@keyframes x-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.x-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
  padding-bottom: 2px;
}

.x-link:hover {
  border-bottom-color: var(--acc);
}

.x-fine {
  margin: 1.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sections */
.x-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.x-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acc);
}

.x-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  max-width: 22ch;
}

.x-section > p,
.x-sub {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: #b9bcb8;
  line-height: 1.65;
}

.x-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}

.x-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(160deg, #111113 0%, #07070a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.8);
}

.x-card .x-num {
  display: block;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--acc);
}

.x-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.x-card p {
  margin: 0.6rem 0 0;
  color: #a9aca8;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Permissions, in plain English */
.x-perms {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.x-perm {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.x-perm code {
  justify-self: start;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
}

.x-perm p {
  margin: 0;
  color: #b9bcb8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.x-never {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
}

.x-never li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #d6d8d4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.x-never li::before {
  content: "\2715";
  margin-right: 0.45rem;
  color: var(--acc);
  font-size: 0.72rem;
}

/* FAQ */
.x-faq {
  margin-top: 2rem;
  display: grid;
  gap: 0.6rem;
}

.x-faq details {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.2rem;
}

.x-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.x-faq summary::after {
  content: "+";
  color: var(--acc);
  font-weight: 700;
}

.x-faq details[open] summary::after {
  content: "\2212";
}

.x-faq details p {
  margin: 0.7rem 0 0;
  color: #a9aca8;
  line-height: 1.6;
}

.x-faq a,
.x-doc a,
.x-section a:not(.x-link) {
  color: var(--acc);
}

/* Footer */
.x-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
}

.x-foot p {
  margin: 0;
}

.x-foot {
  align-items: center;
}

.x-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.x-foot a {
  color: var(--muted);
  text-decoration: none;
}

.x-foot a:hover {
  color: var(--text);
}

/* Privacy policy document */
.x-doc {
  max-width: 46rem;
  padding: 3.5rem 0 4rem;
}

.x-doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.x-doc .x-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.x-doc .x-summary {
  margin: 2rem 0 0;
  padding: 1.3rem 1.4rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent);
  background: color-mix(in srgb, var(--acc) 6%, transparent);
  color: #e3e5e0;
  line-height: 1.65;
}

.x-doc h2 {
  margin: 2.6rem 0 0;
  font-size: 1.3rem;
}

.x-doc p,
.x-doc li {
  color: #bfc2be;
  line-height: 1.7;
  font-size: 0.98rem;
}

.x-doc p {
  margin: 0.8rem 0 0;
}

.x-doc ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.x-doc li + li {
  margin-top: 0.4rem;
}

.x-doc strong {
  color: var(--text);
}

@media (min-width: 900px) {
  .x-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
    padding: 6rem 0 5rem;
  }

  .x-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .x-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-perm {
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: start;
    gap: 1.2rem;
  }
}

@media (max-width: 520px) {
  .x-nav {
    gap: 0.9rem;
  }

  .x-home span {
    display: none;
  }

  .x-hero {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .x-soon::before {
    animation: none;
  }
}
