/* widemore.page — no frameworks, no webfonts, no trackers. The page speaks
   the extension's language: dark glass, one teal, the toast's monospace. */

:root {
  --ink: #0e1013;
  --panel: #14161a;
  --well: #1c2129;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e6ebee;
  --dim: #8a939e;
  --teal: #2bbf9f;
  --core: #54d3b7;
  --paper: #f7f5f0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(43, 191, 159, 0.35); }

/* ---- layout ---- */

/* horizontal-only, so it never fights section's vertical padding */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: max(24px, 4vw);
  padding-right: max(24px, 4vw);
}

section { padding: 72px 0; }

/* ---- header ---- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(24px, 4vw);
}
.wordmark { font: 600 17px var(--mono); letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; gap: 20px; font: 400 13px var(--mono); }
.top nav a { color: var(--dim); }
.top nav a:hover { color: var(--teal); text-decoration: none; }
.top nav a.btn { color: var(--ink); }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  font: 600 14px var(--mono);
  color: var(--ink);
  background: var(--teal);
  border: 0;
  border-radius: 9px;
  padding: 12px 22px;
  cursor: pointer;
}
.btn:hover { background: var(--core); text-decoration: none; }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.dim {
  background: var(--well);
  color: var(--dim);
  cursor: default;
}
.btn.dim:hover { background: var(--well); }

/* ---- hero ---- */

