/*
 * Hazir — marketing site.
 *
 * Same tokens as the product, so the site and the app cannot drift apart visually. Hand
 * written rather than built: it is four pages of static HTML, and a build step would add
 * a toolchain to maintain for no reader-visible gain.
 */

:root {
  --ink: #0f1a22;
  --ink-2: #43555f;
  --ink-3: #7c8d96;
  --ink-4: #a9b6bd;

  --green-50: #eff9f4;
  --green-100: #d9f1e6;
  --green-500: #17b37a;
  --green-600: #0e9c68;
  --green-700: #0e7c5b;
  --green-900: #0a3d2c;

  --amber: #e8981f;
  --amber-soft: #fdf1dc;
  --red: #de4f3a;

  --paper: #ffffff;
  --paper-2: #f5f9f7;
  --paper-3: #e9f1ee;
  --line: #e3eae7;
  --line-2: #edf2f0;

  --dark: #0d1b16;
  --dark-2: #14261f;
  --on-dark: #eaf2ee;
  --on-dark-2: #9fb5aa;
  --line-dark: #22382e;

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }

.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }

.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}

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

@media (max-width: 820px) {
  .nav a.hide-sm { display: none; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }

.btn-sm { padding: 9px 15px; font-size: 14px; }

/* ---------------------------------------------------------------- sections */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.paper { background: var(--paper-2); }
section.dark { background: var(--dark); color: var(--on-dark); }
section.dark h2, section.dark h3 { color: var(--on-dark); }
section.dark .lead, section.dark p { color: var(--on-dark-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 14px;
}

section.dark .eyebrow { color: var(--green-500); }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.section-head { max-width: 72ch; margin-bottom: 44px; }
.section-head p { margin-top: 14px; }

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(1100px 460px at 78% -12%, var(--green-50), transparent 62%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 19px; }

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

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-600);
}

/* ---------------------------------------------------------------- phone mock */

.phone {
  width: 290px;
  margin: 0 auto;
  background: #fff;
  border-radius: 34px;
  border: 9px solid var(--ink);
  box-shadow: 0 28px 60px -22px rgba(15, 26, 34, 0.42);
  padding: 18px 16px 14px;
}

.phone-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-top b { font-family: var(--display); font-size: 19px; }
.phone-top span { font-size: 11.5px; color: var(--ink-3); }

.dial {
  width: 178px;
  height: 178px;
  margin: 10px auto 16px;
  border-radius: 50%;
  border: 8px solid var(--green-100);
  border-top-color: var(--green-500);
  border-right-color: var(--green-500);
  display: grid;
  place-content: center;
  text-align: center;
}

.dial small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.dial b { font-family: var(--mono); font-size: 24px; letter-spacing: -0.02em; }

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.phone-stat {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 9px 8px;
  text-align: center;
}

.phone-stat b { display: block; font-family: var(--mono); font-size: 14px; }
.phone-stat span { font-size: 9.5px; color: var(--ink-3); }

.phone-cta {
  background: var(--green-600);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- photography */

/*
 * Real photographs of the trades this product is for, not stock-photo people in a
 * meeting room. Sourced from Unsplash under the Unsplash License (free for commercial
 * use). A rounded frame and a soft shadow tie them to the same visual language as the
 * phone mock and the credential cards, so a photo never looks like it wandered in from
 * a different site.
 */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .photo-strip { grid-template-columns: 1fr; }
}

.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 50px -26px rgba(15, 26, 34, 0.4);
  isolation: isolate;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A quiet duotone rather than the raw photo, so six different photographers' colour
     casts still read as one brand rather than a stock-photo grab bag. */
  filter: saturate(0.86) contrast(1.03);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 18, 0) 38%, rgba(9, 20, 16, 0.86) 100%);
}

.photo-card:hover img { transform: scale(1.045); }

.photo-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.photo-card figcaption span {
  display: block;
  margin-top: 3px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
}

/* A section that carries a photo behind it instead of a flat colour — used sparingly,
   because a photo behind every section is exhausting rather than attractive. */
.photo-section {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
}

.photo-section .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.photo-section .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
}

.photo-section .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Steepest near the edges, where the section head and cards sit, so the copy is
     never fighting the photo underneath it for contrast. */
  background:
    linear-gradient(180deg, var(--dark) 0%, rgba(13, 27, 22, 0.72) 22%, rgba(13, 27, 22, 0.72) 78%, var(--dark) 100%),
    linear-gradient(90deg, rgba(13, 27, 22, 0.55), rgba(13, 27, 22, 0.2) 45%, rgba(13, 27, 22, 0.55));
}

.photo-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------------- live app frame */

