/* Marketing-surface components layered on dgtl.css: the ClipVault product
   composition, problem/feature blocks, download-page furniture. */

/* ---------- product UI composition -------------------------------------- */
/* An accurate composition of the desktop app's own screens — same screen
   names, same sample library, same metadata fields — not a generic mockup. */

.appshot {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}
.appshot-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.appshot-bar .dots { display: flex; gap: 6px; }
.appshot-bar .dots i {
  width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; display: block;
}
.appshot-bar .title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
}
.appshot-bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.appshot-body { display: grid; grid-template-columns: 178px minmax(0, 1fr) 232px; }
.appshot-side {
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}
.appshot-side .grp {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim); font-weight: 700; padding: 0 8px; margin-bottom: 8px;
}
.appshot-side .grp + .grp { margin-top: 20px; }
.appshot-side .item {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  padding: 7px 8px; border-radius: var(--r-control);
}
.appshot-side .item i {
  width: 5px; height: 5px; border-radius: 50%; background: #333; display: block;
}
.appshot-side .item.on { background: var(--gold-tint); color: var(--gold); font-weight: 700; }
.appshot-side .item.on i { background: var(--gold); }
.appshot-side .folder {
  border: 1px solid var(--border); border-radius: var(--r-control);
  padding: 8px 9px; margin-bottom: 8px;
}
.appshot-side .folder b { display: block; font-size: 11px; color: #fff; font-weight: 700; }
.appshot-side .folder span { font-size: 10px; color: var(--text-dim); }

.appshot-main { padding: 16px; min-width: 0; background: #000; }
.appshot-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-control); padding: 10px 12px;
}
.appshot-search svg { color: var(--gold); flex: 0 0 auto; }
.appshot-search .q { font-size: 13px; color: var(--text); }
.appshot-search .caret {
  width: 1px; height: 14px; background: var(--gold); display: inline-block;
  animation: cv-caret 1.1s steps(1) infinite;
}
@keyframes cv-caret { 50% { opacity: 0; } }
.appshot-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 12px 0; font-size: 11px; color: var(--text-dim);
}
.appshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.appshot-tile {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--surface-1);
}
.appshot-tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.appshot-tile .cap { padding: 7px 8px; }
.appshot-tile .cap b {
  display: block; font-size: 10px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appshot-tile .cap span { font-size: 9px; color: var(--text-dim); }

.appshot-inspector {
  border-left: 1px solid var(--border); background: var(--surface-1); padding: 16px 14px;
}
.appshot-inspector h5 {
  font-size: 12px; color: #fff; font-weight: 700; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appshot-inspector .sub { font-size: 10px; color: var(--text-dim); margin-bottom: 14px; }
.appshot-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 10px; }
.appshot-kv dt { color: var(--text-dim); }
.appshot-kv dd { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.appshot-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 14px; }
.appshot-strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; }
.appshot-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); font-weight: 700; margin: 14px 0 7px;
}
.appshot-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.appshot-tags .pill { font-size: 9px; padding: 2px 7px; }

@media (max-width: 900px) {
  .appshot-body { grid-template-columns: 150px minmax(0, 1fr); }
  .appshot-inspector { display: none; }
}
@media (max-width: 620px) {
  .appshot-body { grid-template-columns: minmax(0, 1fr); }
  .appshot-side { display: none; }
  .appshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appshot-bar { flex-wrap: wrap; }
  .appshot-bar .title { display: none; }
  .appshot-bar .right { margin-left: 0; }
}

.shot-caption {
  margin-top: 14px; font-size: 12px; color: var(--text-dim); text-align: center;
}

/* ---------- hero -------------------------------------------------------- */
.hero-shot { margin-top: 64px; position: relative; }

