/* Front Desk website. One stylesheet for the landing page and the two document pages. */

:root {
  --text: #0b1026;
  --muted: #55607a;
  --background: #f5f7fc;
  --surface: #ffffff;
  --rule: #e1e6f0;
  --link: #1f5fd9;
  --accent: #1f5fd9;
  --shadow: 0 1px 2px rgba(11, 16, 38, 0.06), 0 12px 32px rgba(11, 16, 38, 0.08);
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f4fa;
    --muted: #a3acc2;
    --background: #0a0d18;
    --surface: #131829;
    --rule: #252b40;
    --link: #8fb2ff;
    --accent: #4f8dff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
}

h1,
h2,
h3 {
  font-family: var(--rounded);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p,
ul,
ol {
  margin: 0.6rem 0;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 700 1.1rem var(--rounded);
  color: var(--text);
  text-decoration: none;
}

.brand img {
  border-radius: 22.5%;
  box-shadow: 0 2px 8px rgba(11, 16, 38, 0.18);
}

.site-header nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

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

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

.brand,
.site-header nav a {
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .site-header nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }

  .site-header nav a.optional {
    display: none;
  }
}

/* On most phones there is comfortable room for the name and one link. */
@media (max-width: 26rem) {
  .site-header nav a.roomy {
    display: none;
  }
}

/* Hero */

.hero {
  color: #fff;
  background:
    radial-gradient(60rem 34rem at 85% -10%, rgba(61, 139, 255, 0.55), transparent 62%),
    radial-gradient(46rem 30rem at -5% 110%, rgba(124, 77, 255, 0.4), transparent 60%),
    #0b1026;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3.5rem;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.eyebrow {
  font: 600 0.82rem var(--rounded);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9c6ff;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 800;
}

.lead {
  font-size: 1.2rem;
  color: #d5def5;
  margin: 1.25rem 0 2rem;
  max-width: 32rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}

.cta small {
  color: #b9c6e6;
  font-size: 0.92rem;
  max-width: 15rem;
  line-height: 1.35;
}