.hero { padding-top: 48px; padding-bottom: 64px; }
.hero h1 {
  font: 600 clamp(2.4rem, 6.5vw, 4.6rem)/1.12 var(--mono);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .sub {
  max-width: 58ch;
  font-size: 18px;
  color: var(--dim);
  margin-bottom: 44px;
}
.hero .sub strong { color: var(--text); font-weight: 500; }

/* ---- the demo: a fake browser with real rails ---- */

.browser {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 11px; height: 11px; border-radius: 6px; background: #3a4048; }
.dots span:nth-child(1) { background: #e0605c; }
.dots span:nth-child(2) { background: #e0aa39; }
.dots span:nth-child(3) { background: #35b455; }
.urlbar {
  flex: 1;
  max-width: 460px;
  font: 400 12px var(--mono);
  color: var(--dim);
  background: var(--well);
  border-radius: 7px;
  padding: 5px 12px;
}

.demo-page {
  position: relative;
  height: min(460px, 58vh);
  background: var(--paper);
  overflow: hidden;
  font-size: 10.5px;
  transition: font-size 0.5s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.demo-page.zoomed { font-size: 17px; }

.demo-col {
  width: 38%;
  margin: 2.6em auto 0;
  transition: width 0.5s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.demo-page.zoomed .demo-col { width: 86%; }

/* skeleton text: reads as an article at any width */
.tl { height: 0.6em; border-radius: 0.3em; background: #dbd6c9; margin: 0.62em 0; }
.tl.h { height: 1.3em; width: 62%; background: #c6c0ae; margin: 0 0 1em; }
.tl.w95 { width: 95%; }
.tl.w88 { width: 88%; }
.tl.w75 { width: 75%; }
.tl.w60 { width: 60%; }
.tl.gap { margin-top: 1.5em; }

/* the rails, at the demo's scale, with the extension's real behaviour */
.demo-rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36%;
  width: 22px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  cursor: pointer;
  transition: height 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.demo-rail.left { left: 0; }
.demo-rail.right { right: 0; }
.demo-rail:hover { height: 58%; }
.demo-rail .bar {
  position: relative;
  width: 15px;
  overflow: hidden;
  /* far bolder than the real resting rail, on purpose: the demo's first job
     is being found. The product can afford subtle; the lesson cannot. */
  background: rgba(43, 191, 159, 0.55);
  box-shadow:
    0 0 0 1px rgba(43, 191, 159, 0.6),
    0 0 14px rgba(43, 191, 159, 0.3);
  transition: background 0.16s ease;
}
.demo-rail.left .bar { border-radius: 0 8px 8px 0; }
.demo-rail.right .bar { border-radius: 8px 0 0 8px; }
.demo-rail:hover .bar { background: rgba(43, 191, 159, 0.75); }

/* the invitation: floats beside the left rail, where the scanning eye
   starts, until the first fire */
.demo-hint {
  position: absolute;
  left: 46px;
  top: 50%;
  font: 500 12.5px var(--mono);
  color: #0b2b23;
  background: var(--core);
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  white-space: nowrap;
  animation: nudge 1.6s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.demo-hint.gone { opacity: 0; }
@keyframes nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-9px); }
}
.demo-rail .fill {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: center;
  background: linear-gradient(
    to bottom,
    rgba(43, 191, 159, 0.25) 0%,
    rgba(43, 191, 159, 0.85) 32%,
    var(--core) 50%,
    rgba(43, 191, 159, 0.85) 68%,
    rgba(43, 191, 159, 0.25) 100%
  );
}
.demo-rail.arming .fill {
  transform: scaleY(1);
  transition: transform 320ms linear; /* linear: it is a countdown */
}
.demo-rail.arming .bar {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(43, 191, 159, 0.65);
  transition: box-shadow 320ms ease-in;
}

.demo-toast {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 12px var(--mono);
  color: #fff;
  background: rgba(20, 20, 22, 0.92);
  padding: 6px 12px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.demo-toast.show { opacity: 1; }

.caption {
  margin-top: 18px;
  font: 400 13px var(--mono);
  color: var(--dim);
  text-align: center;
}
.caption em { font-style: normal; color: var(--teal); }

/* ---- section headings: a rail lying on its side ---- */

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 15px var(--mono);
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 36px;
}
h2::before {
  content: "";
  width: 30px;
  height: 7px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(to right, var(--core), rgba(43, 191, 159, 0.25));
}

/* ---- the three beats; each marker is the rail in that beat's state ---- */

.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.beat h3 { font: 600 16px var(--mono); margin: 16px 0 8px; }
.beat p { color: var(--dim); font-size: 15px; max-width: 34ch; }
.marker {
  display: inline-block;
  width: 9px;
  height: 38px;
  border-radius: 0 5px 5px 0;
}
.marker.waiting { background: rgba(128, 128, 128, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.marker.armed {
  background: linear-gradient(to bottom, rgba(43, 191, 159, 0.3), var(--core), rgba(43, 191, 159, 0.3));
  box-shadow: 0 0 16px rgba(43, 191, 159, 0.55);
}
.marker.resting { background: rgba(128, 128, 128, 0.2); }

/* ---- presets strip ---- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.chip {
  width: 84px;
  text-align: center;
  font: 400 11px var(--mono);
  color: var(--dim);
}
.chip .mini {
  position: relative;
  height: 46px;
  border-radius: 8px;
  background: var(--well);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}
.chip .mrail {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
}
.chip.signal .mrail { width: 8px; border-radius: 0 4px 4px 0; background: var(--teal); }
.chip.glass .mrail { width: 6px; border-radius: 0 3px 3px 0; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.55); }
.chip.ghost .mrail { width: 4px; border-radius: 0 2px 2px 0; background: #79a8a0; opacity: 0.35; height: 21px; }
.chip.ember .mrail { width: 8px; border-radius: 0 4px 4px 0; background: #f59e43; }
.chip.frame .mrail { width: 3px; border-radius: 0; background: var(--teal); opacity: 0.5; height: 40px; }
.chip.beacon .mrail { width: 11px; border-radius: 0 5px 5px 0; background: var(--teal); height: 30px; }

.custom p { color: var(--dim); max-width: 72ch; }
.custom p strong { color: var(--text); font-weight: 500; }
kbd {
  font: 500 13px var(--mono);
  color: var(--text);
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 7px;
}

/* ---- trust ---- */

.trust ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font: 400 14px var(--mono);
  color: var(--dim);
}
.trust li::before { content: "· "; color: var(--teal); }

/* ---- get it ---- */

.get { border-top: 1px solid var(--line); }
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.get h3 { font: 600 16px var(--mono); margin-bottom: 10px; }
.get p { color: var(--dim); font-size: 15px; margin-bottom: 18px; max-width: 44ch; }

form.signup { display: flex; gap: 10px; max-width: 420px; }
form.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  font: 400 14px var(--mono);
  color: var(--text);
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 14px;
}
form.signup input[type="email"]::placeholder { color: var(--dim); }
form.signup input[type="email"]:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
/* the honeypot lives off-screen for everyone with a viewport */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 22px; font: 400 13px var(--mono); color: var(--teal); margin-top: 10px; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--line);
  padding: 28px max(24px, 4vw) 40px;
  font: 400 12.5px var(--mono);
  color: var(--dim);
}
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--teal); text-decoration: none; }
footer .wink { color: #565e67; }
footer .wink a { color: inherit; }
footer .wink a:hover { color: var(--teal); }

/* ---- small screens ---- */

@media (max-width: 780px) {
  section { padding: 52px 0; }
  .beats { grid-template-columns: 1fr; gap: 28px; }
  .get-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-page { height: 340px; }
  form.signup { flex-direction: column; }
}

/* ---- reduced motion: states still change, they just don't perform ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-hint { animation: none; transform: translateY(-50%); }
  .demo-page, .demo-col, .demo-rail, .demo-rail .bar { transition: none; }
  .demo-rail.arming .fill { transition: transform 320ms linear; } /* the countdown stays */
  .demo-rail.arming .bar { transition: none; }
}
