/* TabDesk site.
   The palette keeps the app's accents (renderer/styles.css) on a lifted base:
   steel blue rather than the app's near-black, so the page reads lighter than
   the product without losing its identity. The terminal replica goes the other
   way — darker than the page — because a screen inside a room is darker than
   the room, and that contrast is what makes it read as a terminal at all.

   One rule the product enforces and so does this page: green is reserved for
   "this terminal is waiting for you". Nothing else here is allowed to be green,
   or the signal stops meaning anything. */

:root {
  --ink:      #131c30;
  --ink-2:    #1b2540;
  --panel:    rgba(27, 37, 64, .72);
  --line:     #2a3f6b;
  --line-soft:#223458;

  --term:     #0a1224;   /* inside the terminal replica */

  --text:  #eaf4ff;
  --dim:   #9dbbdd;
  --faint: #7e9ac2;

  --blue:  #2b8cff;
  --cyan:  #34e2ff;
  --green: #3ef07a;

  --mono: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, "Segoe UI", Ubuntu, Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(1100px 760px at 82% -12%, rgba(52,226,255,.09), transparent 62%),
    radial-gradient(880px 680px at -8% 108%, rgba(43,140,255,.10), transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration-color: rgba(52,226,255,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--dim);
  background: rgba(43,140,255,.10);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---- Top bar --------------------------------------------------------------
   Mirrors the app's own rail header: wordmark left, nothing loud. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px var(--gutter);
  max-width: var(--measure);
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.wordmark img { display: block; border-radius: 6px; }

.topbar-right { display: flex; align-items: center; gap: 22px; }

.topnav { display: flex; gap: 22px; font-family: var(--mono); font-size: 13px; }
.topnav a { color: var(--faint); text-decoration: none; }
.topnav a:hover { color: var(--cyan); }

/* Sign-in slot. Same type as the nav so it reads as one row, but the name is
   brighter than the section links: it is the one thing here about you. */
.sso-slot { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.sso-slot a { color: var(--faint); text-decoration: none; }
.sso-slot a:hover { color: var(--cyan); }
.sso-slot .sso-name { color: var(--dim); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }

/* ---- Hero ---------------------------------------------------------------- */
/* The headline runs the full measure and the columns sit under it: set in mono,
   a line of this length simply has nowhere to go inside half a page. */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) var(--gutter) clamp(48px, 8vw, 96px);
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-top: clamp(26px, 4vw, 40px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}

.caret {
  display: inline-block;
  width: .42em;
  height: .86em;
  margin-left: .26em;
  vertical-align: -.08em;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(52,226,255,.6);
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }

.lede { margin: 0 0 16px; max-width: 48ch; }
.sub { margin: 0; max-width: 48ch; color: var(--dim); font-size: 15.5px; }

/* ---- The rail replica ----------------------------------------------------
   Same states the app has: idle, busy (pulsing), done (green). */
.demo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--term);
  box-shadow:
    inset 0 0 0 1px rgba(52,226,255,.07),
    0 30px 60px -30px rgba(0,0,0,.75),
    0 0 34px -14px rgba(43,140,255,.45);
  overflow: hidden;
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(19,28,48,.55);
}
.dot-win { width: 9px; height: 9px; border-radius: 50%; background: #24406e; }
.demo-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.demo-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 268px; }

.demo-rail {
  list-style: none;
  margin: 0;
  padding: 12px 10px;
  border-right: 1px solid var(--line-soft);
  background: rgba(6,11,24,.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dtab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.dtab .dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2b4a80;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.dtab .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dtab.is-busy { color: var(--dim); border-color: rgba(43,140,255,.28); background: rgba(43,140,255,.06); }
.dtab.is-busy .dot { background: var(--blue); box-shadow: 0 0 8px rgba(43,140,255,.85); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .28 } }

.dtab.is-done { color: var(--text); border-color: rgba(62,240,122,.35); background: rgba(62,240,122,.07); }
.dtab.is-done .dot { background: var(--green); box-shadow: 0 0 10px rgba(62,240,122,.9); animation: none; }

.demo-term {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--dim);
  overflow: hidden;
}
.demo-lines div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-lines .hash { color: var(--blue); }
.demo-lines .ok { color: var(--green); }

/* Lives inside the prompt line, where a cursor belongs. */
.term-caret {
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1.15s steps(1, end) infinite;
}

.demo-caption {
  border-top: 1px solid var(--line-soft);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--faint);
  background: rgba(19,28,48,.5);
}
.demo-caption.is-turn { color: var(--green); }

/* ---- Bands --------------------------------------------------------------- */
.band {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.band-last { padding-bottom: clamp(56px, 9vw, 104px); }

h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.1vw, 2.05rem);
  letter-spacing: -.025em;
  margin: 0 0 18px;
}

.band-lede { margin: 0 0 30px; max-width: 62ch; color: var(--dim); }

/* ---- Feature cards ------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px;
}

.card {
  padding: 20px 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
}
.card p { margin: 0; font-size: 15.5px; color: var(--dim); }

/* The one card the signal rule applies to. */
.card-signal { border-color: rgba(62,240,122,.24); }
.card-signal:hover { border-color: rgba(62,240,122,.45); }
.card-signal h3 { color: var(--green); }

/* ---- Questions -----------------------------------------------------------
   Two columns of question-and-answer, each answer whole enough to stand on its
   own if it is lifted out of the page. */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px 44px;
}
.qa { max-width: 62ch; }
.qa h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 8px;
}
.qa p { margin: 0; font-size: 15.5px; color: var(--dim); }

/* ---- Screenshot ---------------------------------------------------------- */
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.95), 0 0 40px -18px rgba(43,140,255,.45);
}
.shot figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---- Specs --------------------------------------------------------------- */
.specs { margin: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.specs > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 20px;
  background: var(--ink-2);
}
.specs dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.specs dd { margin: 0; font-size: 15.5px; color: var(--dim); }

/* ---- Access -------------------------------------------------------------- */
.mailto {
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(43,140,255,.08);
  text-decoration: none;
}
.mailto:hover { border-color: var(--cyan); background: rgba(52,226,255,.12); }

/* ---- Footer -------------------------------------------------------------- */
.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px var(--gutter) 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero { padding-top: 8px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .topnav { display: none; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 460px) {
  .demo-body { grid-template-columns: 132px minmax(0, 1fr); }
  .dtab { font-size: 11px; padding: 6px 7px; }
}

/* The demo is a loop, not information the reader would miss: stopped, it holds
   the frame that matters — one tab green, waiting. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Installationskommandot i Access-bandet. Egen bakgrund snarare an <code>:s,
   for att en hel rad ska lasas som en terminalrad och inte som inline-kod.
   overflow-x haller den langa curl-raden inuti blocket i stallet for att
   trycka ut hela sidan i sidled pa en telefon. */
pre.install {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--term);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  max-width: 62ch;
}
pre.install code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  white-space: pre;
}
