/* Electric Lights site styles, shared by every page. */
:root {
  --bg: #050607;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0d1113;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #f3f6f6;
  --muted: #9aa5a9;
  --cyan: #40fff2;
  --cyan-deep: #0aa6a0;
  --magenta: #ff4fd8;
  --wordmark: "Times New Roman", Times, Georgia, serif;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: italic 700 22px/1 var(--wordmark); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.top { display: flex; align-items: center; gap: 24px; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; transition: color .15s; }
nav.top a:hover { color: var(--fg); }
nav.top .pill { color: #031413; background: var(--cyan); padding: 7px 14px; border-radius: 999px; font-weight: 700; box-shadow: 0 0 18px rgba(64,255,242,.35); }
nav.top .pill:hover { color: #031413; }
@media (max-width: 760px) { nav.top a:not(.pill) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 90px 0 30px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -140px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 50% 10%, rgba(64,255,242,.18), transparent 70%),
    radial-gradient(30% 40% at 85% 35%, rgba(255,79,216,.12), transparent 70%),
    radial-gradient(30% 40% at 12% 45%, rgba(255,225,74,.08), transparent 70%);
}
.sign {
  position: relative; display: inline-block; max-width: 100%; padding: clamp(30px, 4vw, 34px) clamp(30px, 5vw, 54px) clamp(28px, 4vw, 30px);
  background: #000; border: 3px solid #c9c9c9; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(64,255,242,.08);
}
.sign .bulbs { position: absolute; inset: 0; pointer-events: none; }
.sign .bulb {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, #000) 100%);
  opacity: .45; animation: bulb 1.1s linear infinite; animation-delay: var(--d);
}
@keyframes bulb {
  0%, 70%, 100% { opacity: .42; box-shadow: none; transform: scale(1); }
  10%, 25% { opacity: 1; box-shadow: 0 0 10px 2px var(--c); transform: scale(1.18); }
}
.wordmark {
  font: italic 700 clamp(40px, 9.5vw, 104px)/1 var(--wordmark); color: var(--cyan); letter-spacing: -0.01em;
  text-shadow: 0 0 14px rgba(64,255,242,.8), 0 0 46px rgba(0,200,255,.35);
  animation: strike 1.6s steps(1, end) both;
}
@keyframes strike {
  0% { opacity: .18; text-shadow: none; } 18% { opacity: 1; } 24% { opacity: .2; text-shadow: none; }
  34% { opacity: 1; } 40% { opacity: .25; text-shadow: none; } 52%, 100% { opacity: 1; }
}
.tagline { font: italic 700 clamp(16px, 2.2vw, 21px)/1.2 var(--wordmark); color: #c4c4c4; margin-top: 10px; }
.hero h1.lede {
  font: 700 clamp(30px, 4.6vw, 52px)/1.08 -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.025em; margin: 46px auto 0; max-width: 16ch;
}
.hero p.sub { color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); max-width: 36rem; margin: 18px auto 0; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
  color: #031413; background: linear-gradient(135deg, #8ffff8, var(--cyan)); box-shadow: 0 0 28px rgba(64,255,242,.45);
}
.button.ghost { color: var(--fg); background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); box-shadow: none; }
.button.soon { color: var(--cyan); background: rgba(64,255,242,.08); border: 1.5px solid rgba(64,255,242,.6); box-shadow: 0 0 22px rgba(64,255,242,.18); cursor: default; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.shot {
  margin: 64px auto 0; width: 100%; max-width: 1040px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 90px rgba(255,140,60,.10);
}

/* ---------- Sections ---------- */
section.block { padding: 120px 0 0; scroll-margin-top: 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
h2 {
  font: 700 clamp(32px, 4.6vw, 50px)/1.08 -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.025em; margin-top: 12px; max-width: 20ch;
}
.intro { color: var(--muted); font-size: 19px; max-width: 42rem; margin-top: 16px; }
.center { text-align: center; }
.center h2, .center .intro { margin-inline: auto; }

/* ---------- Live demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 44px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo-board { background: #000; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.controls { display: grid; gap: 22px; }
.control-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
  font-size: 14.5px; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: rgba(64,255,242,.6); }
.chip[aria-pressed="true"] { color: #031413; background: var(--cyan); border-color: var(--cyan); font-weight: 700; box-shadow: 0 0 16px rgba(64,255,242,.35); }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; background: none; border: 0; padding: 0; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.15); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] .track { background: var(--cyan-deep); box-shadow: 0 0 14px rgba(64,255,242,.35); }
.switch[aria-checked="true"] .track::after { transform: translateX(18px); }

/* ---------- Peg boards (pegboard.js) ---------- */
.pegboard { display: flex; flex-direction: column; gap: 10px; }
.pegboard-banner {
  align-self: center; font: 600 15px/1 ui-rounded, -apple-system, system-ui, sans-serif; padding: 8px 18px; border-radius: 10px;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.pegboard-banner[data-style="cool"] {
  color: #fff; background: linear-gradient(var(--bg-dim), var(--bg-dim)), #000;
  border: 1.5px solid var(--fg); text-shadow: 0 0 6px var(--fg), 0 0 14px var(--fg); box-shadow: 0 0 14px color-mix(in srgb, var(--fg) 60%, transparent);
}
.pegboard-banner[data-style="normal"] {
  color: var(--fg); font-weight: 800; background: linear-gradient(rgba(255,255,255,.22), transparent 50%, rgba(0,0,0,.18)), var(--bg);
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 3px 8px rgba(0,0,0,.6);
}
.pegboard-stage { position: relative; width: 100%; aspect-ratio: 51.5 / 45; }
.pegboard-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pegboard-main { mix-blend-mode: lighten; }

/* ---------- Photo to Pegs ---------- */
.feature-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 44px; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }
.feature-split img.panel { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 70px rgba(64,140,255,.10); }
.steps { display: grid; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.step::before {
  counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #031413; background: var(--cyan); box-shadow: 0 0 16px rgba(64,255,242,.4);
}
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 16px; }
.note { margin-top: 26px; font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.note svg { flex: none; margin-top: 3px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; margin-top: 44px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 18px; background: var(--c); box-shadow: 0 0 14px var(--c), 0 0 4px var(--c); }
.feature h3 { font-size: 18.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }
kbd { font: 600 13px/1 ui-rounded, -apple-system, system-ui, sans-serif; color: var(--fg); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; }

/* ---------- Gallery ---------- */
/* A wrapping row rather than a grid, so a part-filled last row sits in the middle. */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }
.gallery .card { flex: 0 0 calc((100% - 3 * 16px) / 4); min-width: 0; }
@media (max-width: 1000px) { .gallery .card { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 720px) { .gallery .card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 460px) { .gallery .card { flex-basis: 100%; } }
.card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 14px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: rgba(64,255,242,.55); box-shadow: 0 0 30px rgba(64,255,242,.12); }
.card .pegboard-banner { font-size: 12px; padding: 6px 12px; }
.card h3 { text-align: center; font-size: 15.5px; margin-top: 10px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; max-width: 900px; margin-inline: auto; text-align: left; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; }
.plan.full { border-color: rgba(64,255,242,.55); background: linear-gradient(180deg, rgba(64,255,242,.08), rgba(64,255,242,.02) 40%, transparent); box-shadow: 0 0 50px rgba(64,255,242,.10); }
.plan .name { font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan.full .name { color: var(--cyan); }
.plan .price { font: 800 54px/1 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.03em; margin-top: 14px; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.plan li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin: 8px 0 0 6px; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); }
.plan .plan-cta { margin-top: auto; padding-top: 28px; }
.plan .plan-cta .button { width: 100%; justify-content: center; }

/* ---------- History ---------- */
.history { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .history { grid-template-columns: 1fr; } }
.history p { color: var(--muted); margin-top: 16px; font-size: 17.5px; }
.history p strong { color: var(--fg); }
.history img { border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(64,255,242,.08); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 16px; }

/* ---------- Closing & footer ---------- */
.closing { text-align: center; padding-bottom: 40px; }
footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 34px 0 52px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 8px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
  .sign .bulb { animation: none; opacity: .8; }
}

/* ---------- Header version badge ---------- */
.brand .ver { font: 600 13px/1 -apple-system, system-ui, sans-serif; font-style: normal; color: var(--muted); margin-left: -2px; }

/* ---------- Release line ---------- */
.release-line { font-size: 14px; color: var(--muted); margin-top: 14px; }
.release-line a { color: var(--muted); }
.release-line a:hover { color: var(--fg); }

/* ---------- Buying (hidden until launch: <body class="prelaunch">) ---------- */
.prelaunch [data-buy] { display: none !important; }
body:not(.prelaunch) [data-soon] { display: none !important; }
.plan .tagline-small { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- Learn-more links on features ---------- */
.feature a.more { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.feature a.more:hover { text-decoration: underline; }

/* ---------- What you need / Private by design ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }
.trio > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.trio .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(64,255,242,.10); border: 1px solid rgba(64,255,242,.35); color: var(--cyan); }
.trio h3 { font-size: 18px; margin-bottom: 6px; }
.trio p { color: var(--muted); font-size: 15.5px; }
.privacy-band { margin-top: 40px; border-radius: 24px; padding: clamp(28px, 5vw, 48px); border: 1px solid rgba(64,255,242,.3);
  background: radial-gradient(70% 120% at 0% 0%, rgba(64,255,242,.10), transparent 60%), var(--panel); }
.privacy-band ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
@media (max-width: 760px) { .privacy-band ul { grid-template-columns: 1fr; } }
.privacy-band li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--muted); }
.privacy-band li strong { color: var(--fg); }
.privacy-band li svg { margin-top: 3px; }

/* ---------- Maker note ---------- */
.maker { max-width: 760px; margin: 0 auto; text-align: center; }
.maker blockquote { font: italic 600 clamp(22px, 3vw, 30px)/1.35 var(--wordmark); color: var(--fg); margin-top: 18px; }
.maker .who { color: var(--muted); margin-top: 16px; font-size: 15.5px; }

/* ---------- Footer links ---------- */
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 6px; }
footer nav a { color: var(--fg); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }

/* ---------- Inner pages (help, privacy, terms, release notes, thanks) ---------- */
.page { padding: 70px 0 0; }
.page-head { max-width: 820px; }
.page-head h1 { font: 700 clamp(36px, 5vw, 56px)/1.05 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.025em; margin-top: 10px; }
.page-head p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; } }
.docs-nav { position: sticky; top: 84px; display: grid; gap: 4px; font-size: 15px; }
@media (max-width: 860px) { .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; } }
.docs-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.docs-nav a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
@media (max-width: 860px) { .docs-nav a { border: 1px solid var(--line); border-radius: 999px; } }
.prose { max-width: 720px; }
.prose section { scroll-margin-top: 84px; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); max-width: none; margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 26px; }
.prose p, .prose li { color: #c9d2d5; font-size: 17px; }
.prose p { margin-top: 12px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--fg); }
.prose .effective { color: var(--muted); font-size: 15px; margin-top: 6px; }
.prose table { border-collapse: collapse; margin-top: 14px; width: 100%; font-size: 15.5px; }
.prose td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: #c9d2d5; vertical-align: top; }
.prose td:first-child { white-space: nowrap; width: 1%; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(64,255,242,.06); border: 1px solid rgba(64,255,242,.3); color: #c9d2d5; font-size: 16px; }

/* ---------- Thank-you page ---------- */
.thanks-card { max-width: 680px; margin: 0 auto; text-align: center; background: var(--panel); border: 1px solid rgba(64,255,242,.35);
  border-radius: 26px; padding: clamp(30px, 5vw, 52px); box-shadow: 0 0 60px rgba(64,255,242,.10); }
.thanks-card h1 { font: 700 clamp(32px, 4.6vw, 46px)/1.1 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.02em; margin-top: 10px; }
.thanks-card .sub { color: var(--muted); font-size: 18px; margin-top: 12px; }
.license-key { display: block; margin: 26px auto 0; padding: 16px 18px; border-radius: 12px; background: #000; border: 1px solid var(--line-strong);
  font: 600 clamp(14px, 2.2vw, 17px)/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cyan); word-break: break-all; user-select: all; }
.thanks-card .cta { margin-top: 24px; }
.thanks-card ol { text-align: left; max-width: 480px; margin: 24px auto 0; padding-left: 22px; display: grid; gap: 10px; color: #c9d2d5; }
.thanks-card .small { color: var(--muted); font-size: 14.5px; margin-top: 22px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; margin: 26px auto 0; border: 3px solid rgba(64,255,242,.25); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
