
:root {
  color-scheme: light dark;
  --bg: #f4f2ec;
  --panel: #fffdf8;
  --panel-2: #f9f7f0;
  --border: #dcd7cc;
  --line-strong: #c9c0b2;
  --ink: #171717;
  --soft-ink: #4d5562;
  --muted: #737a86;
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --ok: #0f766e;
  --warn-bg: #fff3d6;
  --warn-border: #f2cd8d;
  --warn-ink: #b45309;
  --err-bg: #fff0ed;
  --err-border: #e6b8b2;
  --err-ink: #b42318;
  --receipt-ink: #111827;
  --shadow: 0 18px 50px rgba(41,34,22,.08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --panel: #171a21; --panel-2: #1d212b; --border: #2b313d;
    --line-strong: #39414f; --ink: #e8eaed; --soft-ink: #b8c0cc; --muted: #9aa4b2;
    --brand: #6366f1; --brand-hover: #818cf8;
    --warn-bg: #2a2410; --warn-border: #5c4d16; --warn-ink: #f5d98b;
    --err-bg: #2a1416; --err-border: #5c1f24; --err-ink: #f5a7ad;
    --receipt-ink: #05070c;
  }
  /* Set the secret-entry area apart from the composer surface in dark mode */
  #secret.blueprint { background:
    radial-gradient(circle, rgba(129,140,248,.16) 1px, transparent 1.5px) 0 0 / 22px 22px,
    #0f1218; box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
body {
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0; padding: 0; color: var(--ink); overflow-x: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 60%, transparent), transparent 24rem), var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 72rem; margin: 0 auto; padding: .5rem 1.25rem 4rem; }

/* Top bar */
header.site { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { display: block; width: 26px; height: 26px; flex: 0 0 auto; }
.brand .mark rect { fill: var(--ink); }
.brand .mark text { fill: var(--panel); }
header.site nav { display: flex; gap: .25rem; margin: 0 auto; }
header.site nav a { padding: .5rem .65rem; border-radius: 7px; color: var(--soft-ink); font-size: .9rem; font-weight: 620; }
header.site nav a:hover { background: var(--panel-2); text-decoration: none; color: var(--ink); }
header.site nav a.active { background: var(--panel-2); color: var(--ink); }
.account { display: inline-flex; align-items: center; gap: .5rem; max-width: 15rem; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .22rem .7rem .22rem .28rem;
  background: var(--panel); color: var(--ink); font-weight: 600; font-size: .86rem; }
.account:hover { background: var(--panel-2); text-decoration: none; }
.account .avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .82rem; flex: 0 0 auto; }
.account .acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 4px; flex: 0 0 auto;
  width: 42px; height: 42px; padding: 10px; border-radius: 9px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.nav-burger:hover { background: var(--panel-2); }
#nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-burger span { transition: none; } }
header.site .actions { display: flex; align-items: center; gap: .6rem; }
main.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; box-shadow: var(--shadow); max-width: 44rem; margin: 1rem auto;
}
h1 { font-size: 1.5rem; margin: 0 0 .35rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.sub { color: var(--muted); margin: 0 0 1.5rem; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }
textarea, input, select {
  width: 100%; margin-top: .4rem; padding: .6rem .7rem; font: inherit;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: inherit;
}
textarea { resize: vertical; font-family: var(--mono); font-size: .9rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row label { flex: 1; min-width: 8rem; }
button {
  font: inherit; font-weight: 680; cursor: pointer; border: 1px solid var(--brand); border-radius: 8px;
  padding: .6rem 1rem; background: var(--brand); color: #fff;
}
button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); }
button.secondary:hover { background: var(--panel-2); }
button.link { background: none; color: var(--brand); border: 0; padding: .4rem 0; }
button.link:hover { background: none; text-decoration: underline; }
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 38px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--ink);
  padding: 0 .85rem; font-weight: 680; font-size: .9rem; }
