/* Deepcut Labs — shared site styles */

:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e2e2de;
  --panel: #f2f2ee;
  --accent: #1a1a1a;
  --brand: #c51667;        /* logo magenta, on the light ground */
  --brand-soft: #c5166714;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Near-black carrying the navy from the logo, rather than a neutral grey.
       The whole ramp moves together so panels and rules stay in the same hue. */
    --bg: #0e1119;
    --fg: #eaecf1;
    --muted: #969cab;
    --rule: #262c3b;
    --panel: #151925;
    --accent: #eaecf1;
    --brand: #e2599c;      /* the light magenta is too dark on this ground */
    --brand-soft: #e2599c1f;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem 0;
}

/* ---- Header / nav ---- */

.site-header {
  width: 100%;
  max-width: 60rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
}
.site-header .wordmark img {
  height: 26px;
  width: auto;
  display: block;
}
/* Homepage carries the lockup in the hero, so its header has no logo. */
.site-header.nologo { justify-content: flex-end; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--fg); }
.site-header nav a[aria-current="page"] { color: var(--fg); font-weight: 560; }

/* ---- Main content ---- */

main {
  width: 100%;
  max-width: 44rem;
  flex: 1;
  padding: 3rem 0 4rem;
}
main.wide { max-width: 60rem; }

.hero-logo {
  display: block;
  width: auto;
  height: clamp(56px, 9vw, 84px);
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h2 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-top: 2.75rem;
}
h3 {
  font-size: 1rem;
  font-weight: 620;
  margin-top: 1.75rem;
}
p, ul, ol { margin-top: 0.9rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-top: 0.4rem; }
strong { font-weight: 620; }

a { color: inherit; }

.lede {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.updated { margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* ---- Product cards ---- */

.cards {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.card h2, .card h3 { margin-top: 0; }
.card h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.015em; }
.card p { margin-top: 0.6rem; font-size: 0.95rem; }
.card .status {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.card .more { margin-top: auto; padding-top: 1rem; font-size: 0.92rem; }
.card .more a { color: var(--brand); text-decoration: none; font-weight: 560; }
.card .more a:hover { text-decoration: underline; }

/* ---- Buttons ---- */

.actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
}
.btn.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn.disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--rule);
  cursor: default;
}

/* ---- Screenshots ---- */

figure {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
figure img {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.87rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* ---- Definition rows (contact, specs) ---- */

.rows { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.row dt {
  flex: 0 0 9rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.row dd { flex: 1 1 14rem; }

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

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
  width: 100%;
  max-width: 60rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: inherit; }

@media (max-width: 34rem) {
  .row dt { flex-basis: 100%; }
}

/* ---- Product hero: app icon beside the title ---- */

.product-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.product-head .appicon {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 18px;
}
.product-head .titles { min-width: 15rem; flex: 1 1 20rem; }
.product-head h1 { margin-top: 0.15rem; }

/* ---- Diagrams ---- */
/* Built from page elements rather than a flat image, so the type stays at a
   real size at every width and the palette follows the theme. */

.diagram {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
  padding: 1.75rem 1.5rem 0;
}
.dg-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.dg-node {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  text-align: center;
  max-width: 30rem;
}
.dg-node strong { display: block; font-weight: 620; font-size: 0.98rem; }
.dg-node span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.dg-node.accent { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.dg-arrow {
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
}
.dg-arrow .gl { display: inline-block; }
.dg-arrow small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.dg-targets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dg-targets li {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Side-by-side on wide screens, stacked on narrow — no scaled-down type. */
.dg-lane { display: flex; flex-direction: column; gap: 0.85rem; align-items: center; }
@media (min-width: 46rem) {
  .dg-lane { flex-direction: row; align-items: stretch; justify-content: center; }
  .dg-lane .dg-node { display: flex; flex-direction: column; justify-content: center; flex: 1 1 0; }
  .dg-lane .dg-arrow { display: flex; flex-direction: column; justify-content: center; text-align: center; }
  /* the lane runs left-to-right at this width, so turn the arrows with it */
  .dg-lane .dg-arrow .gl { transform: rotate(-90deg); }
}

.diagram figcaption {
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 0.75rem 1rem;
}
