/* Keys — one stylesheet. Looks like a well-made document, not a dashboard. */
:root {
  --paper: #ffffff;
  --paper-2: #f4f5f2;
  --ink: #1e2733;
  --ink-2: #4b5563;
  --ink-3: #8a93a0;
  --rule: #d9dcd6;
  --brass: #9a7b2f;
  --brass-2: #c9a85a;
  --ok: #4f7a5c;
  --warn: #a4512d;
  --danger: #a33a32;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper:#161a1f; --paper-2:#1f242b; --ink:#e8e6e1; --ink-2:#b4b8be; --ink-3:#7d848d; --rule:#333a43; --brass:#c9a85a; --brass-2:#9a7b2f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 2.5rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
small, .muted { color: var(--ink-2); }
.hint { color: var(--ink-3); font-size: .92rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
code { font-family: var(--mono); font-size: .92em; }

/* layout */
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 40rem; }
header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.wordmark svg { width: 22px; height: 22px; }
nav.main a { color: var(--ink-2); text-decoration: none; margin-left: 1.25rem; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main button.btn.link { color: var(--ink-2); text-decoration: none; margin-left: 1.25rem; font-size: .95rem; }
nav.main button.btn.link:hover { color: var(--ink); }
main { padding: 2.5rem 0 5rem; }
footer.site { border-top: 1px solid var(--rule); padding: 2rem 0; color: var(--ink-3); font-size: .9rem; }
footer.site a { color: var(--ink-3); margin-right: 1.25rem; }

/* buttons & forms */
.btn { display: inline-block; font: inherit; font-size: .98rem; padding: .6rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: var(--radius); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { font-size: .85rem; padding: .35rem .7rem; }
.btn.link { border: 0; background: none; color: var(--brass); padding: 0; text-decoration: underline; }
button.btn.link:hover { color: var(--ink); background: none; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 1rem 0 .3rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input.code { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .2em; text-align: center; }
form.inline { display: inline; }
.actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .4rem 0; }
.check input { margin-top: .3rem; }

/* flash */
.flash { padding: .75rem 1rem; border-left: 3px solid var(--brass); background: var(--paper-2); margin: 0 0 1.5rem; max-width: 62ch; }
.flash.error { border-color: var(--danger); }
.flash.ok { border-color: var(--ok); }

/* lists as the primary structure */
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.list > li { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.list > li .main { min-width: 0; flex: 1; }
.list > li .side { white-space: nowrap; color: var(--ink-3); font-size: .9rem; display: flex; gap: .75rem; align-items: baseline; }
.list .title { font-weight: 600; }
.list .body { white-space: pre-wrap; margin-top: .3rem; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* readiness */
.ready { margin: 1.5rem 0 2rem; }
.ready .bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.ready .bar i { display: block; height: 100%; background: var(--brass); }
.ready ol { padding-left: 1.2rem; margin: .75rem 0 0; }
.ready li { margin: .25rem 0; }
.ready li.done { color: var(--ink-3); text-decoration: line-through; }

/* section grid on dashboard */
.sections { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.sections li { border-bottom: 1px solid var(--rule); }
.sections a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; text-decoration: none; color: var(--ink); }
.sections a:hover .t { color: var(--brass); }
.sections .t { font-family: var(--serif); font-size: 1.15rem; }
.sections .n { color: var(--ink-3); font-size: .9rem; }

/* notice */
.notice { border: 1px solid var(--brass-2); padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--paper-2); margin: 0 0 2rem; }
.notice.quiet { border-color: var(--rule); }

/* the Keys card — the one memorable object */
.card { width: 100%; max-width: 420px; aspect-ratio: 1.6; border-radius: 12px; padding: 1.4rem 1.6rem; color: #f4efe3; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #26303c 0%, #1a2129 60%, #141a20 100%); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); display: flex; flex-direction: column; justify-content: space-between; }
.card:before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,168,90,.35); border-radius: 8px; pointer-events: none; }
.card .k { font-family: var(--serif); font-size: 1.1rem; color: #c9a85a; }
.card .who { font-size: .85rem; color: #c6c0b2; margin-top: .2rem; }
.card .code { font-family: var(--mono); font-size: clamp(1.4rem, 5vw, 1.9rem); letter-spacing: .12em; color: #fff; margin: .4rem 0 .2rem; }
.card .url { font-size: .82rem; color: #c6c0b2; }
.card .fine { font-size: .72rem; color: #9a948a; line-height: 1.35; }
.card-note { font-size: .9rem; color: var(--ink-2); max-width: 420px; margin-top: 1rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding: 1rem 0 3rem; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

/* steps on the how page: a real sequence, so it is numbered */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0 0; max-width: 62ch; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.25rem 2.6rem; }
.steps li:before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font-family: var(--serif); display: grid; place-items: center; font-size: .95rem; }
.steps b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }

/* status */
.state { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--rule); color: var(--ink-2); }
.state.waiting { border-color: var(--brass); color: var(--brass); }
.state.granted { border-color: var(--ok); color: var(--ok); }
.state.cancelled, .state.denied, .state.expired { border-color: var(--danger); color: var(--danger); }

/* read view */
.read h2 { border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.read .item { margin: 1.25rem 0; max-width: 70ch; }
.read .item b { font-weight: 600; }
.read .item div { white-space: pre-wrap; color: var(--ink-2); }
.letter { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; white-space: pre-wrap; max-width: 60ch; margin: 1.5rem 0; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-3); font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.plan { border-top: 2px solid var(--ink); padding-top: 1rem; }
.plan.best { border-top-color: var(--brass); }
.plan .price { font-family: var(--serif); font-size: 2.2rem; }
.plan .price small { font-size: 1rem; color: var(--ink-3); }
.plan ul { padding-left: 1.1rem; margin: 1rem 0; color: var(--ink-2); }

/* prompts */
.prompts { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.prompts li { margin: .2rem 0; }

@media print {
  header.site, footer.site, .no-print, .flash { display: none !important; }
  body { color: #000; }
  .card { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background .15s, color .15s; } }

/* small screens: nav wraps under the wordmark */
@media (max-width: 700px) {
  header.site .wrap { height: auto; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .6rem; row-gap: .25rem; }
  nav.main { display: flex; flex-wrap: wrap; gap: .25rem 1rem; width: 100%; }
  nav.main a, nav.main button.btn.link { margin-left: 0; font-size: .92rem; }
  main { padding-top: 1.75rem; }
  .list > li { flex-direction: column; gap: .4rem; }
  .list > li .side { white-space: normal; }
}
