/* LNKS — design tokens + base components.
   Light surfaces, near-black primary action, mint-green accent used
   sparingly for highlights/success. Urbanist for everything user-facing.
*/

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;       /* variable weight */
  font-display: swap;
  src: url("/fonts/Urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Surfaces */
  --bg:           #f5f5f7;     /* slightly grey, sits below white cards */
  --surface:      #ffffff;
  --ink:          #0a0a0b;     /* near-black — used for primary actions and dark cards */
  --ink-2:        #1a1a1c;
  --border:       #e5e5e7;
  --border-soft:  #ececee;

  /* Text */
  --text:         #0a0a0b;
  --text-2:       #3a3a3e;
  --muted:        #6e6e72;
  --muted-2:      #a0a0a4;

  /* Accent — used sparingly. Highlights, success badges, small flags. */
  --mint:         #75FB90;
  --mint-soft:    #e8fff0;
  --mint-ink:     #094a1c;     /* readable on mint pill bg */

  /* States */
  --danger:       #d83737;
  --danger-soft:  #fdecec;

  /* Layout */
  --gutter:       clamp(20px, 3.6vw, 32px);
  --max-width:    1200px;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  /* Type */
  --font:         "Urbanist", -apple-system, BlinkMacSystemFont,
                  "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono:    "Victor Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shadows — subtle. Premium = soft, not harsh. */
  --shadow-sm:    0 1px 2px rgba(10, 10, 11, 0.04);
  --shadow:       0 6px 24px rgba(10, 10, 11, 0.06);
  --shadow-lg:    0 12px 40px rgba(10, 10, 11, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.005em;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-2); }

::selection { background: var(--ink); color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s, transform 0.05s, box-shadow 0.14s;
  user-select: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}

/* Primary = near-black pill. Premium, confident, not "another blue button". */
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; color: #fff; box-shadow: var(--shadow-sm); }

/* Secondary = white pill with hairline border. */
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* Ghost = just text, no chrome. */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; min-height: 52px; }

/* ── Mint accent pills (status / success / "free" tags) ──────────── */

.tag-mint {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--mint-ink);
  letter-spacing: -0.005em;
}
.tag-mint-soft {
  background: var(--mint-soft);
  color: var(--mint-ink);
}

/* ── Inputs ──────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.field .err {
  font-size: 12px;
  color: var(--danger);
  margin-top: 2px;
  min-height: 14px;
}

.input,
.textarea,
.select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  outline: none;
  width: 100%;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.08);
}
.input::placeholder { color: var(--muted-2); }

/* ── Card ────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 40px);
  box-shadow: var(--shadow-sm);
}

/* Dark card variant — used selectively for premium emphasis (search bar,
   feature highlight, footer block). Mirrors the Ledgerix dark accents. */
.card-dark {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
}
.card-dark a { color: #fff; }

/* ── Brand wordmark ──────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}
.brand:hover { color: var(--ink); }

/* ── Page chrome ─────────────────────────────────────────────────── */

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  background: var(--bg);
}
.site-header .actions { display: flex; gap: 6px; align-items: center; }

.site-footer {
  padding: 32px var(--gutter);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ── Utilities ───────────────────────────────────────────────────── */

.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