.button {
  display: inline-block;
  background: #fff;
  color: #0b1026;
  font: 700 1.05rem var(--rounded);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* Devices */

.hero-art {
  position: relative;
  padding: 0 11% 9% 0;
}

.device {
  background: #10131c;
  border-radius: 1.6rem;
  padding: 0.7rem;
  box-shadow: 0 2.2rem 5rem rgba(2, 6, 26, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.device .screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: #0b1026;
}

.device .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  border-radius: 1.9rem;
  padding: 0.4rem;
}

.device.phone .screen {
  aspect-ratio: 598 / 1300;
  border-radius: 1.55rem;
}

/* The Dynamic Island, which screenshots leave out. */
.device.phone .screen::after {
  content: "";
  position: absolute;
  top: 3%;
  left: 50%;
  width: 28%;
  height: 3.6%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

/* The tablet cycles through signs the way the app's rotation does. */
.rotation img {
  opacity: 0;
  animation: rotation 20s infinite;
}

.rotation img:nth-child(1) { animation-delay: -1s; }
.rotation img:nth-child(2) { animation-delay: 3s; }
.rotation img:nth-child(3) { animation-delay: 7s; }
.rotation img:nth-child(4) { animation-delay: 11s; }
.rotation img:nth-child(5) { animation-delay: 15s; }

@keyframes rotation {
  0% { opacity: 0; }
  4% { opacity: 1; }
  20% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

/* Sections */

section {
  padding: 5rem 0;
  /* Keeps a heading clear of the sticky header when a menu link jumps to it. */
  scroll-margin-top: 3.6rem;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2,
.split h2,
.panel h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

/* Signs */

.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.75rem;
}

.sign-card .frame {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.sign-card:hover .frame {
  transform: translateY(-4px);
}

.sign-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sign-card h3 {
  font-size: 1.15rem;
  margin-top: 1rem;
}

.sign-card p {
  color: var(--muted);
  margin: 0.3rem 0 0;
  font-size: 0.98rem;
}

/* The Message sign is drawn live, since a still can't show it scrolling. It runs the full
   width of the grid, as a banner would. */
.sign-card.wide {
  grid-column: 1 / -1;
}

.sign-card.wide .frame {
  aspect-ratio: auto;
  height: 9.5rem;
}

.marquee {
  display: flex;
  align-items: center;
  height: 100%;
  background: linear-gradient(#a3113f, #e04a7b);
  color: #fff;
  font: 800 5.2rem var(--rounded);
  white-space: nowrap;
}

.marquee span {
  flex: none;
  padding-right: 0.6em;
  animation: marquee 14s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* Features */

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--background);
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  padding: 1.4rem;
}

.feature svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.08rem;
  margin: 0.9rem 0 0.3rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* Two-column sections */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 3.5rem;
}

.split p {
  color: var(--muted);
  font-size: 1.08rem;
}

.split .device {
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.swatches li {
  width: 2.3rem;
  height: 2.3rem;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.3);
}

.fonts {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.7rem;
  font-weight: 700;
}

.fonts li:nth-child(1) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fonts li:nth-child(2) { font-family: var(--rounded); }
.fonts li:nth-child(3) { font-family: ui-serif, "New York", Georgia, serif; }
.fonts li:nth-child(4) { font-family: var(--mono); }

/* Organizations */

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  background: #0b1026;
  background-image: radial-gradient(40rem 22rem at 100% 0%, rgba(61, 139, 255, 0.35), transparent 65%);
  color: #fff;
  border-radius: 1.6rem;
  padding: 3rem;
}

.panel p {
  color: #cdd7f0;
  font-size: 1.05rem;
}

.panel pre {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe6ff;
  margin: 0;
  font-size: 0.86rem;
}

.panel .button {
  margin-top: 1rem;
}

/* Support */

.faq {
  max-width: 46rem;
  margin: 0 auto;
}

details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  margin: 0.7rem 0;
  padding: 0 1.2rem;
}

summary {
  cursor: pointer;
  font: 600 1.05rem var(--rounded);
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.contact {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.93rem;
  padding: 2rem 0 3rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

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

/* Document pages: privacy policy and configuration reference */

.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.5rem;
}

.doc h1 {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 800;
}

.doc h2 {
  font-size: 1.4rem;
  margin: 2.6rem 0 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.doc h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.3rem;
}

.meta {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 0.6rem;
}

ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

code {
  font: 0.88em var(--mono);
  background: var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.3em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.4;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  color: var(--muted);
  font-weight: 600;
}

/* The configuration builder */

fieldset {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem 1rem;
}

legend {
  font: 700 1rem var(--rounded);
  padding: 0 0.4rem;
}

.field,
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.55rem 0;
}

.field > span {
  flex: 0 0 42%;
  color: var(--muted);
  font-size: 0.94rem;
}

.field > input,
.field > select {
  flex: 1;
  min-width: 0;
}

input,
select,
button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="number"],
input[type="time"],
select {
  background: var(--background);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

button.quiet {
  background: none;
  color: var(--link);
  padding: 0.4rem 0;
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.actions .check {
  margin: 0;
  margin-right: auto;
}

.hours .day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
}

.hours .times {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.warnings {
  color: #c2410c;
  padding-left: 1.2rem;
}

.warnings:empty {
  display: none;
}

.confirmation {
  color: var(--muted);
}

/* Narrow screens */

@media (max-width: 54rem) {
  .hero .wrap,
  .split,
  .panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .wrap {
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .panel {
    padding: 2rem 1.4rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rotation img,
  .marquee span {
    animation: none;
  }

  .rotation img:first-child {
    opacity: 1;
  }

  .button,
  .sign-card .frame {
    transition: none;
  }
}
