/* Jefield website. Every color, size, space, radius, shadow and duration comes from web/tokens.json (the Jefield
   Design System); scripts/web.mjs writes them as custom properties above this sheet. Paper is the website's ground,
   Night takes over in dark mode, the way the brand book's website page shows it. */

@font-face { font-family: Outfit; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/web/fonts/outfit-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/web/fonts/outfit-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/web/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/web/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font-text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--space-6); }
.narrow { max-width: 760px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--space-4); top: -60px; z-index: 100; background: var(--text); color: var(--ground); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); text-decoration: none; font-weight: 600; transition: top var(--duration-mid) ease; }
.skip:focus { top: var(--space-4); }

/* type */
.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance; }
.headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.6vw, 36px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.title { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-quiet); text-wrap: pretty; }
.quiet { color: var(--text-quiet); }
.small { font-size: 13px; line-height: 1.45; }
.label { font-family: var(--font-mono); font-size: 12px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--text-quiet); }
.label.accent { color: var(--accent-text); }
.flowtext { background: linear-gradient(135deg, var(--blue) 0%, var(--iris) 45%, var(--lilac) 78%, var(--bloom) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sweep.on { animation: sweep 1.2s ease-out 1; background-image: linear-gradient(100deg, var(--text) 0%, var(--text) 40%, var(--blue) 50%, var(--iris) 56%, var(--lilac) 62%, var(--text) 72%, var(--text) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.muted-link { color: var(--accent-text); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-1); }
.muted-link:hover .arrow { transform: translateX(3px); }
.arrow { transition: transform var(--duration-fast) ease; display: inline-block; }

/* buttons */
.btn { font-family: var(--font-text); font-size: 15px; font-weight: 600; line-height: 1; height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform var(--duration-fast) ease, filter var(--duration-fast) ease, background var(--duration-fast) ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.primary { border: 0; color: var(--on-flow); background: linear-gradient(135deg, var(--blue) 0%, var(--iris) 45%, var(--lilac) 78%, var(--bloom) 100%); }
.btn.solid { border: 0; background: var(--text); color: var(--ground); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.ghost:hover { background: color-mix(in srgb, var(--line) 60%, transparent); filter: none; }
.btn.sm { height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.btn.round { width: 44px; padding: 0; }
.btn.round.sm { width: 36px; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.ico { width: 20px; height: 20px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 75%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 -1px 0 transparent; transition: box-shadow var(--duration-slow) ease, background var(--duration-slow) ease; }
.top.scrolled { box-shadow: inset 0 -1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: var(--space-6); height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); border-radius: var(--radius-sm); flex: none; transition: opacity var(--duration-fast) ease; }
.logo:hover { opacity: .75; }
.logo svg { display: block; }
.word { fill: currentColor; }
.nav { display: flex; align-items: center; gap: var(--space-1); flex: 1; }
.nav > a, .nav > div > button { font-size: 15px; font-weight: 500; color: var(--text-quiet); background: none; border: 0; cursor: pointer; padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color var(--duration-fast) ease, background var(--duration-fast) ease; }
.nav > a:hover, .nav > div > button:hover, .nav > div > button[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--line) 55%, transparent); }
.nav > a[aria-current="page"] { color: var(--text); }
.nav .chev { width: 14px; height: 14px; transition: transform var(--duration-mid) ease; }
.nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.right { display: flex; align-items: center; gap: var(--space-2); }
.burger { display: none; }
.mega-host { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: var(--space-5); display: grid; gap: var(--space-6); grid-template-columns: repeat(var(--cols, 2), minmax(240px, 1fr)); opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity var(--duration-mid) ease, transform var(--duration-mid) ease, visibility 0s linear var(--duration-mid); min-width: 560px; }
/* hidden, not only see-through: a closed menu's links were stops in the Tab order (scripts/layout-guard-test.mjs L11) */
.mega.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* a bridge over the gap, so moving the mouse from the button to the menu doesn't close it */
.mega h3 { margin: 0 0 var(--space-2) var(--space-3); }
.mega a { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); text-decoration: none; }
.mega a:hover { background: var(--line); }
.mega a b { font-weight: 600; font-size: 15px; }
.mega a span { font-size: 13px; color: var(--text-quiet); }
.mega .note { background: var(--ground); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.mega .note .art { height: 112px; border-radius: var(--radius-md); }
.mega .note a { padding: 0; flex-direction: row; color: var(--accent-text); font-weight: 600; }
.mega .note a:hover { background: none; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--ground); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--duration-slow) ease; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 68px; padding-inline: var(--space-6); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: hidden; overflow: clip; position: relative; } /* clip, not just hidden: focusing a link in a panel must not scroll the panels sideways */
.panel { position: absolute; inset: 0; padding: var(--space-4) var(--space-6) var(--space-8); display: flex; flex-direction: column; gap: var(--space-1); transition: transform var(--duration-slow) ease; background: var(--ground); overflow-y: auto; }
.panel[hidden] { display: flex !important; transform: translateX(100%); visibility: hidden; }
.panel.main[hidden] { transform: translateX(-30%); }
.panel > a, .panel > button { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; font-size: 20px; font-family: var(--font-display); font-weight: 500; padding: var(--space-3) 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-decoration: none; cursor: pointer; color: var(--text); }
.panel .sub { font-family: var(--font-text); font-size: 15px; font-weight: 500; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.panel .sub span { font-size: 13px; color: var(--text-quiet); font-weight: 400; }
.panel .back { font-family: var(--font-text); font-size: 15px; color: var(--text-quiet); justify-content: flex-start; gap: var(--space-2); border: 0; }
.drawer-foot { padding: var(--space-4) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); border-top: 1px solid var(--line); }

/* sections */
main { display: block; }
.sec { padding-block: 96px; }
.sec.tight { padding-block: 64px; }
.sec.first { padding-top: 72px; }
.head { display: flex; flex-direction: column; gap: var(--space-4); max-width: 720px; margin-bottom: var(--space-12); }
.head.center { margin-inline: auto; text-align: center; align-items: center; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero.aura::before { content: ""; position: absolute; inset: -20% -10% 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 30% 18%, color-mix(in srgb, var(--bloom) 90%, transparent) 0%, transparent 70%), radial-gradient(ellipse 55% 60% at 75% 30%, color-mix(in srgb, var(--iris) 55%, transparent) 0%, transparent 70%), radial-gradient(ellipse 70% 60% at 50% 95%, color-mix(in srgb, var(--blue) 30%, transparent) 0%, transparent 70%); filter: blur(10px); opacity: var(--aura-strength); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); padding-block: 112px 104px; }
.hero.left .wrap { align-items: flex-start; text-align: left; }
.hero .lead { max-width: 600px; }
.hero .pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 14px 6px 8px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--raised) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; text-decoration: none; }
.hero .pill i { width: 8px; height: 8px; border-radius: 4px; background: var(--done); }

