/* site-tkq.css — TheKinkQuiz marketing pages (home, start, terms, questions,
   404). Loaded after core.css on those pages only. Each brand owns its whole
   marketing stylesheet (site-<id>.css); nothing here is shared with other
   brands, so change it freely.
 */

/* ----- Hero (landing) ----- */
.hero {
  text-align: center;
  padding: 48px 20px 24px;
}
.hero .emojis {
  font-size: 40px;
  margin-bottom: 18px;
  display: inline-flex;
  gap: 14px;
}
/* Each emoji floats + tilts independently on a 3.6s loop, staggered by
   0.5s so they feel alive without being in lockstep. Alternating rotation
   directions (via :nth-child) add a touch of playful asymmetry. */
.hero .emojis span {
  display: inline-block;
  animation: emoji-float 3.6s ease-in-out infinite;
  will-change: transform;
  transform-origin: center bottom;
}
.hero .emojis span:nth-child(1) { animation-delay: 0s;    animation-name: emoji-float-left; }
.hero .emojis span:nth-child(2) { animation-delay: 0.45s; animation-name: emoji-float-right; }
.hero .emojis span:nth-child(3) { animation-delay: 0.9s;  animation-name: emoji-float-left; }
.hero .emojis span:nth-child(4) { animation-delay: 1.35s; animation-name: emoji-float-right; }

@keyframes emoji-float-left {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes emoji-float-right {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .emojis span { animation: none; }
}
.hero h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.05;
}
/* Optional hero parts a brand stylesheet can switch on (index.html). */
.hero-eyebrow, .hero-alt, .hero-art { display: none; }
.hero h1 em { font-style: inherit; }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease,
              background 200ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--shadow-ink) 16%, transparent);
  background: rgba(255, 255, 255, 0.96);
}

/* Icon chip — a soft pink→purple gradient circle instead of a bare emoji.
   Adds visual weight to each card and makes them feel like "real" products. */
.feature .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--icon-1) 0%, var(--icon-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 -1px 2px color-mix(in srgb, var(--accent) 8%, transparent),
              0 2px 6px color-mix(in srgb, var(--shadow-ink) 6%, transparent);
}

/* h2 is the semantic level (flat hierarchy under the hero h1); visual
   size is set here rather than relying on the default browser h2. */
.feature h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.005em; }
.feature p  { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .feature { transition: none; }
  .feature:hover { transform: none; }
}

/* ----- Press strip ("As featured in") ----- */
/* Quiet social-proof section. Logos sit grayscale + dimmed at rest so
   they don't compete with the feature cards above or the "How it works"
   steps below; hover (where available) pops them to full color. Flex
   with wrap so 2 or 4 logos render cleanly at any viewport. */
.press {
  margin: 36px 0 8px;
  text-align: center;
}
.press .press-kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.press-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 44px;
}
.press-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.press-logos img {
  /* Let the grid cell control width; images cap at 110px wide on desktop,
     scale down to 80px on narrow mobile. Explicit height cap keeps the
     varying aspect ratios visually consistent. */
  height: auto;
  max-height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  /* Base: desaturate and mute so the strip sits quietly in the page.
     Most wordmarks (GQ, Cosmo, AskMen) are already near-black so they
     don't need extra darkening — a single brightness() value can't suit
     all logos at once. Per-logo overrides below darken the outliers. */
  filter: grayscale(1) opacity(0.75);
  transition: filter 220ms ease, transform 220ms ease;
}
/* Bumble's gold is too light against the lavender page — pull it down
   so it reads at the same weight as the darker wordmarks. */
.press-logos img[src$="bumble.png"] {
  filter: grayscale(1) brightness(0.45) opacity(0.9);
}
@media (hover: hover) {
  .press-logos img:hover,
  .press-logos img[src$="bumble.png"]:hover {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: translateY(-1px);
  }
}
@media (max-width: 560px) {
  .press { margin-top: 26px; }
  .press-logos { gap: 18px 28px; }
  .press-logos img { max-width: 80px; max-height: 22px; }
}

