/* Hide My Details website. Flat dark surfaces, the app's blue accent, Geist throughout. */

:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --border: #272727;
  --border-strong: #313131;
  --text: #ffffff;
  --text-2: #9b9b9b;
  --text-3: #858585;
  --brand: #006ffc;
  --brand-hover: #1a7fff;
  --brand-text: #5aa2ff;
  --success: #4cb782;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --kind-person: #26b5ce;
  --kind-name: #e36ba7;
  --kind-email: #4ea7fc;
  --kind-phone: #f2c94c;
  --kind-address: #f2994a;
  --kind-payment: #4cb782;
  --kind-secret: #eb5757;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: top 700ms var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Type scale (Tailwind steps) */
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1; }
.text-6xl { font-size: 60px; line-height: 1; }
.text-7xl { font-size: 72px; line-height: 1; }

.muted { color: var(--text-2); }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.04em; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease),
    border-color 700ms var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.button-primary:active {
  transform: scale(0.98);
}

.button-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--border);
}

.button-sm {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 12px;
  border-radius: 9999px;
}

.button-lg {
  padding: 12px 24px;
}

.text-link {
  color: var(--brand-text);
  text-decoration: underline;
  text-decoration-color: rgba(90, 162, 255, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 700ms var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--brand-text);
}

/* Floating island nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  max-width: 100%;
  padding: 8px 8px 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(24, 24, 24, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 4px 12px;
  border-radius: 9999px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: color 700ms var(--ease), background-color 700ms var(--ease);
}

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

.nav-links a[aria-current="true"] {
  color: var(--text);
  background: var(--border);
}

.menu-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-2);
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 700ms var(--ease), top 700ms var(--ease);
}

.menu-button span:first-child { top: 15px; }
.menu-button span:last-child { top: 23px; }

.menu-open .menu-button span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-button span:last-child { top: 19px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px 32px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}

.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--ease), visibility 0s;
}

.menu-overlay a {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.menu-open .menu-overlay a {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay a:nth-child(1) { transition-delay: 100ms; }
.menu-overlay a:nth-child(2) { transition-delay: 150ms; }
.menu-overlay a:nth-child(3) { transition-delay: 200ms; }
.menu-overlay a:nth-child(4) { transition-delay: 250ms; }
.menu-overlay a:nth-child(5) { transition-delay: 300ms; }

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  color: var(--brand-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 160px 0 96px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 24px 48px rgba(0, 111, 252, 0.45));
}

.hero h1 {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(to right, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

.proof li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof i {
  color: var(--success);
  font-size: 16px;
}

.video-frame {
  position: relative;
  max-width: 1024px;
  margin: 64px auto 0;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #08090a;
}

.sound-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease);
}

.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sound-toggle:active {
  transform: scale(0.98);
}

/* Demo */
.demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.demo-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.kinds li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.kinds li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--dot);
}

.demo-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.segmented button {
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: color 700ms var(--ease), background-color 700ms var(--ease),
    border-color 700ms var(--ease);
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.segmented button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ticket {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  color: #171a20;
  border: 1px solid var(--border);
}

.ticket-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #e4e7ec;
}

.ticket-bar i {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}

.ticket-bar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #59616f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.ticket-body {
  padding: 32px;
}

.ticket-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  overflow: hidden;
  background: #e2a383;
}

.ticket-name {
  white-space: nowrap;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ticket-email {
  color: #59616f;
}

.ticket hr {
  margin: 24px 0;
  border: 0;
  height: 1px;
  background: #e4e7ec;
}

.ticket dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px 12px;
  margin: 0;
}

.ticket dt {
  color: #8a919e;
}

.ticket dd {
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* A redactable value. The ticket's data-style sets how it is hidden. */
.r {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 0 4px;
  margin: 0 -4px;
  border-radius: 6px;
  vertical-align: top;
}

.r-avatar {
  padding: 0;
  margin: 0;
  border-radius: 9999px;
}

.r > .v {
  display: block;
  transition: filter 700ms var(--ease);
}

.r::before,
.r::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

.r::before {
  background-image: conic-gradient(#c3c8d0 25%, #e1e4e9 0 50%, #aeb4be 0 75%, #d3d7dd 0);
  background-size: 12px 12px;
}

.r::after {
  background: #0d0e10;
}

.ticket[data-protected="true"][data-style="blur"] .r > .v { filter: blur(7px); }
.ticket[data-protected="true"][data-style="pixelate"] .r > .v { filter: blur(3px); }
.ticket[data-protected="true"][data-style="pixelate"] .r::before { opacity: 1; }
.ticket[data-protected="true"][data-style="blackout"] .r::after { opacity: 1; }

.ticket[data-protected="true"] .r {
  box-shadow: 0 0 0 2px var(--tint);
  transition: box-shadow 700ms var(--ease);
}

.ticket .r {
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 700ms var(--ease);
}

.demo-note {
  color: var(--text-3);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 700ms var(--ease), transform 700ms var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--brand-text);
  font-size: 24px;
}

.card p {
  color: var(--text-2);
}

kbd {
  display: inline-block;
  min-width: 24px;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--text);
}

/* Tagline reveal */
.tagline {
  padding: 96px 0;
}

.tagline p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.tagline .word {
  color: rgba(255, 255, 255, 0.3);
  transition: color 700ms var(--ease);
}

.tagline .word.on {
  color: var(--text);
}

/* Steps */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Pricing */
.price-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.price-list i {
  color: var(--success);
  font-size: 20px;
  margin-top: 2px;
}

.price-card .button {
  width: 100%;
}

.fine {
  color: var(--text-3);
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq details {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 700ms var(--ease);
}

.faq details:hover,
.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary i {
  flex-shrink: 0;
  color: var(--text-2);
  transition: transform 700ms var(--ease);
}

.faq details[open] summary i {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  border-radius: 16px;
}

.faq details p {
  padding: 0 24px 24px;
  color: var(--text-2);
}

/* Final CTA */
.final {
  text-align: center;
}

.final h2 {
  max-width: 680px;
  margin: 0 auto;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 700ms var(--ease);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* Prose pages (privacy, terms, 404) */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 160px 0 96px;
}

.prose h1 {
  margin-bottom: 16px;
}

.prose h2 {
  margin: 48px 0 12px;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose p + p {
  margin-top: 16px;
}

.prose ul {
  padding-left: 24px;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 96px 24px;
  text-align: center;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .demo { grid-template-columns: 5fr 6fr; gap: 64px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .nav-links,
  .nav-pill > .button { display: none; }
  .menu-button { display: block; }
  .nav-pill { gap: 16px; }
  .hero { padding-top: 128px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .ticket-name { font-size: 20px; line-height: 28px; }
  .ticket dd,
  .ticket dt { font-size: 14px; line-height: 20px; }
  .section-title { font-size: 36px; line-height: 40px; }
  .tagline p { font-size: 36px; line-height: 40px; }
  .ticket-body { padding: 24px; }
  .ticket dl { grid-template-columns: 72px 1fr; }
  .price-card { padding: 32px 24px; }
  .card { padding: 24px; }
  .sound-toggle { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

code {
  padding: 2px 4px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
}
