/* ---------- hero (mockup B) ---------- */
.hero { position: relative; padding: 96px 0 24px; text-align: center; }
.hero > .wrap { position: relative; }
.tag {
    display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #a1a1a1;
    padding: 6px 12px; border: 1px solid #222; border-radius: 999px; background: var(--fill);
}
.hero h1 { margin-top: 14px; font-size: clamp(3.4rem, min(17vw, 18vh), 10.5rem); line-height: 1; letter-spacing: -0.05em; }
.hero .lede b { color: var(--text, #ededed); font-weight: 600; }
.hero .lede { margin: 0 auto; text-align: center; }
/* Hero line: two lines take turns in the same spot (stacked in one grid cell, so the height never jumps). */
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; animation: swap 9s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.swap > span:nth-child(2) { animation-delay: -4.5s; }
@keyframes swap {
    0%, 42% { opacity: 1; transform: none; filter: blur(0); }
    50%, 92% { opacity: 0; transform: translateY(-8px); filter: blur(6px); }
    92.01% { transform: translateY(8px); }
    100% { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
    .swap > span:nth-child(2) { display: none; }
}
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 2; }

.vault { position: relative; width: 280px; height: 318px; margin: 18px auto 18px; }
.vault-glow { position: absolute; inset: -90px; border-radius: 50%; }
.vault-rim, .vault-face { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.vault-rim { inset: 0; }
.vault-face { inset: 2px; }
.vault-key { position: absolute; left: 50%; top: 50%; width: 44px; height: 68px; transform: translate(-50%, -48%); }

@media (max-width: 520px) {
    .vault { width: 210px; height: 238px; }
}
/* Laptop-height screens: shrink the vault so the buttons stay above the fold. */
@media (min-width: 521px) and (max-height: 900px) {
    .vault { width: 230px; height: 261px; }
}

/* ---------- demo (mockup C) ---------- */
.demo { border-top: 0; padding-top: 24px; }
.demo .scene { max-width: 980px; margin: 0 auto; }
.win { border-radius: 13px; overflow: hidden; background: #0d0d0f; border: 1px solid #1f2024; }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1c1d20; }
.dots i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #2a2b2f; margin-right: 6px; }
.crumbs { flex: 1; min-width: 0; display: flex; background: #151518; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.crumb-leaf { transition: opacity 0.25s; }
.win-body { display: flex; }
.side { width: 170px; flex-shrink: 0; padding: 12px 10px; border-right: 1px solid #1c1d20; font-size: 13px; color: var(--muted); }
.side .it { display: flex; align-items: center; padding: 6px 9px; border-radius: 7px; transition: color 0.3s, background 0.3s; }
.side .it.active { background: #17181b; color: var(--text); }
.side .it.missing { color: #4a4b50; }
.side .miss { margin-left: auto; font-size: 10.5px; opacity: 0; transition: opacity 0.3s; }
.side .it.missing .miss { opacity: 1; }
.side .lbl { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 12px 9px 6px; }

.view { position: relative; flex: 1; min-width: 0; height: 300px; }
.grid-v {
    position: absolute; inset: 0; padding: 24px 20px; display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 16px 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.grid-v.on { opacity: 1; pointer-events: auto; }
.item {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px 8px;
    border-radius: 10px; border: 1px solid transparent; min-width: 0;
    transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.55s ease;
}
.item .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
.item .ic svg { width: 100%; height: 100%; }
.item .nm { font-size: 12px; color: #c9cacd; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.vault-file { background: rgba(185, 198, 218, 0.06); border-color: rgba(185, 198, 218, 0.22); }
.item.vault-file .nm { color: var(--locked); }
.item.cipher .nm { font-family: var(--mono); color: #8f959d; font-size: 11.5px; }
.ring { animation: ring 1.1s ease-out 1; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(185, 198, 218, 0.45); } to { box-shadow: 0 0 0 20px rgba(185, 198, 218, 0); } }
.shake { animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.dim.on { opacity: 1; }
.dialog {
    width: min(300px, 88%); background: #141417; border: 1px solid var(--line-2); border-radius: 14px; padding: 20px;
    box-shadow: 0 30px 60px -20px #000; transform: translateY(8px) scale(0.97); transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.dim.on .dialog { transform: none; }
.dlg-title { font-size: 15px; font-weight: 600; }
.dlg-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field {
    margin-top: 14px; height: 38px; border-radius: 9px; background: #0b0b0d; border: 1px solid rgba(185, 198, 218, 0.45);
    display: flex; align-items: center; gap: 6px; padding: 0 12px; box-shadow: 0 0 0 3px rgba(185, 198, 218, 0.1);
}
.field i { width: 7px; height: 7px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform 0.15s cubic-bezier(0.2, 1.8, 0.3, 1); }
.field i.on { transform: scale(1); }
.dlg-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.dlg-btn { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; color: var(--muted); transition: transform 0.12s, filter 0.12s; }
.dlg-btn.primary { background: var(--text); color: #0a0a0a; font-weight: 600; }
.dlg-btn.press { transform: scale(0.94); filter: brightness(1.15); }

.toast {
    position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); opacity: 0; transition: all 0.3s;
    background: #17181b; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px;
    font-size: 12.5px; color: #d9dadd; pointer-events: none;
    white-space: normal; width: max-content; max-width: calc(100% - 24px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--err); font-weight: 500; }

.win-ctl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid #1c1d20; }
.cap { flex: 1; min-width: 0; }
.cap b { display: block; font-size: 14px; font-weight: 500; }
.cap span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch { position: relative; width: 56px; height: 32px; border-radius: 999px; background: #1c1c1f; border: 1px solid var(--line-2); flex-shrink: 0; transition: background 0.3s; }
.switch .knob {
    position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; color: #2a2f38;
    background: linear-gradient(180deg, #f4f6f9, #9aa2ae); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.switch.on { background: #2a2f38; }
.switch.on .knob { transform: translateX(24px); }
.switch[aria-disabled="true"] { cursor: progress; }

@media (max-width: 700px) {
    .side { display: none; }
    .grid-v { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bezel { padding: 6px; }
    .win-ctl { flex-wrap: wrap; }
    /* switch (56px) + gap (14px) share the first row with the caption; the delete button wraps below */
    .cap { flex-basis: calc(100% - 70px); }
    .cap span { white-space: normal; }
    #tryDel { margin-left: auto; }
}

/* ---------- shared two-column layout ---------- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }

/* ---------- commands ---------- */
.cmds { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cmd { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.cmd:nth-child(odd) { border-right: 1px solid var(--line); }
.cmd:nth-child(even) { padding-left: 20px; }
.cmd code { font-family: var(--mono); font-size: 14px; color: var(--text); }
.cmd code span { color: var(--dim); }
/* Each command is a button that copies it (js/ui.js). */
.cmd-copy {
    display: inline-flex; align-items: center; gap: 10px; margin: -4px -8px; padding: 4px 8px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background 0.2s;
}
.cmd-copy:hover, .cmd-copy:focus-visible { background: var(--fill-2); }
.cmd-hint { font-size: 11.5px; color: var(--dim); opacity: 0; transition: opacity 0.2s, color 0.2s; }
.cmd-copy:hover .cmd-hint, .cmd-copy:focus-visible .cmd-hint, .cmd-copy.done .cmd-hint { opacity: 1; }
.cmd-copy.done .cmd-hint { color: var(--metal-hi); }
@media (hover: none) { .cmd-hint { opacity: 1; } }
.cmd p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cmd b { color: var(--text); font-weight: 500; }

/* ---------- security path ---------- */
.path { position: relative; margin-top: 44px; }
.path-line { position: absolute; left: 12.5%; right: 12.5%; height: 1px; background: var(--line-2); margin-top: 26px; }

/* The demo prompt above the path. */
.pp { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 36px; text-align: center; }
.pp-label { font-size: 14px; color: var(--muted); }
.pp-row { display: flex; gap: 8px; align-items: center; }
/* The input: a plate of dark brushed metal with a lit rim and a top highlight; a slow sheen crosses it until used. */
.pp-field {
    position: relative; display: block; border-radius: 999px; overflow: hidden;
    padding: 1px; /* the rim */
    background: linear-gradient(160deg, #f3f6fb, #8b95a6 22%, #2a2f38 50%, #6b7584 78%, #dfe6f0);
    box-shadow: 0 0 0 4px rgba(185, 198, 218, 0.05), 0 10px 26px -12px rgba(159, 184, 255, 0.35);
    transition: box-shadow 0.25s;
}
.pp-field::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 62%);
    background-size: 260% 100%; background-position: 130% 0;
    animation: pp-sheen 4.5s ease-in-out 1s infinite;
}
.pp.touched .pp-field::after { animation: none; }
.pp-field.sent::after { animation: pp-sheen-fast 0.55s ease-out; }
@keyframes pp-sheen { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
@keyframes pp-sheen-fast { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.pp-field:focus-within { box-shadow: 0 0 0 4px rgba(185, 198, 218, 0.12), 0 0 26px -4px rgba(159, 184, 255, 0.45); }
.pp-in {
    display: block; width: 230px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; outline: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 45%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #1d2025, #0c0d10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    color: var(--metal-hi); font: 500 15px var(--mono); letter-spacing: 0.15em;
}
/* Not a password field, so password managers leave it alone: the typed text is invisible and
   .pp-mask draws one bullet per character over it (same monospace metrics, so the caret lines up). */
.pp-in { color: transparent; caret-color: var(--metal-hi); }
.pp-in::selection { background: rgba(185, 198, 218, 0.25); }
.pp-mask {
    position: absolute; left: 1px; top: 1px; bottom: 1px; right: 1px; padding: 0 16px; pointer-events: none;
    display: flex; align-items: center; overflow: hidden; white-space: pre;
    color: var(--metal-hi); font: 500 15px var(--mono); letter-spacing: 0.15em;
}
.pp-in::placeholder { color: #6d7480; letter-spacing: 0; font-family: inherit; font-size: 13.5px; }
.pp-note { font-size: 12px; color: var(--dim); }
.pp.busy .pp-row { opacity: 0.5; pointer-events: none; transition: opacity 0.3s; }

/* The passphrase as a stiff fluid in the line (js/passphrase.js sizes and places it every frame). */
.pp-slug {
    position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0;
    border-radius: 999px; transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(185, 198, 218, 0), rgba(200, 214, 240, 0.55) 45%, #f4f7fb 88%, #fff);
    box-shadow: 0 0 10px rgba(159, 184, 255, 0.65), 0 0 22px rgba(159, 184, 255, 0.3);
}
/* A node the passphrase has reached fills with light (--fill 0..1); a pulse marks the passphrase merging into it. */
.node { --fill: 0; transition: border-color 0.3s, color 0.3s; }
.node::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(230, 236, 245, calc(0.28 * var(--fill))), rgba(159, 184, 255, calc(0.12 * var(--fill))) 60%, transparent 75%);
    box-shadow: 0 0 0 1px rgba(185, 198, 218, calc(0.6 * var(--fill))), 0 0 calc(30px * var(--fill)) rgba(159, 184, 255, calc(0.55 * var(--fill)));
}
.node.lit { color: #fff; border-color: rgba(185, 198, 218, 0.5); }
.node.merge { animation: node-merge 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes node-merge { 35% { transform: scale(1.12); } }
.node.flash { animation: node-flash 0.6s ease-out; }
@keyframes node-flash { 30% { box-shadow: 0 0 0 6px rgba(230, 236, 245, 0.18), 0 0 34px rgba(230, 236, 245, 0.6); transform: scale(1.1); } }
.path-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.step-node b { font-weight: 500; }
.step-node p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.node {
    position: relative; z-index: 1; flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--fill-2); border: 1px solid var(--line-2); color: #d8d9dc;
}
.node svg { width: 22px; height: 22px; }
.node.last { color: var(--metal-hi); border-color: rgba(185, 198, 218, 0.4); }

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 52px; }
.lists h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 10px; }
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.55; }
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets b { color: var(--text); font-weight: 500; }

@media (max-width: 860px) {
    .split, .lists { grid-template-columns: 1fr; gap: 28px; }
    .cmds { grid-template-columns: 1fr; }
    .cmd:nth-child(odd), .cmd:nth-child(even) { padding: 16px 0; border-right: 0; }
    .path-line { display: none; }
    .path-steps { grid-template-columns: 1fr; }
    .step-node { flex-direction: row; text-align: left; align-items: flex-start; }
}

/* ---------- shutdown ---------- */
.panel { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: var(--fill); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 14px; font-weight: 500; }
.panel-sub { font-size: 12.5px; color: var(--muted); }
.panel-foot { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sd-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.sd-row:first-child { border-top: 0; }
.sd-info { flex: 1; min-width: 0; }
.sd-name { font-size: 14px; font-weight: 500; }
.sd-path { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.sd-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--metal); transition: width 0.8s cubic-bezier(0.6, 0, 0.3, 1); }
.sd-note { font-size: 12px; color: var(--err); max-height: 0; opacity: 0; overflow: hidden; transition: all 0.35s; }
.sd-note.on { max-height: 40px; opacity: 1; margin-top: 3px; }
.off { position: absolute; inset: 0; background: #000; display: grid; place-items: center; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.7s; }
.off.on { opacity: 1; pointer-events: auto; }
#sdBtn[aria-disabled="true"] { opacity: 0.5; cursor: progress; }

/* ---------- install + platform ---------- */
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.step .n { font-size: 13px; color: var(--dim); padding-top: 2px; }
.step > div { min-width: 0; }
.step b { font-weight: 500; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.copy {
    margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; max-width: 460px; height: 42px; padding: 0 6px 0 14px; border-radius: 10px;
    background: var(--fill); border: 1px solid var(--line-2); text-align: left; transition: border-color 0.2s;
}
.copy:hover { border-color: #3a3a3a; }
.copy code { font-family: var(--mono); font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy span { font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 7px; background: var(--fill-2); flex-shrink: 0; }
.copy.done span { color: var(--metal-hi); }
.soon { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 13.5px; }
.plat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.plat:last-child { border-bottom: 1px solid var(--line); }
.plat b { display: block; font-weight: 500; }
.plat span:not(.chip) { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- faq ---------- */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 16px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.pm { width: 14px; height: 14px; position: relative; flex-shrink: 0; color: var(--muted); }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.3s; }
.pm::after { transform: rotate(90deg); }
/* js/ui.js drives .is-open so the answer animates both ways; without JS, native [open] still works (no animation). */
details[open] .pm::after { transform: rotate(0); }
.js details[open]:not(.is-open) .pm::after { transform: rotate(90deg); }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
html:not(.js) details[open] .ans, details.is-open .ans { grid-template-rows: 1fr; }
.ans > div { overflow: hidden; }
.ans p { margin: 0 0 20px; color: var(--muted); line-height: 1.7; max-width: 62ch; }
.soon-link { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; }
.soon-link:hover { border-color: var(--text); }

/* Pointer for AI agents to /llms.txt. It sits inside <main> because reader-mode extractors drop footers. */
.llms-note { margin: 22px 0 0; font-size: 13px; color: var(--dim); }
.llms-note a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.llms-note a:hover { color: var(--text); }
