/* RemoteVault site. Palette and shapes are taken from the app's vault logo. */
:root {
  --steel-0: #f3f7fb;   /* page */
  --steel-1: #e3edf6;   /* plate */
  --steel-2: #c5d7e8;   /* plate edge */
  --ink: #0b2545;       /* text, dark band */
  --ink-soft: #3d5676;  /* secondary text */
  --blue: #1763c6;      /* action */
  --blue-deep: #0f4c9c;
  --glow: #27bdeb;      /* keyhole light */
  --alarm: #d4354b;     /* only where something is wrong */
  --ok: #0f8a5f;
  --display: "Sofia Sans Extra Condensed", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--steel-0);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img, svg { display: block; }
a { color: var(--blue); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.002em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section-lead { max-width: 62ch; margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); }
.fineprint { font-size: 0.93rem; color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 1.02rem/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(23, 99, 198, 0.9); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--steel-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-light:hover { border-color: #fff; }
.btn-small { padding: 0.5rem 0.95rem; font-size: 0.95rem; background: var(--ink); color: #fff; }
.btn-small:hover { background: var(--blue-deep); }
.btn-large { padding: 1.05rem 1.8rem; font-size: 1.15rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 247, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-2);
}
.nav-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 800 1.75rem/1 var(--display); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav-end { display: flex; align-items: center; gap: 0.75rem; }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.7rem; border: 1px solid var(--steel-2); border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--ink); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 11rem;
  background: #fff; border: 1px solid var(--steel-2); border-radius: 12px; padding: 0.35rem;
  box-shadow: 0 18px 40px -18px rgba(11, 37, 69, 0.45);
}
.lang li a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--steel-1); }
.lang li a[aria-current] { font-weight: 700; color: var(--blue); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { margin-top: 1.4rem; max-width: 54ch; font-size: 1.2rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.1rem; }

/* The vault: point-in-time restore demo */
.vault {
  position: relative;
  padding: 1.5rem 1.5rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #eef5fb 0%, #d5e4f1 100%);
  border: 1px solid #b4cbe0;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55), inset 0 0 0 7px #bcd1e4, 0 40px 70px -40px rgba(11, 37, 69, 0.55);
}
.rivet { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8fa9c2 70%); }
.r1 { top: 13px; left: 13px; } .r2 { top: 13px; right: 13px; } .r3 { bottom: 13px; left: 13px; } .r4 { bottom: 13px; right: 13px; }
.vault-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; padding: 0.2rem 0.4rem 0.9rem; color: var(--ink); }
.vault-title { font-weight: 700; }
.state {
  margin-left: auto; padding: 0.22rem 0.7rem; border-radius: 99px;
  font-size: 0.88rem; font-weight: 700; color: #fff; background: var(--ok); white-space: nowrap;
}
.is-locked .state { background: var(--alarm); }

