/* Feather Light public site: landing page, blog, legal pages, 404 (the account pages use site.css).
   Light and calm: white page, soft grey panels, rounded device frames around real screenshots.
   Space Grotesk for headings, Barlow for text (both SIL OFL, self-hosted: the CSP allows only 'self'). */
@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 549; font-display: swap; }
@font-face { font-family: Barlow; src: url(/assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 550 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500 549; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 550 700; font-display: swap; }

:root {
  --bg: #fff; --ink: #17161c; --mute: #55535f; --soft: #f5f5f7; --line: #e8e7ec; --accent: #0f1a26;
  --link: #2f63d6; --focus: #4a7dff; --r: 28px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: #fff; padding: 10px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 550; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); max-width: 1100px; letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
.muted { color: var(--mute); }

/* ------------------------------------------------------------ top bar */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--display); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; background: var(--accent); border-radius: 8px; padding: 4px; }
nav.main { display: flex; gap: 26px; font-size: 16px; }
nav.main a, .site-foot a { text-decoration: none; color: var(--mute); }
nav.main a:hover, .site-foot a:hover { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 18px; font-size: 16px; }
.actions > .signin { text-decoration: none; color: var(--mute); }
.actions > .signin:hover { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 99px; background: var(--soft); font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu div { position: absolute; right: 0; top: 50px; width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 20px 50px rgba(20, 18, 30, .12); }
.menu div a { display: block; padding: 10px 14px; text-decoration: none; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 99px; font: 550 16px/1 var(--text); text-decoration: none; background: var(--ink); color: #fff; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn:hover { background: #383641; }
.btn.alt { background: var(--soft); color: var(--ink); }
.btn.alt:hover { background: #eaeaee; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { flex: none; }

/* ------------------------------------------------------------ shared layout */
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lead { color: var(--mute); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 740px; margin-top: 20px; text-wrap: pretty; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
section { padding: 72px 0; }
.panel { background: var(--soft); border-radius: var(--r); }
.device { flex: none; background: #0b0d11; padding: 10px; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(15, 26, 38, .45); }
.device img { border-radius: 17px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent); }

/* ------------------------------------------------------------ hero */
.hero { padding-top: 80px; }
.avail { color: var(--mute); font-size: 16px; margin-top: 18px; }
.stage { margin-top: 40px; width: 100%; overflow: hidden; padding: 24px 0 40px; }

/* Rotating screens: the same three-device look (big screen in the middle, dimmed smaller ones either side),
   moving one place at a time. --W is the middle device's width; a side one is 520/760 of it, 24px apart.
   data-pos: 0 middle, -1/1 the sides, anything else waits off stage. Without the script: three still screens. */
.carousel { --W: min(760px, 86vw); position: relative; }
.ctrack { position: relative; height: calc((var(--W) - 20px) * 9 / 16 + 20px); touch-action: pan-y; }
.cslide { position: absolute; top: 0; left: 50%; width: var(--W); transform: translateX(-50%); opacity: 0; visibility: hidden;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .7s, visibility 0s .7s; }
.cslide[data-pos="0"], .cslide[data-pos="1"], .cslide[data-pos="-1"] { visibility: visible; transition-delay: 0s; }
.cslide[data-pos="0"] { opacity: 1; z-index: 2; }
.cslide[data-pos="1"] { transform: translateX(-50%) translateX(calc(var(--W) * .842 + 24px)) scale(.684); opacity: .55; cursor: pointer; }
.cslide[data-pos="-1"] { transform: translateX(-50%) translateX(calc(var(--W) * -.842 - 24px)) scale(.684); opacity: .55; cursor: pointer; }
.cslide[data-pos="2"] { transform: translateX(-50%) translateX(calc(var(--W) * 1.6 + 48px)) scale(.684); }
.cslide[data-pos="-2"] { transform: translateX(-50%) translateX(calc(var(--W) * -1.6 - 48px)) scale(.684); }
.carr { position: absolute; z-index: 3; top: calc(24px + ((var(--W) - 20px) * 9 / 16 + 20px) / 2 - 24px); width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(15, 26, 38, .45); transition: transform .2s; }
.carr[hidden], .cnav[hidden] { display: none; }
.carr:hover { transform: scale(1.08); }
.carr.prev { left: calc(50% - var(--W) / 2 - 24px); }
.carr.next { right: calc(50% - var(--W) / 2 - 24px); }
.cnav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.dots { display: flex; gap: 2px; }
.dot { width: 26px; height: 26px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #c9c8cf; transition: width .3s, background .3s; }
.dot[aria-current="true"]::before { width: 22px; background: var(--ink); }
.cpause { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.cpause:hover { background: var(--soft); }
.ic-pause { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cpause.held .ic-pause { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

/* ------------------------------------------------------------ demo video (a placeholder until FL_DEMO_VIDEO is set) */
.video { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin-top: 40px; border-radius: var(--r); background: var(--soft); overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video.placeholder { position: relative; background: #0b0d11; }
.video.placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(3px) saturate(.6); transform: scale(1.04); }
.video .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: #fff; padding: 24px; }
.video .play { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .45); padding-left: 5px; }
.video .ph p { font-size: 16px; color: rgba(255, 255, 255, .78); max-width: 440px; }
.video .ph strong { display: block; font: 550 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--display); color: #fff; margin-bottom: 6px; }
#about { padding-bottom: 24px; }

/* ------------------------------------------------------------ segmented switcher (CSS only: radios + labels) */
.sw { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.sw > input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); margin-bottom: 22px; }
.seg label { cursor: pointer; padding: 9px 24px; border-radius: 99px; font-size: 15px; font-weight: 550; color: var(--mute); transition: background .2s, color .2s; }
.views { display: grid; width: 100%; }
.views > .v { grid-area: 1 / 1; min-width: 0; }
.sw > input ~ .views > .v { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.sw > input:nth-of-type(1):checked ~ .seg label:nth-child(1),
.sw > input:nth-of-type(2):checked ~ .seg label:nth-child(2),
.sw > input:nth-of-type(3):checked ~ .seg label:nth-child(3) { background: var(--ink); color: #fff; }
.sw > input:nth-of-type(1):focus-visible ~ .seg label:nth-child(1),
.sw > input:nth-of-type(2):focus-visible ~ .seg label:nth-child(2),
.sw > input:nth-of-type(3):focus-visible ~ .seg label:nth-child(3) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sw > input:nth-of-type(1):checked ~ .views > .v:nth-child(1),
.sw > input:nth-of-type(2):checked ~ .views > .v:nth-child(2),
.sw > input:nth-of-type(3):checked ~ .views > .v:nth-child(3) { opacity: 1; visibility: visible; }
.sw > .views > .v:only-child { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------ two home styles */
.homes { margin-top: 40px; width: 100%; padding: 28px; text-align: left; }
.homeview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.homeview p { color: var(--mute); margin-top: 20px; font-size: 17px; }
.homeview ul { list-style: none; border-top: 1px solid #dfdee5; margin-top: 22px; }
.homeview li { padding: 12px 0; border-bottom: 1px solid #dfdee5; font-size: 15px; }

/* ------------------------------------------------------------ feature cards */
.feat { width: 100%; margin-top: 40px; text-align: left; }
.feat .seg { background: var(--soft); }
.grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: stretch; }
.grid li { background: var(--soft); border-radius: 22px; padding: 28px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.grid h4, .grid p { padding: 0 8px; }
.grid p { color: var(--mute); font-size: 17px; }
.shot { margin-top: auto; padding-top: 14px; }
.shot .device { padding: 6px; border-radius: 16px; box-shadow: 0 16px 30px -20px rgba(15, 26, 38, .5); }
.shot .device img { border-radius: 11px; }

/* ------------------------------------------------------------ screens showcase (pinned on wide screens, see site.js) */
section.intro { padding-bottom: 0; }
.show { padding: 0; margin-top: 40px; }
.showrail { display: none; }
.chapter { max-width: 1200px; margin: 48px auto 0; padding: 0 24px; display: grid; gap: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 10px; background: #eaf1ff; border: 1px solid #cdddfb; color: #1d3f80; font-size: 15px; font-weight: 550; margin-bottom: 18px; }
.copy p { color: var(--mute); margin-top: 20px; max-width: 520px; }
.visual { border-radius: var(--r); padding: 28px; display: flex; align-items: center; background: linear-gradient(145deg, #dbe7ff, #c4d8f6 55%, #e6efff); min-width: 0; }
.t1 { background: linear-gradient(145deg, #d5eef2, #bcdde8 55%, #e8f6f6); }
.t2 { background: linear-gradient(145deg, #e8e4fa, #d3ccf2 55%, #f2f0fd); }
.t3 { background: linear-gradient(145deg, #fde6da, #f8d2c1 55%, #fff0e8); }
.t4 { background: linear-gradient(145deg, #fdefcd, #cfdcf5 70%, #bdc9ea); }
.t5 { background: linear-gradient(145deg, #dff1e4, #c6e4d1 55%, #eef8f1); }
.visual figure { text-align: center; }
.visual figcaption { margin: 16px auto 0; max-width: 560px; font-size: 14px; color: #3d4254; }
.show.pinned { height: 600vh; }
.pinned .stick { position: sticky; top: 96px; height: calc(100vh - 120px); width: min(1320px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: 128px 1fr; grid-template-rows: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fafafb; }
.pinned .showrail { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); min-height: 0; overflow: hidden; }
.showrail button { flex: 0 1 96px; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 500 14px/1.3 var(--text); color: var(--mute); cursor: pointer; padding: 6px; }
.showrail button[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: inset 3px 0 0 var(--link); }
.showrail button[aria-current="true"] svg { color: var(--link); }
.pinned .chapters { display: grid; grid-template-rows: 100%; grid-template-columns: 100%; min-width: 0; min-height: 0; }
.pinned .chapter { grid-area: 1 / 1; max-width: none; margin: 0; padding: 0; grid-template-columns: minmax(300px, 2fr) 3fr; grid-template-rows: 100%; gap: 0; min-height: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.pinned .chapter.on { opacity: 1; visibility: visible; }
.pinned .chapter:not(.on) .v { visibility: hidden; }
.pinned .copy { align-self: center; padding: 0 clamp(24px, 4vw, 64px); }
.pinned .visual { border-radius: 0; padding: 24px clamp(20px, 3vw, 48px); overflow: hidden; }
.pinned .visual .device { width: min(100%, calc((100vh - 350px) * 16 / 9)); margin: 0 auto; }

/* ------------------------------------------------------------ comparison */
.tablewrap { margin-top: 40px; overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; }
th, td { border-bottom: 1px solid var(--line); padding: 16px 12px; text-align: center; vertical-align: middle; }
tbody th { text-align: left; font-weight: 500; padding-left: 0; position: sticky; left: 0; background: #fff; width: 30%; }
thead th { font-weight: 600; font-size: 15px; width: 17.5%; }
thead th:first-child { position: sticky; left: 0; background: #fff; width: 30%; }
.us, tbody td:nth-of-type(1) { background: #f4f7ff; }
td { font-size: 14px; }
td small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.35; margin-top: 3px; }
.ok { color: #0a8f5b; font-size: 22px; font-weight: 600; }
.none { color: #8d8b96; font-size: 20px; }
.warn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffb020; color: #3a2600; font-weight: 700; font-size: 13px; }
.note { color: var(--mute); font-size: 13.5px; margin-top: 18px; max-width: 900px; }

/* ------------------------------------------------------------ get started */
.get { padding: 72px 32px; }
.get .row { margin-top: 32px; }
.play-badge { display: block; border-radius: 12px; }
.play-badge img { height: 78px; width: auto; }
.get .avail a { color: var(--link); }

/* ------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 500 1.15rem/1.35 var(--text); letter-spacing: 0; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--mute); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--mute); padding: 0 40px 24px 0; }
.faq details a, .note a { color: var(--link); text-underline-offset: 3px; }

/* ------------------------------------------------------------ post cards (landing and blog) */
.bloghead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card img { border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent); width: 100%; }
.post-card h3 { font-size: 1.25rem; line-height: 1.25; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { color: var(--mute); font-size: 17px; }
.post-card .post-text { display: flex; flex-direction: column; gap: 8px; }
.post-card .meta { font-size: 15px; }
.posts-all { grid-template-columns: repeat(2, 1fr); }
.posts-all .is-big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding: 20px; }
.posts-all .is-big .post-text { display: flex; flex-direction: column; gap: 12px; }
.posts-all .is-big h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; }

/* ------------------------------------------------------------ blog, post and legal pages */
.page { padding: 64px 0 24px; }
.page-head { max-width: 820px; margin: 0 auto; }
.page-head .lead { margin-left: auto; margin-right: auto; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.rss { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 15px; color: var(--mute); text-decoration: none; }
.rss:hover { color: var(--ink); }
.post-head { max-width: 820px; margin: 0 auto 40px; }
.crumbs { margin-bottom: 22px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--soft); font-size: 15px; font-weight: 550; text-decoration: none; }
.crumbs a:hover { background: #eaeaee; }
.post-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.post-head .meta { margin-top: 22px; color: var(--mute); font-size: 15px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.tags li { font-size: 14px; font-weight: 550; padding: 4px 12px; border-radius: 10px; background: #eaf1ff; border: 1px solid #cdddfb; color: #1d3f80; }
.cover { max-width: 1000px; margin: 0 auto 56px; padding: 28px; border-radius: var(--r); background: linear-gradient(145deg, #dbe7ff, #c4d8f6 55%, #e6efff); }
.cover .device { box-shadow: 0 30px 60px -30px rgba(15, 26, 38, .55); }
.post-body { max-width: 720px; margin: 0 auto; }
.toc { background: var(--soft); border-radius: 22px; padding: 22px 26px; margin-bottom: 40px; }
.toc p { font: 550 1rem/1.3 var(--display); }
.toc ul { list-style: none; display: grid; gap: 6px; margin-top: 12px; font-size: 17px; }
.toc a { color: var(--mute); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.9em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.4em; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--mute); }
.prose blockquote { padding: 18px 24px; border-radius: 18px; background: var(--soft); color: var(--mute); }
.prose code { font: .88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--soft); border-radius: 6px; padding: 2px 6px; }
.prose pre { background: #0b0d11; color: #e6e6ea; border-radius: 18px; padding: 20px 22px; overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 17px; background: #0b0d11; padding: 8px; }
.prose figcaption { margin-top: 12px; font-size: 15px; color: var(--mute); text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 12px; }
.legal .prose h3 { font-size: 1.25rem; }
.more { padding: 96px 0 24px; }
.more .posts { grid-template-columns: repeat(2, 1fr); }
.page-cta { margin-top: 72px; padding: 56px 32px; }
.page-cta .row { margin-top: 28px; }

/* ------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0; font-size: 15px; }
.cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.cols > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cols p { color: var(--mute); }

/* ------------------------------------------------------------ floating call to action */
.float-cta { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 14px; max-width: 440px; padding: 12px 12px 12px 16px; border-radius: 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(20, 18, 30, .35); transition: transform .2s, opacity .2s; }
.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; width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: var(--accent); }
.float-cta p { font-size: 14px; line-height: 1.35; color: var(--mute); }
.float-cta p strong { display: block; color: var(--ink); font: 550 15px/1.3 var(--display); }
.float-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--mute); font-size: 22px; line-height: 1; cursor: pointer; }
.float-close:hover { background: var(--soft); color: var(--ink); }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  nav.main, .actions > .signin { display: none; }
  .menu { display: block; }
  .homeview { grid-template-columns: 1fr; gap: 24px; align-content: start; }
  .grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .posts, .more .posts { grid-template-columns: 1fr; }
  .posts-all .is-big { grid-template-columns: 1fr; gap: 16px; padding: 0; background: none; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > div:first-child { grid-column: 1 / -1; }
  tbody th, thead th:first-child { min-width: 150px; width: 150px; padding-right: 8px; }
  table { min-width: 700px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 14px; gap: 8px; }
  .actions { gap: 8px; }
  .actions .btn { display: none; }
  .hero { padding-top: 40px; }
  .stage { margin-top: 20px; }
  .carousel { --W: calc(100vw - 32px); }
  .stage { padding-bottom: 28px; }
  .cslide[data-pos="1"], .cslide[data-pos="-1"] { opacity: 0; }
  .carr { width: 40px; height: 40px; top: calc(24px + ((var(--W) - 20px) * 9 / 16 + 20px) / 2 - 20px); }
  .carr.prev { left: 4px; }
  .carr.next { right: 4px; }
  .video .play { width: 60px; height: 60px; }
  .video .ph { gap: 12px; }
  .video .ph p { font-size: 14px; }
  section, #about { padding: 52px 0; }
  section.intro { padding-bottom: 0; }
  .show { padding: 0; }
  .get, .page-cta { padding: 48px 16px; }
  .chapter { padding: 0 16px; }
  .visual, .cover { padding: 16px 12px; }
  .homes { padding: 16px 14px 24px; }
  .seg label { padding: 8px 18px; }
  .feat .seg { flex-wrap: nowrap; gap: 2px; }
  .feat .seg label { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .video { border-radius: 18px; }
  table { min-width: 560px; table-layout: fixed; }
  tbody th, thead th:first-child { width: 112px; min-width: 0; font-size: 13px; padding-right: 6px; }
  thead th { font-size: 12.5px; width: 112px; }
  th, td { padding: 12px 5px; }
  td { font-size: 12.5px; }
  td small { font-size: 11.5px; }
  .page { padding-top: 40px; }
  .float-cta { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
