/* useiou.com — shared styles. Same palette and type as the IOU app. */

/* Manrope (SIL Open Font License, fonts/OFL.txt), Google Fonts' latin variable file, all weights 400-800 in 24 KB. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --bg: #FFF9F7;
  --surface: #FFFFFF;
  --fill: #F5EEEC;
  --fill-pressed: #ECE2DF;
  --ink: #2E141A;
  --ink-muted: #6B4F56;
  --ink-subtle: #77606A;
  --brand: #B62947;
  --brand-pressed: #9C1F3B;
  --brand-wash: #FCEFF2;
  --brand-border: #E3A3B1;
  --accent-soft: #FFE6E5;
  --accent-ink: #8E1F38;
  --lime: #D7F56D;
  --lime-wash: #F7FCE3;
  --lime-border: #C9E55A;
  --lime-line: #E4F3A9;
  --alert: #FFEBC2;
  --alert-ink: #8A5200;
  --positive: #2F7A3A;
  --border: #F0E4E1;
  --border-strong: #E2D2CE;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gutter: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--brand);
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--lime); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-pressed); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; font-size: 20px; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 34em; }

/* Logo: I + split coin + U */
.logo { display: inline-flex; align-items: center; gap: 0; color: var(--brand); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.02em; text-decoration: none; }
.logo:hover { color: var(--brand); }
.logo .coin { width: 0.74em; height: 0.74em; margin: 0 0.06em; border-radius: 50%; transform: rotate(45deg); background: linear-gradient(90deg, var(--lime) 50%, var(--brand) 50%); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: var(--radius-md);
  font: 600 16px/1 "Manrope", system-ui, sans-serif; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-pressed); color: #fff; }
.btn-secondary { background: var(--fill); color: var(--ink); }
.btn-secondary:hover { background: var(--fill-pressed); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* Chips, same as the app */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-lime { background: var(--lime); color: var(--ink); }
.chip-pink { background: var(--accent-soft); color: var(--accent-ink); }
.chip-alert { background: var(--alert); color: var(--alert-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .inner { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 0; }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) max(48px, calc(env(safe-area-inset-bottom) + 24px)); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; color: var(--ink-muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--ink); }

/* Reading pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc .updated { margin-top: 12px; color: var(--ink-subtle); font-size: 15px; }
.doc .intro { margin-top: 28px; font-size: 19px; color: var(--ink-muted); }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 56px; margin-bottom: 14px; }
.doc h3 { font-size: 18px; margin-top: 28px; margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink); max-width: 68ch; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--brand); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--border); }
.doc th { font-weight: 600; width: 34%; }
@media (max-width: 620px) {
  .doc { padding-top: 32px; }
  .doc .intro { font-size: 18px; }
  .doc h2 { font-size: 22px; margin-top: 44px; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: auto; }
  .doc tr { padding: 12px 0; border-top: 1px solid var(--border); }
  .doc th, .doc td { border: 0; padding: 0; }
  .doc th { margin-bottom: 4px; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
