/* uplivra.com — Uplivra Brand System 1.0 (branding/brand-tokens.json):
   Deep #0F2A43, Signal #19B5A5, Current #35C2D6, Ice #E9F2F5, Slate #64748B,
   Graphite #111827, Snow #F8FAFC. Buttons in Signal/Current carry Deep text
   (white fails contrast); text in brand teal uses the darker --accent-text. */
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff) format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope.woff) format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plexmono.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plexmono-600.woff) format("woff"); font-weight: 600; font-display: swap; }

:root {
  --deep: #0F2A43; --signal: #19B5A5; --current: #35C2D6; --ice: #E9F2F5; --slate: #64748B; --graphite: #111827; --snow: #F8FAFC;
  --bg: var(--snow); --bg2: #ffffff; --panel: #ffffff; --text: var(--graphite); --muted: #4d5b6e; --line: #dbe3ea;
  --accent: var(--signal); --accent-ink: var(--deep); --accent-text: #0B6E65; --link: #0b7285; --band: var(--deep); --band-text: #e7eef5;
  --warn-bg: #fff7e6; --warn-line: #f0c36d; --tip-bg: #e8faf4; --tip-line: #7fdcc0; --note-bg: #eaf6f9; --note-line: #9ad7e2;
  --code-bg: #0f1a2e; --code-text: #e2ecf5; --shadow: 0 1px 2px rgb(15 42 67 / .06), 0 8px 30px rgb(15 42 67 / .08);
  --radius: 14px; --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --head: "Manrope", var(--font);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1628; --bg2: #0F2443; --panel: #11223d; --text: #e6edf5; --muted: #9fb0c3; --line: #22385a;
    --accent: var(--signal); --accent-ink: var(--deep); --accent-text: var(--signal); --link: var(--current); --grad-a: var(--signal); --grad-b: var(--current); --band: #0F2A43; --band-text: #e7eef5;
    --warn-bg: #2d2412; --warn-line: #8a6a22; --tip-bg: #0e2e2a; --tip-line: #1f7a64; --note-bg: #0f2a38; --note-line: #2a6f86;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; background: color-mix(in srgb, var(--current) 14%, transparent); padding: .1em .35em; border-radius: 5px; }
pre { background: var(--code-bg); color: var(--code-text); padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--current); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .62rem 1.1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--current); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.big { padding: .85rem 1.4rem; font-size: 1.05rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-align: left; text-decoration: underline; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; flex: 1; }
.site-nav > a, .drop > a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; }
.site-nav a[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.nav-cta > a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.drop { position: relative; }
.drop-menu { display: none; position: absolute; top: 100%; left: -1rem; width: 560px; padding: .75rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); grid-template-columns: 1fr 1fr; gap: .15rem; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: grid; }
.drop-menu a { display: grid; padding: .5rem .65rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.drop-menu a:hover { background: color-mix(in srgb, var(--current) 10%, transparent); }
.drop-menu strong { font-size: .92rem; }
.drop-menu span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem; max-height: calc(100vh - 66px); overflow: auto; }
  .site-nav.open { display: flex; }
  .site-nav > a, .drop > a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .drop-menu { position: static; display: grid; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .25rem 0 .5rem .5rem; }
  .drop-menu span { display: none; }
  .nav-cta { margin: 1rem 0 0; }
}

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.eyebrow { display: inline-block; font: 700 .78rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .8rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44rem; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.band { background: var(--band); color: var(--band-text); }
.band .muted, .band .lead { color: #aebdd0; }
.band h2, .band h3 { color: #fff; }
.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero { padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 22%, transparent), transparent 70%) 20% 20% / 60% 80% no-repeat,
              radial-gradient(closest-side, color-mix(in srgb, var(--current) 20%, transparent), transparent 70%) 85% 0 / 55% 80% no-repeat; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--grad-a, #0B6E65), var(--grad-b, #0b7285)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.hero-shot { margin-top: 3rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.facts li::before { content: "✓"; color: var(--accent-text); font-weight: 800; margin-right: .45rem; }

.shot { margin: 1.5rem 0; }
.shot img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.hero-shot .shot img { border-radius: 16px; }

.grid3 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillars .pillar { padding: 1.6rem; border-radius: var(--radius); background: color-mix(in srgb, #fff 5%, transparent); border: 1px solid rgb(255 255 255 / .1); }
.pillar .num { font: 800 .8rem var(--mono); color: var(--signal); }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
a.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--current); }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: .8rem; }
.card .price { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 99px;
  background: color-mix(in srgb, var(--current) 16%, transparent); color: var(--link); vertical-align: middle; }
.badge.soon { background: color-mix(in srgb, #f5b301 20%, transparent); color: #a06d00; }
@media (prefers-color-scheme: dark) { .badge.soon { color: #f5c542; } }

.feature { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; padding: 2.5rem 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 5fr 7fr; } .feature.flip { grid-template-columns: 7fr 5fr; } .feature.flip .copy { order: 2; } }
.feature ul { padding-left: 1.1rem; color: var(--muted); } .feature li { margin: .3rem 0; }

.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps > div { counter-increment: s; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.steps > div::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: .7rem; }

.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; }

/* Reviews */
.reviews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.review { display: flex; flex-direction: column; gap: .4rem; }
.review .stars, .stars { color: #F5B301; letter-spacing: .1em; }
.review h3 { font-size: 1.05rem; margin: 0; }
.review .body { white-space: pre-line; color: var(--text); font-size: .95rem; }
.review .who { font-size: .85rem; color: var(--muted); }
.review .comment { border-left: 3px solid var(--line); padding: .2rem .8rem; font-size: .9rem; }
.review .comment.staff { border-left-color: var(--accent); }
.verified { color: var(--accent-text); font-weight: 600; }
.review-summary { font-size: 1.1rem; }

/* Tables */
.table { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: color-mix(in srgb, var(--current) 7%, transparent); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Articles (modules, guides, legal) */
.article-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.article { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-bottom: 4rem; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 250px; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6rem; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin: .35rem 0; }
.toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: .2rem 0; }
.toc a.l3 { padding-left: .8rem; font-size: .85rem; }
.toc a:hover { color: var(--link); }
.toc .btn { margin-top: 1rem; }
@media (max-width: 999px) { .toc { position: static; border: 0; padding: 0; } }
.callout { border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 10px; padding: .85rem 1rem; margin: 1.2rem 0; }
.callout p { margin: 0; }
.callout.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.callout.tip { border-color: var(--tip-line); background: var(--tip-bg); }
.module-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin-top: 1rem; }
.price-tag { font-weight: 700; color: var(--accent-text); }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 2rem 0; }
.plan { display: flex; flex-direction: column; gap: .5rem; }
.plan .amount { font: 800 2.2rem var(--head); }
.plan ul { padding-left: 1.1rem; color: var(--muted); font-size: .94rem; margin: .5rem 0 1rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.featured { border: 2px solid var(--accent); }
.tier-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tier .pct { font: 800 2.6rem var(--head); color: var(--accent-text); }

/* Docs */
.guide-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-list .card .links { display: flex; gap: .6rem; margin-top: auto; flex-wrap: wrap; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: var(--bg2); margin-top: 0; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; }
.foot-grid a, .foot-grid .linkish { display: block; color: var(--text); text-decoration: none; font-size: .92rem; padding: .2rem 0; }
.foot-grid a:hover { color: var(--link); }
.foot-base { margin-top: 2.5rem; font-size: .82rem; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgb(0 0 0 / .15); padding: 1rem 0; }
.cookie-row { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-row p { margin: 0; max-width: 52rem; font-size: .93rem; }
.cookie-actions { display: flex; gap: .6rem; }
.mt { margin-top: 2rem; }
.wrap > h2 { margin-top: 2.5rem; }

/* Brand background behind the closing call to action. */
.cta-band { background: linear-gradient(90deg, rgb(15 42 67 / .92), rgb(15 42 67 / .7)), url(/brand/background.webp) center / cover no-repeat, var(--band); }
.shot .demo { display: inline-block; margin-left: .4rem; font-size: .75rem; padding: 0 .45rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.cta-band .lead { margin-left: auto; margin-right: auto; }
