/* nebula.newtco.app: the app's own title screen (starfield, gold-ringed planet, thin wide "Nebula") and its glassy
   rounded controls. Pages have no scripts, no trackers, no outside fonts. */
:root { --sky: #05060d; --text: #e8ecf6; --dim: #c4cad8; --faint: #8e95a8; --gold: #f0bf6a;
        --glass: rgba(18, 21, 28, .72); --edge: rgba(232, 225, 210, .2); }
* { box-sizing: border-box; }
html { background: var(--sky); }
body { margin: 0; color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 33% 72%, #fff8 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 9%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 77% 41%, #fff7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 91% 83%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 22% 94%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 51%, #fff6 50%, transparent 51%), radial-gradient(1.3px 1.3px at 68% 66%, #fff8 50%, transparent 51%),
    radial-gradient(900px 600px at 50% -10%, #141a3a 0%, transparent 70%), var(--sky);
  background-size: 310px 290px, 270px 330px, 350px 260px, 230px 310px, 390px 350px, 290px 250px, 200px 220px, 330px 370px, 100% 100%, 100% 100%; }
a { color: var(--gold); }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* top: brand plus the control-bar pill */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-weight: 200; letter-spacing: .3em; font-size: 18px; text-transform: uppercase; }
.bar { margin-left: auto; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge);
       backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar a { color: var(--dim); text-decoration: none; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.bar a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.bar a[aria-current] { color: var(--sky); background: var(--gold); }

/* hero: the title screen */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center; overflow: hidden;
        background: url(img/hero.jpg) center 40% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #05060d55 0%, transparent 30%, transparent 55%, var(--sky) 100%); }
.hero > div { position: relative; z-index: 1; padding-top: 34vh; }
.hero h1 { margin: 0; font-weight: 200; font-size: clamp(40px, 7vw, 76px); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase;
           text-shadow: 0 2px 24px #000; }
.hero p { margin: 6px auto 0; max-width: 560px; color: var(--dim); font-size: 18px; text-shadow: 0 1px 10px #000; }
.pill { display: inline-block; margin-top: 22px; padding: 10px 20px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(240, 191, 106, .55);
        color: var(--gold); text-decoration: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* sections */
section { padding: 56px 0 8px; }
h2 { margin: 0 0 6px; font-weight: 200; font-size: 30px; letter-spacing: .06em; }
.lede { color: var(--dim); font-size: 18px; max-width: 700px; margin: 0 0 26px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--edge); aspect-ratio: 16 / 9; background: #000; }
.gallery figure.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 12px; letter-spacing: .08em; color: var(--text); text-shadow: 0 1px 6px #000; }
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 22px; margin: 6px 0 0; }
.devices img { border-radius: 26px; border: 6px solid #1b1e27; box-shadow: 0 20px 60px #0009, 0 0 0 1px var(--edge); display: block; }
.devices .ipad { height: 380px; } .devices .iphone { height: 340px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { padding: 18px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); }
.card b { display: block; font-weight: 500; color: var(--gold); margin-bottom: 4px; }
.card span, .card li { color: var(--dim); font-size: 15px; }
.card ul { margin: 6px 0 0; padding-left: 18px; }

/* text pages */
.page { padding: 120px 0 10px; }
.page h1 { font-weight: 200; font-size: 40px; letter-spacing: .08em; margin: 0 0 10px; }
.page h2 { color: var(--gold); font-weight: 400; font-size: 20px; letter-spacing: 0; margin: 34px 0 6px; }
.page p, .page li, .page dd { color: #d8dbe5; }
.page .lede { color: var(--dim); }
.page main { max-width: 760px; }
dt { font-weight: 600; margin-top: 20px; } dd { margin: 4px 0 0; }
.glass { padding: 18px 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); }

/* /numbers (made by cloud/site/worker.js): stat tiles, then cards of bars and day columns; no script, native tooltips */
.numbers main { max-width: none; }
.numbers .lede { max-width: 760px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; }
.tile { padding: 16px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); }
.tile span { display: block; color: var(--dim); font-size: 14px; }
.tile strong { display: block; font-weight: 300; font-size: 44px; line-height: 1.15; color: var(--text); }
.tile small { color: var(--faint); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.grid .card, .flow .card { padding: 18px 20px 14px; }
.grid { margin-bottom: 12px; }
.flow { columns: 2; column-gap: 12px; }   /* cards of different heights pack down two columns with no gaps */
.flow .card { break-inside: avoid; margin: 0 0 12px; }
.page .card h2 { margin: 0 0 2px; font-size: 18px; }
.note { margin: 0 0 12px; color: var(--faint); font-size: 13px; line-height: 1.45; }
.empty { margin: 4px 0 6px; color: var(--faint); font-size: 14px; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 42%) 1fr; align-items: center; gap: 10px; padding: 3px 0; border-radius: 6px; }
.bars li:hover, .bars li:focus { background: rgba(255, 255, 255, .04); outline: none; }
.bars .name { font-size: 14px; color: var(--text); overflow-wrap: anywhere; line-height: 1.3; }
.bars .name small { display: block; color: var(--faint); font-size: 12px; }
.bars .track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bars i { display: block; height: 14px; min-width: 2px; background: #bd8a30; border-radius: 0 4px 4px 0; }
.bars li:hover i, .bars li:focus i { background: var(--gold); }
.bars b { font-weight: 500; font-size: 13px; color: var(--dim); white-space: nowrap; }
.cols { display: block; width: 100%; height: auto; }
.cols .gridline { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.cols .base { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.cols .tick { fill: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.cols .col { fill: #bd8a30; pointer-events: none; }
.cols .hit { fill: transparent; }
.cols .hit:hover { fill: rgba(255, 255, 255, .04); }
.page details { margin: 10px 0 2px; font-size: 13px; color: var(--faint); }
.page summary { cursor: pointer; }
.page summary:hover { color: var(--dim); }
.page table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.page th { text-align: left; font-weight: 500; color: var(--dim); padding: 4px 6px; border-bottom: 1px solid var(--edge); }
.page td { color: #d8dbe5; padding: 3px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.page td + td, .page th + th { text-align: right; font-variant-numeric: tabular-nums; }
.small { color: var(--faint); font-size: 13px; margin-top: 18px; }

footer { padding: 60px 0 40px; color: var(--faint); font-size: 13px; }
footer a { color: var(--faint); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); } .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; } .flow { columns: 1; }
  .tiles { gap: 8px; } .tile { padding: 12px 12px; } .tile span { font-size: 13px; line-height: 1.3; } .tile strong { font-size: 32px; } .tile small { font-size: 12px; }
  .devices .ipad { height: 230px; } .devices .iphone { height: 210px; } .devices img { border-width: 4px; border-radius: 18px; }
  .hero > div { padding-top: 28vh; }
}
@media (max-width: 520px) {
  .top .wrap { flex-wrap: wrap; gap: 10px; } .bar { margin-left: 0; } .brand span { font-size: 16px; }
  .hero { min-height: 540px; background: linear-gradient(180deg, transparent 50%, var(--sky) 74%), url(img/hero.jpg) 50% 8% / 210% auto no-repeat; }
  .hero > div { padding-top: 330px; } .hero p { font-size: 16px; }
  .page { padding-top: 140px; } .page h1 { font-size: 32px; }
}