/* prompt box */
.prompt { width: 100%; max-width: 720px; text-align: left; background: var(--input); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-float); transition: box-shadow var(--duration-mid) ease; }
.prompt:focus-within { box-shadow: var(--shadow-float), var(--focus-ring); }
.prompt textarea { border: 0; outline: 0; background: none; resize: none; font-size: 17px; line-height: 1.5; min-height: 54px; width: 100%; padding: 0; }
.prompt textarea::placeholder { color: var(--text-quiet); }
.prompt .bar { display: flex; align-items: center; gap: var(--space-2); }
.prompt .bar .grow { flex: 1; }
.send { width: 40px; height: 40px; border-radius: var(--radius-full); border: 0; cursor: pointer; color: var(--on-flow); display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue) 0%, var(--iris) 45%, var(--lilac) 78%, var(--bloom) 100%); transition: transform var(--duration-fast) ease; }
.send:active { transform: scale(.94); }
.prompt-note { font-size: 13px; color: var(--text-quiet); max-width: 720px; }
.addmenu { position: relative; }
.addmenu .menu { position: absolute; bottom: calc(100% + 8px); left: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: var(--space-2); min-width: 220px; display: none; z-index: 5; }
.addmenu .menu.open { display: block; }
.addmenu .menu a { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); text-decoration: none; font-size: 14px; }
.addmenu .menu a:hover { background: var(--line); }

/* cards and grids */
.grid { display: grid; gap: var(--space-4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--raised); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); border: 1px solid var(--line); min-width: 0; }
.card.link { text-decoration: none; transition: transform var(--duration-mid) ease, box-shadow var(--duration-mid) ease; }
.card.link:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.card .ico-box { width: 40px; height: 40px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--ground); color: var(--accent-text); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.card p { color: var(--text-quiet); }
.card .more { margin-top: auto; padding-top: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font-size: 13px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--ground); border: 1px solid var(--line); color: var(--text-quiet); white-space: nowrap; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); color: var(--text-quiet); }
.tag.planned { border-style: dashed; }
.tag.live { color: var(--done-text); border-color: color-mix(in srgb, var(--done) 60%, transparent); }

/* feature rows */
.rows { display: flex; flex-direction: column; gap: 96px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .text { order: 2; }
.row .text { display: flex; flex-direction: column; gap: var(--space-4); }
.row .text ul { display: flex; flex-direction: column; gap: var(--space-2); }
.row .text li { display: flex; gap: var(--space-2); color: var(--text-quiet); }
.row .text li svg { color: var(--done); margin-top: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: var(--space-4); }
.step .mock { height: 260px; }
.step h3 { display: flex; gap: var(--space-3); align-items: baseline; }
.step h3::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); letter-spacing: .1em; }

