/* rwnds.app, the public landing page (v3). Values from the Claude Design handoff "RWNDS Site v3.dc.html";
   the zip is kept outside the repository, the measurements are in its README. Phone layout below 760px. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('fonts/archivo-700-125-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

:root {
  --background: #0B0C0E;
  --surface: #111316;
  --surface-raised: #171A1E;
  --surface-hover: #1E2227;
  --border: #23272D;
  --border-strong: #30353C;
  --text: #F5F2EC;
  --text-secondary: #A7ABB2;
  --text-muted: #6E737B;
  --primary: #F5F2EC;
  --primary-foreground: #0B0C0E;
  --accent: #DA0036;
  --state-critical: #F2554D;
  --state-warning: #E3B341;
  --state-healthy: #3FBF6F;
  --state-info: #5AAFE6;

  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Heading font (H1 and H2). Option A, Archivo at 125% width, 700: the owner's choice (9 October 2026).
     To switch, replace this block with B or C below and add that font's @font-face (WOFF2, Latin subset).
     B: --display-family: 'Barlow Condensed', sans-serif; --display-weight: 600; --display-stretch: normal;
        --display-transform: uppercase; --display-scale: 1.22; --display-tracking: -0.005em; --display-leading: 0.92;
     C: --display-family: 'JetBrains Mono', monospace; --display-weight: 500; --display-stretch: normal;
        --display-transform: none; --display-scale: 0.8; --display-tracking: -0.04em; --display-leading: 1.08; */
  --display-family: 'Archivo', sans-serif;
  --display-weight: 700;
  --display-stretch: 125%;
  --display-transform: none;
  --display-scale: 1;
  --display-tracking: -0.02em;
  --display-leading: 1;

  --h1: 80px;
  --h2: 52px;
  --section: 160px;
  --gutter: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: normal;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text-secondary); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
p { margin: 0; }

h1, h2 {
  margin: 0;
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}
h1 { font-size: calc(var(--h1) * var(--display-scale)); max-width: 1080px; }
h2 { font-size: calc(var(--h2) * var(--display-scale)); max-width: 720px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--text-secondary); }
.head { display: flex; flex-direction: column; gap: 14px; }

/* Buttons */
.btn {
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-p { background: var(--primary); color: var(--primary-foreground); }
.btn-p:hover { background: var(--text-secondary); color: var(--primary-foreground); }
.btn-o { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-o:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-secondary); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; }
.logo img { height: 22px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: 40px; font-size: 14px; }
.site-nav a, .foot-nav a { color: var(--text-secondary); text-decoration: none; }
.site-nav a:hover, .foot-nav a:hover { color: var(--text); }
.spacer { flex: 1; }
.signin { font-size: 14px; text-decoration: none; padding: 0 6px; min-height: 44px; display: flex; align-items: center; }

/* Split rows: heading or lead on the left, text or buttons on the right */
.split { display: flex; gap: 56px; align-items: flex-end; justify-content: space-between; }
.split > p { max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }

/* 1. Hero */
.hero { display: flex; flex-direction: column; gap: 40px; padding-top: 104px; }
.hero-head { display: flex; flex-direction: column; gap: 40px; }
.hero .split > p.lead { max-width: 560px; font-size: 19px; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--text-secondary); }
.chip[aria-selected='true'] { background: var(--primary); color: var(--primary-foreground); box-shadow: none; }