a.btn:hover { background: var(--panel-2); text-decoration: none; }
a.btn.primary { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(79,70,229,.18); }
a.btn.primary:hover { background: var(--brand-hover); }
button.full, .full { width: 100%; }
button.copied, .copied { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
/* Segmented control (Text / JSON) */
.toggle { display: inline-flex; gap: 0; padding: 3px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel-2); margin-top: 0; }
.toggle button { background: transparent; color: var(--muted); border: 0; border-radius: 5px; padding: .35rem .75rem; font-size: .85rem; }
.toggle button:hover { background: transparent; }
.toggle button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.linkbox { display: flex; gap: .5rem; margin: .75rem 0; }
.linkbox input { font-family: var(--mono); font-size: .82rem; }
.linkbox button { flex-shrink: 0; }
/* Created link / passphrase output: a read-only value block, not an input */
.link-block { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--mono);
  font-size: .82rem; line-height: 1.6; color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 8px; padding: .45rem .6rem;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }
.receipt-body .linkbox, .new-secret .result .linkbox { align-items: flex-start; }
.link-block:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-border); padding: .65rem .8rem; border-radius: 10px; font-size: .85rem; }
.error { color: var(--err-ink); background: var(--err-bg); border: 1px solid var(--err-border); padding: .65rem .8rem; border-radius: 10px; font-size: .9rem; }
.success { color: #0b5b53; background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent); padding: .65rem .8rem; border-radius: 10px; font-size: .85rem; }
.muted { color: var(--muted); font-size: .82rem; }
.center { text-align: center; }
.big-reveal { padding: 1rem 1.4rem; font-size: 1.05rem; }
.cta { margin-top: 1.25rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 12px;
  text-align: center; background: color-mix(in srgb, var(--brand) 5%, var(--panel)); color: var(--soft-ink); font-size: .92rem; }
.cta a { font-weight: 700; }

/* Focused single-action pages (recipient reveal, sign in) */
.focus { max-width: 30rem; margin: 2.5rem auto 3rem; }
.focus-head { text-align: center; margin-bottom: 1.1rem; }
.focus-head .kicker { display: block; }
.focus-head h1 { font-size: 1.65rem; letter-spacing: -.01em; margin: 0 0 .35rem; }
.focus-head .sub { color: var(--muted); margin: 0; font-size: .98rem; }
.panel { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 1.5rem; box-shadow: var(--shadow); }
.panel label { margin-bottom: .9rem; }
.divider-or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .78rem; margin: 1rem 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.oauth-stack { display: flex; flex-direction: column; gap: .6rem; }

/* ---- Dashboard ----------------------------------------------------------- */
/* Dashboard: account sections in a left sidebar (separate from the top site nav) */
.dash-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 2.25rem; align-items: start; margin-top: .5rem; }
.dash-side { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .1rem; }
.dash-nav { display: flex; flex-direction: column; gap: .1rem; }
.dash-nav a { padding: .5rem .7rem; border-radius: 8px; color: var(--soft-ink); font-weight: 600; font-size: .92rem; }
.dash-nav a:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; }
.dash-nav a.active { background: var(--panel-2); color: var(--ink); }
.dash-signout { margin-top: .8rem; padding: .5rem .7rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.dash-main { min-width: 0; }
@media (max-width: 760px) {
  .dash-layout { grid-template-columns: 1fr; gap: 1.1rem; }
  .dash-side { position: static; flex-direction: row; align-items: center; gap: .15rem;
    overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); padding-bottom: .35rem; }
  .dash-side::-webkit-scrollbar { display: none; }
  .dash-nav { flex-direction: row; }
  .dash-nav a { white-space: nowrap; }
  .dash-signout { margin-top: 0; margin-left: auto; white-space: nowrap; }
}
.dash-head { margin-bottom: 1.25rem; }
.dash-head h1 { font-size: 1.7rem; margin: 0 0 .25rem; }
.dash-head .sub { margin: 0; }
.notice { display: flex; align-items: center; gap: .5rem;
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); color: var(--ink);
  padding: .6rem .5rem .6rem .9rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .9rem; }
.notice span { flex: 1; }
.notice a { font-weight: 700; }
.notice .notice-x { flex: 0 0 auto; background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: .25rem .45rem; border-radius: 6px; }
.notice .notice-x:hover { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--ink); }