/* mock surfaces (illustrations drawn from the system, not screenshots) */
.mock { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.mock.night { background: var(--night); border-color: #2A2A35; color: #FFFFFF; }
.mock .bar3 { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock .bar3 i { width: 10px; height: 10px; border-radius: 5px; background: var(--line-strong); }
.mock.night .bar3 { border-color: #2A2A35; }
.mock.night .bar3 i { background: #3A3A48; }
.tile { position: absolute; border-radius: var(--radius-md); }
.cards-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.cards-mock div { aspect-ratio: 4/5; border-radius: var(--radius-sm); }
.typing { font-size: 15px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.typing .line { background: var(--input); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 14px 16px; min-height: 52px; box-shadow: var(--shadow-float); }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 2px; vertical-align: -3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.versions { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.versions .v { display: flex; align-items: center; gap: 12px; background: var(--input); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; font-size: 13px; }
.versions .v .sw { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.versions .v b { font-weight: 600; }
.cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; transition: transform 2.4s cubic-bezier(.5, 0, .3, 1); }
.cursor svg { width: 16px; height: 24px; }
.cursor .who { margin-top: 16px; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; color: var(--ink); white-space: nowrap; }

/* works with band (a marquee of real integrations) */
.band { border-block: 1px solid var(--line); padding-block: var(--space-8); }
.band .wrap { display: flex; flex-direction: column; gap: var(--space-5); }
.band .label { text-align: center; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; gap: var(--space-10); width: max-content; animation: slide 40s linear infinite; }
.marquee.paused ul { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--text-quiet); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
.pause { align-self: center; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.facts div { border-top: 1px solid var(--line-strong); padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.facts dt { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; }
.facts dd { color: var(--text-quiet); }

/* agent stories */
.stories { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); }
.story { background: var(--night); color: #FFFFFF; border-radius: var(--radius-xl); padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-8); min-height: 420px; position: relative; overflow: hidden; }
.story blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.015em; }
.story figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--space-3); }
.story .label { color: var(--lilac); }
.story .who b { display: block; }
.story-list { display: flex; flex-direction: column; gap: var(--space-2); }
.story-list button { all: unset; cursor: pointer; display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--raised); transition: background var(--duration-fast) ease; }
.story-list button[aria-selected="true"] { border-color: var(--accent); }
.story-list button:focus-visible { box-shadow: var(--focus-ring); }
.story-list .t { display: flex; flex-direction: column; gap: 2px; }
.story-list .t span { font-size: 13px; color: var(--text-quiet); }
.dot { width: 12px; height: 12px; border-radius: 6px; flex: none; background: linear-gradient(135deg, var(--blue), var(--iris) 45%, var(--lilac) 78%, var(--bloom)); }
.story-nav { display: flex; gap: var(--space-2); }

/* quotes */
.quote { margin: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; flex-wrap: wrap; }

/* tabs */
.tabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.tablist { display: flex; flex-direction: column; gap: var(--space-2); }
.tablist.h { flex-direction: row; flex-wrap: wrap; }
.tab { all: unset; cursor: pointer; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); border: 1px solid transparent; display: flex; flex-direction: column; gap: var(--space-1); transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.tab b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.tab span { color: var(--text-quiet); display: none; }
.tab[aria-selected="true"] { background: var(--raised); border-color: var(--line); }
.tab[aria-selected="true"] span { display: block; }
.tab:focus-visible { box-shadow: var(--focus-ring); }
.tablist.h .tab { padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border-color: var(--line-strong); font-size: 14px; font-weight: 600; }
.tablist.h .tab[aria-selected="true"] { background: var(--text); color: var(--ground); border-color: var(--text); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade var(--duration-slow) ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-8); margin-top: var(--space-6); }
.idea .says { font-family: var(--font-display); font-size: 22px; line-height: 1.25; }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.25; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform var(--duration-mid) ease; color: var(--text-quiet); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 var(--space-6); color: var(--text-quiet); max-width: 68ch; display: flex; flex-direction: column; gap: var(--space-3); }
.faq .a a { color: var(--accent-text); }

/* pre-footer */
.cta { padding-block: 112px; position: relative; isolation: isolate; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(ellipse 50% 60% at 50% 60%, color-mix(in srgb, var(--lilac) 55%, transparent) 0%, transparent 70%); opacity: var(--aura-strength); filter: blur(20px); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); text-align: center; }

/* footer */
.foot { padding-bottom: var(--space-8); }
.foot nav { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-10); display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: var(--space-8); }
.foot .brandcol { display: flex; flex-direction: column; gap: var(--space-4); }
.foot .brandcol .logo:hover svg.j { animation: breathe 1s ease-in-out; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } 70% { transform: scale(.98); } }
.foot h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--text-quiet); margin-bottom: var(--space-3); }
.foot ul { display: flex; flex-direction: column; gap: var(--space-2); }
.foot a { text-decoration: none; font-size: 14px; color: var(--text); opacity: .86; }
.foot a:hover { color: var(--accent-text); opacity: 1; }
.foot .fine { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-6) var(--space-2) 0; font-size: 13px; color: var(--text-quiet); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }
.plan.hi { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font-display); font-weight: 500; font-size: 44px; letter-spacing: -0.02em; line-height: 1; }
.plan .price small { font-family: var(--font-text); font-size: 15px; color: var(--text-quiet); letter-spacing: 0; font-weight: 400; }
.plan ul { display: flex; flex-direction: column; gap: var(--space-2); }
.plan li { display: flex; gap: var(--space-2); }
.plan li svg { color: var(--done); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* prose (legal, posts, docs) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: var(--space-4); font-size: 16px; line-height: 1.65; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; margin-top: var(--space-8); }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-top: var(--space-4); }
.prose ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-2); }
.prose ol { list-style: decimal; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--space-2); }
.prose a { color: var(--accent-text); }
.prose code { font-family: var(--font-mono); font-size: 13px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--night); color: #FFFFFF; border-radius: var(--radius-lg); padding: var(--space-5); overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose .callout { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.with-aside { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--space-2); }
.aside a { text-decoration: none; color: var(--text-quiet); font-size: 14px; padding: 4px 0; }
.aside a:hover, .aside a[aria-current="page"] { color: var(--text); }
.crumbs { display: flex; gap: var(--space-2); font-size: 13px; color: var(--text-quiet); flex-wrap: wrap; }
.crumbs a { color: var(--text-quiet); }

