/* PrivoVault — landing page. Self-hosted fonts, no third-party requests. */

/* Display serif: Bodoni Moda (Latin), Playfair Display (Vietnamese), Noto Naskh Arabic. */
@font-face { font-family: "PV Display"; src: url("/fonts/bodoni-moda.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PV Display"; src: url("/fonts/bodoni-moda-ext.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PV Display Vi"; src: url("/fonts/playfair-latin.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PV Display Vi"; src: url("/fonts/playfair-ext.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: "PV Display Vi"; src: url("/fonts/playfair-vi.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "PV Display Ar"; src: url("/fonts/naskh-ar.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* Text: Inter (Latin, Latin-ext, Vietnamese) + Noto Sans Arabic. */
@font-face { font-family: "PV Sans"; src: url("/fonts/inter.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PV Sans"; src: url("/fonts/inter-ext.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PV Sans"; src: url("/fonts/inter-vi.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "PV Sans"; src: url("/fonts/notosans-ar.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --navy: #0A1128;        /* page */
  --navy-raised: #111B38; /* phone pane */
  --charcoal: #1C1C1E;    /* cloud pane */
  --gold: #D4AF37;        /* one accent: brand, key moments */
  --ivory: #F2F0EA;       /* primary text */
  --slate: #A3A9B8;       /* secondary text */
  --hair: rgba(212, 175, 55, 0.28);
  --line: rgba(163, 169, 184, 0.16);

  --serif: "PV Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "PV Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 56px);
  --measure: 64ch;
  --max: 1160px;
  color-scheme: dark;
}

:lang(vi) { --serif: "PV Display Vi", Georgia, serif; }
:lang(ar) { --serif: "PV Display Ar", "PV Display", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ivory); color: var(--navy); padding: 8px 14px; border-radius: 6px; }
.skip:focus { inset-inline-start: 16px; }

/* ------------------------------------------------------------ header */

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); }
.dial { width: 26px; height: 26px; }
.wordmark {
  font: 400 15px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase; /* the logotype, not a label */
  color: var(--gold);
}
.top-end { display: flex; align-items: center; gap: 28px; }
.top nav.sections { display: flex; gap: 28px; font-size: 14px; }
.top nav.sections a { color: var(--slate); text-decoration: none; }
.top nav.sections a:hover { color: var(--ivory); }

.lang { position: relative; font-size: 14px; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--slate); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ivory); border-color: var(--hair); }
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10;
  list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--charcoal); border: 1px solid var(--hair); border-radius: 12px;
}
.lang li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--slate); text-decoration: none; }
.lang li a:hover { background: var(--navy-raised); color: var(--ivory); }
.lang li a[aria-current="page"] { color: var(--gold); }

.legal { max-width: 760px; padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.legal .back { margin: 0 0 32px; font-size: 14px; }
.legal .back a { color: var(--slate); }
.legal h1 { font: 400 clamp(36px, 5vw, 56px)/1.1 var(--serif); margin: 0; }
.legal .effective { color: var(--slate); font-size: 14px; margin: 12px 0 48px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal section h2 { font: 500 19px/1.35 var(--sans); letter-spacing: -0.01em; margin: 0 0 12px; }
.legal section p { color: var(--slate); margin: 0 0 12px; max-width: var(--measure); }
.legal a { color: var(--ivory); }

/* -------------------------------------------------------------- hero */

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: clamp(40px, 9vw, 112px) 0 clamp(64px, 10vw, 128px); }
:lang(ar) .hero h1, :lang(ar) section h2 { letter-spacing: 0; line-height: 1.35; }
:lang(ar) body, :lang(ar) .lede, :lang(ar) .row dd { line-height: 1.8; }
.hero h1 {
  font: 400 clamp(40px, 7.4vw, 96px)/1.02 var(--serif);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}
.lede {
  max-width: 52ch;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--slate);
}

.split {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair);
  border-radius: 22px;
  overflow: hidden;
}
.pane { margin: 0; padding: clamp(22px, 4vw, 44px); min-height: 360px; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.pane-phone { background: var(--navy-raised); }
.pane-cloud { background: var(--charcoal); border-inline-start: 1px solid var(--hair); }
figcaption { font-size: 14px; color: var(--slate); margin-bottom: 36px; }

.nw-label { margin: 0; font-size: 14px; color: var(--slate); }
.nw {
  margin: 6px 0 28px;
  font: 300 clamp(26px, 5vw, 60px)/1.1 var(--sans);
  font-size: clamp(24px, 11cqi, 60px); /* scale to the pane: VND figures are long */
  overflow-wrap: anywhere;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
  transition: color .4s ease;
}
.nw.locked { color: rgba(242, 240, 234, 0.42); }
.nw.open { color: var(--gold); }

.buckets { display: grid; gap: 12px; margin-bottom: 32px; }
.bucket { display: grid; grid-template-columns: 9.5em 1fr 3em; align-items: center; gap: 14px; font-size: 13px; color: var(--slate); }
.bucket i { display: block; height: 2px; background: var(--line); position: relative; border-radius: 2px; }
.bucket i::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 2px;
  background: var(--gold); transition: width .9s cubic-bezier(.2, 0, 0, 1);
}
.bucket b { font-weight: 400; text-align: end; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .5s ease .4s; }
.buckets.open .bucket:nth-child(1) i::after { width: 18%; }
.buckets.open .bucket:nth-child(2) i::after { width: 46%; }
.buckets.open .bucket:nth-child(3) i::after { width: 36%; }
.buckets.open .bucket b { opacity: 1; }

