/* Layan.ai — Frontier page: the company prompt, the identity card it morphs into, the wisp field, the screens the wisps produce, the timeline and the connect step. */

/* ---------- hero ---------- */
.fr-hero { min-height: 78vh; padding-bottom: clamp(32px, 5vw, 56px); transition: min-height var(--t-slow) var(--ease-out), padding var(--t-slow) var(--ease-out); }
.fr-body.is-running .fr-hero { min-height: 0; padding-top: clamp(40px, 6vw, 72px); }
.fr-body.is-running .fr-hero .hero-title, .fr-body.is-running .fr-hero .hero-sub, .fr-body.is-running .fr-hero .hero-eyebrow { display: none; }
.fr-prompt input { flex: 1; border: 0; background: transparent; outline: none; font: inherit; font-size: var(--fs-md); color: var(--abyss); padding: 10px 0; min-width: 0; }
.fr-prompt input::placeholder { color: #4A5E86; }
.fr-prompt-mark { width: 0; height: 40px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; transition: width var(--t-ui) var(--ease-out), margin var(--t-ui) var(--ease-out); }
.fr-prompt-mark img, .fr-prompt-mark span { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; background: var(--cobalt); }
.fr-prompt.has-mark .fr-prompt-mark { width: 36px; margin-right: 4px; }
.fr-prompt.is-busy .prompt-send { background: var(--ink-2); }
.fr-prompt.is-busy .prompt-send svg { animation: fr-spin 1s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
.fr-hero-inner { gap: var(--s-4); }
.fr-body.is-running .hero-note { color: var(--frost); }

/* ---------- stage ---------- */
.fr-stage { position: relative; padding: 0 0 var(--s-8); }
.fr-stage-inner { display: flex; flex-direction: column; gap: var(--s-6); }
.fr-stage[hidden] { display: none; }

/* identity card: what the prompt becomes */
.fr-identity { --h: 214; position: relative; border-radius: 22px; padding: 1px; opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.fr-identity.is-in { opacity: 1; transform: none; }
.fr-id-rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--rim-angle, 0deg), transparent 0 62%, hsl(var(--h) 95% 70%) 78%, #fff 82%, hsl(var(--h) 95% 70%) 86%, transparent 100%); animation: fr-rim 5s linear infinite; filter: drop-shadow(0 0 14px hsl(var(--h) 95% 65% / 0.55)); }
@property --rim-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fr-rim { to { --rim-angle: 360deg; } }
.fr-identity.is-done .fr-id-rim { animation-duration: 14s; opacity: 0.55; }
.fr-id-inner { position: relative; border-radius: 21px; padding: 20px 22px; display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; background: linear-gradient(180deg, rgba(9, 22, 58, 0.92), rgba(4, 12, 34, 0.96)); border: 1px solid rgba(170, 206, 253, 0.16); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(228, 241, 255, 0.06); backdrop-filter: blur(18px); }
.fr-id-inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at 12% 0%, hsl(var(--h) 90% 60% / 0.2), transparent 60%); }
.fr-id-logo { position: relative; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: #fff; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
.fr-id-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.fr-id-logo.is-dark { background: var(--ink-2); }
.fr-id-letter { font-size: 30px; font-weight: 600; color: var(--cobalt); }
.fr-id-text { min-width: 0; position: relative; }
.fr-id-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fr-id-row h2 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
.fr-id-url { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--signal); word-break: break-all; }
.fr-id-tagline { margin-top: 6px; color: var(--paper-2); font-size: var(--fs-sm); max-width: 62ch; text-wrap: pretty; }
.fr-id-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.fr-id-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; position: relative; }
.fr-swatches { display: flex; gap: 6px; }
.fr-swatch { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); transform: scale(0); animation: fr-pop 420ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes fr-pop { to { transform: scale(1); } }
.fr-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 320px; }
.fr-chip { font-size: 11px; font-weight: 500; color: var(--frost); padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(2, 9, 31, 0.5); }
.fr-chip-font { font-family: var(--font-mono); }