/* auth split */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .formside { display: flex; flex-direction: column; padding: var(--space-6) var(--space-8); }
.auth .form { margin: auto; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: var(--space-4); padding-block: var(--space-12); animation: enter var(--duration-slow) ease; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth .form .btn { width: 100%; height: 48px; }
.or { display: flex; align-items: center; gap: var(--space-3); color: var(--text-quiet); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .art { margin: var(--space-3); border-radius: var(--radius-xl); background: radial-gradient(ellipse at 30% 25%, var(--bloom) 0%, #C9B8F6 35%, #9C93F0 70%, #7A7FEA 100%); display: flex; align-items: center; justify-content: center; padding: var(--space-10); position: relative; overflow: hidden; }
.auth .art .prompt { max-width: 480px; box-shadow: 0 30px 80px rgba(40, 30, 120, .35); background: #FFFFFF; border-color: #FFFFFF; color: #16161E; }
.auth .art .prompt .ph { color: #16161E; font-size: 17px; min-height: 54px; }
.auth .note { font-size: 13px; color: var(--text-quiet); }
.auth .note a { color: var(--accent-text); }

/* onboarding */
.ob { min-height: 100vh; display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 24px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background var(--duration-mid) ease; }
.ob-dots i.on { background: var(--accent); }
.ob-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.ob-step { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: var(--space-6); animation: enter var(--duration-slow) ease; }
.ob-step[hidden] { display: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); }
.choice { all: unset; cursor: pointer; border: 1px solid var(--line-strong); background: var(--raised); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); transition: border-color var(--duration-fast) ease, transform var(--duration-fast) ease; }
.choice:hover { transform: translateY(-1px); }
.choice[aria-checked="true"] { border: 2px solid var(--accent); padding: calc(var(--space-4) - 1px); }
.choice:focus-visible { box-shadow: var(--focus-ring); }
.choice b { font-weight: 600; }
.choice span { font-size: 13px; color: var(--text-quiet); }
.choice .look { height: 84px; border-radius: var(--radius-md); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 10px; gap: 6px; }
.ob-actions { display: flex; justify-content: space-between; gap: var(--space-3); }

/* forms */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { background: var(--input); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px 14px; font-size: 15px; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: var(--focus-ring); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-grid .full { grid-column: 1 / -1; }

/* lists of links (sitemap, changelog) */
.log { display: flex; flex-direction: column; }
.log .day { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-6); border-top: 1px solid var(--line); }
.log .day h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--text-quiet); position: sticky; top: 88px; align-self: start; }
.log .day ul { display: flex; flex-direction: column; gap: var(--space-2); list-style: disc; padding-left: 1.1em; }

/* reveal */
/* reveal is a small lift only: content is never invisible, so a page caught before scrolling (a screenshot, a crawler,
   a slow observer) still shows everything */
.rv { transform: translateY(12px); transition: transform .6s ease; }
.rv.in { transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .foot nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .brandcol { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (max-width: 960px) {
  .nav, .right .hide-sm { display: none; }
  .burger { display: inline-flex; }
  .right { margin-left: auto; }
  .g3, .g4, .plans, .facts, .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row, .row.flip, .tabs, .stories, .idea { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .row.flip .text { order: 0; }
  .with-aside { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--space-3); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .art { display: none; }
}
@media (max-width: 640px) {
  .sec { padding-block: 64px; }
  .hero .wrap { padding-block: 72px 64px; }
  .g2, .g3, .g4, .plans, .facts, .steps { grid-template-columns: minmax(0, 1fr); }
  .foot nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-6); }
  .story { padding: var(--space-6); min-height: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .log .day { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .head { margin-bottom: var(--space-8); }
  .rows { gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee ul { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee li[aria-hidden="true"] { display: none; }
  .pause { display: none; }
  .rv { opacity: 1; transform: none; }
}

/* which J for which ground: Flow in dark mode, Balance in light (the book's rule) */
.on-dark { display: inline-flex; }
.on-light { display: none; color: var(--text); }
:root[data-look="paper"] .on-dark { display: none; }
:root[data-look="paper"] .on-light { display: inline-flex; }
@media (prefers-color-scheme: light) { :root[data-look="system"] .on-dark { display: none; } :root[data-look="system"] .on-light { display: inline-flex; } }
.vis { min-width: 0; }
.tplart { height: 150px; border-radius: var(--radius-md); background: var(--ground); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tplart img { max-height: 100%; max-width: 100%; }
form.nudge { animation: nudge .3s ease; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { box-shadow: none; outline: none; }
.ob-actions [data-next] { margin-left: auto; }
.plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: var(--raised); border: 1px solid var(--line); margin-top: var(--space-2); }
.billing button { border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: var(--radius-full); font-weight: 600; font-size: 14px; color: var(--text-quiet); display: inline-flex; gap: 6px; align-items: center; }
.billing button[aria-checked="true"] { background: var(--text); color: var(--ground); }
.billing .save { font-size: 12px; font-weight: 600; color: var(--done-text); }
.billing button[aria-checked="true"] .save { color: var(--mint); }
.tablewrap { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.compare tbody th { font-weight: 500; }
.compare td svg { color: var(--done); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 1080px) { .plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans.four { grid-template-columns: minmax(0, 1fr); } }
/* language selector (Lovable's footer pattern); English only until every language ships together */
.lang { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-top: auto; }
.foot .langmenu { position: absolute; bottom: calc(100% - 24px); left: 0; transform: translateY(-36px); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: var(--space-2); min-width: 220px; display: none; z-index: 10; }
.foot .langmenu.open { display: block; }
.langmenu button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: var(--space-3); padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; }
.langmenu button:hover { background: var(--line); }
.langmenu button:focus-visible { box-shadow: var(--focus-ring); }
.langmenu button[aria-disabled="true"] { color: var(--text-quiet); cursor: default; }
.langmenu .code { font-family: var(--font-mono); font-size: 11px; min-width: 40px; letter-spacing: .06em; }
.langmenu .nm { flex: 1; }
.langmenu .tick { color: var(--accent-text); }
.langmenu .soon { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* ---- ONBOARDING AURORA (Aaron, 2026-10-24): the Flow drifting behind step 1 on Night; picking Paper turns the ground and
   the gradient (Bloom, Lilac, a breath of Mint) live. Two layers cross-fade; the pointer leans them a little. */
body:has(.ob) { transition: background-color .7s ease, color .7s ease; }
.ob { position: relative; isolation: isolate; --mx: 0; --my: 0; }
.ob-aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; transition: opacity .8s ease; opacity: .55; }
.ob[data-at="0"] .ob-aurora { opacity: 1; }
.au { position: absolute; inset: -25%; transition: opacity .9s ease; filter: blur(70px); transform: translate(calc(var(--mx) * -40px), calc(var(--my) * -40px)); }
.au i { position: absolute; display: block; width: 52vmax; height: 52vmax; border-radius: 50%; animation: au-drift 22s ease-in-out infinite alternate; }
.au i:nth-child(2) { animation-duration: 27s; animation-delay: -6s; }
.au i:nth-child(3) { animation-duration: 31s; animation-delay: -12s; }
.au i:nth-child(4) { animation-duration: 25s; animation-delay: -18s; }
.au-night i:nth-child(1) { left: 8%; top: 6%; background: radial-gradient(circle, rgba(76, 102, 255, .75), transparent 62%); }
.au-night i:nth-child(2) { left: 48%; top: 18%; background: radial-gradient(circle, rgba(140, 134, 255, .7), transparent 62%); }
.au-night i:nth-child(3) { left: 22%; top: 52%; background: radial-gradient(circle, rgba(195, 174, 255, .55), transparent 60%); }
.au-night i:nth-child(4) { left: 62%; top: 58%; background: radial-gradient(circle, rgba(230, 207, 255, .35), transparent 58%); }
.au-paper { opacity: 0; }
.au-paper i:nth-child(1) { left: 6%; top: 4%; background: radial-gradient(circle, rgba(230, 207, 255, .9), transparent 62%); }
.au-paper i:nth-child(2) { left: 50%; top: 12%; background: radial-gradient(circle, rgba(195, 174, 255, .6), transparent 62%); }
.au-paper i:nth-child(3) { left: 24%; top: 56%; background: radial-gradient(circle, rgba(63, 217, 160, .28), transparent 60%); }
.au-paper i:nth-child(4) { left: 64%; top: 54%; background: radial-gradient(circle, rgba(76, 102, 255, .22), transparent 58%); }
.au-grain { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); mix-blend-mode: overlay; }
:root[data-look="paper"] .au-night { opacity: 0; }
:root[data-look="paper"] .au-paper { opacity: 1; }
@media (prefers-color-scheme: light) { :root[data-look="system"] .au-night { opacity: 0; } :root[data-look="system"] .au-paper { opacity: 1; } }
@keyframes au-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vmax, -6vmax) scale(1.12); } 100% { transform: translate(-6vmax, 7vmax) scale(.94); } }
.ob .choice { transition: background-color .5s ease, border-color .5s ease, color .5s ease, transform .2s ease; }
.ob .choice:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .au i { animation: none; } .au { transform: none; } .ob .choice:hover { transform: none; } }

/* ---------------------------------------------------------------- scenes (2026-10-24): the real app, photographed */
.scene { margin: 0; }
.scene-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--iris) 34%, var(--line)); background: #0E0E13; box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 18%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--blue) 55%, transparent), 0 12px 40px -18px rgba(0, 0, 0, .55); }
.scene-frame img { display: block; width: 100%; height: auto; }
.scene.phone { max-width: 300px; margin-inline: auto; }
.scene.phone .scene-frame { border-radius: 38px; border-width: 6px; border-color: #1A1A22; }
.hero-scene { width: 100%; max-width: 1080px; margin-top: var(--space-8); }
.hero-scene.phone-scene { max-width: 320px; }
.guide-scene { margin: var(--space-6) 0 var(--space-8); }

/* the hero's stage: wide, glowing, tilting flat as it comes in; a poster and a phone float at its edges */
.stage { position: relative; width: min(1180px, 100%); margin: var(--space-10) auto 0; perspective: 1600px; --p: 1; }
.stage-glow { position: absolute; inset: 8% 4% -6%; z-index: -1; border-radius: 40px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--blue) 60%, transparent), transparent 70%), radial-gradient(50% 50% at 80% 70%, color-mix(in srgb, var(--lilac) 45%, transparent), transparent 70%); filter: blur(48px); opacity: .9; }
.stage-main { transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.94 + var(--p) * .06)); transform-origin: 50% 0; transition: transform .1s linear; }
.stage-main .scene-frame { border-radius: 22px; }
.float { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .1s linear; }
.float img { display: block; width: 100%; height: auto; }
.f-poster { width: 17%; left: -5%; bottom: 8%; transform: translateY(calc((1 - var(--p)) * 60px)) rotate(-4deg); }
.f-phone { width: 15%; right: -4%; bottom: -6%; border-radius: 26px; border: 4px solid #1A1A22; transform: translateY(calc((1 - var(--p)) * 90px)) rotate(3deg); }
@media (max-width: 720px) { .f-poster { width: 28%; left: -2%; bottom: -10%; } .f-phone { width: 24%; right: -2%; bottom: -14%; } .stage { margin-bottom: 48px; } }

/* six editors: the list walks itself; the picture follows */
.show { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); align-items: start; margin-top: var(--space-8); }
.show-list { display: flex; flex-direction: column; gap: var(--space-2); }
.show-tab { all: unset; position: relative; cursor: pointer; display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); border: 1px solid transparent; overflow: hidden; transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.show-tab:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
.show-tab:focus-visible { box-shadow: var(--focus-ring); }
.show-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--text-quiet); }
.show-txt { display: grid; gap: 2px; min-width: 0; }
.show-txt b { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.show-txt span { color: var(--text-quiet); font-size: 14px; }
.show-tab[aria-selected="true"] { background: var(--raised); border-color: var(--line); }
.show-tab[aria-selected="true"] .show-ico { background: linear-gradient(135deg, var(--blue), var(--iris) 45%, var(--lilac) 78%, var(--bloom)); color: #16161E; }
.show-bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.show-tab[aria-selected="true"] .show-bar { background: var(--line); }
.show-tab[aria-selected="true"] .show-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--lilac)); transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }
.show-panel[hidden] { display: none; }
.show-panel { animation: showin .5s ease both; }
@keyframes showin { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.show-points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); padding: 0; list-style: none; }
.show-points li { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-quiet); font-size: 14px; }
.show-points li svg { color: var(--iris); }
@media (max-width: 900px) { .show { grid-template-columns: minmax(0, 1fr); } .show-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .show-tab { flex: none; } .show-txt span { display: none; } }

