/* zone.net.au + app.zone.net.au: one stylesheet for index.html and apps.html.
   Look: a Mac app in dark mode, in the showtimecoda.com colours: ink-tinted darks, system font,
   hairlines, one blue accent, and a fan of laser beams in the front view's header. */
:root {
  --win: #0b0d14;
  --side: #0e111a;
  --panel: #11141c;
  --hover: #1b2030;
  --line: #232938;
  --text: #eef0f5;
  --dim: #a3a9b8;
  --faint: #8089a0;
  --accent: #5aa9ff; /* the showtimecoda.com blue */
  --accent2: #3d8fef;
  --on-accent: #04121f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--win);
  color: var(--text);
  font: 400 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(90, 169, 255, 0.4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

/* sidebar */
.side {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--side); border-right: 1px solid #000; padding: 22px 10px 16px;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 18px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(90, 169, 255, 0.7);
}
.brand i { font-style: normal; color: var(--accent); }
.side-group { margin-bottom: 18px; }
.side-head { padding: 0 10px 5px; font-size: 11px; font-weight: 600; color: var(--faint); }
.side-item {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 6px 10px; border: 0; border-radius: 6px; background: none;
  font-size: 13px; text-align: left; color: var(--text); cursor: pointer;
}
.side-item span { color: var(--faint); font-size: 12px; }
.side-item:hover { background: rgba(255, 255, 255, 0.06); }
.side-item.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* content */
.main { max-width: 1060px; width: 100%; padding: 30px 36px 28px; display: flex; flex-direction: column; min-height: 100vh; }
.top { margin-bottom: 22px; }
.top h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.top p { margin-top: 4px; color: var(--dim); font-size: 14px; }

/* the front view's header: a projector throwing a fan of beams across a dark stage */
.hero {
  position: relative; overflow: hidden; margin-bottom: 28px; padding: 44px 32px 40px;
  border-radius: 14px; background: #080a10; box-shadow: inset 0 0 0 1px var(--line);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080a10 0%, rgba(8, 10, 16, 0.7) 38%, transparent 78%); }
.hero h1, .hero p { z-index: 1; }
.hero h1 { position: relative; font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -0.045em; line-height: 1; }
.hero h1 span { color: var(--accent); }
.hero p { position: relative; margin-top: 12px; max-width: 30em; font-size: 16px; color: #c3c8d4; }
.beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.beams line { stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; transform-origin: 100% 100%; transform-box: view-box; }
.beams .haze { fill: url(#haze); }
.beams .src { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .beams line { animation: sweep 7s ease-in-out infinite alternate; }
  .beams line:nth-of-type(2n) { animation-duration: 9s; animation-direction: alternate-reverse; }
  .beams line:nth-of-type(3n) { animation-duration: 5.5s; }
}
@keyframes sweep { from { transform: rotate(-2.5deg); } to { transform: rotate(3deg); } }

/* the two headline (paid) products */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.feature {
  display: flex; flex-direction: column; padding: 20px 22px 18px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(90, 169, 255, 0.13), rgba(90, 169, 255, 0.02) 55%), var(--panel);
  box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.32);
}
.feature:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 0 34px rgba(90, 169, 255, 0.18); }
.feature-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.feature .icon { width: 60px; height: 60px; border-radius: 14px; color: var(--on-accent); background: linear-gradient(180deg, var(--accent), var(--accent2)); box-shadow: 0 0 22px rgba(90, 169, 255, 0.35); }
.feature .icon svg { width: 30px; height: 30px; }
.badge {
  padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.45);
  color: var(--accent); font: 600 10.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase;
}
.feature-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.feature-pitch { margin: 6px 0 18px; color: #c3c8d4; font-size: 14px; line-height: 1.5; }
.feature-go {
  margin-top: auto; align-self: flex-start; padding: 8px 16px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700;
}
.feature:hover .feature-go { filter: brightness(1.08); }

.group { margin-bottom: 26px; }
.group h2 {
  font: 600 11px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }

.cell {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 8px; margin: 0 -8px; border-radius: 10px; position: relative;
}
.cell::after { content: ""; position: absolute; left: 74px; right: 8px; bottom: 0; border-bottom: 1px solid var(--line); }
.cell:hover { background: var(--hover); }
.cell:hover::after { border-color: transparent; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(180deg, #232938, #171b26);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.cell:hover .icon {
  color: var(--on-accent); background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 22px rgba(90, 169, 255, 0.45);
}
.icon svg { width: 26px; height: 26px; }
.cell-text { min-width: 0; }
.cell-name { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cell-tag { display: block; color: var(--dim); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.cell-go { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; }
.open {
  padding: 4px 16px; border-radius: 999px; background: rgba(90, 169, 255, 0.13);
  color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.cell:hover .open { background: var(--accent); color: var(--on-accent); }
.note { color: var(--faint); font-size: 10.5px; white-space: nowrap; }

.more {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 16px; margin-bottom: 26px; border-radius: 10px; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); font-size: 13px;
}
.more b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.more:hover { background: var(--hover); }
.chev { font-size: 22px; color: var(--faint); line-height: 1; }

/* About / Feedback / Donate */
.panel { max-width: 640px; background: var(--panel); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px; }
.rows .row { padding: 14px 16px; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
.rows h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.rows p { color: var(--dim); font-size: 13px; }
.form, .donate { padding: 16px; }
.form label { display: block; margin-top: 12px; }
.form label span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
select, textarea {
  width: 100%; padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0d14; color: var(--text); font: inherit; resize: vertical;
}
select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.25); }
.btn {
  margin-top: 14px; padding: 7px 16px; border: 0; border-radius: 6px; background: var(--accent);
  color: var(--on-accent); font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn:disabled { background: rgba(255, 255, 255, 0.08); color: var(--faint); cursor: default; }
.sent { padding: 28px 0; text-align: center; font-weight: 600; }
.donate p { margin-bottom: 10px; }
.donate a { color: var(--accent); }
.quiet { color: var(--dim); font-size: 13px; }
.small { font-size: 11px; margin: 10px 0 0 !important; text-align: center; }
.paypal { margin-top: 16px; }
.paypal-slot { max-width: 400px; margin: 0 auto; }

.foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: 12px;
}
.foot a:hover { color: var(--text); }
/* the small empty button to the other apps (app.zone.net.au): there, but not obvious */
.quiet-apps {
  display: inline-block; width: 14px; height: 14px; margin-left: 12px; vertical-align: -3px;
  border: 1px solid var(--line); border-radius: 3px;
}
.quiet-apps:hover, .quiet-apps:focus-visible { border-color: var(--faint); }

/* phones and narrow windows: the sidebar becomes a bar of tabs along the top */
@media (max-width: 760px) {
  .shell { display: block; }
  .side {
    position: sticky; z-index: 10; height: auto; padding: 12px 16px 10px; border-right: 0; border-bottom: 1px solid #000;
    background: rgba(14, 17, 26, 0.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  }
  .brand { padding: 0 0 10px; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-group { display: flex; gap: 6px; margin: 0; }
  .side-head { display: none; }
  .side-item { width: auto; white-space: nowrap; gap: 5px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
  .main { padding: 20px 16px 24px; min-height: 0; }
  .top h1 { font-size: 24px; }
  .hero { padding: 30px 20px 28px; margin-bottom: 22px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .cells { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .cell, .side-item, .open, .more { transition: background-color 0.12s ease, color 0.12s ease; }
}
