/* LazyLEED web service – site pages (same palette as the analysis app) */
:root {
  --bg: #0d1016; --bg2: #12161d; --panel: #161b23; --panel2: #1b212b; --line: #262e3a; --line2: #303a48;
  --text: #dfe5ee; --muted: #8b96a8; --faint: #5d6778; --accent: #7aa2ff; --accent2: #5b84f0;
  --accent-bg: rgba(122,162,255,.12); --ok: #5fd39a; --warn: #f2b84b; --err: #ff6b6b; --radius: 10px;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 19px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0 0 10px; }
code { font: 13px var(--mono); background: var(--panel2); padding: 1px 5px; border-radius: 4px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 7px; padding: 8px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-bg); border-color: var(--accent); }
input[type=checkbox] { width: auto; }
input[type=file] { padding: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .danger { color: var(--err); }
.inline { display: inline; }

.btn, button[type=submit], .auth-card button:not(.link) {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--accent2);
  background: var(--accent2); color: #fff; font-weight: 600; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.btn:hover, button[type=submit]:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.danger { background: #b4373f; border-color: #b4373f; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: normal; }
button.link.danger { color: var(--err); }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line2); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(95,211,154,.4); }

/* header / footer */
.site-head { display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 60px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand span { white-space: nowrap; }
@media (max-width: 480px) { .site-head { gap: 12px; padding: 0 16px; } .site-nav { gap: 12px; } .site-nav .nav-docs { display: none; } }
.brand .mark { width: 28px; height: 28px; fill: var(--accent); color: var(--accent); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--muted); } .site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.btn { color: #fff; }
.site-nav button.link { color: var(--muted); font-size: 14px; } .site-nav button.link:hover { color: var(--text); }
.site-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; margin-top: 40px; }
.site-foot nav { display: flex; gap: 18px; } .site-foot a { color: var(--muted); }

/* page frames */
main.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 24px 0; flex: 1; }
main.page.narrow { max-width: 620px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.messages { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); }
.msg.success { border-color: rgba(95,211,154,.45); } .msg.error { border-color: rgba(255,107,107,.5); }
.msg.warning { border-color: rgba(242,184,75,.5); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 4px; width: 100%; color: var(--muted); font-size: 14px; }
.stack label input { width: 100%; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 5px 0; }
.back { margin: 0 0 12px; font-size: 14px; }

/* auth pages (allauth's default elements) */
.auth-card h1 { font-size: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card form p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.auth-card label { color: var(--muted); font-size: 14px; }
.auth-card input:not([type=checkbox]) { width: 100%; }
.auth-card form p:has(input[type=checkbox]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.auth-card .helptext, .auth-card small { color: var(--faint); font-size: 13px; }
.auth-card ul.errorlist, .errorlist { color: var(--err); margin: 2px 0; padding-left: 18px; font-size: 14px; }
.auth-card table { border-collapse: collapse; width: 100%; } .auth-card td, .auth-card th { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.auth-card img { background: #fff; padding: 8px; border-radius: 8px; max-width: 220px; }

/* landing: scroll-driven LEED screen */
:root { --phosphor: #5cff9d; --phosphor-rgb: 92, 255, 157;
  --display: "Inter Display", "Inter", "Segoe UI Variable Display", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* header on the landing page: transparent over the hero, sticky and frosted once scrolled; one accent colour */
.is-landing .site-head { position: sticky; top: 0; z-index: 20; background: transparent; border-bottom-color: transparent;
  transition: background .3s, border-color .3s; }
.is-landing .site-head.scrolled { background: rgba(13, 16, 22, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, .06); }
.is-landing .brand .mark { fill: var(--phosphor); color: var(--phosphor); filter: drop-shadow(0 0 4px rgba(var(--phosphor-rgb), .45)); }
.is-landing .site-nav a.btn { background: transparent; color: var(--text); border-color: rgba(var(--phosphor-rgb), .35); }
.is-landing .site-nav a.btn:hover { border-color: var(--phosphor); box-shadow: 0 0 14px rgba(var(--phosphor-rgb), .3); }
.is-landing .site-foot { margin-top: 0; }
main.page.landing { max-width: none; padding: 0; }

.leed-scroll { position: relative; height: 260vh; }
/* one grid: stripes in rows 1 and 3 across the full width, side panels in row 2, the screen spans all rows behind */
.leed-stage { --h: calc(100vh - 60px); position: sticky; top: 60px; height: var(--h); display: grid;
  grid-template-columns: minmax(0, 1fr) min(calc(var(--h) - 16px), calc(100vw - 700px)) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(24px, 3.6vw, 64px); row-gap: 16px; padding: 4px clamp(16px, 3vw, 48px) 12px; overflow: hidden; }
.leed-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 50%, rgba(var(--phosphor-rgb), .05), transparent 75%); }
.leed-frame { grid-column: 2; grid-row: 1 / -1; position: relative; min-height: 0; }
#leed-screen { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.band { grid-column: 1 / -1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 18px 24px; margin: 0 calc(-1 * clamp(16px, 3vw, 48px));
  background: linear-gradient(90deg, rgba(9, 12, 16, 0), rgba(9, 12, 16, .8) 18%, rgba(9, 12, 16, .8) 82%, rgba(9, 12, 16, 0)); }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--phosphor-rgb), .16) 22%, rgba(var(--phosphor-rgb), .16) 78%, transparent); }
