/* NetTech. Direction "Colour chapters" (taste skill, seed 1232322665): every section is a flat
   field in one of the colors NetTech gives a device in the rack, butted together like rack units.
   Hanken Grotesk (self-hosted, OFL), one family in two weights. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #1c1c1e;
  --ink: #ffffff;
  --muted: #b4b4b9;
  --accent: #1975db;          /* NetTech's AccentColor */
  --accent-hover: #2b86ec;
  /* The rack's device tints, as the app draws them (tuned for white text). */
  --blue: #0071d4;            /* gateway */
  --teal: #007e87;            /* switch */
  --green: #2e7d42;           /* UPS, Wi-Fi */
  --orange: #ac5d17;          /* PDU */
  --gray: #727276;            /* patch panel */
  --paper: #f2f2f7;           /* the app's grouped background */
  --paper-ink: #000000;
  --paper-link: #0f5fbf;

  --pad: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --radius: 4px;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-mid: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-head: clamp(2.5rem, 0.6rem + 6.6vw, 7rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --app-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-size: var(--step-head); line-height: 0.92; letter-spacing: -0.05em; }
b { font-weight: 500; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.c-paper :focus-visible { outline-color: var(--paper-ink); }

.skip { position: absolute; left: var(--pad); top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Fields */
.c-black { background: var(--bg); color: var(--ink); }
.c-surface { background: var(--surface); color: var(--ink); }
.c-teal { background: var(--teal); color: var(--ink); }
.c-blue { background: var(--blue); color: var(--ink); }
.c-green { background: var(--green); color: var(--ink); }
.c-orange { background: var(--orange); color: var(--ink); }
.c-gray { background: var(--gray); color: var(--ink); }
.c-dark { background: #48484a; color: var(--ink); }   /* iOS systemGray3, dark */
.c-paper { background: var(--paper); color: var(--paper-ink); }

.chapter { position: relative; padding: clamp(72px, 9vw, 128px) var(--pad); }

/* The bar: the first chapter's black */
.bar {
  display: flex; align-items: center; gap: 32px;
  height: 76px; padding: 0 var(--pad);
  background: var(--bg); position: relative; z-index: 3;
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; text-decoration: none; }
.mark img { border-radius: 8px; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; }
.bar-nav a, .bar-get { text-decoration: none; font-size: var(--step-body); }
.bar-nav a { text-underline-offset: 6px; }
.bar-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.bar-get { padding: 10px 16px; border-radius: var(--radius); background: var(--accent); font-weight: 500; transition: background-color 0.2s var(--ease); }
.bar-get:hover { background: var(--accent-hover); }

/* The jack-shaped button: the RJ45 opening with its latch step on the left. */
.jack-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; min-height: 58px;
  padding: 0 30px 0 40px; color: var(--ink); font-weight: 500; text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.jack-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 12px 74%, 6px 74%, 6px 62%, 0 62%, 0 38%, 6px 38%, 6px 26%, 12px 26%);
  transition: background-color 0.2s var(--ease);
}
.jack-btn:hover::before { background: var(--accent-hover); }
.jack-btn:active { transform: translateY(1px); }
.text-link { text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: text-decoration-thickness 0.15s; }
.text-link:hover { text-decoration-thickness: 3px; }

/* Hero: one giant RJ45 jack, cropped by the top, right and bottom of the screen */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 76px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: center; padding: 48px var(--pad) 64px;
}
.jack {
  position: absolute; z-index: 0;
  height: 128svh; width: calc(128svh * 100 / 120);
  left: max(50%, calc(100% - 128svh * 100 / 120 * 0.7));
  top: calc(55% - 64svh);
  will-change: transform;
}
.jack-body { fill: var(--accent); }
.jack-pins rect { fill: var(--bg); }
.hero-text { position: relative; z-index: 1; grid-column: 1 / span 7; }
.hero h1 .l { display: block; white-space: nowrap; }
.hero-sub { margin-top: 40px; max-width: 30em; font-size: var(--step-lead); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }
.hero-note { margin-top: 24px; color: var(--muted); font-size: var(--step-small); }

