/* Privaro — "The Vault". Dark, editorial, security-grade. */
:root {
  --bg: #0a0b0e;
  --bg-soft: #101218;
  --surface: #101218;
  --surface-2: #15181f;
  --ink: #f3f4f6;
  --ink-soft: #d6d8dd;
  --muted: #9aa0aa;
  --faint: #6b7077;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --acc: #d9a24c;
  --acc-soft: rgba(217, 162, 76, .12);
  --acc-line: rgba(217, 162, 76, .30);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--acc); color: #0a0b0e; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; line-height: 1.1; font-weight: 500; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--acc);
}
.applogo { display: block; border-radius: 23%; }

/* Top header (lives inside the hero) */
.site-head { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; }
.head-div { width: 1px; height: 18px; background: var(--line-strong); }
@media (max-width: 560px) { .head-div { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: .01em; }
.brand .applogo { width: 26px; height: 26px; }
.headlinks { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.headlinks a:hover { color: var(--ink); }

/* Hero */
.hero { padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; margin-top: 76px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05; letter-spacing: -.02em; margin: 16px 0 20px;
}
.hero h1 .hl { font-style: italic; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 410px; margin-bottom: 30px; }
.hero .fineprint { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 16px; letter-spacing: .02em; }

/* App Store badge (white, on dark) */
.appstore-badge { display: inline-block; line-height: 0; transition: opacity .15s ease; }
.appstore-badge:hover { opacity: .85; }
.appstore-badge img { height: 56px; width: auto; display: block; }

/* Proof panel ("to break in...") */
.proof { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.proof-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; color: var(--muted); margin-bottom: 18px; }
.proof-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.proof-list li { display: flex; gap: 12px; align-items: flex-start; }
.proof-list .n { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; min-width: 16px; }
.proof-list .t { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.proof-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--acc); line-height: 1.5; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .hero .lead { max-width: none; }
}

/* Section heading (left-aligned, editorial) */
.section-head { max-width: 560px; margin: 0 0 52px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* Features — hairline-divided spec grid */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; counter-reset: feat;
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
/* Bento: two featured wide tiles on desktop */
@media (min-width: 881px) {
  .features { grid-template-columns: repeat(4, 1fr); }
  .feat:nth-child(1), .feat:nth-child(6) { grid-column: span 2; background: rgba(217, 162, 76, .05); }
  .feat:nth-child(1):hover, .feat:nth-child(6):hover { background: var(--surface); }
  .feat:nth-child(1) .ic, .feat:nth-child(6) .ic { width: 48px; height: 48px; border-radius: 13px; }
  .feat:nth-child(1) .ic svg, .feat:nth-child(6) .ic svg { width: 24px; height: 24px; }
  .feat:nth-child(1) h3, .feat:nth-child(6) h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
  .feat:nth-child(1) p, .feat:nth-child(6) p { font-size: 14.5px; max-width: 82%; }
}
.feat { position: relative; background: var(--bg); padding: 34px 30px; counter-increment: feat; transition: background .25s ease; }
.feat::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.feat::after { content: counter(feat, decimal-leading-zero); position: absolute; top: 26px; right: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--faint); transition: color .25s ease; }
.feat:hover { background: var(--surface); }
.feat:hover::before { transform: scaleX(1); }
.feat:hover::after { color: var(--acc); }
.feat .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.feat:hover .ic { background: rgba(217, 162, 76, .2); border-color: var(--acc); transform: translateY(-2px); }
.feat .ic svg { width: 21px; height: 21px; }
.feat h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Screenshots showcase */
.shots { display: flex; gap: 36px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 15px; position: relative; }
.shot:nth-child(2) { transform: translateY(-28px); }
.shot:hover { z-index: 2; }
.shot .cap { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); }
.device { width: 244px; background: #15181f; border: 1px solid var(--line-strong); border-radius: 38px; padding: 9px; box-shadow: 0 28px 55px rgba(0, 0, 0, .55), 0 10px 24px rgba(0, 0, 0, .4); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
.shot:nth-child(1) .device, .shot:nth-child(3) .device { transform: perspective(1600px) rotateY(-12deg); }
.shot:nth-child(2) .device { transform: perspective(1600px) rotateY(12deg); }
.shots .device:hover { transform: perspective(1600px) rotateY(0deg) scale(1.06); box-shadow: 0 40px 80px rgba(0, 0, 0, .62), 0 16px 34px rgba(0, 0, 0, .48); }
.device img { display: block; width: 100%; height: auto; border-radius: 30px; }
@media (max-width: 860px) { .shot:nth-child(2) { transform: none; } }
@media (max-width: 560px) { .device { width: 220px; } .shots { gap: 40px; } .shot .device { transform: none; } }

/* Pricing (Free vs Pro) */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 680px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; }
.plan--pro { border-color: var(--acc-line); background: rgba(217, 162, 76, .05); }
.plan .badge { position: absolute; top: -11px; right: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #0a0b0e; background: var(--acc); padding: 4px 11px; border-radius: 999px; }
.plan .pname { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.plan--pro .pname { color: var(--acc); }
.plan .price { font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.plan .price span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .pnote { font-size: 13px; color: var(--faint); margin-top: 8px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin-top: 26px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.plan li svg { width: 18px; height: 18px; color: var(--acc); flex-shrink: 0; margin-top: 2px; }
.pricing-more { text-align: center; margin-top: 26px; }
.pricing-more a { font-family: var(--mono); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color .2s ease, border-color .2s ease; }
.pricing-more a:hover { color: var(--acc); border-color: var(--acc-line); }
.pricing-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.pricing-cta .fineprint { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* Footer */
footer { padding: 56px 0 64px; }
footer .row { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
footer .cols { display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; }
footer .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; font-weight: 400; }
footer .col a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
footer .col a:hover { color: var(--ink); }
footer .legal { margin-top: 40px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); text-align: center; }
footer .legal a:hover { color: var(--ink); }
@media (max-width: 560px) { footer .row { flex-direction: column; text-align: center; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Legal pages */
.legal-page { max-width: 740px; margin: 0 auto; padding: 80px 24px 96px; }
.legal-page .back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 30px; }
/* Back link and language switcher share a row on the legal pages. */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.legal-top .back { margin-bottom: 0; }
.legal-page .authoritative { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal-page .back:hover { color: var(--ink); }
.legal-page h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 46px); margin-bottom: 10px; }
.legal-page .updated { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-bottom: 20px; }
.legal-page .intro { font-size: 17px; color: var(--muted); margin-bottom: 30px; line-height: 1.7; }
.legal-page h2 { font-size: 20px; font-weight: 600; margin: 42px 0 12px; letter-spacing: -.01em; }
.legal-page p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.legal-page ul { margin: 0 0 16px 2px; padding-left: 20px; }
.legal-page li { color: var(--ink-soft); margin-bottom: 9px; line-height: 1.6; }
.legal-page a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--acc); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 32px; }
.callout strong { color: var(--ink); }

/* Pro features page */
.legal-page .eyebrow { display: block; margin-bottom: 16px; }
.legal-page--wide { max-width: 940px; }
.legal-page--wide .intro { max-width: 620px; }
.pro-cols { display: flex; align-items: stretch; gap: 56px; margin-top: 44px; counter-reset: pro; }
.pro-cols .pro-list { flex: 1; }
.pro-vdivider { flex: 0 0 1px; background: var(--line); }
.pro-list { list-style: none; display: flex; flex-direction: column; }
.pro-item { position: relative; display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); counter-increment: pro; }
.pro-item:first-child { border-top: none; padding-top: 0; }
.pro-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pro-item .ic svg { width: 23px; height: 23px; }
.pro-item > div:last-child { padding-right: 28px; }
.pro-item h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 7px; }
.pro-item p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.pro-item::after { content: counter(pro, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--faint); position: absolute; top: 30px; right: 0; }
.pro-item:first-child::after { top: 2px; }
@media (max-width: 760px) {
  .legal-page--wide { max-width: 740px; }
  .pro-cols { flex-direction: column; gap: 0; }
  .pro-vdivider { display: none; }
  .pro-cols .pro-list + .pro-list .pro-item:first-child { border-top: 1px solid var(--line); padding-top: 28px; }
  .pro-cols .pro-list + .pro-list .pro-item:first-child::after { top: 30px; }
}
@media (max-width: 560px) { .pro-item::after { display: none; } }

