/* ============================================================================
   FILE TYPE: Stylesheet: Upload Mesh product page (UM.74)
   INTELLIJ PATH: /TAGIIv4/webgate-src/uploadmesh/styles.css
   CREATED: 2026-09-04
   DAILY SESSION: docs/Daily_Sessions/2026/09/2026-09-04.md
   VERSION: 1.1.0
   WHERE (DEPLOYMENT): the webgate static stack; a page, no server side
   CONNECTS TO:
     - index.html (the only page that loads this file)
     - CLAIMS.md (the claim to evidence table the page is built from)

   WHAT: Tokens, layout, download cards and claim states for the Upload Mesh product page.
         No framework, no build step, no webfont request, no JavaScript.

   WHY:  The page ships on the webgate static stack. It must render from static local files
         and must read correctly in light and dark from the same tokens.
   ============================================================================ */

/* No webfont is fetched. Poppins is used when the host already serves it, otherwise
   the page falls back to the reader's system stack. */

:root {
  color-scheme: light dark;

  --bg:        #f6f6f3;
  --panel:     #ffffff;
  --panel-2:   #f0f1ec;
  --ink:       #14181b;
  --ink-soft:  #454d54;
  --muted:     #656e76;
  --line:      #dcded7;
  --line-firm: #c3c7bd;

  --accent:      #1c6a58;
  --accent-ink:  #12463a;
  --accent-wash: #e4f0eb;

  --built:      #2b5a86;
  --built-wash: #e3ecf4;

  --notyet:      #5c646d;
  --notyet-wash: #eceeef;

  --radius: 10px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #101416;
    --panel:     #171d20;
    --panel-2:   #1d2427;
    --ink:       #e9edee;
    --ink-soft:  #c2cacd;
    --muted:     #939ea4;
    --line:      #273034;
    --line-firm: #354247;

    --accent:      #6fcfb2;
    --accent-ink:  #a5e3ce;
    --accent-wash: #14302a;

    --built:      #82b6e2;
    --built-wash: #152634;

    --notyet:      #a0a9b0;
    --notyet-wash: #1c2225;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

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

h1, h2, h3 { line-height: 1.22; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); margin: 0 0 0.35rem; }
h3 { font-size: 1.06rem; margin: 0 0 0.3rem; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1rem; }

/* Masthead ------------------------------------------------------------ */

header.masthead {
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0 2.2rem;
  margin-bottom: 2.2rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary { background: var(--accent); color: var(--panel); }
.button.secondary { background: transparent; color: var(--accent-ink); }
.button:hover { filter: brightness(1.06); }

/* Sections ------------------------------------------------------------ */

section { padding: 2.4rem 0 0.6rem; border-top: 1px solid var(--line); margin-top: 2.4rem; }
section:first-of-type { border-top: 0; margin-top: 0; }

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
  margin: 0.2rem 0 1.6rem;
}

/* Start here ---------------------------------------------------------- */

.download-grid,
.product-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-card,
.product-map article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.download-card p,
.product-map p { color: var(--ink-soft); }

.platform {
  margin-bottom: 0.35rem;
  color: var(--accent) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.small-note,
.digest-link {
  color: var(--muted) !important;
  font-size: 0.84rem;
}

.download-card .button { width: 100%; margin: 0.3rem 0 0.8rem; }

.steps {
  margin: 0 0 1.6rem;
  padding: 0;
  counter-reset: uploadmesh-step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.steps li::before {
  counter-increment: uploadmesh-step;
  content: counter(uploadmesh-step);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 700;
}

/* Standing notice ----------------------------------------------------- */

.notice {
  background: var(--panel);
  border: 1px solid var(--line-firm);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--ink); }

/* Claim cards --------------------------------------------------------- */

.claims {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.claim {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.9rem;
  max-width: none;
}

.claim h3 { max-width: none; }

.claim p {
  margin: 0.35rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: none;
}

.proof {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px dashed var(--line-firm);
  padding-top: 0.55rem;
  word-break: break-word;
}

/* State chips --------------------------------------------------------- */

.state {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  vertical-align: 0.14em;
  white-space: nowrap;
}
.state.live   { color: var(--accent); background: var(--accent-wash); }
.state.built  { color: var(--built);  background: var(--built-wash); }
.state.notyet { color: var(--notyet); background: var(--notyet-wash); }

.state-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}
.state-key li { max-width: 26ch; font-size: 0.9rem; color: var(--ink-soft); }
.state-key .state { margin-bottom: 0.25rem; }

/* Plain lists --------------------------------------------------------- */

ul.plain { list-style: none; padding: 0; margin: 0 0 1.2rem; }
ul.plain > li {
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
ul.plain > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--line-firm);
}
ul.plain > li b, ul.plain > li strong { color: var(--ink); font-weight: 600; }

.two-col {
  display: grid;
  gap: 1.4rem 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}
.two-col > div > h3 { margin-top: 0; }

/* Proof index table --------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 44rem;
  font-size: 0.88rem;
}
caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 0 0.7rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--panel-2);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { max-width: var(--measure); }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  header.masthead { padding-top: 2.4rem; }
  .claims { grid-template-columns: 1fr; }
  .download-grid, .product-map { grid-template-columns: 1fr; }
  .hero-actions, .hero-actions .button { width: 100%; }
}

@media print {
  body { background: #fff; color: #000; }
  .claim, .notice, .table-scroll { break-inside: avoid; }
}