/* the templates, sliding */
.tstrip { display: grid; gap: var(--space-5); margin-top: var(--space-8); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tstrip ul { display: flex; gap: var(--space-5); width: max-content; padding: 0; margin: 0; list-style: none; animation: slide 70s linear infinite; }
.tstrip .tr2 { animation-direction: reverse; animation-duration: 80s; }
.tstrip.paused ul { animation-play-state: paused; }
.tstrip li { flex: none; height: 300px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .6); border: 1px solid var(--line); }
.tstrip img { height: 100%; width: auto; display: block; }
.tpls .pause { display: block; margin: var(--space-4) auto 0; }
@media (max-width: 720px) { .tstrip li { height: 200px; } }
.tplgrid { columns: 3 280px; column-gap: var(--space-5); margin-top: var(--space-8); }
.tplgrid .tplcard { break-inside: avoid; margin-bottom: var(--space-5); }
.tplrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: end; }
@media (max-width: 720px) { .tplrow { grid-template-columns: minmax(0, 1fr); } }
.tplcard { display: grid; gap: var(--space-2); text-decoration: none; color: var(--text); }
.tplcard img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); transition: transform var(--duration-mid) ease, box-shadow var(--duration-mid) ease; }
.tplcard:hover img { transform: translateY(-3px); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--blue) 60%, transparent); }
.tplcard span { font-size: 14px; color: var(--text-quiet); }
.tplpair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-4); align-items: end; }
.tplpair img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .6); }