.card-lite { background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.35rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* Compact always-visible create card */
.new-secret { margin-bottom: 1.5rem; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--panel); padding: 1rem 1.1rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ns-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.ns-head b { font-size: 1rem; }
.new-secret textarea { margin-top: 0; min-height: 5.5rem; }
.ns-row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; }
.ns-row .ns-ttl { margin: 0; flex: 0 0 auto; font-size: .82rem; }
.ns-row .ns-ttl select { width: auto; margin-top: .35rem; }
.ns-more-toggle { align-self: center; }
.ns-create { flex: 0 0 auto; align-self: center; margin-left: auto; }
.ns-more { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.ns-more .row { margin-bottom: .25rem; }
.new-secret .result { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.new-secret .result .btnrow { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.new-secret .result .linkbox input { font-family: var(--mono); font-size: .82rem; }
/* Compact row reused inside the main-page bordered composer */
.encoded-hint { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  margin: 0; padding: .55rem .85rem 0; font-size: .8rem; color: var(--muted); }
.encoded-hint button { font-size: .8rem; }
.composer-facts { margin: 0; font-size: .8rem; color: var(--muted); }
.composer .composer-facts { padding: .6rem .85rem 0; border-top: 1px solid var(--border); }
.new-secret .composer-facts { margin: .55rem 0 0; }
.composer .ns-row { padding: .5rem .85rem .8rem; border-top: 0; margin-top: 0; }
.composer .ns-more { padding: .2rem .85rem .9rem; border-top: 1px solid var(--border); margin-top: 0; }
.composer .ns-more label { margin-bottom: .5rem; }

.load-more-row { margin-top: 1rem; text-align: center; }
/* Tokens & CLI */
.cli-steps { margin: .3rem 0 1rem; padding-left: 1.3rem; display: grid; gap: .85rem; }
.cli-steps li { font-size: .9rem; color: var(--soft-ink); }
.cli-steps li > span { display: block; margin-bottom: .35rem; }
.cli-cmd { margin: 0; font-family: var(--mono); font-size: .82rem; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; overflow-x: auto; white-space: pre; color: var(--ink); }
.tok-form { display: flex; gap: .5rem; align-items: center; }
.tok-form input { flex: 1 1 auto; margin: 0; }
.tok-form button { flex: 0 0 auto; }
.tok-reveal { margin-top: .9rem; padding: .9rem; border: 1px solid var(--ok); border-radius: 10px;
  background: color-mix(in srgb, var(--ok) 8%, var(--panel)); display: flex; flex-direction: column; gap: .5rem; }
.tok-reveal .linkbox { margin: 0; }
.token-list { margin-top: .4rem; }
.token-row { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.token-row:last-child { border-bottom: 0; }
.token-row.revoked { opacity: .6; }
.token-main { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.token-name { font-weight: 650; color: var(--ink); }
.token-meta { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.token-row:hover .sec-revoke, .token-row:focus-within .sec-revoke { opacity: 1; }
.filter-bar { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-bar label { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.filter-bar select { width: auto; margin: 0; }
.list-count { margin-left: auto; }

/* Secrets as a list (de-boxed): bold label + status, a muted meta line, hairline
   dividers, Revoke on hover. Color only for the Active state. */
/* Secrets audit table — de-boxed (hairlines only). Desktop: columns with
   to-the-minute times. Mobile: a 2-col summary (label + status); tap to expand. */
.sec-wrap { overflow-x: auto; }
.sec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sec-table th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 720; padding: 0 .6rem .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sec-table td { padding: .6rem .6rem; border-bottom: 1px solid var(--border); color: var(--soft-ink); vertical-align: baseline; }
.sec-table .c-label { color: var(--ink); font-weight: 640; }
.sec-table .c-t { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sec-table .c-opens { font-variant-numeric: tabular-nums; }
.sec-table .dash { color: var(--muted); }
.sec-table .c-act { text-align: right; }
.sec-status { font-weight: 640; white-space: nowrap; }
.sec-status.active { color: var(--ok); }
.sec-status.term { color: var(--muted); }
.row-chev { display: none; }
.sec-revoke { opacity: 0; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--err-ink); font-weight: 600; font-size: .82rem; transition: opacity .12s ease; }
.sec-revoke:hover { background: none; text-decoration: underline; }
.sec-row:hover .sec-revoke, .sec-row:focus-within .sec-revoke { opacity: 1; }
@media (hover: none) { .sec-revoke { opacity: 1; } }
@media (max-width: 620px) {
  .sec-wrap { overflow-x: visible; }
  .sec-table thead { display: none; }
  .sec-table, .sec-table tbody { display: block; }
  .sec-table tr.sec-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem;
    border-bottom: 1px solid var(--border); padding: .75rem 0; cursor: pointer; }
  .sec-table td { display: none; border: 0; padding: 0; }
  .sec-table .c-label { display: block; flex: 1 1 auto; min-width: 0; font-size: .95rem; font-weight: 650;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sec-table .c-status { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; font-size: .82rem; }
  .row-chev { display: inline; color: var(--muted); transition: transform .15s ease; }
  .sec-row.open .row-chev { transform: rotate(90deg); }
  .sec-row.open td.detail { display: block; order: 1; flex-basis: 100%; color: var(--muted); font-size: .85rem; padding: .12rem 0; }
  .sec-row.open td.detail::before { content: attr(data-l) ":"; display: inline-block; min-width: 5.5rem;
    color: var(--muted); font-weight: 600; }
  .sec-row.open td.c-act { display: block; order: 2; flex-basis: 100%; text-align: left; padding-top: .35rem; }
}

.token-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-top: 1px solid var(--border); }
.token-row:first-child { border-top: 0; }
.new-token { word-break: break-all; }
.new-token code { font-family: var(--mono); font-size: .82rem; }
.btn-sm { min-height: 30px; padding: 0 .7rem; font-size: .82rem; }
.mt1 { margin-top: 1rem; }
.secret-out { background: var(--panel-2) !important; font-size: .86rem; }
.reveal-hint { color: var(--muted); font-size: .8rem; text-align: center; margin: .75rem 0 0; }
footer.site { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 0 0; }
footer.site a { color: var(--muted); margin: 0 .4rem; }
.foot-copy { margin-top: .5rem; opacity: .85; }
.consent { color: var(--muted); font-size: .78rem; text-align: center; margin: .9rem 0 0; }
.consent a { color: var(--muted); text-decoration: underline; }

/* ---- Recipient reveal: minimal chrome, value not a form ------------------ */
.bare-head { display: flex; justify-content: center; padding: 1.6rem 0 .25rem; }
.wrap-bare { max-width: 34rem; }
.reveal { margin: 1.5rem auto 3rem; }
.reveal-loading { text-align: center; color: var(--muted); font-size: .9rem; padding: 2.5rem 0; }
.reveal-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow); text-align: center; }
.reveal-card h1 { font-size: 1.5rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.reveal-lede { color: var(--muted); font-size: .96rem; margin: 0 0 1.25rem; }
.reveal-card .big-reveal { margin: 0; }
.reveal-card .reveal-hint { margin-top: .9rem; }
.reveal-card .linkbox { margin: .25rem 0 0; }
.reveal-card #verify-code-row { margin-top: .6rem; }
.reveal-card .error { margin-top: 1rem; text-align: left; }
.reveal-card .muted { margin-top: .8rem; }
.reveal-out-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.reveal-out-label { font-weight: 720; font-size: .74rem; color: var(--soft-ink); text-transform: uppercase; letter-spacing: .06em; }
.secret-block { margin: 0; text-align: left; font-family: var(--mono); font-size: .9rem; line-height: 1.5;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1rem;
  white-space: pre-wrap; word-break: break-word; max-height: 22rem; overflow: auto; }
.secret-block:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.reveal-note { color: var(--muted); font-size: .82rem; text-align: left; margin: .85rem 0 0; }
.reveal-viral { text-align: center; color: var(--muted); font-size: .82rem; margin: 1.1rem 0 0; }
.reveal-viral a { font-weight: 700; }
/* Content pages (pricing, trust, …) share an open hero-style head */
.page { padding: 1.25rem 0 3rem; }
.page-head { max-width: 46rem; margin: 0 0 1.75rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.03; letter-spacing: -.02em; margin: 0 0 .5rem; }
.page-head .sub { font-size: 1.08rem; color: var(--soft-ink); margin: 0; }
.page-note { color: var(--muted); font-size: .84rem; margin-top: 1.5rem; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; }
/* Two tiers: keep the cards from stretching into billboards on wide screens. */
.pricing-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
.tier { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 1.4rem; background: var(--panel); box-shadow: 0 6px 20px rgba(39,34,23,.05); }
.tier.highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 14px 34px rgba(79,70,229,.12); }
.tier h3 { margin: 0 0 .1rem; font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.tier .price { font-size: 1.9rem; font-weight: 820; letter-spacing: -.02em; margin: .35rem 0 .1rem; }
.tier .per { font-size: 1rem; color: var(--muted); font-weight: 600; }
.tier .desc { color: var(--muted); font-size: .88rem; margin: 0 0 .25rem; }
.tier ul { padding-left: 0; list-style: none; margin: .9rem 0 1.1rem; }
.tier li { position: relative; margin: .4rem 0; font-size: .9rem; padding-left: 1.35rem; color: var(--soft-ink); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.tier .cta { margin-top: auto; padding: 0; border: 0; background: none; }
.tier .cta button, .tier .cta a { width: 100%; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: .18rem .55rem; border-radius: 999px; }
.prose-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem 1.9rem; max-width: 46rem; box-shadow: var(--shadow); }
.prose-card > :first-child { margin-top: 0; }

/* Billing toggle (CSS-only, annual-first) */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.billing-row { text-align: center; margin: 0 0 1.5rem; }
.billing-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.billing-toggle label { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .95rem; border-radius: 7px;
  font-size: .86rem; font-weight: 720; color: var(--muted); cursor: pointer; }
.billing-toggle .save { font-size: .66rem; font-weight: 800; color: var(--ok); letter-spacing: .02em;
  background: color-mix(in srgb, var(--ok) 13%, transparent); border-radius: 999px; padding: .06rem .45rem; }
#bill-year:checked ~ .billing-row .billing-toggle label[for="bill-year"],
#bill-month:checked ~ .billing-row .billing-toggle label[for="bill-month"] {
  background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.opt-month { display: none; }
#bill-month:checked ~ .pricing .opt-year { display: none; }
#bill-month:checked ~ .pricing .opt-month { display: inline; }
dl.trust dt { font-weight: 700; margin-top: 1rem; }
dl.trust dd { margin: .25rem 0 0; color: var(--muted); }
.qa h2 { margin: 1.75rem 0 .35rem; font-size: 1.1rem; }
.qa p { margin: 0; }
.qa .lead { font-size: 1.05rem; color: var(--ink); }
blockquote.exact { margin: .5rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--border);
  color: var(--muted); font-size: .86rem; line-height: 1.55; border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--muted) 7%, transparent); }
.spacer-lg { margin-top: 2.25rem; }
.hidden, [hidden] { display: none !important; }

/* ---- Create hero: composer + trust receipt (design refresh) -------------- */
.hero { padding: 1.25rem 0 2rem; }
/* L2: stacked — full-width composer, receipt appears directly below on create. */
.hero-cols { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
.hero-copy { max-width: 46rem; margin: 0 0 1.5rem; }
.kicker { color: var(--ok); font-size: .74rem; font-weight: 760; letter-spacing: .09em;
  text-transform: uppercase; margin: 0 0 .5rem; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 .6rem; }
.hero-copy .sub { font-size: 1.12rem; color: var(--soft-ink); margin: 0; max-width: 37rem; }
.sub-short { display: none; }

.composer { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel);
  box-shadow: 0 14px 34px rgba(39,34,23,.08); overflow: hidden; }
.composer-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; padding: .8rem .85rem; border-bottom: 1px solid var(--border); }
#secret.blueprint { margin: 0; border: 0; border-radius: 0; min-height: 9rem; padding: 1.1rem;
  font-family: var(--mono); font-size: .86rem; line-height: 1.55; resize: vertical;
  background:
    radial-gradient(circle, rgba(79,70,229,.14) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--panel); }
.composer .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--border); }
.composer .settings-grid label { display: block; margin: 0; background: var(--panel); padding: .7rem .75rem;
  font-size: .68rem; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.composer .settings-grid select, .composer .settings-grid input { margin-top: .4rem; font-weight: 640; }
.composer .passline { display: flex; align-items: center; gap: .6rem; padding: .8rem .85rem; }
.composer .passline input { margin: 0; }
.composer .actions { padding: .85rem; }
.composer .actions button { min-height: 42px; }

.receipt { border: 1px solid var(--line-strong); border-radius: 12px; max-width: 34rem;
  background: var(--panel); box-shadow: var(--shadow); }
.receipt-body { padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .7rem; }
.receipt-head { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.receipt-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: .72rem; font-weight: 800; }
.receipt-body .linkbox { margin: 0; }
.receipt-meta { margin: -.15rem 0 0; font-size: .78rem; color: var(--muted); }
.pass-label { margin: 0; font-size: .8rem; font-weight: 600; color: var(--soft-ink); }
#passRow { display: flex; flex-direction: column; gap: .35rem; }
.receipt-body #again { align-self: flex-start; }

/* Composer pattern — shared by the anonymous (.composer) and dashboard
   (.new-secret) create forms: inline TTL/opens facts line + light "+" toggles. */
.composer-wrap { max-width: 40rem; }
.facts-ttl { width: auto; margin: 0; padding: .2rem 1.5rem .2rem .55rem; font-size: .82rem; font-weight: 640; }
.facts-sep { color: var(--border); }
.facts-opens { color: var(--muted); }
#opens-pro { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
/* the "+ Add a passphrase / + Label / + Template" toggles (beat button.link's padding) */
.composer .pass-toggle, .opt-row .pass-toggle { display: inline-flex; align-items: center; font-size: .82rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: .05rem 1.15rem; }
.pass-wrap { display: flex; flex-direction: column; gap: .4rem; }
.pass-wrap .pass-label { font-weight: 600; color: var(--soft-ink); }

/* Anonymous composer (full-bleed panel): inline padding on each section. */
.composer .composer-facts { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; padding: .7rem .85rem; }
.composer .pass-toggle { margin: 0; padding: .15rem .85rem .65rem; }
.composer .pass-wrap { padding: .7rem .85rem; border-top: 1px solid var(--border); }
.composer-actions { display: flex; justify-content: flex-end; padding: .85rem; border-top: 1px solid var(--border); }
.composer-actions .ns-create { min-height: 44px; }
.composer-note { max-width: 40rem; margin: .75rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* Dashboard composer (padded panel): margins between sections, edge-aligned. */
.new-secret .composer-facts { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; margin: .7rem 0 0; padding: 0; font-size: .8rem; color: var(--muted); }
.new-secret .opt-row { margin-top: .55rem; }
.opt-row .pass-toggle { margin: 0; padding: .3rem 0; }
.new-secret .pass-wrap { margin-top: .6rem; }
.new-secret .ns-actions { display: flex; margin-top: .9rem; }
.new-secret .ns-actions .ns-create { width: 100%; min-height: 44px; }
.receipt-cta { display: flex; flex-direction: column; gap: .55rem; margin: .1rem 0; padding: .8rem .9rem;
  border: 1px solid rgba(79,70,229,.22); border-radius: 10px; background: rgba(79,70,229,.06); }
.receipt-cta-copy { margin: 0; font-size: .86rem; font-weight: 600; color: var(--soft-ink); }
.receipt-cta-btn { align-self: flex-start; }

@media (max-width: 900px) {
  html, body { overflow-x: hidden; } /* clamp layout to viewport (receipt is static here, so no sticky impact) */
  .hero-cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .receipt { position: static; }
  .hero-copy h1 { font-size: 2.6rem; }
  .pricing { grid-template-columns: 1fr; }
}
/* Narrow: keep the header on ONE row — nav stays inline (scrolls if truly tiny),
   never folds to its own line. */
@media (max-width: 620px) {
  .wrap { padding: .5rem .8rem 4rem; }
  header.site { gap: .5rem; position: relative; }
  header.site .brand { flex: 1 1 auto; }
  header.site .actions { flex: 0 0 auto; }
  header.site .actions .btn { min-height: 40px; padding: 0 .8rem; }
  /* Account pill → avatar only on mobile */
  .account { border: 0; background: none; padding: .1rem; max-width: none; }
  .account:hover { background: none; }
  .account .acct-email { display: none; }
  /* Nav collapses into the burger dropdown */
  .nav-burger { display: flex; }
  header.site nav { position: absolute; top: 100%; right: 0; left: 0; display: none; margin: .35rem 0 0;
    flex-direction: column; gap: .1rem; padding: .4rem; background: var(--panel);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
  #nav-toggle:checked ~ nav { display: flex; }
  header.site nav a { padding: .7rem .7rem; font-size: .95rem; border-radius: 8px; }
  .composer .settings-grid { grid-template-columns: 1fr; }
}
/* Phones: stack the composer action row so the CTA is full-width and nothing
   overflows the viewport (was the cause of off-screen, un-tappable buttons). */
@media (max-width: 560px) {
  .ns-row { flex-direction: column; align-items: stretch; gap: .7rem; }
  .ns-row .ns-ttl { width: 100%; }
  .ns-row .ns-ttl select { width: 100%; }
  .ns-more-toggle { margin-left: 0; align-self: flex-start; }
  .ns-create { width: 100%; min-height: 44px; }
  .new-secret .ns-more .row { grid-template-columns: 1fr; }
  a.btn, button.big-reveal, .ns-create { min-height: 44px; }
  .receipt { max-width: none; }
  .reveal-card { padding: 1.4rem 1.2rem; }
  /* Receipt/result: stack the link over a full-width, easy-to-tap Copy button
     so the whole URL is visible and the button isn't jammed at the edge. */
  .receipt-body .linkbox, .new-secret .result .linkbox, .reveal-card .linkbox { flex-direction: column; align-items: stretch; gap: .5rem; }
  .receipt-body .linkbox button, .new-secret .result .linkbox button, .reveal-card .linkbox button { width: 100%; min-height: 44px; }
  .link-block { white-space: pre-wrap; word-break: break-all; overflow-x: visible; }
  /* Compact hero so the composer + CTA fit on one screen */
  .sub-full { display: none; }
  .sub-short { display: inline; }
  .hero { padding: .25rem 0 .8rem; }
  .hero-copy { margin-bottom: 1.15rem; }
  .hero-copy h1 { font-size: 1.5rem; margin-bottom: .35rem; }
  .hero-copy .sub { font-size: .92rem; }
  /* Short textarea so Options + Create sit above the keyboard fold */
  #secret.blueprint { min-height: 4.25rem; font-size: 16px; }
  .composer .ns-row { padding: .65rem .75rem; }
  .composer .ns-more { padding: .1rem .75rem .7rem; }
  /* Prevent iOS Safari zoom-on-focus (needs computed font-size >= 16px) */
  input, select, textarea { font-size: 16px; }
  .linkbox input { font-size: 16px; }
  /* 44px touch targets */
  .toggle button { min-height: 42px; padding: .5rem 1rem; }
  .ns-more-toggle { min-height: 44px; display: inline-flex; align-items: center; }
  .ns-row .ns-ttl select { min-height: 44px; }
  /* Anon composer redesign: tappable inline TTL, full-width create + CTA. */
  .facts-ttl { min-height: 40px; }
  .pass-toggle { min-height: 44px; }
  .composer-actions { justify-content: stretch; }
  .composer-actions .ns-create { width: 100%; }
  .receipt-cta-btn { width: 100%; text-align: center; }
  header.site nav a { padding: .7rem .5rem; }
  .reveal-out-head #copy { min-height: 42px; padding: 0 1.1rem; }
  /* Footer: larger tap area, fewer mis-taps */
  .foot-nav { line-height: 2.4; }
  .foot-nav a { display: inline-block; padding: .2rem .3rem; }
  /* Pricing: shorter cards so tiers aren't such a scroll */
  .tier { padding: 1.15rem 1.2rem; }
  .tier ul { margin: .7rem 0 .9rem; }
  .tier li { margin: .3rem 0; }
  .tier .price { font-size: 1.7rem; }
}
@media (max-width: 380px) {
  header.site .brand .wordmark { display: none; }
}