.unlock {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ivory); font: 500 15px var(--sans);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 1.2; }
.ring-track { stroke: var(--hair); }
.ring-fill { stroke: var(--gold); stroke-dasharray: 125.7; stroke-dashoffset: 125.7; transition: stroke-dashoffset .15s linear; }
.unlock.holding .ring-fill { stroke-dashoffset: 0; transition: stroke-dashoffset .7s linear; }
.unlock[aria-pressed="true"] .ring-fill { stroke-dashoffset: 0; transition: none; }
.sample-note { margin: 18px 0 0; font-size: 12.5px; color: rgba(163, 169, 184, 0.7); }

.file { margin: 0 0 18px; font: 13px var(--mono); color: var(--slate); }
.cipher {
  margin: 0; flex: 1;
  font: 12.5px/1.75 var(--mono);
  color: rgba(163, 169, 184, 0.55);
  white-space: pre-wrap; word-break: break-all;
  overflow: hidden;
  max-height: 210px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.cloud-note { margin: 18px 0 0; font-size: 14px; color: var(--slate); transition: color .5s ease; }
.cloud-note.emph { color: var(--ivory); }

.stores { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 168px; height: 56px; padding: 0 22px;
  border: 1px solid var(--hair); border-radius: 12px;
  text-decoration: none; color: var(--ivory); background: rgba(17, 27, 56, 0.6);
  transition: border-color .2s ease, background-color .2s ease;
}
.store:hover { border-color: var(--gold); background: var(--navy-raised); }
.store:active { transform: scale(.98); }
.store-small { font-size: 11.5px; line-height: 1.2; color: var(--slate); }
.store-big { font: 500 18px/1.2 var(--sans); letter-spacing: -0.01em; }
.availability { margin: 0; margin-inline-start: 6px; font-size: 14px; color: var(--slate); }
.foot a { color: var(--slate); text-decoration: none; }
.foot a:hover { color: var(--ivory); }
@media (max-width: 520px) {
  .store { flex: 1 1 140px; min-width: 0; }
  .availability { flex-basis: 100%; margin: 4px 0 0; }
}

/* ------------------------------------------------------ what it keeps */

section h2 {
  font: 400 clamp(30px, 4vw, 48px)/1.1 var(--serif);
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.keeps, .privacy, .never, .kit, .faq { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }

.rows { margin: 0; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.row:first-child { padding-top: 0; }
.row dt { font: 500 19px/1.35 var(--sans); letter-spacing: -0.01em; }
.row dd { margin: 0; color: var(--slate); max-width: var(--measure); }

/* -------------------------------------------------------- privacy path */

.section-lede { margin: -16px 0 48px; color: var(--slate); max-width: var(--measure); }
.path {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
}
.path li { position: relative; padding-block: 34px 0; padding-inline: 0 28px; }
/* A gold rail with a node per step: the path an entry actually takes. */
.path li::before {
  content: ""; position: absolute; top: 6px; inset-inline: 0; height: 1px; background: var(--hair);
}
.path li::after {
  content: ""; position: absolute; top: 2px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--gold);
}
.path li:first-child::after { background: var(--gold); }
.path h3 { margin: 0 0 10px; font: 500 17px/1.35 var(--sans); }
.path p { margin: 0; color: var(--slate); font-size: 15.5px; }

/* ------------------------------------------------------ never / kit */

.never-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.never-list li { color: var(--slate); max-width: 46ch; }
.never-list strong { display: block; color: var(--ivory); font-weight: 500; margin-bottom: 6px; }

.kit p { max-width: 58ch; font: 400 clamp(20px, 2.2vw, 24px)/1.55 var(--serif); font-variation-settings: "opsz" 24; color: var(--ivory); margin: 0; }

/* -------------------------------------------------------------- faq */

.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 22px; padding-inline: 0 40px; position: relative;
  font: 500 17px/1.4 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: -6px 0 24px; color: var(--slate); max-width: var(--measure); }

/* ------------------------------------------------------------ footer */

.foot {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 64px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px;
  font-size: 13.5px; color: var(--slate);
}
.foot p { margin: 0; }
.foot .wordmark.small { font-size: 12px; margin-inline-end: auto; }

/* -------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .top nav.sections { display: none; }
  .split { grid-template-columns: 1fr; }
  .pane-cloud { border-inline-start: 0; border-top: 1px solid var(--hair); }
  .pane { min-height: 0; }
  .cipher { max-height: 150px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { padding-block: 0 32px; padding-inline: 32px 0; }
  .path li::before { top: 4px; bottom: 0; inset-inline-start: 4px; inset-inline-end: auto; width: 1px; height: auto; }
  .path li:last-child::before { display: none; }
  .path li::after { top: 0; }
  .never-list { grid-template-columns: 1fr; gap: 28px; }
  .bucket { grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 2.6em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
