/* ── Design tokens ────────────────────────────────────────────────────────
   Layout concept: a hotel's own operations log, not a SaaS feature grid --
   mono timestamps and manifest-style rows carry real information (the
   product's actual 6am daily cycle), not decoration. Signature element:
   the oversized shell watermark in the hero + the time-anchored rail in
   "How it works", replacing the generic numbered-steps pattern.
   ────────────────────────────────────────────────────────────────────── */
:root {
  --pine-900: #06281E;
  --pine-700: #0B503C;
  --pine-600: #0F6B50;
  --pine-500: #146B52;
  --pine-200: #AEE0CE;
  --pine-100: #DAF0E9;
  --pine-50:  #F1F7F6;
  --ivory:      #F7EBD7;
  --ivory-deep: #ECDDB9;
  --ivory-line: #E2D2AC;
  --ink:      #1E1A14;
  --ink-soft: #5B5447;
  --ink-faint:#8C8471;
  --paper:    #FFFDF9;
  --line:     #E8E1D2;
  --radius: 10px;
  --font-display: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light dark;
}

/* The final CTA band and its pill button are hardcoded to fixed hex values
   (not these tokens) so they stay a constant dark band in both themes --
   see .cta-band below. Everything else here inverts for dark mode, either
   because the OS prefers it (and no manual choice overrides that) or
   because #theme-toggle set data-theme explicitly (site.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pine-900: #CDEEDD;
    --pine-700: #7FE0B8;
    --pine-600: #2FB38A;
    --pine-200: #2E4A3D;
    --pine-50:  #16281F;
    --ivory:      #16251D;
    --ivory-deep: #11201A;
    --ivory-line: #233229;
    --ink:      #EDE7D8;
    --ink-soft: #AEA796;
    --ink-faint:#756E5F;
    --paper:    #0E1813;
    --line:     #243128;
  }
  :root:not([data-theme="light"]) .hero-shell { opacity: 0.14; filter: brightness(2.4) saturate(0.9); }
}
:root[data-theme="dark"] {
  --pine-900: #CDEEDD;
  --pine-700: #7FE0B8;
  --pine-600: #2FB38A;
  --pine-200: #2E4A3D;
  --pine-50:  #16281F;
  --ivory:      #16251D;
  --ivory-deep: #11201A;
  --ivory-line: #233229;
  --ink:      #EDE7D8;
  --ink-soft: #AEA796;
  --ink-faint:#756E5F;
  --paper:    #0E1813;
  --line:     #243128;
}
:root[data-theme="dark"] .hero-shell { opacity: 0.14; filter: brightness(2.4) saturate(0.9); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }

/* Desktop: the panel dissolves into the nav's own flex row, so it's just
   links + actions sitting inline, same as a plain nav bar. Mobile below
   turns it back into a real dropdown block. */
.nav-panel { display: contents; }
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.86rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--pine-600); }
.nav-panel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav .cta {
  background: var(--pine-600);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav .cta:hover { background: var(--pine-700); }

.hotel-login { position: relative; }
.hotel-login-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.hotel-login-toggle:hover { border-color: var(--pine-600); color: var(--pine-600); }

.hotel-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.3);
  padding: 12px;
  z-index: 20;
}
.hotel-panel.open { display: block; }

.hotel-search-input {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
}
.hotel-search-input:focus { outline: 2px solid var(--pine-600); outline-offset: 1px; }

.hotel-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.hotel-results li + li { border-top: 1px solid var(--line); }
.hotel-results a {
  display: block;
  padding: 9px 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}
.hotel-results a:hover { color: var(--pine-600); }
.hotel-results .hotel-empty {
  padding: 9px 4px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.theme-toggle, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--pine-600); color: var(--pine-600); }