/* who it's for */
.auds { margin-top: var(--space-8); }
.aud { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--raised); text-decoration: none; color: var(--text); transition: border-color var(--duration-mid) ease, transform var(--duration-mid) ease, box-shadow var(--duration-mid) ease; }
.aud:hover { border-color: color-mix(in srgb, var(--iris) 50%, var(--line)); transform: translateY(-3px); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--blue) 70%, transparent); }
.aud:focus-visible { box-shadow: var(--focus-ring); }
.aud-pic { aspect-ratio: 16 / 10; overflow: hidden; background: #0E0E13; }
.aud-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transform-origin: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); transition: transform .8s ease; }
.aud:hover .aud-pic img { transform: scale(calc(var(--z, 1) * 1.04)); }
.aud-txt { display: grid; gap: 4px; padding: var(--space-5); }
.aud-txt b { font-family: var(--font-display); font-weight: 500; font-size: 21px; }
.aud-txt > span:last-child { color: var(--text-quiet); }
.row .vis .scene, .step .scene { width: 100%; }
@media (prefers-reduced-motion: reduce) { .tstrip ul { animation: none; } .stage-main, .float { transition: none; } .show-panel { animation: none; } }

.learn .vis .scene { width: 100%; }

/* the film */
.film { margin: 0; display: grid; gap: 12px; }
.film-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line, rgba(255,255,255,.08)); background: #0E0E13; aspect-ratio: 16 / 9; max-width: 100%; box-shadow: 0 30px 80px -30px rgba(76, 102, 255, .45); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-btn { position: absolute; inset: auto auto 16px 16px; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); background: rgba(14,14,19,.72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.film-btn:focus-visible { outline: 2px solid #8C86FF; outline-offset: 3px; }
.film figcaption { text-align: center; }
.film-btn .i-pause, .film-btn[data-playing="true"] .i-play { display: none; }
.film-btn[data-playing="true"] .i-pause { display: block; }

