/* The public site: homepage, product, resilience, industries, privacy, support.
 *
 * Self-contained on purpose. The dashboard's `app.css` is a thousand lines of
 * control-room furniture — sidebars, lamps, tables, a posture switch — and a
 * visitor on a bad link should not fetch any of it to read a paragraph. So the
 * tokens are repeated here rather than imported, and a public page loads this
 * one file and nothing else.
 *
 * SAME FAMILY, DIFFERENT ROOM. The palette, the radius and the type scale are
 * the dashboard's, because a buyer who sees the site and then the product
 * should recognise one thing. The layout is deliberately not: the dashboard is
 * cards in a grid beside a sidebar, and this is a single column of banded
 * sections with a wide measure and a lot of air.
 *
 * Nothing is fetched from anywhere: no web font, no CDN, no image, no script,
 * and nothing imported from a second stylesheet. The site's whole argument is
 * that software should work on a link that barely works, so the site has to.
 * The test that guards this reads the file and looks for the at-rules that
 * would fetch something, which is why neither is spelled out above.
 *
 * RED IS RESERVED. It means an alert, a request for help, or an escalation, and
 * on this site it appears only where an alert is being described. A marketing
 * call to action is the restrained blue. Amber means messaging, degraded or
 * waiting, which is what the honest-state copy is about.
 */

:root {
  /* Both, so form controls, scrollbars and the native focus ring follow the
     palette the page is actually drawn in. */
  color-scheme: light dark;

  --page: #0E1013;
  --card: #16191E;
  --line: #2C313A;
  --ink: #E9ECF1;
  --muted: #9BA3AF;

  --accent: #6FA8FF;
  --accent-soft: #16243A;
  --accent-hover: #93BEFF;
  --amber: #E0A030;
  --amber-soft: #2A2113;
  --amber-ink: #F0B94D;
  --red: #FF6B61;
  --red-ink: #FF8B82;
  --green-ink: #5FD894;

  /* What goes ON a filled accent: near-black, not white. An accent bright
     enough to read as a link on this page is far too light to carry white
     text. The light palette flips it, which is why it is a token. */
  --on-fill: #0B1220;

  /* A dark page gets its separation from the step between `--card` and
     `--page` plus the hairline; a shadow does nothing over dark, so there is
     none here and the light palette supplies one. */
  --card-shadow: none;
  /* The faint lift under a raised surface, light palette only. */
  --radius: 14px;
  --radius-sm: 9px;
  --measure: 40rem;
  --wide: 66rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #FFFFFF;
    --card: #F6F8FB;
    --line: #DCE1E9;
    --ink: #14171C;
    --muted: #5B6472;

    --accent: #0B5FD1;
    --accent-soft: #E7F0FD;
    --accent-hover: #084AA6;
    --amber: #8F5E00;
    --amber-soft: #FBF1DB;
    --amber-ink: #8F5E00;
    --red: #C4281C;
    --red-ink: #C4281C;
    --green-ink: #0E7A3C;

    --on-fill: #FFFFFF;
    --card-shadow: 0 1px 2px rgba(20, 23, 28, 0.05),
                   0 1px 10px rgba(20, 23, 28, 0.04);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -100vw; }
.skip:focus {
  position: static;
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem;
  background: var(--card);
}

/* --- Head and navigation ------------------------------------------------
   One row that wraps. No menu button, because a menu button is JavaScript and
   core navigation has to work without it. On a phone the links wrap onto a
   second line, which costs 24px and no behaviour. */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.site-head-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* The mark: a ring with a gap in it, drawn in CSS. Not a shield, not a globe,
   not a satellite — a circuit that is not quite closed, which is the thing the
   product is for. Decorative, so it is hidden from a screen reader and the
   word beside it carries the name. */
.site-mark {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
  position: relative;
  flex: 0 0 auto;
}
.site-mark::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  font-size: 0.9375rem;
}
.site-nav a {
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--card); color: var(--ink); }
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
/* The door to somebody's control room, not another marketing page. Outlined so
   it reads as a control rather than as the sixth item in a list. */
.site-nav a.nav-signin {
  border: 1px solid var(--line);
  color: var(--muted);
}
.site-nav a.nav-signin:hover { border-color: var(--accent); color: var(--accent); }

/* --- Bands --------------------------------------------------------------
   The page is a stack of full-width bands with a quiet hairline between them,
   rather than a column of cards. Generous vertical rhythm is the point. */

