@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.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-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

/* A plain white page in the LinkStore brand. The screenshots copy the light
   app from docs/design/linkstore-design.html: gradient top bar, rail, grey
   content area with white cards. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #23252b;
  --fg-muted: #5d6371;
  --line: #e3e5eb;
  --input: #c9cdd6;
  --brand: #8c1db6;
  --brand-hover: #74169a;
  --brand-text: #7a179f;
  --ring: #009cd2;
  --danger: #b00900;
  --ok: #0e6b41;

  /* App tokens used inside the screenshots */
  --app-bg: #f4f5f8;
  --app-card: #ffffff;
  --app-muted: #eceef3;
  --app-border: #dadde5;
  --app-gradient: linear-gradient(90deg, #009cd2 0%, #0a7fb8 35%, #8c1db6 100%);
  --success: #0e6b41;
  --success-bg: #e5f5ec;
  --success-border: #9fd6b8;
  --warning: #8a4b00;
  --warning-bg: #fff3d6;
  --warning-border: #f0c46a;
  --info: #00618a;
  --info-bg: #e6f7fe;
  --info-border: #8fd3f0;
  --ga: #cadbfe;
  --ga-b: #7f9fe6;
  --gb: #ffefcb;
  --gb-b: #e5be5c;
  --gc: #d9eaca;
  --gc-b: #8db86a;

  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --head-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}
a {
  color: var(--brand-text);
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ring) 55%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}
.mono {
  font-family: var(--font-mono);
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section[id] {
  scroll-margin-top: calc(var(--head-h) + 8px);
}

/* Header */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
  flex: none;
}
.primary {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.primary a,
.text-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.primary a:hover,
.text-link:hover,
.primary a[aria-current="true"] {
  color: var(--fg);
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font: 500 0.95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm {
  min-height: 36px;
  padding-inline: 0.9rem;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--brand-hover);
}
.btn-ghost {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--input);
}
.btn-ghost:hover {
  border-color: var(--fg-muted);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 44rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 40rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-shot {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.shot-scroll {
  overflow-x: auto;
  padding: 2px 2px 24px;
}

/* Sections */
.features,
.security {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 44rem;
}
h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.sec-head p {
  color: var(--fg-muted);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.chapters {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chapter {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 1.5rem;
}
.chapter:first-child {
  justify-content: flex-start;
}
.chapter:last-child {
  min-height: 50vh;
}
.chapter h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--fg-muted);
  transition: color 0.25s ease;
}
.chapter.is-current h3 {
  color: var(--fg);
}
.chapter p {
  color: var(--fg-muted);
  max-width: 34rem;
}
.inline-view {
  display: none;
  margin-top: 0.75rem;
}
.stage {
  position: sticky;
  top: calc(var(--head-h) + 2rem);
  display: grid;
  min-width: 0;
}
.view {
  grid-area: 1 / 1;
  min-width: 0;
}
.stage .view {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}
.stage .view.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0s;
}

.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 3rem;
}
.facts-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.facts-list h3 {
  font-size: 1.05rem;
}
.facts-list p {
  color: var(--fg-muted);
}

/* Contact */
.contact {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-intro p {
  color: var(--fg-muted);
  max-width: 30rem;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}
.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.field-row.full {
  grid-column: 1 / -1;
}
.field-row label {
  font-weight: 500;
  font-size: 0.93rem;
}
.opt {
  font-weight: 400;
  color: var(--fg-muted);
}
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--input);
  border-radius: 6px;
}
.field-row textarea {
  min-height: 7rem;
  resize: vertical;
}
.field-row [aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  font-size: 0.86rem;
  color: var(--danger);
}
.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  grid-column: 1 / -1;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.note {
  font-size: 0.88rem;
  color: var(--fg-muted);
}
.sent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.sent:focus {
  outline: none;
}
.sent h3 {
  font-size: 1.5rem;
}
.sent p {
  color: var(--fg-muted);
}