.band::before { top: 0; } .band::after { bottom: 0; }
.band.top { grid-row: 1; margin-top: 2.5vh; }
.band.bottom { grid-row: 3; margin-bottom: 2.5vh; padding: 14px 24px 12px; }
.leed-side { grid-row: 2; align-self: center; position: relative; z-index: 3; }
.leed-side.left { grid-column: 1; }
.leed-side.right { grid-column: 3; }
.band .kicker { display: block; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(var(--phosphor-rgb), .85); margin-bottom: 12px; }
.band h1 { font-family: var(--display); font-size: clamp(36px, 4.3vw, 76px); font-weight: 600; letter-spacing: -.035em;
  line-height: 1.04; margin: 0; padding-bottom: .04em; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 25%, #c9f5da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band .lead { font-size: clamp(15px, 1.15vw, 18px); color: #c3ccd8; margin: 0 auto 10px; max-width: 46ch; line-height: 1.5; text-wrap: balance; }
.leed-caption { font: 12px var(--mono); color: var(--faint); letter-spacing: .06em; display: flex; justify-content: center; gap: 8px;
  font-variant-numeric: tabular-nums; }
.leed-caption #leed-count { color: var(--phosphor); text-shadow: 0 0 8px rgba(var(--phosphor-rgb), .6); }
.leed-caption .scroll-hint { display: inline-flex; gap: 8px; color: var(--muted); transition: opacity .5s; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.leed-caption .scroll-hint { max-width: 30ch; overflow: hidden; white-space: nowrap; transition: opacity .5s, max-width .6s; }
.leed-caption .scroll-hint .short { display: none; }
.leed-caption .matrix { display: inline-flex; gap: 8px; color: #d6f9e3; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: opacity .6s, max-width .9s; }
.leed-caption .matrix.on { max-width: 40ch; opacity: 1; }
.leed-caption .scroll-hint.gone { opacity: 0; max-width: 0; animation: none; margin-left: -8px; }
/* side panels: hairline entries that light up while the pattern builds */
.leed-side { display: flex; flex-direction: column; gap: clamp(16px, 3vh, 30px); max-width: 300px; width: 100%; }
.leed-side.left { justify-self: end; }
.leed-side.right { justify-self: start; }
.leed-side .feature { background: transparent; border: 0; border-left: 1px solid var(--line2); border-radius: 0; padding: 4px 0 4px 20px;
  position: relative; transition: opacity .6s, transform .6s, filter .6s; }
.leed-side .feature::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--phosphor);
  box-shadow: 0 0 10px rgba(var(--phosphor-rgb), .8); transform: scaleY(0); transform-origin: top; transition: transform .7s; }
.leed-side .feature h3 { background: linear-gradient(90deg, var(--text) 0 40%, var(--phosphor) 50%, var(--text) 60% 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.1s ease .1s; }
.leed-side .feature p { font-size: 14px; line-height: 1.5; min-height: 3em; transition: opacity .6s; }
.leed-side .feature h3 { margin-bottom: 4px; }
.leed-side .feature .no { margin-bottom: 4px; }
.leed-js .leed-side .feature { transform: translateY(3px); }
.leed-js .leed-side .feature p { opacity: .75; }
.leed-js .leed-side .feature.on { transform: none; }
.leed-js .leed-side .feature.on p { opacity: 1; }
.leed-js .leed-side .feature.on::before { transform: scaleY(1); }
.leed-js .leed-side .feature.on h3 { background-position: 0 0; }
.leed-js .leed-side .feature.on .no { color: var(--phosphor); text-shadow: 0 0 8px rgba(var(--phosphor-rgb), .5); }

/* platform: per-site accent (LazyLEED + portal: green phosphor; PES: amber) */
.site-pes { --phosphor: #ffb45c; --phosphor-rgb: 255, 180, 92; }
.landing .kicker { display: block; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(var(--phosphor-rgb), .85); margin-bottom: 12px; }
.landing .lead { color: #c3ccd8; }

/* portal */
.portal-hero, .pes-hero { position: relative; max-width: 1080px; margin: 0 auto; padding: 88px 24px 40px; text-align: center; }
.portal-hero::before { content: ""; position: absolute; inset: -60px 0 -120px; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgba(var(--phosphor-rgb), .5) 1.1px, transparent 2px); background-size: 30px 26px;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, #000, transparent 75%); }
.portal-hero h1, .pes-hero h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -.035em;
  line-height: 1.04; margin: 0 auto 18px; max-width: 16ch; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 25%, #c9f5da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-pes .pes-hero h1 { background-image: linear-gradient(180deg, #ffffff 25%, #ffe2bd); }
.portal-hero .lead, .pes-hero .lead { font-size: clamp(16px, 1.3vw, 19px); max-width: 46ch; margin: 0 auto; line-height: 1.55; text-wrap: balance; }
.tools { max-width: 1080px; margin: 0 auto; padding: 24px 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card { --c: var(--phosphor-rgb); position: relative; display: flex; flex-direction: column; padding: 30px 30px 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 27, 35, .92), rgba(14, 18, 24, .92)); border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s; }
.tool-card.tool-pes { --c: 255, 180, 92; }
.tool-card:hover { border-color: rgba(var(--c), .45); box-shadow: 0 0 40px -14px rgba(var(--c), .5); transform: translateY(-2px); }
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.tool-ico { width: 112px; height: 112px; overflow: visible; }
.tool-ico .screen { fill: #070b09; stroke: #2a323d; stroke-width: 2.5; }
.tool-pes .tool-ico .screen { fill: #0b0a08; }
.tool-ico .spot { fill: rgb(var(--c)); }
.tool-ico .spot.sub { fill: #dfffea; filter: drop-shadow(0 0 2px rgba(var(--c), .9)) drop-shadow(0 0 5px rgba(var(--c), .6)); }
.tool-ico .spot.ads { filter: drop-shadow(0 0 2.5px rgba(var(--c), .8)); }
.tool-ico .bg { fill: none; stroke: rgba(var(--c), .35); stroke-width: 1.2; stroke-dasharray: 3 3; }
.tool-ico .comp { fill: rgba(var(--c), .12); stroke: rgba(var(--c), .55); stroke-width: 1; }
.tool-ico .raw { fill: none; stroke: #fff1dd; stroke-width: 1.6; filter: drop-shadow(0 0 3px rgba(var(--c), .8)); }
.tool-card .status { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
  color: rgb(var(--c)); border: 1px solid rgba(var(--c), .4); }
.tool-card h2 { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.tool-card .tool-title { margin: 2px 0 12px; font: 13px var(--mono); color: rgba(var(--c), .85); letter-spacing: .02em; }
.tool-card .tool-tagline { color: #c3ccd8; margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; }
.tool-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; flex: 1; align-content: start; }
.tool-card li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); }
.tool-card li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--c)); box-shadow: 0 0 6px rgba(var(--c), .8); }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 11px;
  font-weight: 600; font-size: 15.5px; color: var(--text); text-decoration: none !important; border: 1px solid rgba(var(--c), .55);
  background: rgba(var(--c), .07); box-shadow: 0 0 12px rgba(var(--c), .12); transition: box-shadow .3s, border-color .3s; }
.tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.tool-btn:hover { border-color: rgb(var(--c)); box-shadow: 0 0 16px rgba(var(--c), .5), inset 0 0 12px rgba(var(--c), .15); }
.tool-btn:hover svg { transform: translateX(3px); }
.tool-btn.ghost { border-color: var(--line2); background: transparent; box-shadow: none; color: var(--muted); }
.tool-btn.ghost:hover { border-color: rgba(var(--c), .55); color: var(--text); box-shadow: 0 0 14px rgba(var(--c), .25); }
.portal-facts { max-width: 1080px; margin: 0 auto; padding: 72px 24px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.portal-facts > div { border-left: 1px solid rgba(var(--phosphor-rgb), .35); padding: 2px 0 2px 20px; }
.portal-facts .no { display: block; font: 11px var(--mono); letter-spacing: .14em; color: rgba(var(--phosphor-rgb), .8); margin-bottom: 8px; }
.portal-facts h3 { font-family: var(--display); font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.portal-facts p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.55; }

/* PES placeholder */
.pes-plot { margin: 44px auto 0; max-width: 820px; padding: 18px 18px 10px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 80% at 50% 60%, rgba(var(--phosphor-rgb), .06), transparent 70%), #0b0c0e; }
.pes-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.pes-plot .grid line { stroke: rgba(255, 255, 255, .04); }
.pes-plot .bg { fill: none; stroke: rgba(var(--phosphor-rgb), .45); stroke-width: 1.3; stroke-dasharray: 5 5; }
.pes-plot .comp { fill: rgba(var(--phosphor-rgb), .1); stroke: rgba(var(--phosphor-rgb), .6); stroke-width: 1.2; opacity: 0; animation: pes-in .9s ease forwards; }
.pes-plot .comp.c1 { animation-delay: 1.5s; } .pes-plot .comp.c2 { animation-delay: 1.8s; } .pes-plot .comp.c3 { animation-delay: 2.1s; }
.pes-plot .env { fill: none; stroke: #fff1dd; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(var(--phosphor-rgb), .8));
  stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: pes-draw 2.2s ease .2s forwards; }
.pes-plot .dots circle { fill: rgba(255, 241, 221, .55); }
.pes-plot figcaption { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--faint); padding: 8px 4px 0; }
@keyframes pes-draw { to { stroke-dashoffset: 0; } }
@keyframes pes-in { to { opacity: 1; } }
.pes-planned { max-width: 1080px; margin: 0 auto; padding: 72px 24px 0; }
.pes-planned h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.035em; margin: 0 0 32px; }
.pes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pes-grid .feature { background: none; border: 0; border-left: 1px solid rgba(var(--phosphor-rgb), .4); border-radius: 0; padding: 2px 0 2px 20px; }
.pes-grid .feature .no { color: rgba(var(--phosphor-rgb), .85); }
.pes-grid .feature p { font-size: 14.5px; line-height: 1.55; }
.pes-note { color: var(--faint); font-size: 13px; margin: 24px 0 0; }
@media (max-width: 860px) {
  .tools, .portal-facts, .pes-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 24px 22px 22px; }
  .tool-card ul { grid-template-columns: 1fr; }
  .portal-hero, .pes-hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pes-plot .env { animation: none; stroke-dashoffset: 0; }
  .pes-plot .comp { animation: none; opacity: 1; }
}