/* The live rack: a square plate of the app beside spare text, on switch teal */
.rack-ch {
  min-height: 88svh;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 2);
  align-items: stretch;
}
.rack-plate {
  align-self: center; width: 100%; aspect-ratio: 1;
  background: var(--paper); color: #000; border-radius: var(--radius);
  padding: clamp(16px, 2vw, 28px); overflow: hidden;
}
.rack-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 8px 0; }
.rack-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rack-tabs button {
  border: 0; cursor: pointer; padding: 10px 14px; border-radius: var(--radius);
  background: transparent; font-size: var(--step-body); transition: background-color 0.2s var(--ease);
}
.rack-tabs button:hover { background: #006a72; }
.rack-tabs button[aria-selected="true"] { background: var(--bg); font-weight: 500; }
.rack-copy h2 { margin-bottom: 28px; }
.rack-copy p { max-width: 34ch; }
.rack-full { margin-top: 14px; font-weight: 500; }
.rack-full:empty { display: none; }
.rack-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  border: 0; cursor: pointer; text-align: left; min-height: 76px; padding: 14px 18px;
  border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; gap: 2px;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cell b { font-size: var(--step-body); }
.cell span { font-size: var(--step-small); }
.cell-ink { background: var(--bg); }
.cell-ink:hover { background: #1c1c1e; }
.cell-tone { background: #00575e; }
.cell-tone:hover { background: #004a50; }
.cell:active { transform: translateY(1px); }
.cell:disabled { cursor: not-allowed; background: #00666d; }

/* Inside the plate: NetTech's rack editor, drawn in HTML with the app's figures */
.rack-app { font-family: var(--app-font); font-size: 14px; line-height: 1.3; letter-spacing: 0; height: 100%; display: flex; flex-direction: column; }
.ra-head { display: flex; justify-content: space-between; align-items: baseline; }
.ra-head b { font-size: 17px; font-weight: 600; }
.ra-head span { color: #6e6e73; font-size: 13px; }
.ra-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 12px; }
.ra-stats div { background: #fff; border-radius: 8px; padding: 8px 10px; }
.ra-stats dt { font-size: 13px; color: #6e6e73; }
.ra-stats dd { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-meter { margin-top: 8px; }
.ra-meter p { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ra-meter p span:first-child { color: #3c3c43; }
.ra-bar { height: 7px; margin-top: 4px; border-radius: 4px; background: #e3e3e8; overflow: hidden; }
.ra-bar i { display: block; height: 100%; border-radius: 4px; background: #28a745; transition: width 0.35s var(--ease), background-color 0.35s; }
.ra-near .ra-bar i { background: #e08600; }
.ra-over .ra-bar i { background: #e0281c; }
.ra-warn { margin-top: 3px; font-size: 13px; font-weight: 600; }
.ra-near .ra-warn { color: #9a5200; }
.ra-over .ra-warn { color: #c4150b; }
.ra-rack {
  --ru: clamp(26px, 2.3vw, 34px);
  display: grid; grid-template-columns: 26px 1fr; column-gap: 6px;
  margin-top: auto; padding-top: 14px;
}
.rows-9 { grid-template-rows: repeat(9, var(--ru)); }
.rows-12 { grid-template-rows: repeat(12, var(--ru)); }
.ra-rack::before { content: ""; grid-column: 2; grid-row: 1 / -1; background: #fff; border-radius: 6px; }
.ra-u { grid-column: 1; align-self: center; text-align: right; font-size: 13px; color: #6e6e73; font-variant-numeric: tabular-nums; }
.ra-dev {
  grid-column: 2; margin: 2px 3px; border-radius: 4px; color: #fff; overflow: hidden;
  display: flex; align-items: center; gap: 10px; padding: 0 10px; min-width: 0;
  animation: ra-in 0.35s var(--ease) both;
}
.ra-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.ra-name b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ra-name small { font-size: 13px; }
.ra-h { margin-left: auto; font-size: 13px; font-weight: 600; }
.ra-ports { margin-left: auto; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 5px); gap: 2px; flex: none; }
.ra-ports + .ra-h { margin-left: 0; }
.ra-ports i { width: 6px; background: rgb(255 255 255 / 0.32); border-radius: 1px; transition: background-color 0.3s; }
.ra-ports i.on { background: #fff; }
.c-gateway { background: #0071d4; }
.c-switch { background: #007e87; }
.c-nvr { background: #6054f3; }
.c-pdu { background: #ac5d17; }
.c-ups { background: #2e7d42; }
.c-patch { background: #727276; }
.c-manager { background: #636366; }
@keyframes ra-in { from { opacity: 0; transform: translateX(-8px); } }

/* Generated: meter widths (0-100%) and rack positions, set as classes because the server's CSP blocks inline styles. */
.w-0{width:0%} .w-1{width:1%} .w-2{width:2%} .w-3{width:3%} .w-4{width:4%} .w-5{width:5%} .w-6{width:6%} .w-7{width:7%} .w-8{width:8%} .w-9{width:9%} .w-10{width:10%} .w-11{width:11%} .w-12{width:12%} .w-13{width:13%} .w-14{width:14%} .w-15{width:15%} .w-16{width:16%} .w-17{width:17%} .w-18{width:18%} .w-19{width:19%} .w-20{width:20%} .w-21{width:21%} .w-22{width:22%} .w-23{width:23%} .w-24{width:24%} .w-25{width:25%} .w-26{width:26%} .w-27{width:27%} .w-28{width:28%} .w-29{width:29%} .w-30{width:30%} .w-31{width:31%} .w-32{width:32%} .w-33{width:33%} .w-34{width:34%} .w-35{width:35%} .w-36{width:36%} .w-37{width:37%} .w-38{width:38%} .w-39{width:39%} .w-40{width:40%} .w-41{width:41%} .w-42{width:42%} .w-43{width:43%} .w-44{width:44%} .w-45{width:45%} .w-46{width:46%} .w-47{width:47%} .w-48{width:48%} .w-49{width:49%} .w-50{width:50%} .w-51{width:51%} .w-52{width:52%} .w-53{width:53%} .w-54{width:54%} .w-55{width:55%} .w-56{width:56%} .w-57{width:57%} .w-58{width:58%} .w-59{width:59%} .w-60{width:60%} .w-61{width:61%} .w-62{width:62%} .w-63{width:63%} .w-64{width:64%} .w-65{width:65%} .w-66{width:66%} .w-67{width:67%} .w-68{width:68%} .w-69{width:69%} .w-70{width:70%} .w-71{width:71%} .w-72{width:72%} .w-73{width:73%} .w-74{width:74%} .w-75{width:75%} .w-76{width:76%} .w-77{width:77%} .w-78{width:78%} .w-79{width:79%} .w-80{width:80%} .w-81{width:81%} .w-82{width:82%} .w-83{width:83%} .w-84{width:84%} .w-85{width:85%} .w-86{width:86%} .w-87{width:87%} .w-88{width:88%} .w-89{width:89%} .w-90{width:90%} .w-91{width:91%} .w-92{width:92%} .w-93{width:93%} .w-94{width:94%} .w-95{width:95%} .w-96{width:96%} .w-97{width:97%} .w-98{width:98%} .w-99{width:99%} .w-100{width:100%}
.row-1{grid-row-start:1} .row-2{grid-row-start:2} .row-3{grid-row-start:3} .row-4{grid-row-start:4} .row-5{grid-row-start:5} .row-6{grid-row-start:6} .row-7{grid-row-start:7} .row-8{grid-row-start:8} .row-9{grid-row-start:9} .row-10{grid-row-start:10} .row-11{grid-row-start:11} .row-12{grid-row-start:12}
.span-1{grid-row-end:span 1} .span-2{grid-row-end:span 2}

/* Close-ups on a board: each tile one real piece of the app, enlarged and cropped */
.board-ch { padding-top: var(--pad); padding-bottom: var(--pad); }
.board {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 112px; gap: 8px;
  grid-auto-flow: dense;
}
.tile { position: relative; overflow: hidden; border-radius: var(--radius); }
.t-port { grid-column: span 6; grid-row: span 4; }
.t-bulk, .t-walls { grid-column: span 3; grid-row: span 4; }
.t-head { grid-column: span 6; grid-row: span 2; padding: 20px; }
.t-verified, .t-scan { grid-column: span 3; grid-row: span 2; }
.t-keys, .t-term { grid-column: span 6; grid-row: span 2; }
.cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.cap b { display: block; font-size: var(--step-body); }
.cap span { display: block; font-size: var(--step-small); max-width: 36ch; }
.zoom { position: absolute; font-family: var(--app-font); letter-spacing: 0; color: #000; line-height: 1.2; }
.t-port .zoom { font-size: clamp(22px, 2.6vw, 40px); left: 24px; top: 28px; }
.z-row { display: flex; align-items: center; gap: 0.55em; width: max-content; background: #fff; padding: 0.45em 0.7em; border-radius: 0.35em; margin-bottom: 0.25em; }
.z-n { color: #6e6e73; font-variant-numeric: tabular-nums; width: 1em; }
.z-label b { display: block; font-weight: 600; }
.z-label small { display: block; font-size: 0.6em; color: #6e6e73; }
.z-pill { font-size: 0.55em; padding: 0.2em 0.55em; border-radius: 0.5em; background: #e5e5ea; color: #3a3a3c; font-weight: 600; }
.z-vlan { background: #d8e8ff; color: #0b4ea2; }
.z-poe { background: #ffe9cf; color: #8f4700; }
.t-bulk .zoom { font-size: clamp(22px, 2.4vw, 36px); left: 22px; top: -0.3em; }
.z-stack li { display: block; width: max-content; background: #fff; padding: 0.3em 0.6em; border-radius: 0.25em; margin-top: 0.3em; font-weight: 600; }
.t-walls .zoom { font-size: clamp(18px, 1.9vw, 28px); left: 22px; top: 22px; right: -2em; }
.z-list { background: #fff; border-radius: 0.45em; padding: 0.15em 0; }
.z-list li { padding: 0.42em 0.8em; display: flex; justify-content: space-between; gap: 1em; white-space: nowrap; }
.z-list li + li { border-top: 1px solid #e5e5ea; }  /* taste-skill-ignore: the app's list separator, inside a data-ui fragment */
.z-list li.on::after { content: ""; width: 0.32em; height: 0.62em; margin: 0 0.2em 0.15em 0; border: solid #0071d4; border-width: 0 0.13em 0.13em 0; rotate: 45deg; }  /* taste-skill-ignore: the app's checkmark, drawn, inside a data-ui fragment */
.t-head h2 { position: relative; z-index: 1; }
.t-verified .zoom { font-size: clamp(24px, 2.6vw, 40px); right: -0.6em; top: 18px; }
.z-status { position: relative; display: inline-flex; align-items: center; gap: 0.35em; background: #fff; color: #1f6b33; padding: 0.3em 0.8em 0.3em 0.6em; border-radius: 1em; font-weight: 600; }
.z-status::before { content: ""; width: 1em; height: 1em; border-radius: 50%; background: #2e7d42; }
.z-status::after { content: ""; position: absolute; left: 0.94em; top: 50%; width: 0.22em; height: 0.44em; margin-top: -0.28em; border: solid #fff; border-width: 0 0.1em 0.1em 0; rotate: 45deg; }  /* taste-skill-ignore: the app's checkmark, drawn, inside a data-ui fragment */
.t-scan .zoom { font-size: clamp(18px, 1.8vw, 28px); left: 20px; top: 18px; right: -1.5em; }
.z-scan { display: block; background: #fff; padding: 0.45em 0.7em; border-radius: 0.35em; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.z-scan small { display: block; font-size: 0.6em; font-weight: 400; color: #6e6e73; }
.t-keys .zoom { font-size: clamp(36px, 4.4vw, 68px); right: 24px; top: -0.25em; display: flex; gap: 0.18em; }
.z-key { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; background: #fff; border-radius: 0.2em; font-weight: 500; }
.t-term .zoom { font-size: clamp(16px, 1.45vw, 22px); right: -1.5em; top: 18px; width: 22em; }
.z-term { background: #fff; padding: 0.7em 0.9em; border-radius: 0.45em; }
.z-term b { display: block; font-size: 1.15em; font-weight: 600; margin-bottom: 0.15em; }

/* Coverage: real prints of the floor plan, dropped beside the heading */
.prints-ch { min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); grid-template-rows: auto 1fr auto; }
.prints-ch h2 { grid-column: 1 / span 5; grid-row: 1; align-self: start; }
.print {
  position: absolute; background: var(--paper); padding: 8px; border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.print img { border-radius: 1px; }
.print:hover { transform: rotate(0deg) scale(1.02); z-index: 4; }
.print-a { width: 26vw; left: 44vw; top: 12%; transform: rotate(-8deg); z-index: 2; }
.print-b { width: 26vw; left: 64vw; top: 20%; transform: rotate(6deg); z-index: 3; }
.print-c { width: 16vw; left: 28vw; bottom: -6vw; transform: rotate(3deg); z-index: 1; }
.prints-note { grid-column: 1 / span 4; grid-row: 3; align-self: end; max-width: 34ch; position: relative; z-index: 5; }
.print-a.shut img { clip-path: inset(100% 0 0 0); transform: scale(1.12); }
.print-a.shut.open img { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1), transform 1.4s var(--ease); }

/* Planned to verified: the checklist's own progress bar, enlarged to the page */
.stages-ch h2 { margin-bottom: 64px; }
.stages { display: flex; gap: 6px; min-height: max(150px, 22vh); padding-bottom: 150px; }
.stage { position: relative; min-width: 12%; border-radius: var(--radius); padding: 20px; color: var(--ink); }
.stage span { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.stage p { position: absolute; left: 0; top: calc(100% + 18px); width: min(22ch, 100%); padding-right: 8px; color: var(--paper-ink); }
.s-planned { flex: 10 1 0; background: var(--gray); }
.s-wired { flex: 2 1 0; background: var(--orange); }
.s-installed { flex: 3 1 0; background: var(--blue); }
.s-verified { flex: 5 1 0; background: var(--green); }
.s-planned p { width: 22ch; }
.stages-note { margin-top: 8px; color: #3c3c43; font-size: var(--step-small); }

/* Hand it over: the pack's parts filed as folders that pile up */
.handover-ch { background: var(--bg); padding-top: clamp(72px, 9vw, 128px); }
.handover-head { padding: 0 var(--pad) clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.handover-head h2 { grid-column: 1 / span 6; }
.handover-head p { grid-column: 8 / span 5; max-width: 40ch; }
.folder { position: relative; min-height: 80svh; padding: 0 var(--pad) clamp(40px, 5vw, 72px); border-radius: var(--radius) var(--radius) 0 0; }
.folder-strip { height: 64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.folder-strip span { font-size: var(--step-small); padding-bottom: 20px; }
.tab {
  align-self: flex-start; display: inline-flex; align-items: center; height: 44px; margin-top: 10px;
  padding: 0 30px; min-width: 220px; background: var(--bg); color: var(--ink);
  font-size: var(--step-lead); letter-spacing: -0.02em; white-space: nowrap;
  clip-path: polygon(0 100%, 12px 0, calc(100% - 12px) 0, 100% 100%);
}
.folder-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-top: 28px; align-items: start; }
.folder-body img { grid-column: 1 / span 7; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); background: #fff; }
.folder-body p { grid-column: 9 / span 4; font-size: var(--step-lead); line-height: 1.35; }

/* Plans that step up */
.pricing-ch h2 { margin-bottom: 56px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.plan { position: relative; border-radius: var(--radius); padding: 28px 28px 92px; display: flex; flex-direction: column; overflow: hidden; }
.p-free { min-height: 360px; }
.p-pro { min-height: 480px; }
.p-life { min-height: 600px; }
.plan h3 { font-size: var(--step-lead); }
.price { font-size: var(--step-mid); font-weight: 500; letter-spacing: -0.03em; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.price span { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.plan li + li { margin-top: 6px; }
.plan-go {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center;
  padding: 0 28px; text-decoration: none; font-weight: 500; transition: background-color 0.2s var(--ease);
}
.p-free .plan-go { background: #5a5a5e; }
.p-free .plan-go:hover { background: #4b4b4f; }
.p-pro .plan-go { background: #00616a; }
.p-pro .plan-go:hover { background: #00525a; }
.p-life .plan-go { background: #005bb0; }
.p-life .plan-go:hover { background: #004f99; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: var(--step-small); }

/* Questions: an accordion of filled tiles */
.faq-ch { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.faq-ch h2 { grid-column: 1 / span 4; position: sticky; top: 40px; }
.faq { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq details { background: #2c2c2e; border-radius: var(--radius); transition: background-color 0.25s var(--ease); }
.faq details[open] { background: var(--accent); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; position: relative;
  font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 24px; top: 34px; width: 16px; height: 3px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { background: rgb(255 255 255 / 0.06); }
.faq details p { padding: 0 24px 24px; max-width: 56ch; }

/* The close */
.get-ch { padding-bottom: clamp(48px, 6vw, 80px); }
.get-ch { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.get { grid-column: 1 / span 7; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.get p { font-size: var(--step-lead); line-height: 1.35; max-width: 30em; }
.get-shot { grid-column: 9 / span 4; justify-self: end; width: min(100%, 360px); }
.get-shot img { border-radius: var(--radius); }

/* The footer: the name first, places under it */
.foot { padding: 0 var(--pad) 28px; overflow: hidden; }
.foot-name { font-size: 29.4vw; font-weight: 500; line-height: 0.8; letter-spacing: -0.065em; margin: 0 0 0 -0.04em; white-space: nowrap; }
.foot-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 72px; }
.foot-places { grid-column: 1 / span 5; }
.foot-places li + li { margin-top: 6px; }
.foot-places a { font-size: var(--step-mid); letter-spacing: -0.03em; color: var(--paper-link); text-decoration: none; }
.foot-places a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot-links { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot-links li + li { margin-top: 8px; }
.foot-links a, .foot-links span { font-size: var(--step-small); }
.foot-links a { text-underline-offset: 4px; }
.foot-legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; font-size: var(--step-small); }
.foot-legal p { max-width: 70ch; }

/* Entrances: each section's parts rise in turn, once */
.js [data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in > * { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .bar-nav { gap: 20px; }
  .rack-ch { grid-template-columns: 1fr; row-gap: 48px; }
  .rack-plate { max-width: 680px; }
  .t-head { grid-column: span 12; grid-row: span 1; }
  .t-port { grid-column: span 12; grid-row: span 3; }
  .t-bulk, .t-walls { grid-column: span 6; grid-row: span 3; }
  .t-verified, .t-scan, .t-keys, .t-term { grid-column: span 6; grid-row: span 2; }
  .t-term .zoom { width: 18em; }
  .print-a { width: 34vw; left: 36vw; top: 26%; }
  .print-b { width: 34vw; left: 60vw; top: 32%; }
  .print-c { display: none; }
  .prints-note { grid-column: 1 / span 5; }
  .handover-head h2 { grid-column: 1 / span 6; }
  .handover-head p { grid-column: 7 / span 6; }
  .folder-body img { grid-column: 1 / -1; }
  .folder-body p { grid-column: 1 / -1; margin-top: 24px; max-width: 40ch; }
  .faq-ch h2 { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .faq { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .bar-nav { display: none; }
  .bar-get { margin-left: auto; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 6svh; min-height: calc(100svh - 76px); }
  .hero-text { grid-column: 1; }
  .hero h1 { font-size: 11.5vw; }
  .jack { height: auto; width: 130vw; left: -15vw; top: calc(max(66svh, 520px) - 13vw); bottom: auto; rotate: 90deg; }
  .hero-sub { margin-top: 24px; font-size: var(--step-body); }
  .hero-actions { margin-top: 24px; }
  .rack-plate { aspect-ratio: auto; }
  .ra-stats { grid-template-columns: repeat(3, 1fr); }
  .ra-rack { --ru: 26px; }
  .rack-cells { grid-template-columns: 1fr; }
  .cell { min-height: 64px; }
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(100px, 26vw, 150px); gap: 6px; }
  .t-port .zoom { font-size: clamp(18px, 4vw, 32px); }
  .t-head { grid-column: span 2; grid-row: span 1; }
  .t-keys .zoom { font-size: clamp(40px, 10vw, 72px); right: 16px; }
  .t-port { grid-column: span 2; grid-row: span 3; }
  .t-bulk, .t-walls, .t-verified, .t-scan { grid-column: span 1; grid-row: span 2; }
  .t-keys, .t-term { grid-column: span 2; grid-row: span 2; }
  .cap { left: 14px; right: 14px; bottom: 12px; }
  .t-walls .zoom, .t-scan .zoom { left: 14px; top: 14px; }
  .t-bulk .zoom, .t-walls .zoom { font-size: 16px; }
  .t-bulk .zoom { top: 6px; }
  .z-stack li:nth-child(n+4), .z-list li:nth-child(n+4) { display: none; }
  .t-verified .zoom { font-size: 20px; }
  .t-scan .zoom { font-size: 15px; }
  .t-port .zoom { left: 14px; top: 16px; }
  .prints-ch { min-height: auto; display: block; padding-bottom: 72px; }
  .print { position: relative; display: block; }
  .print-a, .print-b { width: 52vw; left: auto; top: auto; }
  .print-c { display: none; }
  .print-a { margin: 40px 0 0 6vw; }
  .print-b { margin: -40vw 0 0 38vw; }
  .prints-note { margin-top: 48px; }
  .stages { flex-direction: column; min-height: 0; padding-bottom: 0; }
  .stage { min-width: 0; min-height: 72px; padding: 16px; }
  .s-planned { flex: none; min-height: 200px; }
  .s-wired { flex: none; min-height: 72px; }
  .s-installed { flex: none; min-height: 90px; }
  .s-verified { flex: none; min-height: 130px; }
  .stage p, .s-planned p { position: static; width: auto; margin-top: 8px; font-size: var(--step-body); color: var(--ink); }
  .folder { position: relative; top: auto; min-height: 0; }
  .folder-strip { height: auto; flex-wrap: wrap; align-items: center; padding-top: 12px; gap: 6px 14px; }
  .folder-strip span { padding-bottom: 0; }
  .tab { height: 40px; min-width: 0; margin-top: 0; padding: 0 22px; font-size: 1.25rem; }
  .folder-body { padding-top: 16px; }
  .plans { grid-template-columns: 1fr; }
  .p-free, .p-pro, .p-life { min-height: 0; }
  .p-pro { padding-top: 32px; }
  .p-life { padding-top: 36px; }
  .faq summary { min-height: 64px; padding: 18px 56px 18px 20px; }
  .faq summary::before, .faq summary::after { top: 30px; right: 20px; }
  .faq details p { padding: 0 20px 20px; }
  .get-ch { grid-template-columns: 1fr; row-gap: 48px; }
  .get, .get-shot { grid-column: 1; }
  .get-shot { justify-self: start; width: min(78%, 320px); }
  .foot-row { grid-template-columns: 1fr; row-gap: 40px; margin-top: 40px; }
  .foot-places, .foot-links { grid-column: 1; }
  .foot-places a { font-size: 1.625rem; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-legal { margin-top: 56px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] > * { opacity: 1; transform: none; transition: none; }
  .ra-dev { animation: none; }
  .print, .jack-btn, .cell, .ra-bar i { transition: none; }
}

/* Privacy, support and 404: a plain document on black */
.doc { padding: clamp(56px, 8vw, 112px) var(--pad) clamp(80px, 10vw, 144px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.doc > * { grid-column: 3 / span 8; }
.doc h1 { font-size: var(--step-head); }
.doc .doc-sub { margin-top: 24px; color: var(--muted); }
.doc .lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.4; }
.doc h2 { margin-top: 64px; font-size: var(--step-mid); line-height: 1.1; letter-spacing: -0.03em; }
.doc h3 { margin-top: 32px; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc a { text-underline-offset: 4px; }
.doc .jack-btn { margin-top: 24px; }
.lost { min-height: calc(100svh - 76px); align-content: center; }
.doc-foot { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); gap: 12px var(--gap); padding: 40px var(--pad) 32px; background: var(--surface); font-size: var(--step-small); }
.doc-foot > * { grid-column: span 4; }
.doc-foot nav { display: flex; gap: 20px; }
.doc-foot p:last-child { text-align: right; }
@media (max-width: 1100px) { .doc > * { grid-column: 1 / span 10; } }
@media (max-width: 820px) {
  .doc > * { grid-column: 1 / -1; }
  .doc-page .bar-nav { display: flex; gap: 16px; }
  .doc-foot > * { grid-column: 1 / -1; }
  .doc-foot p:last-child { text-align: left; }
}
