/* kolexy.com: tokens from DESIGN.md (dashboard v1), shared by the waitlist and the privacy page.
   Light only on purpose (David, 2026-11-09): the public pages stay light; the app still follows the system. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url(/fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url(/fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --canvas: #f7f7f8; --surface: #ffffff; --ink: #171717; --ink-2: #3f4147; --muted: #6b6f76;
  --hairline: #ececef; --line: #e1e2e6; --accent: #1450c8; --accent-soft: #edf2fd; --accent-ink: #0f3d9c;
  --st-dispute: #b42318; --st-paid: #1c7a45; --st-overdue: #9a5a07; --st-talks: #1a4fb8; --st-plan: #13695f; --hover: #f3f3f5;
  --shadow-sheet: 0 0 0 1px rgba(16, 20, 32, 0.06), 0 1px 2px rgba(16, 20, 32, 0.04), 0 24px 48px -24px rgba(16, 20, 32, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 14px; line-height: 1.45; font-weight: 500; letter-spacing: -0.006em;
  color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 120ms ease, color 120ms ease; }
@media (hover: hover) { .link:hover { color: var(--ink); text-decoration-color: currentColor; } }

/* The page sits between two hairlines that run the full height. */
.frame { max-width: 1120px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; border-inline: 1px solid var(--hairline); display: flex; flex-direction: column; }
.top { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--hairline); }
.logo { display: block; height: 20px; width: auto; color: var(--ink); }
.top .link { font-size: 13px; color: var(--muted); text-decoration: none; }
main { flex: 1; }
footer { flex: none; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 16px 28px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }
footer nav { display: flex; gap: 20px; }
footer .link { color: var(--muted); text-decoration: none; }

/* Waitlist: headline, one field, then the product doing its job */
.hero { padding: 88px 28px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { font-size: clamp(38px, 6.2vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; max-width: 13ch; }
.lede { margin-top: 18px; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }

/* The form and its success state share one grid cell and cross-fade. */
.slot { margin-top: 32px; width: 100%; max-width: 440px; display: grid; }
.slot > * { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease, transform 280ms var(--ease-out); }
.slot[data-state="done"] .join, .slot[data-state="form"] .done { opacity: 0; filter: blur(2px); transform: scale(0.98); pointer-events: none; visibility: hidden; transition-property: opacity, filter, transform, visibility; transition-delay: 0s, 0s, 0s, 200ms; }
.join, .done { display: flex; align-items: center; min-height: 52px; padding: 5px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sheet); transition: box-shadow 160ms ease; }
.join:focus-within, .done:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft), 0 24px 48px -24px rgba(16, 20, 32, 0.16); }
.join input, .firm input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.join input::placeholder, .firm input::placeholder { color: var(--muted); opacity: 1; }
.btn { flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--surface); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 140ms var(--ease-out), opacity 140ms ease; }
.btn-2 { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 120ms ease; }
@media (hover: hover) { .btn-2:hover { background: var(--hover); } }
.btn:active, .btn-2:active { transform: scale(0.97); }
.btn:disabled, .btn-2:disabled { opacity: 0.6; cursor: progress; }
.done { gap: 10px; padding-left: 16px; text-align: left; outline: none; }
.done b { flex: none; font-size: 14px; font-weight: 600; }
.firm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 1px solid var(--hairline); }
.firm[hidden], .thanks[hidden] { display: none; }
.firm input { height: 40px; padding: 0 6px; font-size: 14px; }
.thanks { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--hairline); }
.sq { width: 9px; height: 9px; border-radius: 2px; flex: none; display: inline-block; background: var(--st-paid); }
.err { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--st-dispute); }
.fine { max-width: 440px; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Demo: an app window where one overdue invoice gets a reminder, a reply, and is paid. 10 s loop, CSS only. */
.demo { padding: 0 28px 56px; }
.win { max-width: 780px; margin: 0 auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sheet); overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.win-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.win-bar b { color: var(--ink); font-weight: 500; }
.tbl { padding: 4px 10px 20px; text-align: left; }
.tr { display: grid; grid-template-columns: 1fr 104px 92px 160px; align-items: center; gap: 16px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--hairline); border-radius: 8px; }
.th { min-height: 36px; font-size: 12px; color: var(--muted); }
.who { min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.r { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 4px; }
.s { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--hairline); }
.s.sent { background: var(--ink); box-shadow: none; }
.st { display: grid; color: var(--ink-2); }
.st > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; }
.sq-overdue { background: var(--st-overdue); } .sq-paid { background: var(--st-paid); } .sq-talks { background: var(--st-talks); }
.sq-plan { background: var(--st-plan); } .sq-dispute { background: var(--st-dispute); }
.reply { margin: 6px 8px 8px; padding: 10px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; background: var(--canvas); border-radius: 10px; color: var(--ink-2); }
.reply-m { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

.live { animation: k-row 10s infinite; }
.live .r1 { animation: k-r1 10s infinite; }
.reply { animation: k-reply 10s var(--ease-out) infinite; }
.st-a { animation: k-out 10s infinite; }
.st-b { animation: k-in 10s infinite; }
@keyframes k-row { 0%, 4% { background: transparent; } 8%, 88% { background: var(--hover); } 96%, 100% { background: transparent; } }
@keyframes k-r1 { 0%, 14% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); } 18%, 100% { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } }
@keyframes k-reply { 0%, 28% { opacity: 0; transform: translateY(4px); } 34%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes k-out { 0%, 52% { opacity: 1; } 56%, 95% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes k-in { 0%, 52% { opacity: 0; } 56%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }

/* Privacy page */
.doc { padding: 64px 28px 72px; max-width: 760px; }
.doc h1 { font-size: 32px; letter-spacing: -0.03em; max-width: none; }
.doc .intro { margin-top: 10px; color: var(--muted); }
.doc dl { margin-top: 32px; display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--hairline); }
.doc dt, .doc dd { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.doc dt { color: var(--muted); padding-right: 16px; }
.doc dd { color: var(--ink-2); max-width: 62ch; }
.doc .back { display: inline-block; margin-top: 28px; }

@media (max-width: 700px) {
  .tr { grid-template-columns: 1fr auto; }
  .tr > .r, .tr > .steps, .th > .steps-h { display: none; }
}
@media (max-width: 600px) {
  .top, footer, .doc, .demo { padding-inline: 16px; }
  .hero { padding: 56px 16px 32px; }
  .lede { font-size: 16px; }
  .join, .done { flex-direction: column; align-items: stretch; padding: 6px; }
  .join input { flex: none; height: 48px; font-size: 16px; }
  .btn { height: 46px; margin-top: 4px; }
  .done { padding: 12px; gap: 8px; }
  .done .sq { display: none; }
  .firm, .thanks { padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .firm input { font-size: 16px; }
  .tbl { padding-inline: 4px; }
  .doc { padding-block: 40px 56px; }
  .doc dl { grid-template-columns: 1fr; }
  .doc dt { padding-bottom: 0; border-bottom: 0; }
  .doc dd { padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .slot > * { transform: none !important; filter: none !important; }
  .btn:active, .btn-2:active { transform: none; }
  /* The demo holds its end state: reminder sent, reply read, invoice paid. */
  .live, .live .r1, .reply, .st-a, .st-b { animation: none; }
  .live .r1 { background: var(--ink); box-shadow: none; }
  .st-a { opacity: 0; }
}
