  :root {
    --bg: #ffffff;
    --surface: #f7f8fa;
    --surface-2: #ffffff;
    --text: #293448;
    --muted: rgba(41, 52, 72, 0.62);
    --faint: rgba(41, 52, 72, 0.42);
    --border: rgba(41, 52, 72, 0.12);
    --accent: #293448;
    --accent-hover: #3a4660;
    --on-accent: #ffffff;
    --live: #047857;
    --live-bg: rgba(4, 120, 87, 0.1);
    --shadow: 0 1px 2px rgba(41, 52, 72, 0.04), 0 12px 32px rgba(41, 52, 72, 0.08);
    /* Faint blueprint rule behind the hero. Drawing lines is what this
       company's software does, so the motif is the subject rather than
       decoration — which is also why it is nearly invisible. */
    --grid: rgba(41, 52, 72, 0.055);
    /* PortedUp's own accent, taken from its app icon. The two products
       keep their own colour so they read as distinct things under one
       roof rather than one brand with two names. */
    --cyan: #0891b2;
    /* Channels, not a colour: the hero canvas fades these per frame. */
    --route-rgb: 41, 52, 72;
    --route-cyan-rgb: 8, 145, 178;
    --route-a: 0.3;
  }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]){
      --bg: #0f172a;
      --surface: #020617;
      --surface-2: #1e293b;
      --text: #f1f5f9;
      --muted: #94a3b8;
      --faint: #64748b;
      --border: #334155;
      --accent: #f1f5f9;
      --accent-hover: #ffffff;
      --on-accent: #0f172a;
      --live: #34d399;
      --live-bg: rgba(52, 211, 153, 0.12);
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
      --grid: rgba(148, 163, 184, 0.07);
      --cyan: #22d3ee;
      --route-rgb: 148, 163, 184;
      --route-cyan-rgb: 34, 211, 238;
      --route-a: 0.34;
    }
}
:root[data-theme="dark"]{
      --bg: #0f172a;
      --surface: #020617;
      --surface-2: #1e293b;
      --text: #f1f5f9;
      --muted: #94a3b8;
      --faint: #64748b;
      --border: #334155;
      --accent: #f1f5f9;
      --accent-hover: #ffffff;
      --on-accent: #0f172a;
      --live: #34d399;
      --live-bg: rgba(52, 211, 153, 0.12);
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
      --grid: rgba(148, 163, 184, 0.07);
      --cyan: #22d3ee;
      --route-rgb: 148, 163, 184;
      --route-cyan-rgb: 34, 211, 238;
      --route-a: 0.34;
    }


  *, *::before, *::after { box-sizing: border-box; }

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

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
      "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }

  .wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

  /* ---------- header ---------- */

  header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .bar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 22px;
    letter-spacing: -0.015em;
  }

  /* The mark carries the identity, so it leads: a good deal taller than
     the cap height of the wordmark beside it rather than matching it.
     40px inside a 68px bar still leaves 14px of air above and below. */
  .brand svg { width: 40px; height: 40px; display: block; }

  @media (max-width: 560px) {
    .brand { font-size: 19px; gap: 10px; }
    .brand svg { width: 32px; height: 32px; }
  }
  .brand strong { font-weight: 700; }
  .brand span { font-weight: 400; }

  nav.links { display: flex; align-items: center; gap: 28px; }

  nav.links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s;
  }

  nav.links a:hover { color: var(--text); }

  @media (max-width: 560px) {
    nav.links { gap: 18px; }
    nav.links a.hide-sm { display: none; }
  }

  /* Eyebrow above the headline. Small, quiet, and above the fold —
     veteran-owned is a fact about the company, not a sales claim, so it
     is stated once and not decorated with a seal. */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 18px;
  }
  .eyebrow .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--faint);
  }

  /* The badge on a product that is not shipping yet. Same shape as the
     Live badge so the two read as one scale, deliberately colourless so
     it cannot be mistaken for availability. */
  .badge.wip {
    color: var(--faint);
    background: transparent;
    border: 1px solid var(--border);
  }

  /* ---------- hero ---------- */

  /* Vertical only — a `padding` shorthand here would cancel .wrap's side padding. */
  /* The hero sits on a drafting grid that fades out before it reaches
     the text, so the page has depth without anything competing with the
     headline. Pure CSS: no image to load, no request to make. */
  .hero-band {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }
  .hero-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 90% 78% at 28% 8%, #000 8%, transparent 72%);
            mask-image: radial-gradient(ellipse 90% 78% at 28% 8%, #000 8%, transparent 72%);
    pointer-events: none;
  }
  /* The routes sit above the grid and below the words. Masked away from
     the top left so nothing is ever drawn through the headline -- the
     motion lives in the space the text does not use. */
  .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    /* Off until the hero is wide enough to have ground the copy is not
       standing on. Narrower than that the headline and lede fill the
       band, and the only way a route could show is by ruling a line
       through a sentence. The script checks this and does not start. */
    display: none;
  }
  @media (min-width: 900px) {
    .hero-canvas {
      /* The headline and lede are capped at 58ch and end at about 58%
         of the band; the ellipse begins there, so the mask is already
         at zero before it can reach a word -- which is what lets the
         ink inside it run at full weight instead of being dialled down
         to stay legible over text. */
      display: block;
      -webkit-mask-image: radial-gradient(ellipse 26% 58% at 84% 50%, #000 34%, transparent 100%);
              mask-image: radial-gradient(ellipse 26% 58% at 84% 50%, #000 34%, transparent 100%);
    }
    .hero { padding-top: 112px; padding-bottom: 104px; }
  }
  .hero { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 88px; }

  @media (max-width: 640px) {
    .hero { padding-top: 56px; padding-bottom: 52px; }
    .hero-band::before { background-size: 40px 40px; }
  }

  h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
    max-width: 15ch;
  }

  .lede {
    margin: 24px 0 0;
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--muted);
    max-width: 58ch;
  }

  /* ---------- sections ---------- */

  section { padding: 24px 0; }

  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
  }

  h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--faint);
  }

  .count { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }

  /* ---------- product catalog ---------- */

  .catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .product {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .product:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--text) 28%, transparent);
  }

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

  .product-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }

  .product-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
  }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-mark{ filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .product-mark{ filter: brightness(0) invert(1); }


  .product-name {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .product-name b { font-weight: 700; }

  .badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--live);
    background: var(--live-bg);
  }

  .product-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 10px;
  }

  .product-desc {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
  }

  .product-cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }

  .product-cta svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
  .product:hover .product-cta svg { transform: translateX(3px); }

  .product.soon {
    border-style: dashed;
    background: transparent;
    cursor: default;
  }

  .product.soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }

  .product.soon .product-name { color: var(--text); }

  /* Each product carries a hairline in its own colour along the top
     edge, so the catalogue reads as two brands rather than two rows. */
  .product { position: relative; overflow: hidden; }
  .product::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.85;
  }
  .product.pu::before { background: var(--cyan); }
  .product.cad::before { background: #f59e0b; }

  /* The square app icon, reproduced from each product's own source so
     the page cannot drift from the thing it is advertising. */
  .mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
  }
  /* PortedUp's own AppIcon lightens its tile on a dark background rather
     than sitting as a near-black square on near-black. Same two values
     it uses, so the mark here matches the product. */
  .mark .tile { fill: #18181b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark .tile{ fill: #27272a; }
}
:root[data-theme="dark"] .mark .tile{ fill: #27272a; }


  /* A short capability list under each description. Three lines is
     enough to say what the product is; more turns a card into a page. */
  .feats {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
  }
  .feats li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
  }
  .feats li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.45;
  }
  .product.pu .feats li::before { background: var(--cyan); opacity: 0.9; }
  .product.cad .feats li::before { background: #f59e0b; opacity: 0.9; }
  /* A product with nothing to show yet says so, quietly, where the links would be. */
  .product-note { margin: 14px 0 0; font-size: 13px; color: var(--muted, #6b7280); }

  /* ---------- about + contact ---------- */

  .prose {
    max-width: 62ch;
    color: var(--muted);
    font-size: 16px;
  }

  .prose p { margin: 0 0 16px; }
  .prose p:last-child { margin-bottom: 0; }
  .prose strong { color: var(--text); font-weight: 600; }

  .contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
  }

  .contact-card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
  }

  .btn:hover { background: var(--accent-hover); }

  /* ---------- footer ---------- */

  footer {
    margin-top: 96px;
    border-top: 1px solid var(--border);
    padding: 32px 0 48px;
  }

  .foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--faint);
  }

  .foot a { text-decoration: none; color: var(--faint); }
  .foot a:hover { color: var(--text); }

  /* ---------- theme switch ---------- */

  /* Tells the browser which palette its own UI -- scrollbars, form
     controls, the canvas behind the page -- should use. Without it a
     visitor who picks light on a dark machine gets dark scrollbars. */
  :root { color-scheme: light; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { color-scheme: dark; }
  }
  :root[data-theme="dark"] { color-scheme: dark; }
  :root[data-theme="light"] { color-scheme: light; }

  .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0 -4px 0 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
  }
  .theme-btn:hover { color: var(--text); background: var(--surface); }
  .theme-btn svg { width: 16px; height: 16px; display: block; }

  /* Show the icon for the theme the button would switch *to*, so it reads
     as an action rather than a status light. */
  .theme-btn .i-sun { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
  }
  :root[data-theme="dark"] .theme-btn .i-sun { display: block; }
  :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
  :root[data-theme="light"] .theme-btn .i-sun { display: none; }
  :root[data-theme="light"] .theme-btn .i-moon { display: block; }

  @media (prefers-reduced-motion: reduce) {
    .theme-btn { transition: none; }
  }
