/* eclipser.app — the product's own palette. No framework, no external font, no network request. */
:root {
  color-scheme: dark;
  --ink: #0b0e14;
  --graphite: #141a23;
  --raise: #1b222d;
  --line: #262f3d;
  --line-soft: #1e2735;
  --frost: #eef2f7;
  --body: #b9c3d1;
  --slate: #7f8b9b;
  --aqua: #73d1c9;
  --amber: #e7a75d;
  --measure: 62ch;
  --serif: "Iowan Old Style", Baskerville, Georgia, serif;
  --pad: clamp(20px, 4vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--frost); scroll-behavior: smooth; }
body {
  margin: 0; line-height: 1.62; -webkit-font-smoothing: antialiased;
  /* Two very soft pools of colour so the page is not a flat black rectangle. */
  background:
    radial-gradient(900px 520px at 78% -8%, rgb(115 209 201 / .10), transparent 70%),
    radial-gradient(760px 460px at 6% 4%, rgb(231 167 93 / .07), transparent 68%),
    var(--ink);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.022em; line-height: 1.08; }
p { color: var(--body); }
a { color: var(--aqua); text-underline-offset: .22em; }
a:focus-visible, select:focus-visible, summary:focus-visible,
input:focus-visible, label:focus-within { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  padding: 1px 5px; border-radius: 4px; background: rgb(231 167 93 / .12); color: var(--amber); }
img { max-width: 100%; height: auto; }
ul { padding-left: 0; }

.skip { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 9px 13px;
  background: var(--frost); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }

/* ── shell ─────────────────────────────────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad); border-bottom: 1px solid var(--line-soft);
  background: rgb(11 14 20 / .78); backdrop-filter: blur(12px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--frost);
  font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; }
.wordmark img { width: 28px; height: 28px; }
.masthead nav { display: flex; align-items: center; gap: 10px; }
.lang { min-height: 38px; max-width: 42vw; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--graphite); color: var(--frost); font-size: 14px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px;
  padding: 0 16px; border-radius: 9px; border: 1px solid var(--aqua); color: var(--aqua);
  text-decoration: none; font-weight: 600; white-space: nowrap; }
.cta:hover { background: rgb(115 209 201 / .12); }
.cta.big { min-height: 54px; padding: 0 30px; font-size: 17px; background: var(--aqua);
  color: #062522; border-color: var(--aqua); box-shadow: 0 12px 34px rgb(115 209 201 / .22); }
.cta.big:hover { filter: brightness(1.07); }
main { width: min(100%, 1180px); margin: 0 auto; padding: 0 var(--pad); }

/* ── hero + live demonstration ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); gap: clamp(30px, 5vw, 62px);
  align-items: center; padding: clamp(46px, 7vw, 88px) 0 clamp(40px, 6vw, 70px); }
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.3vw, 56px); }
.lede { max-width: var(--measure); margin: 0 0 30px; color: #ccd5e2; font-size: clamp(16px, 1.4vw, 19px); }
.actions { margin: 0; }

.demo { display: grid; gap: 12px; }
.demo-window { border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--graphite); box-shadow: 0 30px 70px rgb(0 0 0 / .55); }
.demo-chrome { display: flex; gap: 7px; padding: 11px 14px; background: #10151d;
  border-bottom: 1px solid var(--line); }
.demo-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #2f3846; }

/* One container drives everything, as the extension does: mode switches the palette, --t scales
   type, --d dims media. Media is dimmed independently of text so the difference is visible. */
.demo-page { padding: 24px 22px 26px; font-size: calc(15px * var(--t) / 100);
  background: var(--page-bg); color: var(--page-fg); transition: background .25s, color .25s; }