.files { background: #fff; border: 1px solid var(--steel-2); border-radius: 12px; min-height: 17.6rem; overflow: hidden; }
.files li { display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0.9rem; border-bottom: 1px solid var(--steel-1); font-size: 0.98rem; }
.files li:last-child { border-bottom: 0; }
.files .ico { flex: none; width: 20px; height: 20px; color: var(--blue); }
.files .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files .meta { margin-left: auto; flex: none; color: var(--ink-soft); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.files li.locked .ico, .files li.locked .name { color: var(--alarm); }
.files li.note { background: #fdecef; }
.files li.note .name { color: var(--alarm); }

.dial { padding: 1.1rem 0.4rem 0.2rem; }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.95rem; }
.dial-top label { color: var(--ink-soft); }
.dial-top output { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.track { position: relative; margin-top: 0.5rem; padding-bottom: 1.5rem; }
.track input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 12px; margin: 0; border-radius: 99px; cursor: grab;
  background: linear-gradient(90deg, var(--glow) 0, var(--glow) var(--attack, 80%), var(--alarm) var(--attack, 80%), var(--alarm) 100%);
  box-shadow: inset 0 1px 2px rgba(11, 37, 69, 0.35);
}
.track input:active { cursor: grabbing; }
.track input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ink) 0 5px, #fff 6px 100%);
  border: 3px solid var(--ink); box-shadow: 0 4px 10px rgba(11, 37, 69, 0.4);
}
.track input::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ink) 0 5px, #fff 6px 100%);
  border: 3px solid var(--ink); box-shadow: 0 4px 10px rgba(11, 37, 69, 0.4);
}
.attack { position: absolute; top: 12px; left: var(--attack, 80%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.attack i { width: 2px; height: 8px; background: var(--alarm); }
.attack b { font-size: 0.8rem; color: var(--alarm); white-space: nowrap; }
.dial-ends { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); margin-top: -1.1rem; }
.vault figcaption { margin-top: 0.9rem; padding: 0 0.4rem; font-size: 0.88rem; color: var(--ink-soft); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }

.band { background: var(--ink); color: #e9f1f8; }
.band .section-lead, .band p { color: #b9cbe0; }
.band h2 { color: #fff; }

/* Threat ledger */
.ledger { margin-top: 2.8rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 4vw, 4rem); }
.ledger-head { padding: 0.9rem 0; font-size: 0.95rem; color: #8fa9c6; }
.ledger-row { padding: 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.ledger-row .problem { position: relative; padding-left: 1.5rem; font: 600 clamp(1.5rem, 2.4vw, 1.95rem)/1.1 var(--display); color: #fff; }
.ledger-row .problem::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--alarm); }
.ledger-row .answer { color: #cfdcec; font-size: 1.1rem; }

/* Who it is for */
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); margin-top: 2.8rem; }
.who-icon { width: 48px; height: 48px; color: var(--blue); margin-bottom: 1.1rem; stroke-width: 2; }
.who-col h3 { font: 800 2rem/1.05 var(--display); }
.who-col p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 48ch; }
.ticks { margin-top: 1.3rem; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.42em; width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg);
}
.ticks-light li::before { border-color: var(--glow); }
.ticks-light { font-size: 1.15rem; color: #fff; align-content: start; }

/* Feature list */
.features { background: var(--steel-1); }
.spec { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.spec > div { padding: 1.5rem 0; border-top: 2px solid var(--ink); }
.spec dt { font: 800 1.75rem/1.1 var(--display); }
.spec dd { margin-top: 0.5rem; color: var(--ink-soft); max-width: 52ch; }

/* Steps */
.steps { margin-top: 2.8rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.1rem;
  border-radius: 50%; border: 3px solid var(--ink);
  font: 800 2rem/1 var(--display);
  background: radial-gradient(circle at 50% 50%, #fff 0 60%, var(--steel-1) 61%);
}
.steps p { margin-top: 0.5rem; color: var(--ink-soft); }

/* Storage */
.storage { padding-top: 0; }
.storage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--steel-2); }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.providers li { padding: 0.95rem 1.1rem; border: 1px solid var(--steel-2); border-radius: 12px; background: #fff; font: 800 1.6rem/1 var(--display); }

/* Free and open */
.free-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.free p { margin-top: 1.1rem; max-width: 56ch; font-size: 1.12rem; }
.free .btn { margin-top: 1.8rem; }

/* Call to action and contact */
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.contact { padding-top: 0; }
.contact .wrap { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--steel-2); }
.contact-list { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.contact-list span { display: block; font-size: 0.95rem; color: var(--ink-soft); }
.contact-list a { font: 800 clamp(1.5rem, 2.4vw, 1.9rem)/1.2 var(--display); color: var(--ink); text-decoration-color: var(--glow); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue); }

/* Footer */
.foot { border-top: 1px solid var(--steel-2); padding: 1.6rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.foot-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot .brand { font-size: 1.5rem; }
.foot nav { margin-left: auto; display: flex; gap: 1.2rem; }
.foot nav a { color: var(--ink); }

/* Smaller screens */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
}
@media (max-width: 880px) {
  .hero-grid, .who-grid, .storage-grid, .free-grid, .spec { grid-template-columns: minmax(0, 1fr); }
  .steps, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .ledger-row .answer { padding-left: 1.5rem; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .lang summary span { display: none; }
  .vault { padding: 1.2rem 1rem 1rem; }
  .files .meta { display: none; }
  .providers li { font-size: 1.35rem; }
  .btn-primary, .btn-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
