/* netlist · "一天的天色" mockup. The sky is the enamel; the light in it is driven by measured data. */
/* self-hosted open-source fonts (SIL OFL; licences in fonts/) */
@font-face { font-family: "Inter"; src: url(fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --slate: #1b1c1d;
  --slate-2: #232426;
  --cream: #efe9dd;
  --cream-2: rgba(239, 233, 221, .62);
  --line: rgba(239, 233, 221, .22);
  --copper: #c07a4a;
  --sans: "Inter", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--slate); color: var(--cream); font: 300 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
a { color: inherit; text-decoration: none; }

/* ---------- sky backdrop ---------- */
.sky { position: fixed; inset: 0; z-index: -1; background: var(--slate); overflow: hidden; }
.sky-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
/* a 16:9 frame that always covers the viewport, so % positions inside match the picture */
.sky-frame { --fw: max(100vw, 177.78vh); position: absolute; top: 50%; width: var(--fw); height: max(56.25vw, 100vh); translate: 0 -50%; container-type: size;
  /* crop so the picture's focus (--fx of its width) lands at --vx of the screen, without uncovering an edge */
  left: clamp(calc(100vw - var(--fw)), calc(var(--vx, 50vw) - var(--fx, .5) * var(--fw)), 0px); }
[data-sky="aether"] .sky-frame { --fx: .661; --vx: 64vw; }
.sky-frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-light { position: absolute; inset: 0; opacity: var(--light, 0); transition: opacity .7s ease; pointer-events: none;
  background-size: 100% 100%; mix-blend-mode: screen; }
/* the halo in the picture, lifted: same pixels, brighter, masked to the ring and the sun */
.sky-light--halo { background-image: url(assets/sky_aether.webp?v=2); filter: brightness(1.08) saturate(1.35) contrast(1.15);
  -webkit-mask: radial-gradient(circle at 66.1% 44.6%, #000 0 1.4cqw, transparent 4.5cqw, transparent 18.6cqw, #000 20.4cqw, #000 21.4cqw, transparent 23.2cqw);
          mask: radial-gradient(circle at 66.1% 44.6%, #000 0 1.4cqw, transparent 4.5cqw, transparent 18.6cqw, #000 20.4cqw, #000 21.4cqw, transparent 23.2cqw); }
/* the belt of Venus, lifted */
.sky-light--belt { background-image: url(assets/sky_metaxy.webp?v=2); filter: brightness(1.2) saturate(1.7);
  -webkit-mask: linear-gradient(to bottom, transparent 58%, #000 70%, #000 80%, transparent 88%);
          mask: linear-gradient(to bottom, transparent 58%, #000 70%, #000 80%, transparent 88%); }
.grain { position: absolute; inset: -50%; opacity: .11; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; background: linear-gradient(rgba(18, 20, 24, .42), rgba(18, 20, 24, 0)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); }
.nav-mark { display: block; line-height: 0; color: var(--cream); }
.wm { display: block; height: auto; }
.wm--nav { width: 74px; }
.wm--open { width: clamp(17rem, 44vw, 37rem); margin: 0 auto; }
.dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--copper); margin-left: .06em; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 13px; }
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- opening ---------- */
.open { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; padding: 0 var(--pad); position: relative; }
.open-mark { margin: 0; line-height: 0; color: var(--cream); }
.open-line { margin: 0; font-size: 17px; color: var(--cream-2); letter-spacing: .06em; }
.open-meta { margin: 0; color: var(--cream-2); }
.open-cue { position: absolute; bottom: 32px; left: 50%; translate: -50% 0; opacity: .5; }

/* ---------- unit ---------- */
.unit-sky { min-height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 120px var(--pad) 48px; }
.unit-hd { display: grid; gap: 10px; max-width: 38rem; text-shadow: 0 1px 24px rgba(20, 30, 50, .25); }
.unit-ix { color: var(--cream-2); }
.unit-name { margin: 8px 0 0; font: 200 clamp(3rem, 8.5vw, 8rem)/1 var(--sans); letter-spacing: .32em; margin-right: -.32em; }
.unit-kind { font-size: 12px; letter-spacing: .3em; color: var(--cream-2); }
.unit-line { margin: 18px 0 0; font-size: 19px; letter-spacing: .08em; }

/* the measured curve, drawn across the sky like a horizon line */
.probe { position: relative; display: grid; gap: 14px; }
.trace { width: 100%; height: clamp(90px, 16vh, 170px); overflow: visible; }
.trace path { fill: none; stroke: var(--cream); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: d .6s ease; filter: drop-shadow(0 0 6px rgba(255, 245, 225, .45)); }
.probe-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.probe-k { color: var(--cream-2); }
.probe-v { margin-left: auto; color: var(--cream-2); }
.probe-v b { font-weight: 400; color: var(--cream); font-size: 14px; }
.probe-note { margin: 0; color: var(--cream-2); font-size: 10px; opacity: .8; }
/* like the printed tick ring on the pedal: 11 ticks, only 0 and 10 labelled */
.ticks { display: flex; align-items: flex-end; gap: 0; }
.ticks button { position: relative; width: 22px; height: 26px; border: 0; background: none; cursor: pointer; padding: 0; color: var(--cream-2); }
.ticks button::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 1px; height: 9px; background: currentColor; transition: height .2s, background .2s; }
.ticks button.is-on { color: var(--cream); }
.ticks button.is-on::before { height: 18px; width: 2px; translate: -.5px 0; }
.ticks button:hover::before { height: 14px; }
.ticks button span { position: absolute; top: -12px; left: 50%; translate: -50% 0; font: 10px var(--mono); }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--cream-2); font: 11px var(--mono); letter-spacing: .08em; padding: 6px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.is-on { background: var(--cream); color: var(--slate); }

/* the slate plate floating on the sky: pedal + facts */
.plate { margin: 0 var(--pad) 22vh; display: grid; grid-template-columns: 5fr 6fr; background: rgba(27, 28, 29, .9); box-shadow: 0 30px 80px rgba(10, 14, 22, .35); position: relative; isolation: isolate; }
.plate-fig { margin: 0; display: grid; place-items: center; padding: clamp(28px, 4vw, 64px); background: radial-gradient(ellipse at 35% 25%, #2c2d2f, #1b1c1d 70%); }
.plate-fig img { width: 100%; max-width: 480px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 22px 44px rgba(0, 0, 0, .5); }
.plate-text { padding: clamp(28px, 4vw, 64px); display: grid; gap: 32px; align-content: start; border-left: 1px solid rgba(239, 233, 221, .08); }
.rows { margin: 0; display: grid; gap: 20px; }
.rows div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.rows dt { color: var(--cream-2); padding-top: 4px; }
.rows dd { margin: 0; font-size: 14px; color: rgba(239, 233, 221, .88); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; font-weight: 400; padding: 9px 0; border-top: 1px solid rgba(239, 233, 221, .1); vertical-align: top; }
.specs th { width: 112px; color: var(--cream-2); }
.buy { display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.buy-trial { color: var(--cream-2); }
.buy-price { margin-left: auto; font-size: 15px; }
.buy-add { border: 1px solid var(--cream); background: none; color: var(--cream); padding: 10px 18px; cursor: not-allowed; opacity: .55; }

/* ---------- later + end ---------- */
.later { min-height: 70vh; display: grid; align-content: center; gap: 28px; padding: 0 var(--pad); }
.later-k { color: var(--cream-2); }
.later-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.later-list li { padding: 18px 16px 0 0; display: grid; gap: 6px; font-size: 22px; font-weight: 200; letter-spacing: .12em; }
.later-list span { color: var(--cream-2); }
.later-list small { font-size: 12px; letter-spacing: .1em; color: var(--cream-2); }
.end { background: var(--slate); display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--pad); padding: 120px var(--pad) 40px; }
.end-col { display: grid; gap: 18px; align-content: start; }
.end-k { color: var(--cream-2); }
.end-what { font-size: 19px; margin: 0; }
.end-mail { font-size: 15px; border-bottom: 1px solid var(--line); justify-self: start; padding-bottom: 4px; }
.end-notify { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid var(--line); max-width: 640px; }
.notify-form { display: flex; gap: 12px; flex-wrap: wrap; }
.notify-in { flex: 1 1 260px; min-width: 0; background: none; border: 0; border-bottom: 1px solid var(--cream); color: var(--cream); padding: 10px 0; font-size: 15px; border-radius: 0; outline: none; }
.notify-in::placeholder { color: var(--cream-2); }
.notify-in:focus-visible { border-bottom-color: var(--copper); }
.notify-btn { border: 1px solid var(--cream); background: none; color: var(--cream); padding: 10px 22px; cursor: pointer; font-size: 14px; }
.notify-btn:hover, .notify-btn:focus-visible { border-color: var(--copper); color: var(--copper); outline: none; }
.notify-btn:disabled { opacity: .55; cursor: default; }
.notify-msg { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--copper); }
.notify-fine { margin: 0; font-size: 12px; color: var(--cream-2); }
.end-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--cream-2); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 60px; }
.end-icp { opacity: .78; transition: opacity .2s; }
.end-icp:hover { opacity: 1; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav-links a:not(:last-child) { display: none; }
  .nav-links a[href="#bundle"], .nav-links a[href="account.html"] { display: inline; }
  .unit-sky { padding-top: 96px; }
  .unit-name { letter-spacing: .22em; margin-right: -.22em; }
  .plate { grid-template-columns: 1fr; margin-bottom: 16vh; }
  .plate-text { border-left: 0; border-top: 1px solid rgba(239, 233, 221, .08); }
  .rows div { grid-template-columns: 1fr; gap: 4px; }
  .probe-v { margin-left: 0; width: 100%; }
  .later-list { grid-template-columns: 1fr 1fr; }
  .end { grid-template-columns: 1fr; }
}

/* ---------- plate material variants (mockup: ?plate=smoke|white|slate & well=1) ---------- */
.glass-smoke .plate, .glass-white .plate { overflow: hidden; border-radius: 4px; }
.glass-smoke .plate::before, .glass-white .plate::before {   /* film grain on the glass, so it isn't plastic */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glass-smoke .plate-fig, .glass-white .plate-fig { background: none; }

/* smoked glass: sky shows through as colour and brightness only */
.glass-smoke .plate { background: rgba(18, 20, 24, .5); -webkit-backdrop-filter: blur(44px) saturate(1.3) brightness(.74); backdrop-filter: blur(44px) saturate(1.3) brightness(.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 80px rgba(10, 14, 22, .28); }
.glass-smoke .plate-text { border-left-color: rgba(255, 255, 255, .08); }

/* white frosted glass (the Apple look), dark type */
.glass-white .plate { background: rgba(250, 248, 244, .30); -webkit-backdrop-filter: blur(44px) saturate(1.6); backdrop-filter: blur(44px) saturate(1.6); color: #1b1c1d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 80px rgba(10, 14, 22, .18); }
.glass-white .plate-text { border-left-color: rgba(27, 28, 29, .1); }
.glass-white .plate .rows dt, .glass-white .plate .specs th, .glass-white .plate .buy-trial { color: rgba(27, 28, 29, .55); }
.glass-white .plate .rows dd { color: rgba(27, 28, 29, .86); }
.glass-white .plate .specs th, .glass-white .plate .specs td { border-top-color: rgba(27, 28, 29, .1); }
.glass-white .plate .buy { border-top-color: rgba(27, 28, 29, .18); }
.glass-white .plate .buy-add { border-color: #1b1c1d; color: #1b1c1d; }

/* a slate well under the pedal, as in the finished photographs */
.well .plate-fig { background: radial-gradient(ellipse at 35% 25%, #2c2d2f, #1b1c1d 70%) !important; }
/* middle option: the pedal sits on a deeper pane of the same smoked glass, so the sky still shows, just darker */
.well-glass .plate-fig { background: rgba(14, 15, 18, .55); -webkit-backdrop-filter: blur(44px) brightness(.7); backdrop-filter: blur(44px) brightness(.7); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); }
.el { font-family: "Helvetica Neue", Arial, "Times New Roman", sans-serif; }

/* ---------- lights of the night units ---------- */
[data-sky="zenith"] .sky-frame { --fx: .62; --vx: 62vw; }
[data-sky="zenith"] .sky-frame img { filter: saturate(.72) brightness(.92); }
.sky-light--aurora { background-image: url(assets/sky_zenith.webp?v=2); filter: saturate(.9) brightness(1.25); transition: none; }
[data-sky="keraunos"] .sky-frame { --fx: .74; --vx: 70vw; }
.sky-light--flash { background-image: url(assets/sky_keraunos.webp?v=2); filter: brightness(1.9) saturate(1.2); transition: none;
  -webkit-mask: radial-gradient(ellipse 40cqw 38cqh at 76% 40%, #000 0 30%, transparent 100%);
          mask: radial-gradient(ellipse 40cqw 38cqh at 76% 40%, #000 0 30%, transparent 100%); }
[data-sky="pleiades"] .sky-frame { --fx: .685; --vx: 66vw; }
.sky-star { position: absolute; width: 3.2cqw; height: 3.2cqw; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(235, 242, 255, .95) 0 5%, rgba(160, 190, 255, .45) 14%, rgba(120, 160, 255, .12) 34%, transparent 62%);
  opacity: var(--light, 0); transition: opacity .5s ease, scale .5s ease; scale: calc(.6 + .7 * var(--light, 0)); }
[data-sky="pegasos"] .sky-frame { --fx: .6; --vx: 62vw; }
.sky-light--stars { background-image: url(assets/sky_pegasos.webp?v=2); filter: contrast(2.6) brightness(1.15); mix-blend-mode: lighten; }
[data-sky="baros"] .sky-frame { --fx: .7; --vx: 66vw; }
.sky-light--bands { background-image: url(assets/sky_baros.webp?v=2); filter: contrast(1.9) brightness(.95); mix-blend-mode: overlay; }

.trace .trace-ref { stroke-dasharray: 3 5; stroke-width: 1; opacity: .4; filter: none; }
.probe-dev { color: var(--cream); }
#zenith .trace path { transition: none; }
[data-sky="baros"] .sky-frame img { filter: brightness(.66) contrast(1.08) saturate(.95); }
.sky-light--bands { filter: contrast(1.9) brightness(.62); }

/* ---------- Anaklasis: the earthshine on the dark side, lifted (same pixels, masked to the disc) ---------- */
[data-sky="anaklasis"] .sky-frame { --fx: .654; --vx: 79vw; }
.sky-light--earth { background-image: url(assets/sky_anaklasis.webp?v=2); filter: brightness(2.2) saturate(.8); transition: none;
  -webkit-mask: radial-gradient(circle at 65.4% 47.6%, #000 0 13.2cqw, transparent 14cqw);
          mask: radial-gradient(circle at 65.4% 47.6%, #000 0 13.2cqw, transparent 14cqw); }

/* ---------- price + bundle ---------- */
.buy-price s { color: var(--cream-2); margin-right: 6px; }
.buy-price small { color: var(--cream-2); margin-left: 6px; }
.bundle { background: var(--slate); padding: 140px var(--pad) 120px; }
.bundle-in { display: grid; gap: 22px; justify-items: start; max-width: 720px; margin: 0 auto; }
.bundle-name { margin: 0; font: 300 clamp(40px, 7vw, 76px)/1.05 var(--sans); letter-spacing: .02em; }
.bundle-list { margin: 0; color: var(--cream-2); letter-spacing: .06em; }
.bundle-price { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.bundle-price s { color: var(--cream-2); }
.bundle-price b { font: 300 44px/1 var(--sans); color: var(--copper); }
.bundle-price span { color: var(--cream-2); }
.bundle-note { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--cream-2); }
.end-legal { grid-column: 1 / -1; margin: 40px 0 -40px; font-size: 11px; color: var(--cream-2); opacity: .8; max-width: 760px; }
@media (max-width: 860px) { [data-sky="anaklasis"] .sky-frame { --vx: 44vw; } }