/* plans (placeholders) */
.plans { max-width: 1080px; margin: 0 auto; padding: 72px 24px 0; }
.plans .kicker { display: block; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(var(--phosphor-rgb), .85); margin-bottom: 12px; }
.plans h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0;
  font-size: clamp(28px, 3.2vw, 48px); text-wrap: balance; }
.plans-note { color: var(--faint); font-size: 13px; margin: 10px 0 36px; }
.plans-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 27, 35, .9), rgba(15, 19, 25, .9)); border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s; }
.plan:hover { border-color: rgba(var(--phosphor-rgb), .35); box-shadow: 0 0 30px -12px rgba(var(--phosphor-rgb), .45); transform: translateY(-2px); }
.plan.featured { border-color: rgba(var(--phosphor-rgb), .4);
  box-shadow: 0 0 0 1px rgba(var(--phosphor-rgb), .08), 0 20px 50px -30px rgba(var(--phosphor-rgb), .6); }
.plan.featured::before { content: "Full analysis"; position: absolute; top: 18px; right: 18px; font: 500 10px var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--phosphor); border: 1px solid rgba(var(--phosphor-rgb), .35);
  border-radius: 20px; padding: 3px 9px; }
.plan-ico { width: 108px; height: 108px; margin-bottom: 18px; overflow: visible; }
.plan-screen { fill: #070b09; stroke: #2a323d; stroke-width: 2.5; }
.plan-ico .spot { fill: var(--phosphor); }
.plan-ico .spot.sub { fill: #dfffea; filter: drop-shadow(0 0 2px rgba(var(--phosphor-rgb), .9)) drop-shadow(0 0 5px rgba(var(--phosphor-rgb), .6)); }
.plan-ico .spot.ads { filter: drop-shadow(0 0 2.5px rgba(var(--phosphor-rgb), .8)); }
.plan-ico .spot.ms { filter: drop-shadow(0 0 1.5px rgba(var(--phosphor-rgb), .6)); }
.plan:hover .plan-ico .spot, .plan.featured .plan-ico .spot { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .55; } }
.plan h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
.plan .tagline { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.plan .price { font: 13px var(--mono); color: var(--faint); letter-spacing: .04em; padding: 12px 0; margin-bottom: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 20px; font-size: 14.5px; color: #c3ccd8; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--phosphor); box-shadow: 0 0 6px rgba(var(--phosphor-rgb), .8); }
.plan-btn { display: block; text-align: center; padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(var(--phosphor-rgb), .5); color: var(--text); text-decoration: none !important;
  background: rgba(var(--phosphor-rgb), .06); transition: box-shadow .3s, border-color .3s; }
a.plan-btn:hover { border-color: var(--phosphor); box-shadow: 0 0 14px rgba(var(--phosphor-rgb), .45), inset 0 0 12px rgba(var(--phosphor-rgb), .15); }
.plan-btn.soon { border-color: var(--line2); color: var(--faint); background: transparent; cursor: default; }
@media (max-width: 900px) {
  .plans-row { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .plan-ico .spot { animation: none !important; } }

/* second act: workflow + call to action */
.steps { max-width: 1080px; margin: 0 auto; padding: 72px 24px 0; }
.steps .kicker, .cta .kicker { display: block; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(var(--phosphor-rgb), .85); margin-bottom: 12px; }
.steps h2, .cta h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.steps h2 { font-size: clamp(28px, 3.2vw, 48px); margin-bottom: 44px; text-wrap: balance; }
.steps-row { --d: 24px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps-row::before, .steps-row::after { content: ""; position: absolute; top: 0; height: 1px; left: var(--d); right: calc(100% / 3 - var(--d)); }
.steps-row::before { background: var(--line2); }
.steps-row::after { background: var(--phosphor); box-shadow: 0 0 8px rgba(var(--phosphor-rgb), .7); transform: scaleX(0);
  transform-origin: left; transition: transform .9s linear .15s; }
.steps.in .steps-row::after { transform: scaleX(1); }
.step { padding: 30px 32px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: -4px; left: calc(var(--d) - 4px); width: 8px; height: 8px; border-radius: 50%;
  background: var(--line2); transition: background .3s, box-shadow .3s; z-index: 1; }
.steps.in .step::before { background: var(--phosphor); box-shadow: 0 0 10px 2px rgba(var(--phosphor-rgb), .6); }
.steps.in .step:nth-child(1)::before { transition-delay: .2s; }
.steps.in .step:nth-child(2)::before { transition-delay: .6s; }
.steps.in .step:nth-child(3)::before { transition-delay: 1.05s; }
.step .no { display: block; font: 11px var(--mono); letter-spacing: .14em; color: var(--faint); margin-bottom: 14px; }
.step .ico { display: block; width: 30px; height: 30px; fill: none; stroke: var(--phosphor); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: .9; filter: drop-shadow(0 0 6px rgba(var(--phosphor-rgb), .35)); margin-bottom: 12px; }
.step .ico circle { fill: var(--phosphor); stroke: none; }
.step h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; max-width: 32ch; }
.cta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 88px 16px 96px; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 40px 0 60px; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(var(--phosphor-rgb), .55) 1.2px, transparent 2.2px);
  background-size: 34px 29.4px; -webkit-mask-image: radial-gradient(ellipse 34% 60% at 50% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 34% 60% at 50% 45%, #000, transparent 75%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(30px, 3.6vw, 56px); text-wrap: balance; }
.cta-box { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border-radius: 12px;
  border: 1px solid rgba(var(--phosphor-rgb), .55); background: rgba(13, 20, 17, .9); color: var(--text);
  box-shadow: 0 0 12px rgba(var(--phosphor-rgb), .15), inset 0 0 0 100px rgba(var(--phosphor-rgb), .06);
  font-size: 17px; font-weight: 600; letter-spacing: 0; text-decoration: none !important;
  transition: box-shadow .35s, border-color .35s, color .35s, transform .35s; }
.cta-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s; }
.cta-box:hover, .cta-box:focus-visible { color: #eafff2; border-color: var(--phosphor);
  box-shadow: 0 0 14px rgba(var(--phosphor-rgb), .55), 0 0 32px rgba(var(--phosphor-rgb), .28), inset 0 0 0 100px rgba(var(--phosphor-rgb), .12),
    inset 0 0 16px rgba(var(--phosphor-rgb), .25);
  text-shadow: 0 0 8px rgba(var(--phosphor-rgb), .3); transform: translateY(-1px); outline: none; }
.cta-box:hover svg { transform: translateX(4px); }
.cta-note { color: var(--faint); font-size: 13px; margin: 0; }
.cta-note a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.cta-note a:hover { color: var(--text); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feature .no { display: block; font: 11px var(--mono); letter-spacing: .12em; color: var(--faint); margin-bottom: 6px; transition: color .6s; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { color: var(--muted); margin: 0; font-size: 13.5px; line-height: 1.5; }
.landing .features.below { display: none; max-width: 1080px; margin: 0 auto; padding: 48px 24px 8px; gap: 26px 32px; }
.landing .features.below .feature { background: none; border: 0; border-left: 1px solid rgba(var(--phosphor-rgb), .35); border-radius: 0; padding: 2px 0 2px 18px; }
.landing .features.below .feature p { font-size: 14px; }
@media (max-width: 1220px) {
  .leed-stage { grid-template-columns: 1fr; }
  .leed-side { display: none; }
  .leed-frame { grid-column: 1; justify-self: center; width: min(calc(var(--h) - 16px), 100%); }
  .landing .features.below { display: grid; }
}
@media (max-width: 760px) {
  .steps { padding-top: 48px; }
  .steps h2 { margin-bottom: 28px; }
  .steps-row { --d: 4px; grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before, .steps-row::after { top: 6px; bottom: 40px; left: 4px; right: auto; width: 1px; height: auto; }
  .steps-row::after { transform: scaleY(0); transform-origin: top; }
  .steps.in .steps-row::after { transform: scaleY(1); }
  .step { padding: 0 0 0 30px; }
  .step::before { top: 4px; left: 0; }
  .cta { padding: 64px 16px 80px; }
}
@media (max-width: 700px) {
  .leed-scroll { height: 220vh; }
  .leed-stage { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 16px 16px; }
  .leed-frame { width: 100%; }
  #leed-screen { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; }
  .band { margin: 0; background: none; padding: 0; }
  .band::before, .band::after { display: none; }
  .band.bottom { order: 1; margin: 0; padding: 0; }
  .band.top { margin: 0; }
  .band h1 { font-size: 32px; }
  .band .kicker { font-size: 11px; letter-spacing: .12em; margin-bottom: 8px; }
  .leed-caption { flex-wrap: wrap; row-gap: 2px; }
  .leed-caption .scroll-hint .long { display: none; }
  .leed-caption .scroll-hint .short { display: inline; }
  .leed-caption .matrix.on { flex-basis: 100%; justify-content: center; }
  .leed-caption .matrix > .sep { display: none; }
  .landing .features.below { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .leed-scroll { height: auto; }
  .leed-stage { position: static; }
  .scroll-hint { display: none; }
  .leed-js .leed-side .feature { opacity: 1; filter: none; transform: none; }
  .leed-side .feature h3 { background-position: 0 0; }
}

/* documentation / legal */
.doc-layout.with-toc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.toc { position: sticky; top: 20px; align-self: start; font-size: 14px; }
.toc h4 { margin: 0 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.toc ul { list-style: none; padding: 0; margin: 0; } .toc li { padding: 3px 0; } .toc a { color: var(--muted); }
.prose { max-width: 780px; }
.prose table { border-collapse: collapse; margin: 12px 0; } .prose td, .prose th { border: 1px solid var(--line2); padding: 5px 10px; }
.prose pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 12px 0; padding: 4px 16px; border-left: 3px solid var(--warn); color: var(--muted); }
@media (max-width: 860px) { .doc-layout.with-toc { grid-template-columns: 1fr; } .toc { position: static; } }

/* dashboard */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.quota { display: flex; flex-direction: column; gap: 5px; min-width: 220px; font-size: 13px; color: var(--muted); }
.quota.wide { margin: 14px 0 18px; }
.quota .bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.quota .bar div { height: 100%; background: var(--accent); border-radius: 4px; min-width: 2px; }
.new-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.new-card { margin: 0 0 16px; padding: 16px 18px; } .new-card h3 { margin-bottom: 10px; }
.new-card .fields { display: flex; gap: 8px; } .new-card .fields input:not([type=file]) { flex: 1; }
.new-card .fields input[type=file] { flex: 1; }
.hint { color: var(--faint); font-size: 13px; margin: 8px 0 0; }
@media (max-width: 860px) { .new-row { grid-template-columns: 1fr; } .new-card .fields { flex-wrap: wrap; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.project { padding: 0; overflow: visible; position: relative; margin: 0; }
.project .thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #080a0e;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; position: relative; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .thumb .empty { color: var(--faint); font-size: 13px; }
.project .tag { position: absolute; left: 8px; top: 8px; font-size: 11px; padding: 1px 7px; border-radius: 8px; background: rgba(13,16,22,.8); color: var(--muted); border: 1px solid var(--line2); }
.project .tag.open { left: auto; right: 8px; color: var(--ok); border-color: rgba(95,211,154,.45); }
.project .meta { padding: 12px 14px 14px; }
.project .name { display: block; font-weight: 600; color: var(--text); margin-right: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project .sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.project .sub.faint { color: var(--faint); }
.more { position: absolute; right: 8px; bottom: 34px; }
.more summary { list-style: none; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); font-size: 18px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] summary { background: var(--panel2); color: var(--text); }
.more .pop { position: absolute; right: 0; top: 32px; z-index: 5; width: 260px; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: #1a2029; border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 14px; }
.more .pop form { display: flex; gap: 6px; } .more .pop input { flex: 1; padding: 4px 8px; }
.empty-state { text-align: center; padding: 40px; } .empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.auth-card .helptext ul { margin: 2px 0 0; padding-left: 18px; color: var(--faint); font-size: 13px; }