.foot {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.foot nav {
  display: flex;
  gap: 1.5rem;
}
.foot a {
  color: var(--fg-muted);
}

/* Page not found */
.not-found {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Screenshots of the app */
.shot {
  container-type: inline-size;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(20, 22, 30, 0.06),
    0 16px 40px -12px rgba(20, 22, 30, 0.18);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg);
}
.shot-wide {
  min-width: 860px;
}
.shot-top {
  background: var(--app-gradient);
  color: #ffffff;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
}
.shot-top b {
  font-size: 14px;
  font-weight: 600;
}
.shot-top .ctx {
  font-size: 12px;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-body {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
}
.shot-rail {
  border-right: 1px solid var(--app-border);
  padding: 8px 6px 12px;
  display: grid;
  align-content: start;
  gap: 1px;
}
.shot-rail .k {
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 8px 3px;
  font-weight: 600;
}
.shot-rail .i {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.shot-rail .i svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--fg-muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shot-rail .i.on {
  background: color-mix(in srgb, var(--brand) 10%, #ffffff);
  color: var(--brand-text);
  font-weight: 600;
}
.shot-rail .i.on svg {
  stroke: var(--brand-text);
}
.shot-main {
  background: var(--app-bg);
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
@container (max-width: 620px) {
  .shot-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-rail {
    display: none;
  }
}
.ph {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 16px;
}
.ph-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.ph-desc {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.ph-actions {
  display: flex;
  gap: 6px;
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--input);
  background: var(--app-card);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.fake-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}
.t-scroll {
  overflow-x: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.data th {
  background: var(--app-muted);
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 7px 10px;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}
table.data td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}
table.data tr:last-child td {
  border-bottom: 0;
}
table.data .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.data .lso {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand-text);
}
.over {
  color: var(--danger);
  font-weight: 600;
}
.under {
  color: var(--fg-muted);
}
.tfoot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--app-border);
  font-size: 11.5px;
  color: var(--fg-muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 1px 8px 1px 6px;
  font-size: 11px;
  line-height: 17px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.badge svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.badge svg path {
  fill: currentColor;
}
.b-neutral {
  background: var(--app-muted);
  color: var(--fg);
  border-color: var(--app-border);
}
.b-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}
.b-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}
.b-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 9px 14px;
}
.facts div {
  display: grid;
}
.fk {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
.fv {
  font-weight: 500;
}
.trailer {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}
.trailer-h {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.trailer-h span {
  font-weight: 400;
  color: var(--fg-muted);
}
.spaces {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 5px;
}
.sp {
  border: 1.5px solid var(--app-border);
  border-radius: 6px;
  padding: 5px 7px;
  min-height: 64px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1px;
  font-size: 11.5px;
  min-width: 0;
}
.sp .s1 {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.sp .s1 .code {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 10.5px;
}
.sp .gr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp .sz {
  align-self: end;
  color: var(--fg-muted);
  font-size: 10.5px;
}
.sp.ga {
  background: var(--ga);
  border-color: var(--ga-b);
}
.sp.gb {
  background: var(--gb);
  border-color: var(--gb-b);
}
.sp.gc {
  background: var(--gc);
  border-color: var(--gc-b);
}
.sp.is-over {
  border-color: var(--danger);
}
.sp.is-over .sz {
  color: var(--danger);
  font-weight: 600;
}
.scan {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.scan .field {
  width: 100%;
  border: 1px solid var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 20%, transparent);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--fg-muted);
  font-size: 13px;
}
.progress-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.meter {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--app-muted);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 76%;
  background: var(--brand);
}
.rooms-card {
  padding: 12px;
}
.rooms {
  display: grid;
  grid-template-columns: 1.2rem repeat(10, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  font-size: 10.5px;
  color: var(--fg-muted);
}
.rooms .bay {
  text-align: center;
  font-family: var(--font-mono);
}
.loc {
  height: 22px;
  border-radius: 3px;
  border: 1px dashed var(--app-border);
}
.loc.full {
  border-style: solid;
  background: var(--app-muted);
  border-color: var(--input);
}
.loc.moved {
  border-style: solid;
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

/* Narrow screens */
@media (max-width: 1080px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage {
    display: none;
  }
  .inline-view {
    display: block;
  }
  .chapter,
  .chapter:last-child {
    min-height: 0;
  }
  .chapter h3 {
    color: var(--fg);
  }
  .facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .primary {
    display: none;
  }
  .head-actions {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  .facts-list,
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .head-actions .text-link {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