.tabs .stage { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--background);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.shot picture { position: absolute; inset: 0; opacity: 0; transition: opacity 150ms ease; }
.shot picture.is-on { opacity: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shot-hero { aspect-ratio: 16 / 9; }

.caption { display: flex; gap: 20px; align-items: baseline; }
.caption-title { flex: none; font-family: var(--mono); font-size: 13px; color: var(--text); }
.caption-text { font-size: 15px; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }

/* Sections */
.sec { display: flex; flex-direction: column; gap: 56px; padding-top: var(--section); }

/* 2. LAN and online: the diagram */
.diagram { margin: 0; display: flex; align-items: stretch; }
.node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 2px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.node-hi { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--text-secondary); }
.node-k { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.srv { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.srv .ok { width: 6px; height: 6px; border-radius: 50%; background: var(--state-healthy); }
.srv-n { flex: 1; }
.srv-m { color: var(--text-muted); }
.node-mono { font-family: var(--mono); font-size: 12px; color: var(--text-secondary); line-height: 1.7; }
.node-host { font-family: var(--mono); font-size: 14px; }
.node-note { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.link { position: relative; flex: none; width: 150px; display: flex; align-items: center; justify-content: center; }
.link-line { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--text-secondary); }
.link-dash { position: absolute; top: 50%; left: 0; right: 0; height: 0; border-top: 1px dashed var(--state-warning); }
.link-label {
  position: relative;
  padding: 3px 8px;
  background: var(--background);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.link-warn { display: flex; align-items: center; gap: 6px; color: var(--text); }
.hollow { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--state-warning); }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--border);
}
.fact { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.fact dt { font-family: var(--mono); font-size: 13px; color: var(--text); }
.fact dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }

/* 3. Add-ons */
.addons { display: flex; gap: 32px; align-items: flex-start; }
.addon-list { flex: 1; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.addon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  background: transparent;
}
.addon:hover { background: var(--surface); }
.addon-t { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.addon-d { font-size: 14px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; }
.addon[aria-selected='true'] { background: var(--surface-raised); }
.addon[aria-selected='true'] .addon-t { color: var(--text); }
.addon[aria-selected='true'] .addon-d { color: var(--text-secondary); }
.shot-addon { flex: none; width: 64%; aspect-ratio: 16 / 10; }
.shot-addon[data-ratio='wide'] { aspect-ratio: 16 / 9; }

/* 4. FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-family: var(--mono); font-weight: 400; color: var(--text-secondary); }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--text-secondary); }
.faq details p { max-width: 760px; padding: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }

/* 5. Closing */
.closing {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: var(--section);
  padding: 72px 0 120px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer { display: flex; align-items: center; gap: 40px; padding: 32px 40px; border-top: 1px solid var(--border); }
.site-footer > img { height: 18px; width: auto; align-self: flex-start; }
.foot-nav { flex: 1; display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.copy { font-size: 13px; color: var(--text-muted); }

/* 404 */
.notfound { display: flex; flex-direction: column; gap: 32px; padding: 104px 0 120px; }

/* Phone */
@media (max-width: 759px) {
  :root { --h1: 38px; --h2: 30px; --section: 88px; --gutter: 16px; }
  .site-header { height: 60px; gap: 8px; padding: 0 16px; }
  .logo img { height: 18px; }
  .site-nav { display: none; }

  .split { flex-direction: column; gap: 16px; align-items: stretch; }
  .split > p { font-size: 16px; }

  .hero { gap: 28px; padding-top: 48px; }
  .hero-head { gap: 24px; }
  .hero .split > p.lead { font-size: 17px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 8px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 44px; }
  .tabs .stage { margin-top: 28px; }
  .shot-hero { aspect-ratio: auto; height: 300px; }
  .caption { flex-direction: column; gap: 4px; }

  .sec { gap: 32px; }
  .diagram { flex-direction: column; }
  .link { width: auto; height: 56px; }
  .link-line { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
  .link-dash { top: 0; bottom: 0; left: 50%; right: auto; width: 0; height: auto; border-top: 0; border-left: 1px dashed var(--state-warning); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .addons { flex-direction: column; gap: 16px; align-items: stretch; }
  .addon { padding: 14px 12px; }
  .shot-addon, .shot-addon[data-ratio='wide'] { width: 100%; aspect-ratio: auto; height: 240px; }

  .closing { gap: 20px; padding: 48px 0 64px; }
  .site-footer { flex-direction: column; align-items: stretch; gap: 20px; padding: 32px 16px 40px; }
  .foot-nav { flex: none; gap: 12px 20px; }
  .notfound { padding: 48px 0 64px; }
}