/* Pro page top row (back link + language switcher) */
.pro-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.pro-top .back { margin-bottom: 0; }

/* Language switcher */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang summary svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 55px rgba(0, 0, 0, .55); z-index: 70; }
.lang-menu a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.lang-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu a.active { color: var(--acc); }

/* ---------------------------------------------------------------------------
   Minimal pass: the feature grid and the two pricing cards were the two most
   templated shapes on the page. Both are now type on hairlines — the content
   is identical, the furniture is gone.
   --------------------------------------------------------------------------- */

.ledger { margin: 0; border-top: 1px solid var(--line); }
.ledger-row {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.ledger dt { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.ledger dd { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; max-width: 60ch; }

.price-line { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-bottom: 10px; }
.price-amount { font-family: var(--serif); font-size: clamp(44px, 7vw, 72px); line-height: 1; color: var(--ink); }
.price-once { font-family: var(--mono); font-size: 13px; color: var(--acc); letter-spacing: .04em; }
.price-note { margin: 0; color: var(--muted); font-size: 15px; }

.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 28px; }
.tier h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin: 0 0 10px; }
.tier p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .tiers { grid-template-columns: 1fr; gap: 26px; }
}

/* Legal section numbers come from CSS, not the translated strings, so adding
   or removing a section never means re-translating nine headings. */
.legal-page { counter-reset: legal-section; }
.legal-page h2 { counter-increment: legal-section; }
.legal-page h2::before { content: counter(legal-section) ". "; color: var(--acc); }
