/* Profile Unhider — Editorial dark theme
   Tokens sampled from the approved theme reference. */
:root {
  --page: #171613;
  --ink: #f1eee5;
  --muted: #aaa499;
  --line: #48443e;
  --surface: #211f1b;
  --surface2: #2a2722;
  --chip: #35312b;
  --accent: #ff6942;
  --accent-ink: #171613;
  --cream-shadow: #d4cec2;
  --radius: 14px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

section { scroll-margin-top: 96px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 22, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.07); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  padding: 11px 6px;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 34em;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Demo widget ---------- */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--cream-shadow);
  overflow: hidden;
  min-height: 430px;
  position: relative;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chip); }
.dot:nth-child(1) { background: #e0603f; }
.dot:nth-child(2) { background: #d9a441; }
.dot:nth-child(3) { background: #7ba05b; }

.demo-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-body { padding: 22px; position: relative; min-height: 350px; }

.demo-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.avatar svg { width: 26px; height: 26px; }

.demo-name { font-weight: 700; font-size: 16.5px; }
.demo-sub { color: var(--muted); font-size: 13.5px; }

.found-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.demo.is-revealed .found-badge { opacity: 1; transform: none; }

.censor-row { margin: 26px 0; }

.censor-bar {
  height: 26px;
  background: var(--ink);
  border-radius: 4px;
  width: 82%;
  margin-bottom: 14px;
}

.demo-reveal-btn {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--page);
  font-weight: 650;
  font-size: 15.5px;
  border: none;
  border-radius: 999px;
  padding: 13px;
  cursor: default;
}

.demo-hidden-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 14px;
}

.demo-state { transition: opacity 0.6s ease; }
.demo-hidden { position: absolute; inset: 22px; }
.demo-revealed { opacity: 0; pointer-events: none; }

.demo.is-revealed .demo-hidden { opacity: 0; pointer-events: none; }
.demo.is-revealed .demo-revealed { opacity: 1; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 4px -22px 0;
  padding: 0 22px;
}

.tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  position: relative;
}

.tab.active { color: var(--ink); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.post {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.post:last-child { border-bottom: none; }

.demo.is-revealed .post { opacity: 1; transform: none; }
.demo.is-revealed .post:nth-child(1) { transition-delay: 0.15s; }
.demo.is-revealed .post:nth-child(2) { transition-delay: 0.35s; }
.demo.is-revealed .post:nth-child(3) { transition-delay: 0.55s; }

.post-score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  min-width: 34px;
  padding-top: 3px;
}

.post-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-meta b { color: var(--accent); font-weight: 600; }

.post-title { font-weight: 600; font-size: 15.5px; line-height: 1.45; }

.demo-foot {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface2);
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }

.section-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.section-intro { color: var(--muted); max-width: 38em; margin-bottom: 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Changelog ---------- */
.version { padding: 26px 0; border-bottom: 1px solid var(--line); }
.version:last-child { border-bottom: none; }

.version-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 6px;
  padding: 3px 10px;
}

.version-date { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.version ul { list-style: none; }
.version li {
  color: var(--muted);
  font-size: 15.5px;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}

.version li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line);
}

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

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 650;
  font-size: 17.5px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 22px;
  flex: none;
}

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

.faq-item .answer {
  color: var(--muted);
  padding: 0 0 26px;
  max-width: 44em;
  font-size: 15.5px;
}

/* ---------- Footer ---------- */
footer { padding: 44px 0 56px; }

.foot-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-inner a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-inner a:hover { color: var(--ink); }

.foot-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 13.5px;
  font-family: var(--font-mono);
}

/* ---------- Privacy page ---------- */
.prose { max-width: 720px; padding: 64px 0 80px; }

.prose h1 { font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 12px; }
.prose .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
.prose ul { margin: 0 0 16px 4px; list-style: none; }
.prose li { color: var(--muted); margin-bottom: 8px; padding-left: 22px; position: relative; font-size: 16px; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--line); }
.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding: 60px 0 52px; }
  .demo { min-height: 400px; }
}