/* ---------- problem cards ----------------------------------------------- */
.problem-card { display: flex; gap: 14px; align-items: flex-start; }
.problem-card .bar {
  flex: 0 0 3px; align-self: stretch; background: var(--border); border-radius: 2px;
}
.problem-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.problem-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---------- audience tabs ------------------------------------------------ */
.audience-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.audience-panel h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.audience-panel p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.audience-panel .queries { margin-top: 24px; display: grid; gap: 10px; }
.query-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--r-control);
  background: var(--surface-1); padding: 13px 16px;
  font-size: 14px; color: var(--text); text-decoration: none; min-height: 44px;
}
.query-link:hover { border-color: #3a3a3a; color: #fff; }
.query-link .go { color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) { .audience-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- trust ladder ------------------------------------------------- */
.trust-diagram { display: grid; gap: 12px; }
.trust-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--r-control);
  background: var(--surface-1); padding: 14px 18px;
}
.trust-row .zone {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; color: var(--text-dim);
}
.trust-row .what { font-size: 14px; color: var(--text-muted); }
.trust-row .what b { color: #fff; }
.trust-row.is-local { border-color: rgba(240, 207, 80, 0.3); }
.trust-row.is-local .zone { color: var(--gold); }
.trust-row.is-off { opacity: 0.72; }
@media (max-width: 620px) { .trust-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- tour -------------------------------------------------------- */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-steps { display: grid; gap: 6px; }
.tour-step {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-control);
  padding: 14px 16px; font-family: var(--font); min-height: 44px;
}
.tour-step b { display: block; font-size: 15px; font-weight: 700; color: var(--text-muted); }
.tour-step span { font-size: 13px; color: var(--text-dim); line-height: 1.5; display: block; margin-top: 4px; }
.tour-step:hover { background: var(--surface-1); }
.tour-step[aria-selected="true"] { background: var(--surface-1); border-color: var(--border); }
.tour-step[aria-selected="true"] b { color: #fff; }
.tour-figure { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.tour-stage {
  background: #000;
  padding: 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.tour-stage .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tour-stage .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tour-stage .tiles.wide { grid-template-columns: repeat(3, 1fr); }
.tour-stage img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.tour-stage .tile-label {
  font-size: 9px; color: var(--text-dim); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tour-stage .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tour-stage .strip figcaption {
  font-size: 9px; color: var(--text-dim); text-align: center; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.tour-stage .kvrow {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; padding: 7px 0; border-top: 1px solid #1c1c1c;
}
.tour-stage .kvrow span:first-child { color: var(--text-dim); }
.tour-stage .kvrow span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.tour-stage .boardrow {
  display: flex; align-items: center; gap: 9px; font-size: 11px;
  color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 9px; background: var(--surface-1);
}
.tour-stage .boardrow img { width: 46px; height: 26px; flex: 0 0 auto; border-radius: 3px; }
.tour-stage .path {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 12px; overflow-x: auto; white-space: nowrap;
}
.tour-stage .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.tour-stage .graded { filter: saturate(1.35) contrast(1.18) brightness(1.06) hue-rotate(-6deg); }
.tour-stage .cap-mini { font-size: 10px; color: var(--text-dim); text-align: center; margin-top: 5px; }
.tour-figure figcaption { padding: 16px 18px; background: var(--surface-1); border-top: 1px solid var(--border); }
.tour-figure figcaption b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.tour-figure figcaption span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 820px) { .tour { grid-template-columns: minmax(0, 1fr); } }

/* ---------- trial flow --------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow-step {
  border: 1px solid var(--border); border-radius: var(--r-control);
  background: var(--surface-1); padding: 16px 18px;
}
.flow-step .n {
  font-size: 11px; font-weight: 800; color: var(--text-dim);
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.flow-step b { display: block; font-size: 14px; color: #fff; margin-bottom: 5px; }
.flow-step p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.flow-step.is-trigger { border-color: rgba(240, 207, 80, 0.35); }
.flow-step.is-trigger .n, .flow-step.is-trigger b { color: var(--gold); }
@media (max-width: 820px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- download page ------------------------------------------------ */
.dl-card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dl-card-title { font-size: 22px; font-weight: 700; color: #fff; margin-top: 6px; letter-spacing: -0.3px; }
.dl-card-head .status-note { margin-left: auto; flex: 0 0 auto; }
.dl-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.dl-card-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); line-height: 1.65; }
.dl-loading { color: var(--text-dim); font-size: 14px; }

.platform-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.platform-btn {
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: var(--r-pill); padding: 9px 18px; font-family: var(--font);
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px;
}
.platform-btn[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.platform-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.format-block + .format-block { margin-top: 20px; }
.format-block h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.format-note { font-size: 13px; margin-top: 20px; line-height: 1.65; }

.release-entry + .release-entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.release-entry-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.release-entry-head h3 { font-size: 22px; font-weight: 700; color: #fff; }
.release-date { font-size: 13px; margin-left: auto; }
.release-headline { font-size: 16px; color: var(--text-muted); margin: 12px 0 20px; }
.release-changes li { font-size: 14px; }

/* ---------- early-access application form -------------------------------- */

.apply-card { scroll-margin-top: 96px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.field .hint { display: block; font-size: 12px; color: var(--text-dim); margin-top: 7px; line-height: 1.5; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  background: #000;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 15px;
  min-height: 48px;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-ring);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }

/* The honeypot. Hidden from people and from screen readers; bots that fill
   every input identify themselves. Not display:none — some bots skip those. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--r-control);
  background: var(--surface-1); padding: 15px 16px;
}
.consent input { width: 18px; height: 18px; min-height: 0; flex: 0 0 auto; margin-top: 2px; }
.consent span { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; }
.form-actions .note { font-size: 12px; color: var(--text-dim); }

.form-status { border-radius: var(--r-control); padding: 15px 17px; font-size: 14px; line-height: 1.6; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: var(--error-tint); color: var(--error); border: 1px solid rgba(229, 72, 77, 0.35); }
.form-status.is-busy { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.form-done { text-align: left; }
.form-done .tick {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.form-done h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.form-done p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }

/* ---------- prose (privacy / support) ------------------------------------ */
.prose h2 { font-size: 26px; font-weight: 700; color: #fff; margin: 48px 0 16px; letter-spacing: -0.4px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; color: #fff; margin: 28px 0 10px; }
.prose p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 20px; }
.prose li { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 8px; }
.prose strong { color: #fff; }
.toc { position: sticky; top: 100px; }
.toc h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); font-weight: 700; margin-bottom: 14px;
}
.toc a {
  display: block; font-size: 14px; color: var(--text-muted);
  text-decoration: none; padding: 7px 0;
}
.toc a:hover { color: #fff; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
}
