/* ---------------------------------------------------------------
   Product home page. Colours are taken from the logo: violet petals,
   deep navy, the yellow centre and the green leaf.
   --------------------------------------------------------------- */

:root {
  --violet: #5b2bf0;
  --violet-deep: #3a1cb4;
  --violet-soft: #efeafe;
  --navy: #0b1035;
  --yellow: #f6b91c;
  --leaf: #2f8f5b;
  --leaf-soft: #e5f4ec;

  --bg: #ffffff;
  --bg-tint: #f7f6fc;
  --surface: #ffffff;
  --border: #e6e3f0;
  --text: #12142b;
  --text-muted: #565b73;
  --text-faint: #8a8fa6;

  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, monospace;
  --shadow: 0 18px 48px rgba(27, 18, 84, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --violet: #8b6dff;
    --violet-deep: #a48dff;
    --violet-soft: #221a45;
    --leaf: #57c08a;
    --leaf-soft: #13281d;
    --bg: #0c0e1c;
    --bg-tint: #121530;
    --surface: #151833;
    --border: #262a4d;
    --text: #eceefb;
    --text-muted: #a8acc6;
    --text-faint: #767b99;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--violet-deep);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* The page's only sign-in links: Guest login and Staff login, in the nav. */
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 16px rgba(91, 43, 240, 0.25);
}
.btn-primary:hover { background: var(--violet-deep); }

.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }

/* ------------------------------------------------------------ nav --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand img { display: block; }

.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--violet); }

.nav-cta { display: flex; gap: 10px; margin-left: auto; flex: 0 0 auto; }

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

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 20px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text);
}

.lede {
  margin-top: 20px;
  font-size: 18.5px;
  color: var(--text-muted);
  max-width: 34em;
}

/* Three short promises under the hero copy. */
.proof {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
  color: var(--text);
}

.proof li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}

/* ---- the phone ---- */

.hero-visual { display: flex; justify-content: center; position: relative; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 40%;
  background: radial-gradient(circle at 30% 30%, rgba(91, 43, 240, 0.35), transparent 60%),
              radial-gradient(circle at 75% 75%, rgba(246, 185, 28, 0.28), transparent 55%);
  filter: blur(40px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 320px;
  border-radius: 34px;
  padding: 12px;
  background: var(--navy);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone > * { background: #fff; color: #12142b; }

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 16px 12px;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid #ecebf3;
  font-size: 14px;
}

.phone-bar span { font-size: 12px; color: #6b6f86; }

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  min-height: 330px;
}

.bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}

.bubble.bot { background: #f4f3fa; border: 1px solid #ecebf3; border-bottom-left-radius: 5px; }
.bubble.guest {
  align-self: flex-end;
  background: #5b2bf0;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.ticket-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2f8f5b;
  background: #e5f4ec;
  font-size: 13px;
}

.ticket-chip .tick {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f8f5b;
  color: #fff;
  font-size: 12px;
}

.ticket-chip strong { display: block; }
.ticket-chip em { font-style: normal; font-family: var(--mono); font-size: 12px; color: #2f8f5b; font-weight: 700; }

.notice {
  text-align: center;
  font-size: 12.5px;
  color: #565b73;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f4f3fa;
  border: 1px solid #ecebf3;
}

.notice strong { color: #12142b; }

.phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  border-radius: 0 0 24px 24px;
}

.phone-input span {
  flex: 1;
  padding: 9px 14px;
  border-radius: 20px;
  background: #f4f3fa;
  border: 1px solid #ecebf3;
  font-size: 13px;
  color: #8a8fa6;
}

.phone-input i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5b2bf0;
}

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

.section { padding: 84px 20px; }
.section.tinted { background: var(--bg-tint); }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 780; }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 17px; }

/* ---- shared grids and tiles ---- */

.grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

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

.tile, .revenue {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
  margin-bottom: 18px;
}

.t-violet { background: var(--violet-soft); }
.t-yellow { background: #fdf3d9; }
.t-green { background: var(--leaf-soft); }

@media (prefers-color-scheme: dark) {
  .t-yellow { background: #322a15; }
}

.tile h3, .revenue h3 { font-size: 18px; margin-bottom: 8px; }
.tile p, .revenue p { color: var(--text-muted); font-size: 15px; }

/* Revenue cards carry a coloured top edge, like the logo's palette. */
.revenue { border-top: 3px solid var(--violet); }
.revenue:nth-child(2) { border-top-color: var(--leaf); }
.revenue:nth-child(3) { border-top-color: var(--yellow); }

/* ---- the request lifecycle ---- */

.lifecycle {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

/* The line the stages sit on. */
.lifecycle::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), #e0a340, #e2711d, var(--danger, #d64545), var(--leaf));
  opacity: 0.45;
}

.lifecycle li { position: relative; text-align: center; padding: 0 4px; }

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg);
}

