/* ApiPoint – teplá, "registrová" estetika: papírové pozadí, tmavý inkoust, měděný akcent, mono pro identifikátory. */
:root {
  --ink: #141a22; --ink-2: #3b4652; --muted: #6b7684; --line: #e6e1d8; --line-2: #d8d1c4;
  --paper: #fbf9f4; --paper-2: #f3efe6; --card: #ffffff;
  --accent: #c2410c; --accent-2: #9a3412; --accent-soft: #fdebdd;
  --navy: #1f2f4a; --ok: #1a7f4b; --warn: #b7791f; --bad: #b3261e;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,26,34,.05), 0 8px 24px -12px rgba(20,26,34,.18);
}
* { box-sizing: border-box; }
html { font: 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, .mono, .key, .ico { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3rem); background: rgba(251,249,244,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .45rem; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), #f59e0b); transform: rotate(45deg); }
.brand span { color: var(--accent); }
header nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; font-weight: 600; font-size: .95rem; } header nav a { color: var(--ink-2); } header nav a:hover { color: var(--ink); text-decoration: none; }
.btn, button.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--ink); color: #fff !important; padding: .65rem 1.1rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--navy); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent); } .btn.primary:hover { background: var(--accent-2); }
.btn.secondary { background: var(--card); color: var(--ink) !important; border: 1px solid var(--line-2); } .btn.secondary:hover { background: var(--paper-2); }
button.link { background: none; border: 0; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; } form.inline { display: inline; }

main { max-width: 1080px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 3rem) 4rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.5rem; background: var(--paper-2); }
footer p { max-width: 80ch; margin: 0 auto; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: .4rem 0 .8rem; }
h2 { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 800; margin: 2.6rem 0 .8rem; } h3 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 .4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); }
p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }

/* hero with search */
.hero { padding: 2.5rem 0 1.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero .actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-search { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.hero-search label { display: block; font-weight: 700; margin-bottom: .5rem; }
.search { display: flex; gap: .5rem; } .search input { flex: 1; min-width: 0; }
.hero-search .hint { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.hero-search .hint a { color: var(--ink-2); border-bottom: 1px dotted var(--line-2); } .hero-search .hint a:hover { text-decoration: none; color: var(--accent); }

/* live ticker */
.ticker { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.ticker header { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: var(--paper-2); font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--line); }
.ticker header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: .4rem; box-shadow: 0 0 0 4px rgba(26,127,75,.15); }
.ticker ul { list-style: none; margin: 0; padding: 0; } .ticker li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .8rem; padding: .55rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; align-items: baseline; }
.ticker li:last-child { border-bottom: 0; } .ticker .when { color: var(--muted); font-size: .8rem; } .ticker .what { color: var(--ink-2); }
.ticker .type { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); white-space: nowrap; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; background: var(--card); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; } .card .price { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; margin: .2rem 0 .4rem; } .card .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.card ul { padding-left: 1.1rem; margin: .5rem 0 1rem; color: var(--ink-2); } .card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.feature { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; }
.feature .icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.feature h3 { margin: 0 0 .2rem; } .feature p { margin: 0; color: var(--ink-2); }

pre { background: #121821; color: #e6edf3; padding: 1.1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; line-height: 1.55; box-shadow: var(--shadow); }
pre .c { color: #8b98a8; }
code.inline, .key { background: var(--paper-2); padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--line); font-size: .9em; word-break: break-all; }
.key { display: inline-block; padding: .5rem .8rem; font-size: 1rem; background: #fff; }

form.stack { display: grid; gap: .8rem; max-width: 480px; } label { font-weight: 700; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
select { width: auto; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: var(--paper-2); }
tr:last-child td { border-bottom: 0; } tr.muted td { color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .ico { font-size: .95em; color: var(--ink-2); }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.badge.ok { color: var(--ok); background: #e8f5ee; border-color: #cfe9da; } .badge.bad { color: var(--bad); background: #fbeae9; border-color: #f3cfcc; } .badge.warn { color: var(--warn); background: #fdf3e1; border-color: #f4e0b5; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); } .alert.ok { border-color: #cfe9da; background: #eef8f2; } .alert.bad { border-color: #f3cfcc; background: #fdf1f0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
dl.facts dt { color: var(--muted); font-size: .9rem; } dl.facts dd { margin: 0; }
.cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; } @media (min-width: 860px) { .cols { grid-template-columns: 1.4fr 1fr; } }
.company-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; color: var(--ink-2); }
.sources { display: flex; gap: .6rem; flex-wrap: wrap; } .sources span { font-size: .8rem; padding: .25rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--card); }
.crumbs { font-size: .85rem; color: var(--muted); } .crumbs a { color: var(--ink-2); }