/* wisp field */
.fr-field { position: relative; height: 340px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(37, 78, 193, 0.28), transparent 70%), rgba(4, 12, 34, 0.6); }
.fr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fr-labels { position: absolute; inset: 0; pointer-events: none; }
.fr-label { position: absolute; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 500; color: var(--paper); white-space: nowrap; transition: opacity var(--t-ui); }
.fr-label small { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.02em; }
.fr-label.is-thinking small { color: var(--frost); }
.fr-label.is-acting small { color: var(--ev-observed); }
.fr-label.is-waiting small { color: var(--warn); }
.fr-label.is-blocked small { color: var(--bad); }
.fr-log { position: absolute; left: 18px; top: 16px; bottom: 16px; width: min(340px, 42%); list-style: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--frost); pointer-events: none; mask-image: linear-gradient(to bottom, transparent, #000 25%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%); }
.fr-log li { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-8px); animation: fr-line 360ms var(--ease-out) forwards; }
@keyframes fr-line { to { opacity: 1; transform: none; } }
.fr-log .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--h, 214) 95% 70%); box-shadow: 0 0 10px hsl(var(--h, 214) 95% 70%); flex-shrink: 0; }
.fr-log .who { color: var(--paper); }
.fr-log .ev { margin-left: auto; }

/* screens the wisps produce */
.fr-screens { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.fr-screen { --h: 214; grid-column: span 6; position: relative; border-radius: 18px; padding: 18px 20px 20px; background: linear-gradient(180deg, rgba(9, 22, 58, 0.78), rgba(4, 12, 34, 0.9)); border: 1px solid rgba(170, 206, 253, 0.14); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
.fr-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at 0% 0%, hsl(var(--h) 90% 60% / 0.16), transparent 60%); }
.fr-screen.is-wide { grid-column: span 12; }
.fr-screen.is-third { grid-column: span 4; }
.fr-screen.fly { animation: fr-fly 720ms cubic-bezier(0.2, 0.9, 0.2, 1) both; }
@keyframes fr-fly { from { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, -40px)) scale(0.72); filter: blur(6px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; } }
.fr-screen-head { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fr-screen-head .pa-orb { width: 22px; height: 22px; }
.fr-screen-head h3 { font-size: var(--fs-md); font-weight: 600; }
.fr-screen-head .by { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.fr-screen-body { position: relative; font-size: var(--fs-sm); color: var(--paper-2); }
.fr-kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; }
.fr-kv dt { color: var(--muted); font-family: var(--font-mono); font-size: 11px; padding-top: 2px; }
.fr-kv dd { color: var(--paper); overflow-wrap: anywhere; }
.fr-kv .quiet { color: var(--muted); }
.fr-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fr-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(170, 206, 253, 0.08); border: 1px solid var(--line); color: var(--paper-2); }

/* reading lines */
.fr-lines { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fr-lines li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: baseline; }
.fr-lines .k { font-family: var(--font-mono); font-size: 11px; color: var(--frost); text-transform: uppercase; letter-spacing: 0.04em; }
.fr-lines .t { color: var(--paper); }
.fr-identity-line { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--paper); }
.fr-identity-line span { color: var(--muted); }

/* before / after */
.fr-ba { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 12px; align-items: stretch; }
.fr-ba-arrow { display: grid; place-items: center; color: var(--signal); }
.fr-frame { --brand: #254EC1; --ink: #0b1220; position: relative; border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.12); min-height: 230px; display: flex; flex-direction: column; }
.fr-frame.is-dark { background: #0d1117; color: #e8eef9; }
.fr-frame-bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(127, 148, 189, 0.16); font-family: var(--font-mono); font-size: 9px; color: rgba(11, 18, 32, 0.6); }
.fr-frame.is-dark .fr-frame-bar { color: rgba(232, 238, 249, 0.55); }
.fr-frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(127, 148, 189, 0.5); }
.fr-frame-bar .u { margin-left: 6px; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-frame-nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 9px; border-bottom: 1px solid rgba(127, 148, 189, 0.16); }
.fr-frame-nav .logo { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; background: var(--brand); }
.fr-frame-nav span { opacity: 0.7; }
.fr-frame-hero { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fr-frame-hero > * { position: relative; }
.fr-frame-hero .fr-pin { right: -6px; top: -9px; }
.fr-frame-hero h4 { font-size: 15px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.fr-frame-hero p { font-size: 10px; line-height: 1.45; opacity: 0.8; max-width: 44ch; }
.fr-frame-ctas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.fr-frame-ctas b { font-size: 9.5px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: var(--brand); color: #fff; }
.fr-frame-ctas b.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.fr-frame-proof { display: flex; gap: 6px; flex-wrap: wrap; }
.fr-frame-proof .ev { font-size: 9px; }
.fr-pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.25), 0 6px 16px -6px rgba(0, 0, 0, 0.8); animation: fr-pin 2.4s ease-in-out infinite; animation-delay: var(--d, 0ms); }
@keyframes fr-pin { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.25); } 50% { box-shadow: 0 0 0 9px rgba(255, 107, 122, 0.08); } }
.fr-frame.is-after .fr-pin { background: var(--ev-observed); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.25); animation: none; }
.fr-ba-notes { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: var(--fs-xs); color: var(--paper-2); }
.fr-ba-notes li { display: flex; gap: 8px; align-items: flex-start; }
.fr-ba-notes .n { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--bad); margin-top: 2px; }
.fr-ba-notes .n.ok { background: var(--ev-observed); color: var(--abyss); }
.fr-ba-cap { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }

/* findings */
.fr-findings { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fr-finding { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; background: rgba(2, 9, 31, 0.45); border: 1px solid var(--line); }
.fr-finding i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--warn); }
.fr-finding.is-high i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.fr-finding.is-low i { background: var(--muted); }
.fr-finding strong { display: block; color: var(--paper); font-weight: 500; }
.fr-finding p { color: var(--paper-2); font-size: var(--fs-xs); margin-top: 2px; }
.fr-finding .fix { margin-top: 4px; font-size: var(--fs-xs); color: var(--ev-observed); }
.fr-finding .fix::before { content: "→ "; color: var(--muted); }
.fr-empty { padding: 14px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--paper-2); font-size: var(--fs-sm); }

/* opportunities */
.fr-ops { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fr-op { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 9, 31, 0.4); }
.fr-op-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fr-op-head strong { color: var(--paper); font-weight: 500; }
.fr-op-head .dept { font-family: var(--font-mono); font-size: 10px; color: var(--frost); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); }
.fr-op p { font-size: var(--fs-xs); color: var(--paper-2); margin-top: 4px; }
.fr-op .first { color: var(--signal); }

/* cost */
.fr-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fr-cost-box { padding: 12px 14px; border-radius: 12px; background: rgba(2, 9, 31, 0.45); border: 1px solid var(--line); }
.fr-cost-box small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.fr-cost-box strong { display: block; font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em; color: var(--paper); }
.fr-cost-box span { font-size: var(--fs-xs); color: var(--paper-2); }

/* timeline */
.fr-timeline { padding: var(--s-8) 0 var(--s-7); border-top: 1px solid var(--line); }
.fr-timeline[hidden], .fr-connect[hidden] { display: none; }
.fr-stages { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; counter-reset: st; }
.fr-stages::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: linear-gradient(90deg, var(--signal), var(--line-strong)); transform-origin: left; transform: scaleX(0); animation: fr-draw 1.6s var(--ease-out) forwards; }
@keyframes fr-draw { to { transform: scaleX(1); } }
.fr-stage-item { position: relative; padding-top: 44px; opacity: 0; animation: fr-line 500ms var(--ease-out) forwards; animation-delay: var(--d); }
.fr-stage-item::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--frost); background: var(--ink); border: 1px solid var(--line-strong); }
.fr-stage-item.is-now::before { background: var(--cobalt); color: #fff; border-color: var(--signal); box-shadow: var(--glow-signal); }
.fr-stage-item h3 { font-size: var(--fs-lg); font-weight: 500; margin-bottom: 6px; }
.fr-stage-item p { font-size: var(--fs-sm); color: var(--paper-2); }
.fr-stage-item .need { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.fr-stage-item .need b { color: var(--warn); font-weight: 500; }

/* connect */
.fr-connect { padding: var(--s-7) 0 var(--s-8); }
.fr-connect-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: start; }
.fr-connect-copy h2 { margin-bottom: var(--s-4); }
.fr-unknowns { list-style: none; margin-top: var(--s-5); display: flex; flex-direction: column; gap: 8px; }
.fr-unknowns li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--paper-2); }
.fr-unknowns li::before { content: "?"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ev-unknown); border: 1px solid var(--line-strong); }
.fr-connect-actions { display: flex; flex-direction: column; gap: 10px; }
.fr-connect-card { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 2px 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--glass); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.fr-connect-card:hover { border-color: var(--signal); background: rgba(9, 26, 88, 0.5); transform: translateY(-1px); }
.fr-connect-card.is-off { opacity: 0.7; }
.fr-connect-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--paper); background: rgba(96, 157, 252, 0.14); }
.fr-connect-title { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--paper); }
.fr-connect-sub { font-size: var(--fs-xs); color: var(--paper-2); }