.demo[data-mode="dark"] .demo-page { --page-bg: #0d1117; --page-fg: #e6ebf2; --card: #161d27; --edge: #273040; }
.demo[data-mode="soft"] .demo-page { --page-bg: #23262b; --page-fg: #dfe3e8; --card: #2c3036; --edge: #3a3f47; }
.demo[data-mode="off"]  .demo-page { --page-bg: #ffffff; --page-fg: #16181d; --card: #f1f3f6; --edge: #dfe3ea; }
.demo-page h3 { margin: 0 0 9px; font-size: 1.45em; color: var(--page-fg); }
.demo-page p { margin: 0 0 15px; color: var(--page-fg); opacity: .84; }
.demo-photo { height: clamp(120px, 17vw, 158px); border-radius: 11px; border: 1px solid var(--edge);
  background: conic-gradient(from 210deg at 30% 30%, #ff9a3c, #ff5f6d, #7b5cff, #23d5ab, #ffd166, #ff9a3c);
  filter: brightness(calc(1 - var(--d) / 100)); transition: filter .25s; }
.demo-card { margin-top: 15px; padding: 11px 13px; border: 1px solid var(--edge); border-radius: 10px;
  background: var(--card); font-size: .9em; color: var(--page-fg); opacity: .9; }

.demo-controls { display: grid; gap: 13px; padding: 15px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: rgb(20 26 35 / .82); }
.demo-controls fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin: 0; padding: 0; border: 0; }
.demo-controls legend { padding: 0 0 8px; color: var(--slate); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; }
.demo-controls fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.demo-controls fieldset span { display: block; padding: 9px 8px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--raise); text-align: center; font-size: 13.5px;
  color: var(--body); cursor: pointer; }
.demo-controls fieldset input:checked + span {
  border-color: var(--aqua); color: var(--aqua); background: rgb(115 209 201 / .1); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center;
  color: var(--slate); font-size: 12.5px; }
.slider output { color: var(--amber); font-family: ui-monospace, monospace; font-size: 12.5px; }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--aqua); min-height: 24px; }

/* ── differentiator band ───────────────────────────────────────────────────────────────────── */
.band { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.band > div { padding: 26px 24px; background: var(--graphite); }
.band h2 { margin: 0 0 9px; color: var(--aqua); font-family: inherit; font-size: 13px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.band p { margin: 0; font-size: 15px; }

/* ── sections ──────────────────────────────────────────────────────────────────────────────── */
.panel { padding: clamp(48px, 7vw, 84px) 0; }
.panel > h2 { max-width: 20ch; margin: 0 0 28px; font-size: clamp(24px, 2.9vw, 34px); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  border: 1px solid var(--line); border-radius: 13px; background: var(--graphite);
  box-shadow: 0 18px 44px rgb(0 0 0 / .4); }
.shots figcaption { margin-top: 11px; color: var(--slate); font-size: 13.5px; line-height: 1.5; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 34px; margin: 0; list-style: none; }
.features li { padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line-soft);
  color: var(--body); font-size: 15px; position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: 25px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); opacity: .75; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tier { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--graphite); }
.tier.lead { border-color: rgb(115 209 201 / .55); background:
  linear-gradient(180deg, rgb(115 209 201 / .07), transparent 42%), var(--graphite); }
.tier-name { margin: 0 0 8px; color: var(--slate); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; }
.amount { margin: 0 0 4px; color: var(--frost); font-family: var(--serif); font-size: 42px; line-height: 1; }
.amount small { font-family: inherit; font-size: 15px; color: var(--slate); }
.alt { margin: 0 0 18px; color: var(--slate); font-size: 13.5px; }
.tier ul { margin: 10px 0 0; list-style: none; }
.tier li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line-soft);
  color: var(--body); font-size: 14.5px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--aqua); opacity: .7; }
.tier-cta { margin: 22px 0 0; }
.tier-cta .cta { width: 100%; min-height: 46px; }

details { border-top: 1px solid var(--line-soft); }
details:last-of-type { border-bottom: 1px solid var(--line-soft); }
summary { padding: 17px 0; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--amber); font-family: ui-monospace, monospace; }
details[open] summary::before { content: "\2212"; }
details p { max-width: var(--measure); margin: 0 0 18px 24px; color: var(--slate); font-size: 15px; }

.prose { max-width: var(--measure); padding: 48px 0; }
.prose h2 { font-size: 28px; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose li { margin: 6px 0 6px 1.2em; color: var(--body); }

footer { width: min(100%, 1180px); margin: 30px auto 0; padding: 26px var(--pad) 48px;
  border-top: 1px solid var(--line-soft); color: var(--slate); font-size: 13.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
footer a { color: var(--slate); }
footer a:hover { color: var(--aqua); }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-page, .demo-photo { transition: none; }
}