/* ---- the work-first home (2026-10-28): the hero on a board, the app as a chosen frame, a line of what ships ---- */
.hero.board::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 0%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 0%, transparent 80%); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); }
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 2px; background: currentColor; opacity: .6; }
.stage.framed .framebox { position: relative; transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.94 + var(--p) * .06)); transform-origin: 50% 0; transition: transform .1s linear; }
.stage.framed .framebox .stage-main { transform: none; }
.stage.framed .framebox::after { content: ""; position: absolute; inset: -7px; border: 1.5px solid var(--blue); border-radius: 26px; pointer-events: none; }
.stage.framed .framelabel { position: absolute; left: -7px; right: -7px; bottom: 100%; display: flex; justify-content: space-between; gap: var(--space-4); margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--accent-text); text-align: left; }
.stage.framed .hdl { position: absolute; width: 10px; height: 10px; background: var(--ground); border: 1.5px solid var(--blue); border-radius: 2px; z-index: 2; }
.stage.framed .hdl.tl { left: -12px; top: -12px; } .stage.framed .hdl.tr { right: -12px; top: -12px; }
.stage.framed .hdl.bl { left: -12px; bottom: -12px; } .stage.framed .hdl.br { right: -12px; bottom: -12px; }
@media (prefers-reduced-motion: reduce) { .stage.framed .framebox { transform: none; transition: none; } }
@media (max-width: 640px) { .stage.framed .framelabel span + span { display: none; } .stage.framed .hdl { display: none; } }

/* ==== r9-notice ==== the storage notice: small, bottom left, out of the way; one answer ("Got it") */
.notice { position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 60; max-width: min(420px, calc(100vw - 2 * var(--space-4))); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--raised); color: var(--text); box-shadow: var(--shadow-float); font-size: 13px; line-height: 1.45; }
.notice[hidden] { display: none; }
.notice p { margin: 0; }
.notice a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.notice .btn { flex: none; }
@media (max-width: 480px) { .notice { right: var(--space-3); left: var(--space-3); bottom: var(--space-3); max-width: none; } }
/* ==== r9-web: the media-first home (2026-10-31) ====
   Higgsfield's layout energy (a strip of big media cards, a bento, a big band, a masonry with a View all pill) in
   Jefield's own calm palette: tokens only, no neon glow, no lime. Example media carry .extag. */
