/* Payneteasy Secrets: variant C "Product split" on Payneteasy Design System tokens. */
:root {
  color-scheme: light dark;
  --blue: #348bff;
  --blue-hover: #347aff;
  --blue-pressed: #0063e7;
  --blue-tint: #e7f1ff;
  --blue-wash: #f2f7ff;
  --ink: #0a0b0c;
  --ink-2: #353c3f;
  --muted: #69747a;
  --line: #d3dce8;
  --page: #f9f9f9;
  --card: #ffffff;
  --field: #ffffff;
  --navy: #0e2841;
  --navy-line: rgba(255, 255, 255, 0.1);
  --side-text: #d3dce8;
  --side-muted: #a9b0be;
  --ok: #00a475;
  --ok-tint: #e6f6ef;
  --danger: #ec493d;
  --danger-ink: #c7362b;
  --warn-tint: #fff4e5;
  --warn-ink: #7a4a00;
  --grad: linear-gradient(115deg, #e98fd2 0%, #a86ef0 45%, #7b6ef3 72%, #5b8def 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
  --ring: 0 0 0 3px rgba(52, 139, 255, 0.3);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f5;
    --ink-2: #c9d1db;
    --muted: #9aa5ae;
    --line: #2c3a4a;
    --page: #0b1622;
    --card: #111f2e;
    --field: #0d1926;
    --navy: #07131f;
    --blue-tint: #15304f;
    --blue-wash: #102438;
    --ok-tint: #0f3328;
    --ok: #3fd29b;
    --danger-ink: #ff7b6e;
    --warn-tint: #3a2a10;
    --warn-ink: #ffd28a;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--ink); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

/* Layout: navy panel left, work area right; on narrow screens the panel becomes a top bar. */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: var(--side-text); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand small { font-weight: 500; font-size: 13px; color: var(--side-muted); letter-spacing: 0; margin-left: 4px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); flex: none; }
.nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: #fff; background: var(--navy-line); font-weight: 600; font-size: 14px; text-decoration: none; }
.facts { margin: auto 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--side-muted); line-height: 1.9; }
.facts li::before { content: "✓"; color: #45c24b; margin-right: 8px; font-weight: 700; }
.cli { margin: 0; font-size: 12px; color: var(--side-muted); }
.cli code { white-space: nowrap; font: 12px var(--mono); color: var(--side-text); background: var(--navy-line); padding: 2px 6px; border-radius: 4px; }

.work { padding: 48px 40px; display: flex; justify-content: center; align-items: flex-start; }
.card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px 30px 30px; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; }
  .facts, .cli { display: none; }
  .nav a { padding: 8px 10px; }
  .work { padding: 16px; }
  .card { padding: 20px 18px 22px; }
}

/* Create -> Share -> Track steps and labels */
.steps { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0 0 18px; padding: 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.steps li + li::before { content: "→"; margin-right: 6px; color: var(--line); }
.steps li[aria-current="step"] { color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-pressed); font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.ok::before { content: "●"; font-size: 9px; }
@media (prefers-color-scheme: dark) { .badge { color: #9cc7ff; } }

h1 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.4px; }
.label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hint.lead { margin: -6px 0 16px; font-size: 14px; }
.hint.center { text-align: center; }
.error { margin: 0 0 14px; color: var(--danger-ink); font-weight: 600; font-size: 14px; }
.notice { margin: 0 0 14px; font-size: 14px; }
.notice a, .hint a { color: var(--blue); }
.warn { margin: 0 0 6px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-tint); color: var(--warn-ink); font-size: 14px; }

/* Fields */
textarea, .input, .link input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--field);
  color: var(--ink);
  font: 500 15px var(--font);
  padding: 11px 14px;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
textarea { min-height: 150px; resize: vertical; font: 400 14px/1.5 var(--mono); display: block; }
textarea:focus, .input:focus, .link input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.masked { -webkit-text-security: disc; text-security: disc; }
#passphrase-box .input { margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; margin-top: 20px;
  border: 0; border-radius: var(--r-sm);
  background: var(--blue); color: #fff;
  font: 600 15px var(--font); cursor: pointer;
  transition: background 120ms var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { background: var(--blue-pressed); }
.btn:focus-visible, .tabs button:focus-visible, .seg input:focus-visible + span, .check input:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue); }
.btn.danger { background: var(--danger); }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px; border-radius: 6px; }
.icon-button:hover { color: var(--ink); }

/* Text / File tabs */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { margin: 0 0 -1px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }

/* Lifetime: segmented control */
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* Passphrase checkbox */
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }

/* File */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; padding: 26px 16px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--blue-wash); color: var(--muted); text-align: center; cursor: pointer; transition: border-color 120ms var(--ease); }
.drop.over, .drop:hover { border-color: var(--blue); }
.drop:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
/* Visually hidden, but reachable by keyboard and screen readers. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.drop b { color: var(--blue); }
.drop-icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 4px; }
.file { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--field); }
.file-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-tint); color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; word-break: break-all; }
.file-meta .hint { margin: 2px 0 0; font-weight: 400; }

/* Recipient link and the collapsed sender link */
.link { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 4px; border: 1px solid var(--blue); border-radius: var(--r-sm); background: var(--blue-wash); }
.link input { border: 0; background: transparent; padding: 6px 8px; font: 500 13px var(--mono); text-overflow: ellipsis; }
.link input:focus { box-shadow: none; }
.link:focus-within { box-shadow: var(--ring); }
.link .btn { margin: 0; height: 36px; padding: 0 16px; flex: none; }
.link.quiet { border-color: var(--line); background: var(--page); }
details.owner { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
details.owner summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
details.owner .link { margin-top: 10px; }

/* Recipient and status */
#revealed textarea { min-height: 180px; }
.status { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 4px 0 0; font-size: 14px; }
.status dt { color: var(--muted); }
.status dd { margin: 0; font-weight: 600; }