/* Numbered steps — gradient circles replace the default <ol> markers for
   a more "onboarding card" feel on the "How it works" section. */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 16px;
}
ol.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
ol.steps .n {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 26%, transparent);
}
ol.steps p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

/* ----- Forms ----- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field input[type="text"],
.field select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input[type="text"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.partner-block {
  background: var(--card-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.partner-block h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.anatomy-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.anatomy-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  user-select: none;
  transition: all 120ms ease;
}
.anatomy-toggle label .emj { font-size: 34px; line-height: 1; }
.anatomy-toggle { position: relative; }
/* Visually hidden, not display:none: the radios stay focusable, so arrow keys
   and Space pick an anatomy, and the label shows the focus ring. */
.anatomy-toggle input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  pointer-events: none;
}
.anatomy-toggle input:focus-visible + label {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.anatomy-toggle input:checked + label {
  border-color: var(--accent);
  background: var(--tint);
  color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Form action row: right-aligned on desktop (original behavior),
   centered on mobile so the button doesn't hug the edge. Add `.centered`
   to force centered alignment on desktop too — useful for primary CTAs
   that shouldn't hug the corner. */

/* ----- FAQ (homepage) ----- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 28px 14px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  position: relative;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform 180ms ease;
}
.faq details[open] > summary::after {
  content: '−';
  color: var(--accent);
}
.faq summary:hover { color: var(--accent); }
.faq details p, .faq details ul {
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.55;
  font-size: 15px;
}
.faq details ul { padding-left: 22px; }
.faq details > *:last-child { margin-bottom: 14px; }

/* ----- All-questions page ----- */
.questions-page .qnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px 16px;
  background: var(--card-soft);
  border-radius: var(--radius-sm);
  margin: 18px 0 26px;
}
.questions-page .qnav a {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  transition: border-color 140ms ease, color 140ms ease;
}
.questions-page .qnav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.questions-page .qnav a span {
  color: var(--ink-mute);
  font-weight: 500;
}
/* The questions page piggy-backs on the shared .category-section
   styles (see the <details> block near the top of the file) for the
   card/summary/chevron look. These rules only cover the content
   unique to this page: the subtitle, description, question list,
   and the restriction pill. */
.qcat {
  /* Offset anchor-link targets from the top of the viewport so the
     opened summary isn't jammed against the browser chrome. */
  scroll-margin-top: 20px;
}
/* The /questions page wraps everything in .card.legal (same shell as
   /terms) so it inherits .card.legal h2 { margin-top: 28px; } — which
   pushes our category-header <h2> below the emoji/chip in the flex
   row. Bump specificity past .card.legal h2 (0,2,1) by chaining so
   this wins regardless of source order. */
.card.legal .qcat .category-header h2 {
  margin: 0;
  scroll-margin-top: 0;
}
.qcat .cat-subtitle {
  margin: 2px 0 4px;
  color: var(--ink-soft);
  font-size: 15px;
}
.qcat .cat-description {
  margin: 4px 0 14px;
}
.qcat .qlist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.qcat .qlist li {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.qcat .qlist li:last-child { border-bottom: none; }
.qcat .restriction {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Expand-all / collapse-all controls above the category stack. Kept
   visually light — they're a convenience for a power-user / Ctrl-F
   flow, not primary navigation. */
.qcat-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 10px;
}
.qcat-toggle {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.qcat-toggle:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 4%, transparent);
}

/* ----- Legal / terms page ----- */
.card.legal h1 { font-size: 28px; margin: 0 0 16px; }
.card.legal h2 { font-size: 20px; margin-top: 28px; scroll-margin-top: 20px; }
.card.legal h3 { font-size: 15px; margin: 18px 0 6px; color: var(--ink-soft); }
.card.legal p, .card.legal li {
  line-height: 1.6;
  font-size: 15px;
  color: var(--ink-soft);
}
.card.legal ul { padding-left: 22px; margin: 0 0 12px; }
.card.legal li { margin-bottom: 4px; }
.card.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 14px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin: 14px 0 10px;
}