.theme-toggle svg, .nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.3);
    padding: 4px 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-panel.open { max-height: 70vh; overflow-y: auto; }

  .nav-links {
    flex-direction: column;
    gap: 16px;
    font-size: 0.98rem;
    padding-top: 18px;
  }

  .nav-panel-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-panel-actions .theme-toggle { align-self: flex-start; }
  .nav-panel-actions .cta { text-align: center; }

  .hotel-login-toggle { width: 100%; }
  .hotel-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-line);
  position: relative;
  overflow: hidden;
}
.hero-shell {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%) rotate(8deg);
  width: 640px;
  height: auto;
  max-width: 55vw;
  opacity: 0.1;
  pointer-events: none;
}
@media (max-width: 640px) {
  .hero-shell { max-width: 46vw; right: 3%; opacity: 0.08; }
}
.hero .wrap {
  padding-block: 76px 64px;
  position: relative;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--pine-700);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pine-600);
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--pine-900);
  text-wrap: balance;
  max-width: 14ch;
}
.subhead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
}
.btn-primary { background: var(--pine-600); color: #fff; }
.btn-primary:hover { background: var(--pine-700); }
.btn-secondary { background: transparent; color: var(--pine-700); border: 1px solid var(--ivory-line); }
.btn-secondary:hover { border-color: var(--pine-600); background: rgba(255,255,255,0.4); }
.hero-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding-block: 72px; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--pine-900);
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ── Features: manifest rows, not icon tiles ────────────────────────────
   A tag reads like an entry in the property's own operations register --
   the thing the whole page argues a hotel already keeps, badly. */
.manifest { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
}
.row .tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--pine-600);
  padding-top: 3px;
}
.row h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.row p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; max-width: 56ch; }

/* ── How it works: the hotel-day rail ───────────────────────────────────
   Not "3 steps" -- an actual clock. The 06:00 entry is real: that's when
   this product resets the day (room status, PM reminders, event checks)
   before anyone's clocked in. */
.how { background: var(--ivory-deep); border-block: 1px solid var(--ivory-line); }
.rail { position: relative; max-width: 680px; }
.rail::before {
  content: '';
  position: absolute;
  left: 124px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--pine-200);
}
@media (max-width: 560px) {
  .rail::before { left: 0; }
}
.tick {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding-block: 20px;
}
@media (max-width: 560px) {
  .tick { grid-template-columns: 1fr; gap: 6px; padding-left: 20px; }
}
.tick .time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--pine-700);
  text-align: right;
  padding-top: 2px;
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .tick .time { text-align: left; }
}
.tick::after {
  content: '';
  position: absolute;
  left: 119.5px;
  top: 25px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--pine-600);
}
@media (max-width: 560px) {
  .tick::after { left: -4px; }
}
.tick h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 5px; }
.tick p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; max-width: 50ch; }

/* ── Trust grid ──────────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  gap: 28px 32px;
}
@media (min-width: 680px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item .icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--pine-50);
  display: flex; align-items: center; justify-content: center;
}
.trust-item .icon svg { width: 19px; height: 19px; stroke: var(--pine-600); }
.trust-item h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.trust-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 720px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding-block: 18px; }
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--pine-600);
  font-weight: 400;
  flex-shrink: 0;
}
details[open] summary::after { content: '\2212'; }
details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.93rem; max-width: 58ch; }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.cta-band { background: #06281E; color: #fff; }
.cta-band .wrap { max-width: 640px; text-align: center; padding-block: 72px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--pine-100); margin: 0 0 28px; font-size: 1rem; }
.cta-band .btn-primary { background: #F7EBD7; color: #06281E; }
.cta-band .btn-primary:hover { background: #fff; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
}
footer.site a { color: var(--ink-faint); text-decoration: none; }
footer.site a:hover { color: var(--pine-600); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-panel { transition: none; }
}

/* 404 page: the hero is the whole page, so give it room to breathe. */
.not-found .wrap { padding-block: 104px 96px; }
.not-found .hero-note strong { color: var(--ink); font-weight: 600; }
