/* app.unifiedchat.app. Tokens mirror site/styles.css (and through it mac/Unify/App/Theme.swift). */
@font-face { font-family: "Newsreader"; src: url("newsreader.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: oklch(0.993 0.0015 85);
  --canvas: oklch(0.974 0.0025 85);
  --surface: #fff;
  --muted: oklch(0.962 0.003 85);
  --line: oklch(0.25 0.01 85 / 0.085);
  --ink: oklch(0.2 0.006 275);
  --ink-2: oklch(0.52 0.008 275);
  --ink-3: oklch(0.67 0.006 275);
  --on-ink: oklch(0.99 0 0);
  --cedar: oklch(0.585 0.135 48);
  --cedar-ink: oklch(0.44 0.1 45);
  --coral: oklch(0.68 0.19 30);
  --blue: oklch(0.66 0.15 245);
  --danger: oklch(0.55 0.17 28);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --voice: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(60vmax 50vmax at 12% 8%, oklch(0.68 0.19 30 / 0.10), transparent 70%),
    radial-gradient(60vmax 50vmax at 92% 96%, oklch(0.66 0.15 245 / 0.10), transparent 70%),
    var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
a { color: var(--cedar-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 2px; }

.card {
  width: min(400px, 100%);
  display: grid;
  gap: 24px;
  text-align: center;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

.mark { width: 44px; height: 44px; margin: 0 auto; }
.mark .a { fill: var(--coral); }
.mark .b { fill: var(--blue); }
.head { display: grid; gap: 8px; }
h1 { font: 500 34px/1.1 var(--voice); letter-spacing: -0.01em; }
.lede { color: var(--ink-2); }

form { display: grid; gap: 10px; text-align: left; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px oklch(0 0 0 / 0.03);
}
input::placeholder { color: var(--ink-3); }
input:focus { outline: none; box-shadow: 0 0 0 2px var(--cedar); }
button {
  height: 46px;
  margin-top: 8px;
  font: 600 15px/1 var(--sans);
  color: var(--on-ink);
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: default; }
.error:empty { display: none; }
.error { font-size: 14px; color: var(--danger); text-align: center; }
.fine { font-size: 14px; color: var(--ink-3); }
.who { color: var(--ink); font-weight: 500; }
.step { display: grid; gap: 24px; }
input.code { font: 600 22px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.35em; text-align: center; }
[hidden] { display: none !important; }

/* Plan page */
h2 { margin: 0; font: 500 22px/1.2 var(--voice); }
.plans { display: grid; gap: 12px; text-align: left; }
.plan { display: grid; gap: 8px; padding: 18px 20px; border-radius: 14px; background: var(--muted); color: var(--ink-2);
  font-size: 15px; transition: background 0.2s, box-shadow 0.2s; }
.plan.chosen { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 24px oklch(0.2 0.01 275 / 0.06); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink); }
.price { font-size: 15px; color: var(--ink-2); }
.current { font-size: 13px; font-weight: 600; color: var(--cedar-ink); }
.actions { display: grid; gap: 10px; }
.actions button { margin-top: 0; }
.button { display: grid; place-items: center; height: 46px; border-radius: 10px; font: 600 15px/1 var(--sans);
  color: var(--on-ink); background: var(--ink); }
.button:hover { text-decoration: none; }
button.quiet, .button.quiet { color: var(--ink); background: var(--muted); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cedar); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
