/* The tokens of AGENTS.md, section 9. Light only, as the apps are. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand: #a8472b;
  --brand-dark: #7a3320;
  --brand-soft: #f7e6de;
  --page: #f4f6f6;
  --surface: #ffffff;
  --ink: #172120;
  --ink-muted: #586362;
  --border: #dce1e0;
  --border-strong: #c5cccb;
  --divider: #ecefef;

  /* Not in section 9: the white on Brand, and the phone that holds the screenshots. */
  --on-brand: #ffffff;
  --on-brand-line: rgb(255 255 255 / 0.55);
  --on-brand-hover: rgb(255 255 255 / 0.1);
  --phone: #121817;
  --phone-edge: rgb(255 255 255 / 0.18);
  --phone-island: #000000;
  --phone-shadow: rgb(23 33 32 / 0.55);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: var(--brand-dark);
}

a:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.header img {
  display: block;
  height: 44px;
  width: auto;
}

.header nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.header nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.header nav a:hover {
  color: var(--ink);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
}

h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

h3 {
  margin: 20px 0 4px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

ul,
ol {
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

.updated {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 14px;
}

.footer {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}

.footer a {
  color: var(--ink-muted);
}

@media (max-width: 560px) {
  .card {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .header img {
    height: 36px;
  }
}

/* Get the app, at /get, where the QR code for building managers points. */

.card .stores {
  margin-bottom: 24px;
}

.card .stores + p {
  margin: 0;
}

/* The landing page, at /: one day in one building, told on ruled lines as a timetable is. */

/* As specific as the page-wide rules above, so that a class below wins over them. */
:where(.landing) h1,
:where(.landing) h2,
:where(.landing) h3,
:where(.landing) p,
:where(.landing) ul,
:where(.landing) ol,
:where(.landing) li,
:where(.landing) dl,
:where(.landing) dd,
:where(.landing) figure {
  margin: 0;
}

:where(.landing) ul,
:where(.landing) ol {
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Masthead */

.masthead {
  border-bottom: 1px solid var(--border);
}

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.masthead-logo img {
  display: block;
  width: 60px;
  height: 44px;
}

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

.masthead-links a {
  color: var(--ink-muted);
  font-size: 15px;
  text-decoration: none;
}

.masthead-links a:hover {
  color: var(--ink);
}

.masthead-links .masthead-admin {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
}

.masthead-links .masthead-admin:hover {
  border-color: var(--ink);
}

/* Hero */

.hero {
  padding: 72px 0 112px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 72px;
}

.hero-name {
  color: var(--ink-muted);
  font-size: 15px;
}

.hero-name::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  margin-right: 16px;
  vertical-align: middle;
  background: var(--brand);
}

.hero h1 {
  margin: 24px 0 32px;
  font-size: clamp(56px, 8.6vw, 116px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-stores {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: block;
  border-radius: 8px;
}

.store img {
  display: block;
  width: auto;
  height: 48px;
}

/* A phone stands straight in a panel, cut off by the panel's lower edge. */

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px;
}

.stage-brand {
  height: 620px;
  padding-top: 64px;
  background: var(--brand);
}

.stage-brand figcaption {
  position: absolute;
  top: 24px;
  left: 28px;
  color: var(--brand-soft);
  font-size: 13px;
  font-weight: 600;
}

.stage-soft {
  height: 430px;
  margin-top: 28px;
  padding-top: 44px;
  background: var(--brand-soft);
}

.phone {
  width: 300px;
  height: max-content;
  flex: none;
  padding: 10px;
  border-radius: 52px;
  background: var(--phone);
  box-shadow:
    inset 0 0 0 1.5px var(--phone-edge),
    0 40px 80px -36px var(--phone-shadow);
}

.stage-soft .phone {
  width: 260px;
  padding: 9px;
  border-radius: 46px;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  border-radius: 42px;
  background: var(--page);
}

.stage-soft .phone-screen {
  border-radius: 37px;
}

.phone-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-island {
  position: absolute;
  top: 1.3%;
  left: 50%;
  width: 31%;
  height: 4.1%;
  border-radius: 999px;
  background: var(--phone-island);
  transform: translateX(-50%);
}

/* Sections: the heading on the left, held while its content scrolls by on the right. */

.section {
  padding: 112px 0;
}

.section-surface {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 72px;
}

.split-head {
  position: sticky;
  top: 40px;
  align-self: start;
}

.split-head h2,
.privacy-label,
.managers h2 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.split-head p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 17px;
}

/* A day */

.day {
  border-top: 2px solid var(--ink);
}

.moment {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.moment-time {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.moment-time span {
  color: var(--ink-muted);
  font-size: 15px;
  letter-spacing: 0;
}

.moment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.moment-label .icon {
  width: 16px;
  height: 16px;
}

.moment h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.moment-body > p:not(.moment-label) {
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 17px;
}

/* Everything in it, as the lobby's directory lists its floors. */

.directory {
  border-top: 2px solid var(--ink);
}

.directory > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.directory dt {
  font-size: 17px;
  font-weight: 600;
}

.directory dd {
  color: var(--ink-muted);
}

/* Join */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 2px solid var(--ink);
}

.steps li {
  padding-top: 28px;
}

.step-no {
  display: block;
  color: var(--brand);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.steps h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.steps p {
  color: var(--ink-muted);
  font-size: 15px;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px 72px;
  margin-top: 112px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.privacy-text {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.text-link {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  font-weight: 600;
}

/* Building managers */

.managers {
  padding: 112px 0;
  background: var(--brand);
  color: var(--on-brand);
}

.managers a:focus-visible {
  outline-color: var(--on-brand);
}

.managers-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 72px;
}

.managers-copy > p {
  color: var(--brand-soft);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-light {
  background: var(--on-brand);
  color: var(--brand-dark);
}

.button-light:hover {
  background: var(--brand-soft);
}

.button-outline {
  border: 1px solid var(--on-brand-line);
  color: var(--on-brand);
}

.button-outline:hover {
  background: var(--on-brand-hover);
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand img {
  display: block;
  width: 49px;
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p + p {
  margin-top: 4px;
}

.footer-brand .footer-product {
  color: var(--ink);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 12px;
}

.footer-legal p + p {
  margin-top: 8px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .privacy,
  .managers-grid {
    gap: 48px;
  }

  .directory > div {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 80px;
  }

  .hero-grid,
  .split,
  .privacy,
  .managers-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 56px;
  }

  .stage-brand {
    height: 560px;
  }

  .section,
  .managers {
    padding: 80px 0;
  }

  .split,
  .managers-grid {
    gap: 32px;
  }

  .split-head {
    position: static;
  }

  .split-head h2,
  .privacy-label,
  .managers h2 {
    font-size: 36px;
  }

  .privacy {
    gap: 12px;
    margin-top: 80px;
  }

  .text-link {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .masthead-bar {
    height: 68px;
  }

  .masthead-links a:not(.masthead-admin) {
    display: none;
  }

  .hero h1 {
    margin: 20px 0 24px;
  }

  .hero-lead,
  .managers-copy > p {
    font-size: 18px;
  }

  .stage-brand {
    height: 500px;
    padding-top: 56px;
  }

  .stage-brand .phone {
    width: 260px;
    padding: 9px;
    border-radius: 46px;
  }

  .stage-brand .phone-screen {
    border-radius: 37px;
  }

  .moment {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
  }

  .moment-time {
    font-size: 28px;
  }

  .moment h3 {
    font-size: 21px;
  }

  .stage-soft {
    height: 400px;
    margin-right: -20px;
    margin-left: -20px;
    border-radius: 0;
  }

  .directory > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .steps li + li {
    margin-top: 28px;
    border-top: 1px solid var(--border);
  }

  .step-no {
    font-size: 44px;
  }

  .privacy-text {
    font-size: 22px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
  }
}
