/* capturevault.app. One stylesheet, no JavaScript, no web fonts, no third-party requests.
   Radius rule: cards 20px, controls 12px, device frames 48px outside and 38px on the screen.
   One accent (mint/teal from the app icon), light and dark schemes from the system preference. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f7fa;
  --surface-2: #e6eef4;
  --text: #0c1a2b;
  --muted: #465a6e;
  --line: rgb(12 26 43 / 0.12);
  --accent: #0a7a6e;
  --accent-strong: #075f56;
  --accent-soft: rgb(10 122 110 / 0.1);
  --on-accent: #fbfcfd;
  --navy: #0d1c30;
  --shadow: 0 24px 60px -28px rgb(13 28 48 / 0.35);
  --radius-card: 20px;
  --radius-control: 12px;
  --max: 1160px;
  --read: 68ch;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1422;
    --surface: #102035;
    --surface-2: #152a44;
    --text: #e6eff6;
    --muted: #a3b6c8;
    --line: rgb(163 182 200 / 0.16);
    --accent: #45dcc7;
    --accent-strong: #7de9da;
    --accent-soft: rgb(69 220 199 / 0.12);
    --on-accent: #062724;
    --shadow: 0 30px 70px -30px rgb(0 0 0 / 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  min-height: 44px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  border-radius: var(--radius-control);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-2);
}

.nav .lang {
  color: var(--muted);
}

@media (max-width: 560px) {
  .nav .nav-optional {
    display: none;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms ease;
}

@media (min-width: 400px) {
  .button {
    white-space: nowrap;
  }
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

a.button-primary:hover {
  background: var(--accent-strong);
}

.button-soon {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  cursor: default;
}

.button-quiet {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}

.button-quiet:hover {
  background: var(--surface-2);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.375rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.625rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 44ch;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

.eyebrow img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* Sections */
section {
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-copy > * + * {
  margin-top: 1.5rem;
}

.hero h1 .second {
  display: block;
  color: var(--accent-strong);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.device {
  justify-self: center;
  width: min(100%, 320px);
  padding: 10px;
  border-radius: 48px;
  background: var(--navy);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.device img {
  border-radius: 38px;
  width: 100%;
  aspect-ratio: 600 / 1304;
  object-fit: cover;
}

/* Facts band */
.facts {
  padding-block: 0;
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 2rem;
  border-block: 1px solid var(--line);
}

.facts li {
  font-weight: 600;
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
}

.facts li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-0.1em);
}

/* Pain */
.pain h2 {
  max-width: 22ch;
}

.pain-grid {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-grid li {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--line);
}

.pain-close {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Premise */
.premise {
  background: var(--navy);
  color: #e6eff6;
}

.premise .wrap {
  max-width: 900px;
  text-align: center;
}

.premise .kicker {
  color: #7de9da;
  font-weight: 600;
}

.premise h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
}

.premise p.body {
  margin: 1.5rem auto 0;
  max-width: 56ch;
  color: #b9cad9;
  font-size: 1.125rem;
}

/* Steps */
.steps .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 880px) {
  .steps .wrap {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.step-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}

.step-list p {
  margin-top: 0.375rem;
  color: var(--muted);
}

/* Bento */
.bento {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 880px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(12rem, auto);
  }

  .cell-search {
    grid-column: span 4;
  }

  .cell-library {
    grid-column: span 2;
    grid-row: span 2;
  }

  .cell-assistant {
    grid-column: span 2;
  }

  .cell-system {
    grid-column: span 2;
  }
}

.cell {
  border-radius: var(--radius-card);
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  overflow: hidden;
}

.cell p {
  color: var(--muted);
}

.cell-search {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
}

.query {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 600;
}

.query::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.query .caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
}

.cell-library {
  background: var(--navy);
  color: #e6eff6;
  padding-bottom: 0;
}

.cell-library p {
  color: #b9cad9;
}

.cell-library img {
  margin: 1.25rem auto 0;
  width: min(100%, 260px);
  border-radius: 28px 28px 0 0;
  aspect-ratio: 600 / 1000;
  object-fit: cover;
  object-position: top;
}

.cell-assistant {
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 70%),
    var(--surface);
}

/* Privacy */
.privacy .wrap {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 880px) {
  .privacy .wrap {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.promise-grid {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 1.25rem 2rem;
}

@media (min-width: 640px) {
  .promise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.promise-grid li {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.privacy .device {
  width: min(100%, 300px);
}

/* Offer */
.offer .card {
  max-width: 760px;
  margin-inline: auto;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.price strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.included {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.625rem 1.5rem;
}

@media (min-width: 640px) {
  .included {
    grid-template-columns: 1fr 1fr;
  }
}

.included li {
  padding-left: 1.75rem;
  position: relative;
}

.included li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35em;
  width: 0.5rem;
  height: 0.875rem;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* FAQ */
.faq .wrap {
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1.125rem 0;
  font-weight: 600;
  font-size: 1.125rem;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-0.2rem);
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-0.1rem);
}

.faq details > p {
  padding-bottom: 1.25rem;
  color: var(--muted);
  max-width: var(--read);
}

.spaced {
  margin-top: 1rem;
}

.spaced-sm {
  margin-top: 0.75rem;
}

.faq-more {
  margin-top: 1.5rem;
}

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

.final .wrap > * + * {
  margin-top: 1.25rem;
}

.final .ctas {
  justify-content: center;
}

.final .lead {
  margin-inline: auto;
}

/* Documents (privacy, support, terms) */
.doc {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(4rem, 3rem + 4vw, 6rem);
}

.doc .wrap {
  max-width: 820px;
}

.doc h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
}

.doc .meta {
  margin-top: 0.75rem;
  color: var(--muted);
}

.doc h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  margin-top: 3rem;
  scroll-margin-top: 5rem;
}

.doc h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
}

.doc p,
.doc ul,
.doc dl {
  margin-top: 1rem;
  max-width: var(--read);
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.summary-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.summary-grid div {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.summary-grid dt {
  font-weight: 700;
}

.summary-grid dt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.summary-grid dd {
  margin: 0.375rem 0 0;
  color: var(--muted);
}

.toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface-2);
}

.toc h2 {
  margin: 0;
  font-size: 1rem;
}

.toc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
  padding-block: 0.125rem;
}

/* List links meet the WCAG 2.5.8 target size (24px) without looking like buttons. */
.toc a,
.doc li > a {
  display: inline-block;
  padding-block: 0.25rem;
}

.contact-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.doc .contact-card h2 {
  margin-top: 0;
}

.contact-card .button {
  margin-top: 1rem;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer p + p {
  margin-top: 0.375rem;
}

/* Error page */
.notfound {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

.notfound .wrap > * + * {
  margin-top: 1.25rem;
}

/* Motion: sections below the fold rise in as they scroll into view, where the browser supports
   scroll-driven animations and the visitor has not asked for reduced motion. The hero never
   animates, so the first paint (and the LCP image) is visible immediately. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
