/* Caveau — marketing site
   Tokens match the app's "quiet strength" design system exactly. */

:root {
  --bg: #0B0B0F;
  --surface: #16161C;
  --surface-hi: #1F1F27;
  --hairline: rgba(255, 255, 255, 0.08);
  --brass: #D4AF5A;
  --brass-dim: rgba(212, 175, 90, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.60);
  --text-3: rgba(255, 255, 255, 0.38);
  --danger: #FF524D;
  --radius: 14px;
  --font-display: "New York", "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(212, 175, 90, 0.28); color: #fff; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow { max-width: 720px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand svg { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.nav-links a { color: var(--text-2); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text);
}

h1 { font-size: clamp(2.35rem, 6.4vw, 3.8rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 34em;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.05em; }

p { color: var(--text-2); }
p strong { color: var(--text); font-weight: 600; }

section { padding-block: 96px; }
section + section { border-top: 1px solid var(--hairline); }

.section-head { margin-bottom: 48px; max-width: 620px; }
.section-head p { margin-top: 14px; }

/* ---------- Hero ---------- */

.hero {
  padding-block: 84px 96px;
  text-align: center;
}

.hero .dial {
  margin-inline: auto;
  margin-bottom: 44px;
  display: block;
  width: clamp(200px, 42vw, 272px);
}

.hero h1 { margin-inline: auto; max-width: 13em; }

.hero .lede {
  margin: 22px auto 0;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.trust-line {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.trust-line b {
  font-weight: 500;
  color: var(--text-2);
}
.trust-line .sep { margin-inline: 10px; color: var(--text-3); }

@keyframes dial-settle {
  from { transform: rotate(-32deg); }
  to   { transform: rotate(0deg); }
}
.dial-ticks {
  transform-origin: 50% 50%;
  animation: dial-settle 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- App Store badge (placeholder) ---------- */

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brass);
  color: #0B0B0F;
  border-radius: 12px;
  padding: 13px 26px;
  line-height: 1.25;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}
.app-badge:hover { filter: brightness(1.06); color: #0B0B0F; }
.app-badge:active { transform: scale(0.985); }
.app-badge .badge-small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.75; }
.app-badge .badge-big { display: block; font-size: 17.5px; font-weight: 650; letter-spacing: -0.01em; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease,
              border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.985); }

.btn-brass { background: var(--brass); color: #0B0B0F; }
.btn-brass:hover { filter: brightness(1.06); color: #0B0B0F; }

.btn-ghost { border: 1px solid var(--hairline); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.22); }

.text-link {
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--brass); }

/* ---------- Grids & cards ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; }

.feature {
  border-top: 1px solid var(--hairline);
  padding: 24px 4px;
}
.feature h3 {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.feature p { font-size: 15px; }

/* ---------- Can / cannot see ---------- */

.seelist { list-style: none; }
.seelist li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 15.5px;
}
.seelist li:first-child { border-top: none; }
.seelist li strong { color: var(--text); }
.seelist li::before {
  position: absolute;
  left: 2px;
  top: 13px;
  font-size: 15px;
}
.seelist.cannot li::before { content: "\2014"; color: var(--text-3); } /* em dash */
.seelist.can li::before { content: "\2713"; color: var(--brass); }    /* check */

/* ---------- Pricing ---------- */

.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.price-card { display: flex; flex-direction: column; }

.price-card.lifetime { border-color: rgba(212, 175, 90, 0.35); }

.price-card .tier {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.price-card.lifetime .tier { color: var(--brass); }

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.1;
  margin-top: 14px;
}
.price-card .price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-2);
  margin-left: 8px;
}

.price-card ul {
  list-style: none;
  margin-top: 22px;
  flex: 1;
}
.price-card li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--text-2);
  font-size: 15px;
  border-top: 1px solid var(--hairline);
}
.price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--text-3);
}
.price-card.lifetime li::before { color: var(--brass); }
.price-card li strong { color: var(--text); }

.price-note {
  margin-top: 26px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  background: var(--surface);
}
td { color: var(--text-2); }
td.good { color: var(--text); }
thead th:nth-child(2), tbody td:nth-child(2) { background: rgba(212, 175, 90, 0.04); }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--hairline); }

details {
  border-bottom: 1px solid var(--hairline);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
summary:hover { color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-3);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
details[open] summary::after { transform: rotate(45deg); color: var(--brass); }
details .answer {
  padding: 0 4px 24px;
  max-width: 46em;
}
details .answer p { font-size: 15.5px; }
details .answer p + p { margin-top: 12px; }

/* ---------- Recovery-key motif ---------- */

.keyline {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  user-select: none;
}
.keyline .lit { color: var(--brass); }

.kit-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------- Prose pages (privacy, terms, changelog) ---------- */

.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.35rem;
  margin-top: 52px;
  margin-bottom: 14px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 14px 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; font-size: 16px; }
.prose li::marker { color: var(--text-3); }

.effective {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 12px;
}

.page-head {
  padding-block: 72px 0;
}
.page-head .lede { margin-top: 18px; }
.page-body { padding-block: 56px 96px; }

/* ---------- Callouts ---------- */

.callout {
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 22px 26px;
  margin-block: 28px;
}
.callout p { font-size: 15.5px; }
.callout.warning { border-left-color: var(--danger); }
.callout .callout-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 8px;
}
.callout.warning .callout-title { color: var(--danger); }

/* ---------- Changelog ---------- */

.release { border-top: 1px solid var(--hairline); padding-block: 44px; }
.release:first-of-type { border-top: none; padding-top: 0; }
.release .version {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.release .date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-left: 14px;
}
.release h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin: 28px 0 6px;
}
.release ul { list-style: none; margin-top: 6px; }
.release li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-2);
  font-size: 15.5px;
  border-top: 1px solid var(--hairline);
}
.release li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-3);
}
.release li strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 44px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 24em;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-2); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 16em; margin-inline: auto; }
.cta-band .lede { margin: 16px auto 0; }
.cta-band .hero-cta { margin-top: 34px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding-block: 72px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding-block: 60px; }
  .hero { padding-block: 56px 64px; }
  .grid-3, .grid-2, .price-cards { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links .nav-github { display: none; }
  .card, .kit-card { padding: 22px; }
  .page-head { padding-block: 52px 0; }
  .page-body { padding-block: 40px 64px; }
  .trust-line .sep { margin-inline: 7px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .dial-ticks { animation: none; }
}
