/* mokiwa — landing page. Flat dark surfaces, one lime accent, Inter. No gradients, no glows. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0c0d0e;
  --panel: #131415;
  --panel-2: #181a1b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ecece9;
  --muted: #9b9d9f;
  --faint: #6f7274;
  --lime: #a6ce39;
  --on-lime: #11140a;
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; }
code { font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); background: rgba(255,255,255,.07); padding: .12em .4em; border-radius: 6px; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - clamp(40px, 8vw, 80px)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mark-img { width: 26px; height: 19px; flex: none; object-fit: contain; display: block; }
html { scrollbar-gutter: stable; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.mark { width: 24px; height: auto; fill: var(--lime); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); }
.nav nav a, .brand span { white-space: nowrap; }

/* ---- buttons / keys ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: #b6dd48; }
/* Apple mark: a mask so it takes the button's text colour; the label is set by site.js without touching it. */
.btn-apple::before { content: ""; flex: none; width: 1.05em; height: 1.05em; margin-top: -.08em; background: currentColor;
  -webkit-mask: url(/img/apple.svg) center / contain no-repeat; mask: url(/img/apple.svg) center / contain no-repeat; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-big { padding: 16px 30px; font-size: 17px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  font: 500 13px/1 "Inter", system-ui, sans-serif; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 7px;
}
.keys { display: inline-flex; align-items: center; gap: 5px; }
.keys.big kbd { min-width: 44px; height: 44px; font-size: 20px; border-radius: 11px; padding: 0 10px; }

h1 { margin: 0; font-weight: 600; line-height: 1; letter-spacing: -.045em; }
h1 em { color: var(--lime); }

/* ---- sections ---- */
.sec { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.sec-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.label { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label span { color: var(--lime); margin-right: 10px; font-variant-numeric: tabular-nums; }
h2 { margin: 0; font-weight: 600; font-size: clamp(1.9rem, 3.7vw, 3.1rem); line-height: 1.04; letter-spacing: -.035em; }
.sub { margin: 18px 0 0; color: var(--muted); max-width: 34em; }
h3 { margin: 18px 0 8px; font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }

.shortcuts { margin-top: 0; border-collapse: collapse; width: 100%; table-layout: fixed; }
.shortcuts caption { text-align: left; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.shortcuts th, .shortcuts td { padding: 14px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: middle; }
.shortcuts tr:last-child th, .shortcuts tr:last-child td { border-bottom: 1px solid var(--line); }
.shortcuts th { width: 180px; padding-right: 20px; }
.shortcuts td { color: var(--muted); overflow-wrap: anywhere; }

.big { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.32; letter-spacing: -.02em; font-weight: 500; }
.big code { font-size: .72em; }
.fine { margin: 18px 0 0; max-width: 44em; font-size: 14px; color: var(--faint); }

.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot p { margin: 0; font-size: 14px; color: var(--faint); }

/* ---- account page ---- */
.acct { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px); min-height: 70vh; }
h1 { margin: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; justify-content: center; max-width: 960px; margin-inline: auto; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 36px); }
.auth-logo { display: block; width: 44px; height: auto; margin-bottom: 22px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; }
.tabs button { flex: 1; white-space: nowrap; padding: 0 6px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--lime); color: var(--on-lime); font-weight: 600; }
.auth h1, .dash-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.035em; line-height: 1.1; }
.auth .sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.auth form { margin-top: 22px; }
label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.link { background: none; border: 0; padding: 0; color: var(--lime); font-size: 13px; cursor: pointer; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; height: 48px; padding: 0 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; font: inherit; font-size: 16px; transition: border-color .15s;
}
input::placeholder { color: var(--faint); }
input:hover { border-color: rgba(255,255,255,.26); }
input:focus-visible { outline: 2px solid var(--lime); outline-offset: 0; border-color: transparent; }
.btn-full { width: 100%; margin-top: 16px; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-danger { background: #ff6b5b; color: #1a0a08; }
.btn-danger:hover { background: #ff8173; }
.btn:disabled { opacity: .55; cursor: default; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.msg.err { color: #ff8f82; }
.msg.ok { color: var(--lime); }
.alt { margin: 20px 0 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.alt a { color: var(--muted); }
.alt a:hover { color: var(--lime); }

.auth-side { padding-top: 12px; }
.auth-side ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.auth-side li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--line-2); }
.auth-side li strong { font-weight: 600; letter-spacing: -.01em; }
.auth-side li span { color: var(--muted); font-size: 15px; }

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who h1 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); overflow-wrap: anywhere; }
.who .label { margin-bottom: 4px; }
.avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 22px; text-transform: lowercase; }
.dash-actions { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 2px; }
.stat b { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 13px; }
.card { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 28px); }
.card-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.card-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.card-head.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ws-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.ws { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s; }
.ws:hover, .ws:has(details[open]) { border-color: var(--line-2); }
.ws summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ws summary::-webkit-details-marker { display: none; }
.ws summary::after { content: "+"; margin-left: 4px; color: var(--faint); font-size: 20px; line-height: 1; }
.ws details[open] summary::after { content: "–"; }
.ws-emoji { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 20px; flex: none; }
.ws-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ws-main strong { font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-main small { color: var(--muted); font-size: 13px; }
.ws-when { color: var(--faint); font-size: 13px; white-space: nowrap; }
.ws-body { padding: 4px 16px 18px 70px; display: grid; gap: 18px; }
.ws-sec h4 { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ws-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--text); }
.ws-sec li { overflow-wrap: anywhere; }
.ws-sec p { margin: 0; font-size: 14px; color: var(--muted); }
.ws-del { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.empty { margin: 20px 0 0; padding: 22px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); }
.dev-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.dev { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.dev-main { display: flex; flex-direction: column; min-width: 0; }
.dev-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-main small { color: var(--muted); font-size: 13px; }
.danger { border-color: rgba(255, 107, 91, .28); }
.danger .card-head h2 { color: #ff8f82; }
.del-row { display: flex; gap: 10px; max-width: 520px; }
.del-row input { flex: 1; }
@media (max-width: 820px) { .auth { grid-template-columns: minmax(0, 1fr); max-width: 460px; } .auth-side { padding-top: 0; } }
@media (max-width: 560px) { .ws-body { padding-left: 16px; } .ws-when { display: none; } .del-row { flex-direction: column; } .stats { grid-template-columns: 1fr 1fr; } .stat:last-child { grid-column: span 2; } }


/* ---- faq ---- */
.faq { display: grid; gap: 0; max-width: 52rem; border-bottom: 1px solid var(--line); }
.q { border-top: 1px solid var(--line); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 500; letter-spacing: -.015em; transition: color .15s; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s, border-color .15s; }
.q summary:hover { color: var(--lime); }
.q[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--lime); }
.q p { margin: 0; padding: 0 2.5rem 22px 0; color: var(--muted); max-width: 46rem; animation: faq-in .25s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- scroll reveal (classes are added by site.js, and only to things below the fold, so nothing flashes) ---- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.rv-in { opacity: 1; transform: none; }

/* ---- nav: current section ---- */
.nav nav a[aria-current="true"]:not(.btn) { color: var(--text); }

/* ---- floating download pill (appears after the hero, hides at the download section) ---- */
.float-cta { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; box-shadow: 0 8px 28px rgba(0,0,0,.45); transition: opacity .25s, transform .25s; }
.float-cta.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (min-width: 900px) { .float-cta { left: auto; right: 24px; transform: translate(0, 24px); } .float-cta.on { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .q p { animation: none; } .float-cta { transition: none; } }

/* ---- toasts ---- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 12px 16px; border-radius: 12px; background: #1a1c1e; border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.35); animation: toast-in .22s ease-out; }
.toast::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.toast.ok::before { background: var(--lime); }
.toast.err::before { background: #ff8f82; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---- small screens (shared by every page) ---- */
@media (max-width: 920px) { .nav nav a:not(.btn):not(.keep) { display: none; } }
@media (max-width: 520px) { body { font-size: 16px; } .foot-inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 380px) {
  .nav nav { gap: 14px; }
  .nav .btn-small { padding: 8px 14px; }
  .nav .brand span { display: none; } /* the logo alone; there is no room for the word next to sign in + download */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
