/* Lookward website. Copyright © 2026 Bartlett Electronics. All rights reserved. */
:root {
  --paper: #f7f7fb; --paper-2: #eeeef7; --card: #ffffff; --line: #e1e2ef; --line-2: #d3d5e8;
  --text: #12142a; --muted: #50536d; --faint: #7a7d96;
  --accent: #4f46e5; --accent-2: #8b5cf6; --accent-soft: #eceafe; --accent-ink: #ffffff; --link: #4338ca;
  --ok: #12a26b; --warn: #d98a0b; --bad: #e0443e; --sun: #fbbf24;
  --night: #0a0c19; --night-2: #11142a; --night-3: #171b36; --night-line: #23284a; --night-text: #e8e9fb; --night-muted: #a0a3c6; --night-faint: #6f7398;
  --shadow: 0 1px 2px rgba(20, 18, 70, .06), 0 20px 50px rgba(20, 18, 70, .10);
  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0c0e1c; --paper-2: #121528; --card: #151930; --line: #252a4a; --line-2: #2e345a;
  --text: #e8e9fb; --muted: #a8abcb; --faint: #7a7e9f;
  --accent: #8b8cff; --accent-2: #b197fc; --accent-soft: #1f2148; --accent-ink: #0c0e1c; --link: #a5a6ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0c0e1c; --paper-2: #121528; --card: #151930; --line: #252a4a; --line-2: #2e345a;
  --text: #e8e9fb; --muted: #a8abcb; --faint: #7a7e9f;
  --accent: #8b8cff; --accent-2: #b197fc; --accent-soft: #1f2148; --accent-ink: #0c0e1c; --link: #a5a6ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .35); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.025em; text-wrap: balance; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
code { font: .86em var(--f-mono); background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 600 15.5px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn.primary { background: linear-gradient(135deg, #5b50f0, #8b5cf6); color: #fff; box-shadow: 0 8px 24px -8px rgba(91, 80, 240, .65); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(91, 80, 240, .8); }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn.soft { background: var(--accent-soft); color: var(--link); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--night) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--night-line); color: var(--night-text); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-display); letter-spacing: -.02em; color: var(--night-text); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 22px; margin-left: 8px; }
.nav .links a { color: var(--night-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav .links a:hover { color: var(--night-text); }
.nav .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav .btn { padding: 10px 16px; font-size: 14.5px; }
.nav .signin { color: var(--night-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
@media (max-width: 920px) { .nav .links { display: none; } }
@media (max-width: 480px) { .nav .signin { display: none; } .nav .btn { padding: 9px 12px; } }

/* footer */
footer.site { background: var(--night); color: var(--night-muted); padding: 56px 0 44px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { margin: 0 0 12px; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-faint); }
footer.site a { color: var(--night-muted); text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--night-text); }
footer.site a.logo { display: inline-flex; margin-bottom: 12px; color: var(--night-text); }
footer.site .legal { border-top: 1px solid var(--night-line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; color: var(--night-faint); font-size: 13px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > :first-child { grid-column: 1 / -1; } }

/* document pages (license, privacy, security) */
.docpage { padding: 48px 0 72px; }
.docpage .wrap { max-width: 880px; }
.docpage h1 { font: 700 clamp(32px, 5vw, 44px)/1.1 var(--f-display); letter-spacing: -.025em; margin: 0 0 8px; }
.docpage .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.doc h2 { font: 600 22px/1.3 var(--f-display); letter-spacing: -.015em; margin: 36px 0 10px; }
.doc h3 { margin: 26px 0 8px; font-size: 17.5px; }
.doc h2:first-child, .doc > :first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text); font-size: 16.5px; line-height: 1.68; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--muted); font-size: 13.5px; }
.doc pre { background: var(--night-2); color: var(--night-text); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font: 13px/1.55 var(--f-mono); }
.doc pre code { background: none; padding: 0; color: inherit; }
.doc blockquote { margin: 14px 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.toc a { font-size: 13.5px; padding: 6px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