.band { border-top: 1px solid var(--line); }
.band:first-child { border-top: 0; }
.band-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.band-tint { background: var(--card); }
.band-in > :first-child { margin-top: 0; }

.eyebrow {
  display: block;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Display type gets a measure of its own. A headline set across 66rem is a
   headline nobody finishes reading, so the band stays wide and the words do
   not. */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 6.5vw, 3rem); margin: 0 0 1rem; max-width: 44rem; }
h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); margin: 0 0 0.75rem; max-width: 42rem; }
/* Inside a tile the heading has the tile's width and nothing else. */
.tile h3, .step h3, .note strong { max-width: none; }
h3 { font-size: 1.0625rem; margin: 0 0 0.35rem; letter-spacing: -0.01em; }

.lede {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.55;
}
.band-in p { max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* --- Calls to action ---------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-fill); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-fill); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--page); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }
.band-tint .btn-quiet { background: var(--card); }

/* --- The hero diagram --------------------------------------------------
   Four labelled paths converging on one unchanged workflow. The labels are
   real text, so they scale, reflow, translate and read aloud; only the lines
   are drawn, and they are decorative. Nothing here implies all four paths are
   carrying anything at once — the caption says so, and the chips are drawn as
   options rather than as live links. */

.paths {
  margin: 2.25rem 0 0;
  padding: 0;
}
.paths-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}
.path-chip {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.band-tint .path-chip { background: var(--page); }

.paths-wires {
  display: block;
  width: 100%;
  height: 46px;
  color: var(--line);
}

.paths-core {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  text-align: center;
}
.band-tint .paths-core { background: var(--page); }
.paths-core strong { display: block; font-size: 1.0625rem; letter-spacing: -0.01em; }
.paths-core .steps {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.paths figcaption {
  max-width: var(--measure);
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* --- Grids of short sections ------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.tile {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.band-tint .tile { background: var(--page); }
.tile > :first-child { margin-top: 0; }
.tile p { margin: 0; max-width: none; color: var(--muted); font-size: 0.9375rem; }
.tile ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9375rem; }
.tile li { margin-bottom: 0.25rem; }
.tile-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A tile whose subject is an alert, and the only place red appears. */
.tile-alert { border-left: 3px solid var(--red); }
/* Messaging, degraded and waiting: amber, the same meaning it has in the app. */
.tile-wait { border-left: 3px solid var(--amber); }

/* --- Numbered product sections ----------------------------------------- */

.steps-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.step {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.25rem 1.25rem;
}
.step-n {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.step p { margin: 0.35rem 0 0; color: var(--muted); }
.step p + p { margin-top: 0.6rem; }

@media (min-width: 46rem) {
  .step { grid-template-columns: 4rem 1fr; }
  .step-n { padding-top: 0.2rem; }
}

/* --- A callout that is not decoration ---------------------------------- */

.note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  font-size: 0.9375rem;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note p { max-width: none; }

/* --- The direct-to-device table ---------------------------------------- */

.table-scroll {
  margin: 1.25rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.band-tint .table-scroll { background: var(--page); }
table.d2d {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
table.d2d caption {
  padding: 0.85rem 1rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}
table.d2d th, table.d2d td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.d2d thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.d2d tbody tr:last-child th,
table.d2d tbody tr:last-child td { border-bottom: 0; }
table.d2d td.d2d-what { color: var(--muted); }
table.d2d th[scope="row"] { font-weight: 600; white-space: nowrap; }

.tier {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier-live { border-color: var(--green-ink); color: var(--green-ink); }
.tier-limited { border-color: var(--amber); color: var(--amber-ink); }
.tier-future { color: var(--muted); }

.d2d-group { margin-top: 2.25rem; }
.d2d-group:first-of-type { margin-top: 1.5rem; }

/* --- Prose pages: privacy and support ----------------------------------
   A wide measure is wrong for a policy. These two stay in a single reading
   column, which is also where an App Store reviewer on a phone reads them. */

.reading {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.reading > :first-child { margin-top: 0; }
.reading h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
.reading h2 { font-size: 1.125rem; margin: 2rem 0 0.5rem; }
.reading h3 { margin: 1.4rem 0 0.35rem; }
.reading p { max-width: none; }
.reading ul { padding-left: 1.25rem; margin: 0.6rem 0; }
.reading li { margin-bottom: 0.4rem; }

.page-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* --- Foot -------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-foot-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-right: auto;
}
.site-foot p { margin: 0; }