/* how */
.fr-how { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.fr-how-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); }
.fr-how-steps li { display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-sm); color: var(--paper-2); }
.fr-how-steps strong { color: var(--paper); font-weight: 500; }

/* ---------- badges and type (Frontier overrides) ---------- */
.fr-body .ev { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 4px 8px 4px 7px; border-radius: 6px; border: 1px solid currentColor; background: rgba(2, 9, 31, 0.35); white-space: nowrap; vertical-align: middle; }
.fr-body .ev::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.fr-body .ev-observed { color: var(--ev-observed); } .fr-body .ev-user { color: var(--ev-user); } .fr-body .ev-researched { color: var(--ev-researched); } .fr-body .ev-inferred { color: var(--ev-inferred); } .fr-body .ev-estimated { color: var(--ev-estimated); } .fr-body .ev-assumed { color: var(--ev-assumed); } .fr-body .ev-unknown { color: var(--ev-unknown); }
.fr-screen-head h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.fr-screen-head .by { font-weight: 500; }
.fr-id-row h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.fr-label { font-weight: 400; color: var(--paper-2); }
.fr-label small { font-weight: 400; }
.fr-timeline h2, .fr-connect h2, .fr-how h2 { letter-spacing: -0.02em; font-weight: 500; }

/* tabs inside a screen */
.fr-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: rgba(2, 9, 31, 0.55); border: 1px solid var(--line); margin-bottom: 12px; }
.fr-tab { font-size: var(--fs-xs); font-weight: 500; color: var(--frost); padding: 6px 12px; border-radius: 7px; transition: background var(--t-fast), color var(--t-fast); }
.fr-tab.is-on { background: rgba(96, 157, 252, 0.18); color: var(--paper); }
.fr-tabpane { display: none; } .fr-tabpane.is-on { display: block; }
.fr-hint { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }

/* features */
.fr-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fr-feat h4 { font-size: var(--fs-sm); font-weight: 500; color: var(--paper); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.fr-feat h4 .count { font-family: var(--font-mono); font-size: 10px; color: var(--frost); padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-strong); }
.fr-feat-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fr-feat-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 9, 31, 0.4); font-size: var(--fs-xs); }
.fr-feat-list li strong { color: var(--paper); font-weight: 500; font-size: var(--fs-sm); grid-column: 1; }
.fr-feat-list li span { color: var(--paper-2); grid-column: 1; }
.fr-feat-list li em { grid-column: 1; font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--frost); }
.fr-feat-list li .ev { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
.fr-feat-list.is-could li { border-style: dashed; }
.fr-feat-list li.quiet { color: var(--muted); border: 0; background: none; display: block; }

/* who works when */
.fr-mx { display: flex; flex-direction: column; gap: 4px; }
.fr-mx-row { display: grid; grid-template-columns: 110px repeat(4, 1fr) 120px; gap: 6px; align-items: center; }
.fr-mx-head .fr-mx-cell { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; background: none; border: 0; height: auto; }
.fr-mx-dept { font-size: var(--fs-sm); color: var(--paper); }
.fr-mx-cell { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: rgba(2, 9, 31, 0.4); display: grid; place-items: center; font-size: 12px; color: var(--ev-observed); }
.fr-mx-cell.is-on { background: linear-gradient(180deg, rgba(96, 157, 252, 0.28), rgba(37, 78, 193, 0.28)); border-color: rgba(96, 157, 252, 0.45); box-shadow: inset 0 1px 0 rgba(228, 241, 255, 0.1); }
.fr-mx-note { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-align: right; }
.fr-mx-row.is-none .fr-mx-dept { color: var(--muted); }
.fr-mx-row.is-none .fr-mx-note { color: var(--ev-observed); }

/* additions */
.fr-adds { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.fr-adds li.quiet { color: var(--muted); font-size: var(--fs-xs); }
.fr-add-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 9, 31, 0.45); }
.fr-add-text { color: var(--paper); font-size: var(--fs-sm); }
.fr-add-advice { grid-column: 1; font-size: var(--fs-xs); color: var(--paper-2); }
.fr-add-gate { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 6px; }
.fr-gate { font-size: var(--fs-xs); font-weight: 500; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--paper); transition: background var(--t-fast); }
.fr-gate.ok:hover { background: rgba(61, 220, 151, 0.18); border-color: var(--ev-observed); }
.fr-gate.no:hover { background: rgba(255, 107, 122, 0.16); border-color: var(--bad); }
.fr-gate-state { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; border: 1px solid currentColor; }
.fr-gate-state.is-approved { color: var(--ev-observed); } .fr-gate-state.is-denied { color: var(--bad); } .fr-gate-state.is-blocked { color: var(--warn); }
.fr-add-item.is-denied .fr-add-text { text-decoration: line-through; color: var(--muted); }
.fr-add-form { display: flex; gap: 8px; }
.fr-add-form input { flex: 1; min-width: 0; font: inherit; font-size: var(--fs-sm); color: var(--paper); background: rgba(2, 9, 31, 0.55); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; outline: none; }
.fr-add-form input:focus { border-color: var(--signal); }
.fr-add-blocked { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--warn); font-size: var(--fs-xs); color: var(--paper-2); }

