/* sisomewhere.cc: the Oscilloscope theme of the apps (app/public/app.css),
   at marketing scale. */
:root {
  color-scheme: dark;
  --bg: #03110f;
  --card: #061815;
  --card-hi: #0a221e;
  --ring: #1d5247;
  --text: #dcfff3;
  --dim: #8fc2b4;
  --faint: #5a8b7e;
  --line: #12352e;
  --good: #39ff9e;
  --needs: #ff2d55;
  --needs-soft: rgba(255, 45, 85, 0.22);
  --scale: linear-gradient(90deg, #39ff9e, #1fd3ff 55%, #4a5bff 85%, #ff2d55);
  --ink: linear-gradient(135deg, #39ff9e, #1fd3ff 55%, #4a5bff);
  --rim: linear-gradient(135deg, rgba(57, 255, 158, 0.55), rgba(31, 211, 255, 0.12) 45%, rgba(74, 91, 255, 0.4));
  --rim-hot: linear-gradient(135deg, #ff2d55, rgba(255, 45, 85, 0.25) 50%, #4a5bff);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --claude: #ff5c8a;
  --codex: #10e0a0;
  --grok: #e9e6ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 8% -8%, #0a3a2a, transparent 70%),
    radial-gradient(1000px 900px at 105% 40%, #0a2238, transparent 70%),
    radial-gradient(900px 700px at 20% 110%, #14183f, transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #1fd3ff; outline-offset: 3px; border-radius: 6px; }

.ink { background: var(--ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.engraved { font: 500 12px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0; }
.bezel {
  border: 1px solid transparent; border-radius: 16px;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--rim) border-box;
}
.bezel.hot { background: linear-gradient(var(--card-hi), var(--card-hi)) padding-box, var(--rim-hot) border-box; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; margin: 0 auto; padding: 20px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--serif); }
.brand.small { font-size: 16px; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav nav a { color: var(--dim); text-decoration: none; }
.nav nav a:hover { color: var(--text); }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: linear-gradient(135deg, #39ff9e, #1fd3ff); color: #022019;
}
.nav nav a.button { color: #022019; }
.button:hover { filter: brightness(1.08); }
.button.small { padding: 9px 14px; font-size: 14px; }
.button.ghost { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--rim) border-box; border: 1px solid transparent; color: var(--text); }
@media (max-width: 720px) { .nav nav a:not(.button) { display: none; } }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 56px 0 72px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; } }
h1 { font: 300 clamp(48px, 7.5vw, 92px)/0.98 var(--serif); letter-spacing: -0.02em; margin: 16px 0 22px; }
.lede { font-size: 20px; color: var(--dim); max-width: 34em; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--faint); font-size: 14px; margin: 22px 0 0; }

/* The demo panel: the app's own pieces, on a loop (site.js). */
.panel { padding: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-clock { font: 400 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.live { font: 12px var(--mono); color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 9px 12px 9px 9px; transition: background 0.4s; }
.dial { grid-row: span 2; width: 36px; height: 36px; position: relative; }
.dial svg { width: 36px; height: 36px; display: block; }
.dial .ring { fill: none; stroke: var(--ring); stroke-width: 3; }
.dial .arc { fill: none; stroke-width: 3; stroke-linecap: round; }
.dial .core { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--pc); }
.row.working .arc { stroke: var(--pc); stroke-dasharray: 24 200; transform-box: fill-box; transform-origin: center; animation: orbit 2.4s linear infinite; }
.row.needs .arc { stroke: var(--needs); filter: drop-shadow(0 0 4px var(--needs)); }
.row.needs .core { color: var(--needs); font-weight: 600; }
.row.needs .dial { border-radius: 50%; animation: pulse 2s ease-out infinite; }
.row.done .arc { stroke: var(--good); }
.row.done .core { color: var(--good); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--needs-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .row .arc, .row .dial { animation: none !important; } }
.row .project { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .elapsed { font: 500 13px var(--mono); color: var(--dim); }
.row .detail { grid-column: 2 / 4; font-size: 14px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.needs .detail { color: var(--needs); }
.flip { animation: flip 0.5s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .flip { animation: none; } }

.gauge-card { padding: 12px 16px 14px; border-radius: 12px; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; }
.gauge-pct { font: 500 32px/1.05 var(--mono); }
.gauge-pct small { font-size: 15px; opacity: 0.7; }
.gauge { position: relative; height: 22px; margin: 10px 0 8px; }
.gauge .scale, .gauge .lit { position: absolute; left: 0; right: 0; top: 6px; height: 10px; border-radius: 3px; background: var(--scale); }
.gauge .scale { opacity: 0.16; }
.gauge .lit { transition: clip-path 1.2s ease; }
.gauge .ticks {
  position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%);
  -webkit-mask: linear-gradient(#000 0 4px, transparent 4px 18px, #000 18px); mask: linear-gradient(#000 0 4px, transparent 4px 18px, #000 18px);
}
.gauge .needle { position: absolute; top: 0; width: 2px; height: 22px; margin-left: -1px; border-radius: 1px; transition: left 1.2s ease, background 1.2s ease, box-shadow 1.2s; }
.resets { font: 13px var(--mono); color: var(--dim); }

/* Why SI */
.why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: baseline; }
.why-text { font: 300 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); margin: 0; }
.why-text em { font-style: italic; }
@media (max-width: 720px) { .why { grid-template-columns: 1fr; gap: 10px; } }

.section { padding: 88px 0 0; }
h2 { font: 300 clamp(34px, 4.4vw, 52px)/1.05 var(--serif); letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 19px; font-weight: 600; margin: 18px 0 8px; }
.section-lede { color: var(--dim); font-size: 19px; max-width: 40em; margin: 0 0 36px; }

/* Instruments */
.instruments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .instruments { grid-template-columns: 1fr; } }
.instrument { padding: 18px 20px 22px; }
.instrument p { color: var(--dim); margin: 0; }
.screen { height: 210px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: #000; }
.desk-face { width: 82%; background: var(--card); border: 1px solid var(--ring); border-radius: 10px; padding: 14px 16px; }
.desk-row { display: flex; justify-content: space-between; align-items: baseline; font: 500 30px var(--sans); color: var(--needs); }
.desk-row.dim { font: 14px var(--sans); color: var(--dim); margin-top: 8px; }
.leds { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 10px; }
.leds i { height: 12px; border-radius: 2px; }
.leds i:nth-child(-n+5) { background: #39ff9e; }
.leds i:nth-child(n+6):nth-child(-n+11) { background: #1fd3ff; }
.leds i:nth-child(n+12):nth-child(-n+16) { background: #3a90ff; }
.leds i:nth-child(n+17):nth-child(-n+18) { background: #6b55ff; }
.leds i.hot { background: #ff2d55; }
.phone { background: radial-gradient(400px 260px at 30% 0%, #0b2e29, #000 80%); flex-direction: column; display: flex; justify-content: center; gap: 16px; }
.lock-time { font: 300 54px/1 var(--sans); text-align: center; color: #eafff7; }
.lock-widget { display: flex; gap: 10px; align-items: center; margin: 0 auto; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.lock-widget div { display: grid; font-size: 13px; }
.lock-widget strong { font-size: 14px; }
.lock-widget span { color: #b9dcd2; }
.glasses { background: #000; }
.hud { display: grid; gap: 4px; font: 13px/1.35 var(--mono); color: rgba(64, 255, 94, 0.75); width: 86%; border: 1px solid rgba(64, 255, 94, 0.3); border-radius: 6px; padding: 12px 14px; }
.hud-head { font: 500 17px var(--sans); color: #40ff5e; margin-bottom: 4px; }
.hud-dim { color: rgba(64, 255, 94, 0.45); font-size: 12px; }

/* Works with */
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0 24px; }
.tools li { font: 500 15px var(--mono); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.tools li:nth-child(1) { color: var(--claude); }
.tools li:nth-child(2) { color: var(--codex); }
.tools li:nth-child(3) { color: var(--grok); }
.tools li:nth-child(4) { color: #6f9bff; }

/* How */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; }
.step p { color: var(--dim); margin: 0; }
.step-n { font: 500 13px var(--mono); color: var(--bg); background: var(--ink); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }

/* Privacy */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 20px; }
@media (max-width: 900px) { .points { grid-template-columns: 1fr; gap: 8px; } }
.point { border-top: 1px solid var(--ring); }
.point p { color: var(--dim); margin: 0; }

/* Get it */
.get { margin-top: 88px; padding: 36px; }
.get p { color: var(--dim); max-width: 40em; }
.code { background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 18px 0 24px; }
.code code { font: 14px/1.6 var(--mono); color: var(--text); }

main { padding-bottom: 72px; }

.footer { max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 13px; }

.footer a { color: var(--dim); text-decoration-color: var(--line); }
.footer a:hover { color: var(--text); }
.footer-brand, .footer-meta { display: grid; gap: 6px; }
.footer-meta { text-align: right; }
.tagline { font: 300 italic 15px var(--serif); color: var(--dim); }
@media (max-width: 720px) { .footer-meta { text-align: left; } }

/* The privacy page: one readable column. */
.doc { max-width: 720px; padding-top: 32px; }
.doc h1 { font: 300 clamp(44px, 6vw, 72px)/1 var(--serif); margin: 12px 0 18px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 10px; }
.doc .lede { color: var(--dim); font-size: 19px; }
.doc p, .doc li { color: var(--dim); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc a, .more a { color: var(--text); text-decoration-color: var(--ring); }
.more { margin-top: 28px; font-size: 16px; }