/*
 * The real staff app, running inside a phone-shaped bezel on the demo page.
 *
 * It is an iframe pointed at the deployed app rather than a picture of one, because a
 * screenshot cannot answer the question somebody opening this page is actually asking:
 * what is it like to use. The bezel is not only decoration either — at 375px the app
 * lays itself out the way it does on a phone, so a visitor on a laptop sees the layout
 * their staff will see rather than a stretched one.
 */

.device {
  width: min(376px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, #22323a, var(--ink));
  border-radius: 42px;
  padding: 13px 11px 15px;
  box-shadow: 0 34px 74px -26px rgba(15, 26, 34, 0.55);
}

.device-slit,
.device-bar {
  border-radius: 999px;
  background: #3b4a52;
  margin: 0 auto;
}

.device-slit { width: 54px; height: 5px; margin-bottom: 9px; }
.device-bar { width: 108px; height: 4px; margin-top: 9px; }

.device-screen {
  position: relative;
  border-radius: 31px;
  overflow: hidden;
  background: var(--paper);
  /* Not a fixed 812. On a 13-inch laptop that runs the check-in button off the bottom of
     the window, and the one control somebody came here to press would be out of reach. */
  height: clamp(520px, 74vh, 760px);
}

.device-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*
 * Nothing loads until it is asked for. The app is a couple of megabytes and registers a
 * service worker; making every visitor pay for that — including the ones who only came to
 * read the credentials — would be rude, and a geolocation prompt nobody invited is worse.
 */
.device-start {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--body);
  color: var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
}

.device-start .disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  display: grid;
  place-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 12px 26px -10px rgba(14, 156, 104, 0.8);
}

.device-start b { font-family: var(--display); font-size: 19px; display: block; }
.device-start span {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 25ch;
  margin: 7px auto 0;
  line-height: 1.5;
}

.device-start:hover .disc { background: var(--green-500); }

.device-tools {
  display: flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.device-tools button,
.device-tools a {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-family: var(--body);
  cursor: pointer;
  text-decoration: none;
}

.device-tools button:hover,
.device-tools a:hover { border-color: var(--ink-4); color: var(--ink); }

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 20px;
}

/*
 * Grid tracks default to `min-width: auto`, so a child with a minimum width — a table, a
 * long unbroken string — makes its whole column wider than the viewport instead of
 * scrolling inside itself. That is what pushed this page sideways on a phone.
 */
.grid > *, .hero-grid > * { min-width: 0; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

section.paper .card { background: #fff; }

section.dark .card {
  background: var(--dark-2);
  border-color: var(--line-dark);
}

.card h3 { margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
section.dark .card p { color: var(--on-dark-2); }

.card .icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-content: center;
  margin-bottom: 16px;
}

section.dark .card .icon { background: var(--green-900); color: var(--green-500); }
.card .icon svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- stats */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat span { font-size: 13.5px; color: var(--ink-3); }
section.dark .stat span { color: var(--on-dark-2); }

/* ---------------------------------------------------------------- lists */

.checks { display: grid; gap: 12px; margin-top: 6px; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
}

.check svg {
  width: 17px; height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--green-600);
}

/* ---------------------------------------------------------------- table */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.table th, .table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.table td.mono { font-family: var(--mono); font-size: 13.5px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* ---------------------------------------------------------------- pricing */

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}

.price-card .amount {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 2px;
}

.price-card .per { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; }
.price-card .checks { flex: 1; margin-bottom: 22px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--green-100);
  color: var(--green-900);
}

/* ---------------------------------------------------------------- credentials */

.creds {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 8px;
  /* Scrolls inside its own box. Without this the four columns push the whole page
     sideways on a phone, which is the one device most people open a demo link on. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.creds table {
  width: 100%;
  border-collapse: collapse;
  /* Narrow enough for a phone, wide enough that the PIN never wraps mid-number. */
  min-width: 340px;
}

.creds td:first-child { min-width: 130px; }

.creds th, .creds td {
  padding: 11px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.creds tr:last-child td { border-bottom: none; }

.creds th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  font-weight: 500;
}

.creds td.key { font-family: var(--mono); color: var(--green-500); font-size: 14.5px; }

.copy {
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--on-dark-2);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-family: var(--body);
  cursor: pointer;
}

.copy:hover { color: var(--on-dark); border-color: var(--on-dark-2); }
.copy.done { color: var(--green-500); border-color: var(--green-700); }

/* ---------------------------------------------------------------- misc */

.note {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: #6b4a12;
}

.note strong { color: #4a3208; }

.steps { counter-reset: step; display: grid; gap: 18px; }

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-content: center;
  font-family: var(--mono);
  font-size: 14px;
}

.step h3 { margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 78ch; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-2);
  padding: 56px 0 34px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.site-footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 14px;
  font-weight: 500;
}

.site-footer a { color: var(--on-dark-2); text-decoration: none; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--on-dark); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 12px;
}

.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