/* plans */
.fr-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fr-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(2, 9, 31, 0.45); }
.fr-plan.is-hot { border-color: rgba(96, 157, 252, 0.6); background: linear-gradient(180deg, rgba(37, 78, 193, 0.28), rgba(9, 26, 88, 0.35)); box-shadow: var(--glow-signal); }
.fr-plan small { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fr-plan strong { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; color: var(--paper); line-height: 1.1; }
.fr-plan strong span { font-size: 0.55em; font-weight: 500; letter-spacing: 0; color: var(--paper-2); }
.fr-plan > span { font-size: var(--fs-xs); color: var(--paper-2); flex: 1; }
.fr-plan em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--frost); }
.fr-plan .btn { align-self: flex-start; }

/* the orb: CSS twin of the canvas wisp (same as the agents page) */
.pa-orb { --h: 214; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; position: relative; background: radial-gradient(circle at 40% 35%, #fff 0, hsl(var(--h) 95% 78%) 18%, hsl(var(--h) 90% 55%) 45%, hsl(var(--h) 80% 30% / 0.2) 70%, transparent 72%); box-shadow: 0 0 22px hsl(var(--h) 95% 65% / 0.7), 0 0 60px -10px hsl(var(--h) 95% 60% / 0.6); animation: fr-breathe 3.2s ease-in-out infinite; }
@keyframes fr-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* error state */
.fr-identity.is-error { --h: 355; }
.fr-identity.is-error .fr-id-tagline { color: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .fr-screen, .fr-screen.is-third { grid-column: span 12; }
  .fr-how-steps { grid-template-columns: repeat(2, 1fr); }
  .fr-stages { grid-template-columns: repeat(2, 1fr); }
  .fr-stages::before { display: none; }
  .fr-connect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .fr-id-inner { grid-template-columns: 56px 1fr; }
  .fr-id-logo { width: 56px; height: 56px; }
  .fr-id-brand { grid-column: 1 / -1; align-items: flex-start; }
  .fr-chips { justify-content: flex-start; }
  .fr-field { height: 300px; }
  .fr-log { width: calc(100% - 36px); mask-image: linear-gradient(to bottom, transparent, #000 45%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); }
  .fr-ba { grid-template-columns: 1fr; }
  .fr-ba-arrow { transform: rotate(90deg); height: 30px; }
  .fr-ba-notes, .fr-cost, .fr-feat, .fr-plans { grid-template-columns: 1fr; }
  .fr-mx-row { grid-template-columns: 80px repeat(4, 1fr); }
  .fr-mx-note { grid-column: 1 / -1; text-align: left; }
  .fr-add-blocked { grid-template-columns: 1fr; }
  .fr-how-steps, .fr-stages { grid-template-columns: 1fr; }
  .fr-lines li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-screen.fly, .fr-swatch, .fr-log li, .fr-stage-item, .fr-stages::before { animation: none; opacity: 1; transform: none; }
  .fr-id-rim, .fr-pin, .pa-orb { animation: none; }
}