.mhero .wrap { padding-block: 72px 0; }
.mhero + * { margin-top: 0; }
.mega-type { font-size: clamp(44px, 7.4vw, 96px); line-height: .95; letter-spacing: -0.035em; font-weight: 600; }
.mhero > .wrap:last-child { padding-block: 48px 24px; max-width: 1440px; }
.mstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--space-2); text-align: left; }
.mstrip::-webkit-scrollbar { display: none; }
.mcard { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; color: var(--text); scroll-snap-align: start; min-width: 0; border-radius: var(--radius-lg); }
.mcard-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.mcard-media video, .mcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.mcard:hover .mcard-media video, .mcard:hover .mcard-media img { transform: scale(1.03); }
.mcard-cap { display: grid; gap: 2px; }
.mcard-cap b { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.mcard-cap span { color: var(--text-quiet); font-size: 14px; }
.extag { position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-full); background: rgba(14, 14, 19, .72); color: #FFFFFF; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 640px) { .mstrip { grid-auto-columns: 62%; } .mhero .wrap { padding-block: 56px 0; } }

/* the editors as a bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: var(--space-4); }
.bcard { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--raised); border: 1px solid var(--line); text-decoration: none; color: #FFFFFF; transition: border-color var(--duration-mid) ease, transform var(--duration-mid) ease; }
.bcard.big { grid-column: span 2; grid-row: span 2; }
.bcard.wide { grid-column: span 2; }
.bcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.bcard-pic { position: absolute; inset: 0; background: #0E0E13; }
.bcard-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); transition: transform .8s ease; }
.bcard:hover .bcard-pic img { transform: scale(calc(var(--z, 1) * 1.04)); }
.bcard-txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-items: center; padding: 56px var(--space-5) var(--space-4); background: linear-gradient(transparent, rgba(14, 14, 19, .9) 55%); }
.bcard-ico { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.bcard-txt b { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.bcard-txt > span:last-child { font-size: 13px; color: #D6D4E0; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 210px; } .bcard.big, .bcard.wide { grid-column: auto; grid-row: auto; } .bcard.big { grid-row: span 1; } }

/* the big band: example footage on tilted panels either side of the words */
.mband { padding-block: 48px; }
.mband-box { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); background: #121218; border: 1px solid var(--line); min-height: 520px; display: grid; place-items: center; perspective: 1400px; }
.bp { position: absolute; top: 8%; height: 84%; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; z-index: -1; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.bp video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-l1 { left: -4%; transform: rotateY(28deg); } .bp-l2 { left: 15%; transform: rotateY(22deg) scale(.86); opacity: .8; }
.bp-r1 { right: -4%; transform: rotateY(-28deg); } .bp-r2 { right: 15%; transform: rotateY(-22deg) scale(.86); opacity: .8; }
.mband-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 34% 60% at 50% 50%, rgba(18, 18, 24, .96) 40%, rgba(18, 18, 24, .5) 75%, transparent); }
.mband-mid { max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-10) var(--space-6); color: #FFFFFF; }
.mband-mid .headline { font-size: clamp(30px, 3.6vw, 44px); }
.mband-mid .lead { color: #C9C9CF; }
.mband-mid .btn.ghost { color: #FFFFFF; }
.mband-note { color: #B0B0B7; }
@media (max-width: 960px) { .bp-l2, .bp-r2 { display: none; } .bp-l1 { left: -18%; opacity: .55; } .bp-r1 { right: -18%; opacity: .55; } }
@media (max-width: 640px) { .mband-box { min-height: 0; } .bp { display: none; } }

/* the examples: a masonry with a fading foot and a View all pill */
.gal { position: relative; }
.gal-cols { columns: 4 220px; column-gap: var(--space-4); max-height: 1500px; overflow: hidden; }
.gal-item { break-inside: avoid; margin-bottom: var(--space-4); }
.gal-item figure { display: grid; gap: var(--space-2); }
.gal-pic { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--raised); }
.gal-pic img { display: block; width: 100%; height: auto; }
.gal-item figcaption { font-size: 13px; color: var(--text-quiet); }
.gal-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: var(--space-8); background: linear-gradient(transparent, var(--ground) 80%); }
.vpill { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-full); background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-float); }
.vpill:hover .arrow { transform: translateX(3px); }
@media (max-width: 640px) { .gal-cols { columns: 2; max-height: 1100px; column-gap: var(--space-3); } }

/* together + brand, side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.paircard { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); overflow: hidden; min-width: 0; }
.paircard .text { display: flex; flex-direction: column; gap: var(--space-3); }
.paircard ul { display: flex; flex-direction: column; gap: var(--space-2); }
.paircard li { display: flex; gap: var(--space-2); color: var(--text-quiet); }
.paircard li svg { color: var(--done); margin-top: 2px; }
.paircard .scene { margin-top: auto; }
@media (max-width: 960px) { .pair { grid-template-columns: minmax(0, 1fr); } .paircard { padding: var(--space-6); } }

/* what's new, from the changelog */
.news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-8); }
.news-head { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.news-list { display: flex; flex-direction: column; gap: var(--space-3); }
.news-list li { display: flex; gap: var(--space-3); color: var(--text-quiet); }
.news-list li svg { color: var(--accent-text); flex: none; margin-top: 2px; }
@media (max-width: 960px) { .news { grid-template-columns: minmax(0, 1fr); padding: var(--space-6); } }
@media (prefers-reduced-motion: reduce) { .mcard:hover .mcard-media video, .bcard:hover .bcard-pic img { transform: none; } }
.bento { grid-auto-flow: dense; }
/* round 8's rule on the site's pictures of the app: a plain soft shadow, no blue halo */
.scene-frame { border-color: var(--line-strong); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .6); }
.tplcard:hover img, .aud:hover { box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .55); }
.film-frame { box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .6); }
