/* Feather Light public site: landing page and blog. Barlow (SIL OFL, assets/fonts) was drawn after
   highway signage, which suits a launcher read at a glance from the driver's seat. */
@font-face { font-family: Barlow; src: url(/assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(/assets/fonts/barlow-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Barlow; src: url(/assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0f1a26;      /* the cabin after dark: hero, footer */
  --night-2: #1a2735;    /* raised night surfaces: the unit bezel, tabs */
  --night-line: #2c3b4d;
  --paper: #eef2f5;      /* daytime page */
  --surface: #ffffff;
  --ink: #16202b;
  --ink-2: #4a5868;
  --line: #d5dce4;
  --signal: #2f6fde;     /* actions and icons */
  --signal-deep: #1f55b5;
  --signal-soft: #9cc0ff;
  --amber: #f2a93b;      /* indicator light: used only for "on" states */
  --display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--text); font-kerning: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-deep); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 17px/1 var(--text); padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-deep); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost-dark:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-large { font-size: 19px; padding: 16px 28px; }
.btn-small { font-size: 15px; padding: 9px 16px; background: var(--signal); color: #fff; }
.btn-small:hover { background: var(--signal-deep); color: #fff; }

/* ------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(15, 26, 38, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: .005em; }
.brand:hover { color: #fff; }
.brand img { border-radius: 8px; }
.links { list-style: none; display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; }
.links a { color: #c9d4e0; text-decoration: none; font-weight: 500; font-size: 16px; }
.links a:hover { color: #fff; }

/* ------------------------------------------------------------ hero: the unit in the dash */
.hero { position: relative; background: var(--night); color: #e7edf4; overflow: hidden; isolation: isolate; }
.hero::before { /* the glow a lit screen throws on the dash */
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 111, 222, .34), rgba(47, 111, 222, 0) 70%);
}
.hero::after { /* lane markings running under the unit */
  content: ""; position: absolute; left: 40%; right: 0; bottom: 0; height: 30%; z-index: -1; opacity: .45;
  background:
    linear-gradient(to top, var(--night) 0%, rgba(15, 26, 38, 0) 60%),
    repeating-linear-gradient(90deg, transparent 0 calc(50% - 2px), rgba(242, 169, 59, .5) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px) 100%);
  -webkit-mask: repeating-linear-gradient(to top, #000 0 36px, transparent 36px 72px);
  mask: repeating-linear-gradient(to top, #000 0 36px, transparent 36px 72px);
}
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.0; letter-spacing: -0.02em; color: #fff; max-width: 13ch; }
.hero .lede { margin-top: 22px; font-size: 20px; line-height: 1.55; color: #b8c5d3; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fit { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 8px; font-size: 16px; color: #9fb0c2; }
.fit li { display: flex; align-items: center; gap: 10px; }
.fit svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.unit { transform: perspective(1800px) rotateY(-9deg) rotateX(2deg); transform-origin: 30% 50%; }
.unit-face {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: linear-gradient(160deg, #263547 0%, #141f2b 55%, #0b131c 100%);
  border-radius: var(--radius-l); border: 1px solid #34465b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 6px #0a1119;
}
.knob { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4d6075, #18232f 70%); box-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 2px #0b1219; }
.unit-glass { position: relative; flex: 1; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px #000; }
.unit-glass::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 38%);
}
.screen { margin: 0; position: absolute; inset: 0; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen.is-on { animation: screen-on .35s ease-out; }
@keyframes screen-on { from { opacity: 0; filter: brightness(1.6); } to { opacity: 1; filter: none; } }
.unit-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.unit-tabs button {
  font: 600 15px/1 var(--text); color: #b8c5d3; background: var(--night-2); border: 1px solid var(--night-line);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.unit-tabs button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a4a5c; }
.unit-tabs button[aria-selected="true"] { color: #fff; border-color: #4b5f75; }
.unit-tabs button[aria-selected="true"]::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.unit-tabs button:hover { color: #fff; }

/* ------------------------------------------------------------ sections */
.features, .screens, .from-blog { padding: 104px 0; }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.section-head p { margin-top: 14px; font-size: 20px; color: var(--ink-2); }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; margin-bottom: 32px; }
.section-head-row a { font-weight: 600; }

/* Features as a spec sheet: each group a heading column plus a ruled list. */
.group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: 40px 0; border-top: 2px solid var(--ink); }
.group + .group { border-top-width: 1px; border-top-color: var(--line); }
.group-head { position: sticky; top: 96px; align-self: start; }
.group-head h3 { font-size: 30px; }
.group-head p { margin-top: 10px; color: var(--ink-2); }
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.specs li { padding: 22px 0 26px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-content: start; }
.specs svg { grid-row: span 2; width: 28px; height: 28px; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.specs h4 { font-size: 21px; }
.specs p { margin-top: 6px; color: var(--ink-2); font-size: 17px; }

/* Screens: a strip that scrolls sideways, each shot in a thin bezel. */
.screens { background: var(--surface); border-block: 1px solid var(--line); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 22px; margin: 0 -24px; scrollbar-color: var(--line) transparent; }
.shot { margin: 0; scroll-snap-align: start; }
.shot img { border-radius: var(--radius-m); background: var(--night); padding: 7px; box-shadow: 0 18px 40px -22px rgba(15, 26, 38, .55); }
.shot figcaption { margin-top: 14px; color: var(--ink-2); font-size: 16px; max-width: 34em; }
.shot figcaption strong { display: block; color: var(--ink); font: 700 20px/1.2 var(--display); margin-bottom: 2px; }

/* Get started: the night panel again, with the three steps. */
.get { background: var(--night); color: #dfe7ef; padding: 104px 0; }
.get-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.get h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); max-width: 15ch; }
.get .lede { margin-top: 18px; font-size: 19px; color: #b8c5d3; max-width: 32em; }
.get-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.get .btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.get .btn-ghost-dark:hover { border-color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 30px 72px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 700 22px/1 var(--display); color: var(--amber); border: 2px solid rgba(242, 169, 59, .55);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 50px; bottom: 6px; width: 2px; background: var(--night-line); }
.steps h3 { color: #fff; font-size: 23px; }
.steps p { margin-top: 6px; color: #a9b8c8; font-size: 17px; }

/* ------------------------------------------------------------ posts */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.post-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--signal-deep); }
.post-card .post-img { display: block; }
.post-card img { border-radius: var(--radius-m); margin-bottom: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--night); }
.post-card h3 { font-size: 25px; }
.post-card p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.post-card .meta { font-size: 15px; }
.post-card.is-big h3 { font-size: 32px; }
.meta { color: var(--ink-2); font-size: 15px; }
.posts-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.posts-all .is-big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: center; }
.posts-all .is-big img { margin-bottom: 0; }
.posts-all .is-big h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); }

/* ------------------------------------------------------------ blog pages */
.page { max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 112px; }
.page-head { max-width: 44rem; margin-bottom: 56px; }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.lede { margin-top: 16px; font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.rss { display: inline-block; margin-top: 14px; font-weight: 600; }

.post-head { max-width: 46rem; margin: 0 auto 40px; }
.crumbs a { font-weight: 600; text-decoration: none; }
.post-head h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-top: 14px; }
.post-head .meta { margin-top: 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.tags li { font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.cover { max-width: 60rem; margin: 0 auto 48px; }
.cover img { border-radius: var(--radius-m); width: 100%; }
.post-body { max-width: 46rem; margin: 0 auto; }
.toc { border-left: 3px solid var(--signal); padding: 4px 0 4px 18px; margin-bottom: 36px; }
.toc p { font-weight: 600; }
.toc ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 17px; }

.prose { font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 31px; margin-top: 1.9em; }
.prose h3 { font-size: 24px; margin-top: 1.6em; }
.prose h4 { font-size: 20px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--signal); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); color: var(--ink-2); font-style: italic; }
.prose code { font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--night); color: #dfe7ef; border-radius: var(--radius-m); padding: 18px 20px; overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius-m); background: var(--night); padding: 6px; }
.prose figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius-s); }

.more { max-width: var(--wrap); margin: 96px auto 0; }
.more h2 { font-size: 30px; margin-bottom: 26px; }
.more .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------------------------------------ footer */
.foot { background: var(--night); color: #9fb0c2; border-top: 1px solid var(--night-line); }
.landing .foot { border-top-color: var(--night-line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 120px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-brand p { margin-top: 12px; font-size: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: #c9d4e0; text-decoration: none; font-size: 16px; }
.foot a:hover { color: #fff; }

/* ------------------------------------------------------------ floating call to action */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 14px;
  max-width: min(460px, calc(100vw - 40px)); padding: 12px 12px 12px 14px; border-radius: 18px;
  background: rgba(15, 26, 38, .92); color: #dfe7ef; border: 1px solid #34465b;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .6);
  transform: translateY(0); opacity: 1; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.float-cta[hidden] { display: flex; visibility: hidden; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s, visibility 0s .2s; }
.float-cta img { flex: none; border-radius: 8px; }
.float-cta p { font-size: 15px; line-height: 1.35; color: #a9b8c8; }
.float-cta p strong { display: block; color: #fff; font-size: 16px; }
.float-cta .btn { padding: 11px 18px; font-size: 16px; }
.float-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: #8596a8; font-size: 22px; line-height: 1; cursor: pointer; }
.float-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) {
  .float-cta, .float-cta[hidden] { transition: none; transform: none; }
  .screen.is-on { animation: none; }
}

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 56px; gap: 48px; }
  .hero h1 { max-width: 16ch; }
  .unit { transform: none; }
  .group { grid-template-columns: 1fr; gap: 20px; }
  .group-head { position: static; }
  .get-in { grid-template-columns: 1fr; gap: 48px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts .is-big { grid-column: 1 / -1; }
  .posts-all .is-big { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: minmax(280px, 78%); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .links { display: none; }
  .topbar-in { justify-content: space-between; }
  .specs { grid-template-columns: 1fr; }
  .posts, .posts-all, .more .posts { grid-template-columns: 1fr; }
  .features, .screens, .from-blog, .get { padding: 72px 0; }
  .knob { display: none; }
  .unit-face { padding: 8px; gap: 0; }
  .float-cta { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .float-cta p { display: none; }
  .float-cta .btn { flex: 1; }
  .prose { font-size: 18px; }
}