.s1 { background: var(--violet); }
.s2 { background: var(--violet-deep); }
.s3 { background: linear-gradient(135deg, #e0a340, #e2711d 55%, #d64545); }
.s4 { background: var(--navy); }
.s5 { background: var(--leaf); }

@media (prefers-color-scheme: dark) {
  .s4 { background: #3b3f6b; }
}

.lifecycle h3 { font-size: 17px; margin-bottom: 6px; }
.lifecycle p { color: var(--text-muted); font-size: 14.5px; }

/* ---- analytics: copy beside a dashboard illustration ---- */

.split {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 780; }
.split-copy > p { margin-top: 14px; color: var(--text-muted); font-size: 17px; }

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
}

.dash {
  margin: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.dash-tiles div {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}

.dash-tiles span { display: block; font-size: 11.5px; color: var(--text-faint); line-height: 1.3; }
/* margin-top: auto keeps the figures level even when a label wraps. */
.dash-tiles strong { display: block; margin-top: auto; padding-top: 6px; font-size: 22px; letter-spacing: -0.02em; }
.dash-tiles .ok { color: var(--leaf); }

.dash-chart {
  margin-top: 14px;
  padding: 14px 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.dash-chart > span { font-size: 12px; color: var(--text-faint); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin-top: 10px; }

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--violet);
  opacity: 0.85;
}

.bars i.hot { background: var(--yellow); opacity: 1; }

.dash-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13.5px; }
.dash-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--border);
}
.dash-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td:not(:first-child), .dash-table th:not(:first-child) { text-align: right; }

.dash figcaption { margin-top: 10px; font-size: 12px; color: var(--text-faint); text-align: right; }

/* ---- "and more" under the feature grid ---- */

.and-more {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---- steps ---- */

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps li {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-weight: 800;
  margin-bottom: 16px;
}

.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 15px; }

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

.cards {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-2px); }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 26px;
  margin-bottom: 18px;
}

.c-room { background: #e8eeff; }
.c-food { background: #fdeaf3; }
.c-maint { background: #fdf3d9; }
.c-local { background: #e2f6ec; }

@media (prefers-color-scheme: dark) {
  .c-room { background: #1b2440; }
  .c-food { background: #351c2b; }
  .c-maint { background: #322a15; }
  .c-local { background: #142c22; }
}

.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15.5px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- team features ---- */

.features {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  border-top: 3px solid var(--violet);
}

.feature:nth-child(2) { border-top-color: var(--yellow); }
.feature:nth-child(3) { border-top-color: var(--leaf); }
.feature:nth-child(5) { border-top-color: var(--navy); }
.feature:nth-child(6) { border-top-color: var(--leaf); }

@media (prefers-color-scheme: dark) {
  .feature:nth-child(5) { border-top-color: var(--violet-deep); }
}

.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ---- guardrails ---- */

.guardrails {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: grid;
  gap: 14px;
}

.guardrails li {
  position: relative;
  padding: 18px 22px 18px 58px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15.5px;
}

.guardrails li::before {
  content: "\2713";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 800;
  font-size: 13px;
}

.guardrails strong { color: var(--text); }

/* ------------------------------------------------------- cta band --- */

.cta-band {
  padding: 72px 20px;
  background: linear-gradient(120deg, var(--navy) 0%, #24127a 55%, #5b2bf0 100%);
  color: #fff;
}

.cta-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band-inner img {
  width: 96px;
  height: auto;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
}

.cta-band-inner > div:nth-child(2) { flex: 1; min-width: 240px; }
.cta-band h2 { font-size: 30px; }
.cta-band p { margin-top: 6px; color: rgba(255, 255, 255, 0.78); max-width: 46em; }

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

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 14px;
}

.site-footer .nav-brand { font-size: 15px; color: var(--text-muted); }

/* ---------------------------------------------------- responsive --- */

/* The nav has to fit the brand, four section links and two buttons. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 48px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .proof { justify-content: center; }
  .steps, .features, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: 1fr; gap: 22px; max-width: 560px; }
  .lifecycle::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--violet), #e0a340, #e2711d, #d64545, var(--leaf)); }
  .lifecycle li { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .lifecycle .stage { grid-row: span 2; margin: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .cards, .steps, .features, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dash-tiles { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 18px; }
  .phone { width: 100%; max-width: 320px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

/* Narrow phones: the logo alone, so both login buttons stay on one line. */
@media (max-width: 480px) {
  .site-nav { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .site-nav .nav-brand span { display: none; }
  .nav-cta { gap: 8px; }
  .btn-sm { padding: 8px 13px; }
}
