/* The landing page. Two halves: how it works on the left, the same thing playing
   out on the right.

   The walkthrough sizes itself in cqw — a share of its own width — so every line
   of type, every gap and every mock button keeps its proportions from a 320px
   phone to a wide monitor, with one set of numbers. */

.home { max-width: 1080px; margin: 0 auto; padding: 0 20px 8px; }

/* ---- Header ---- */
.head-links [data-brand="contact"] { display: contents; }

.head-book {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}
.head-book:hover { filter: brightness(1.08); }

/* ---- Hero ---- */
.hero { padding: 40px 0 30px; max-width: 640px; }

.hero h1 {
  font-size: clamp(27px, 4.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero-body { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn-primary, .btn-ghost {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }

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

.hero-meta { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---- How it works, beside the walkthrough ---- */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
  padding: 10px 0 8px;
}

.how h2, .facts-band h2, .end-cta h2 { font-size: 20px; margin: 0 0 16px; }

.how-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }

.how-steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 12px 12px 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.how-steps li b { display: block; font-size: 15px; margin-bottom: 3px; }
.how-steps li span { display: block; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* The step the walkthrough is on, so the two halves read as one thing. */
.how-steps li:hover { background: var(--surface); }
.how-steps li.on { background: var(--surface); border-color: var(--border); }
.how-steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }

.how-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-left: 3px solid var(--elasto-green);
  padding: 2px 0 2px 12px;
  margin: 18px 0 0;
}

.how-more { margin: 14px 0 0; font-size: 14px; }
.how-more a { color: var(--accent); }

/* ---- The walkthrough ---- */
/* The container has to be the wrapper, not the frame itself: an element cannot
   size its own font against its own width, so a cqw declared on .tut-frame would
   quietly measure the viewport instead. Both are the same width, so the numbers
   inside read the same either way. */
.tut { margin: 0; container-type: inline-size; }

.tut-frame {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.09);
  overflow: hidden;

  font-size: 14px;                       /* if cqw is not understood */
  font-size: 3.1cqw;
}

.tut-bar {
  height: 8.4cqw;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  padding: 0 2.4cqw;
}

.tut-dot { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--border); }
.tut-dot:first-child { background: #f0b6b0; }
.tut-dot:nth-child(2) { background: #f2dcab; }
.tut-dot:nth-child(3) { background: #bfe3c4; }

.tut-url {
  margin-left: 1.6cqw;
  font-size: 0.78em;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.5cqw 2.4cqw;
  white-space: nowrap;
  overflow: hidden;
}

.tut-stage { position: absolute; inset: 8.4cqw 0 0; padding: 2.4cqw; }

/* The finger. It only ever moves to the middle of something the scene points at. */
.tut-hand {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.2cqw;
  height: 5.2cqw;
  margin: -2.6cqw 0 0 -2.6cqw;
  border-radius: 50%;
  background: rgba(144, 52, 131, 0.28);
  border: 0.4cqw solid var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, background 0.2s;
}

.tut-hand.on { opacity: 1; }
.tut-hand.is-tap { background: rgba(144, 52, 131, 0.6); transform-origin: center; }

.tut-hand.is-tap::after {
  content: '';
  position: absolute;
  inset: -0.4cqw;
  border-radius: 50%;
  border: 0.4cqw solid var(--accent);
  animation: tut-ripple 0.34s ease-out;
}

@keyframes tut-ripple {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.4); opacity: 0; }
}

.tut-caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin: 12px 0 0;
  min-height: 2.8em;
}

.tut-controls { display: flex; align-items: center; gap: 12px; margin-top: 2px; }

.tut-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
}
.tut-btn:hover { background: var(--bg); }

.tut-pips { display: flex; gap: 6px; }

.tut-pips button {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}
.tut-pips button.on { background: var(--accent); }

/* ---- Inside the walkthrough: a plain copy of the booking page ---- */
.tut-stage .is-hidden { display: none; }

.m-split { display: flex; gap: 2.4cqw; height: 100%; }
.m-left { flex: 1 1 58%; display: flex; flex-direction: column; gap: 1.8cqw; min-width: 0; }
.m-right { flex: 1 1 42%; display: flex; flex-direction: column; gap: 1.8cqw; min-width: 0; }

.m-legend { display: flex; gap: 2.4cqw; font-size: 0.74em; color: var(--muted); }
.m-legend span { display: flex; align-items: center; gap: 0.9cqw; }
.m-sw { width: 1.8cqw; height: 1.8cqw; border-radius: 0.5cqw; display: block; }
.m-sw.free { background: #d9f2e4; border: 1px solid var(--good); }
.m-sw.taken { background: #fbe0dc; border: 1px solid var(--warn); }

.m-plan {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.4cqw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4cqw;
  padding: 1.6cqw;
}

.m-bay {
  border-radius: 1cqw;
  border: 1px dashed var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.74em;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.m-bay.free { background: #e8f8ef; border: 1px solid var(--good); color: #17694a; }
.m-bay.taken { background: #fbe0dc; border: 1px solid var(--warn); color: #8c2c1f; border-style: solid; }
.m-bay.mine {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  transform: scale(1.04);
}

.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4cqw;
  padding: 1.8cqw 2cqw;
  font-size: 0.78em;
}

.m-card.is-empty { color: var(--muted); }
.m-card.is-empty b { display: block; color: var(--text); margin-bottom: 0.6cqw; }
.m-card h5 { margin: 0 0 1.2cqw; font-size: 0.95em; }

.m-fields { display: flex; gap: 1.6cqw; }
.m-fields label:first-child { flex: 1.6; }   /* dd/mm/yyyy needs the room */
.m-fields label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  font-size: 0.92em;
  color: var(--muted);
  min-width: 0;
}

.m-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.9cqw;
  padding: 0.9cqw 1.2cqw;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.m-input.is-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.5cqw rgba(144, 52, 131, 0.14);
  background: var(--surface);
}

.m-note { margin: 1.2cqw 0 0; font-size: 0.86em; color: var(--muted); opacity: 0; transition: opacity 0.4s; }
.m-note.in { opacity: 1; }

.m-fact { display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; padding: 0.7cqw 0; }
.m-fact span { color: var(--muted); }

.m-pick-rows { display: flex; flex-direction: column; gap: 0.8cqw; }
.m-pick-row { display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; font-weight: 600; }

/* An amount is never quoted here — this marks where the figure appears, not what
   it is. Rates live on the booking page. */
.m-amt {
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.m-amt.sm { font-size: 0.92em; }
.m-amt.wide { color: var(--text); font-weight: 700; }

.m-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 1cqw;
  padding: 1.5cqw;
  text-align: center;
  font-size: 0.8em;
  font-weight: 700;
  transition: transform 0.15s, filter 0.15s;
}
.m-btn.is-press { transform: scale(0.97); filter: brightness(0.9); }

.m-single { display: flex; flex-direction: column; gap: 2cqw; height: 100%; }
.m-h { margin: 0; font-size: 0.86em; }

.m-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.m-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2cqw;
  padding: 1.2cqw 0.8cqw;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.m-item img { width: 100%; height: 9cqw; object-fit: contain; display: block; }
.m-item small { display: block; font-size: 0.68em; color: var(--muted); margin-top: 0.6cqw; }
.m-item.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.5cqw rgba(144, 52, 131, 0.14);
}
.m-item.on small { color: var(--accent); font-weight: 600; }

.m-qty {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2cqw;
  padding: 1.6cqw 2cqw;
  font-size: 0.78em;
  color: var(--muted);
}
.m-qty .m-input { min-width: 9cqw; text-align: center; font-weight: 700; }
.m-unit { color: var(--text); }

.m-fit {
  background: #eafaf0;
  border: 1px solid #bfe6cf;
  border-radius: 1.2cqw;
  padding: 1.6cqw 2cqw;
  font-size: 0.76em;
  color: #17694a;
}
.m-fit b { display: block; margin-bottom: 0.5cqw; }

.m-lines {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4cqw;
  padding: 0.8cqw 2cqw;
  font-size: 0.8em;
}

.m-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 1.5cqw 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.m-line:last-child { border-bottom: 0; }
.m-line-total { color: var(--text); font-weight: 700; }

.m-done {
  background: #eafaf0;
  border: 1px solid #bfe6cf;
  border-radius: 1.2cqw;
  padding: 1.8cqw 2cqw;
  font-size: 0.82em;
  font-weight: 700;
  color: #17694a;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
}

.m-small { margin: auto 0 0; font-size: 0.7em; color: var(--muted); line-height: 1.5; }

.m-tick {
  width: 4cqw;
  height: 4cqw;
  border-radius: 50%;
  background: var(--good);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8em;
  flex: 0 0 auto;
}

/* ---- Before you book ---- */
.facts-band { padding: 34px 0 10px; }

.fact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--elasto-teal);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.fact-card b { display: block; font-size: 14px; margin-bottom: 4px; }
.fact-card span { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* The one thing on the page a customer must not skim past. */
.fact-card.is-strict { border-left-color: var(--warn); background: #fdf6f5; }
.fact-card.is-strict b { color: #8c2c1f; }

/* ---- Closing call to action ---- */
.end-cta {
  margin: 36px 0 8px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.end-cta p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; max-width: 560px; }

/* ---- Narrow screens: one column, the walkthrough first ---- */
@media (max-width: 880px) {
  .home-split { grid-template-columns: 1fr; gap: 22px; }
  .tut { order: -1; }
  .hero { padding: 28px 0 22px; }
  .hero-actions { gap: 8px; }
  .btn-primary, .btn-ghost { flex: 1 1 auto; text-align: center; padding: 12px 16px; }
  .home { padding: 0 16px 8px; }
  .end-cta { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .head-book { display: none; }          /* the hero button is right below it */
  .tut-frame { aspect-ratio: 1 / 1; font-size: 4.1cqw; }
  .tut-caption { font-size: 13px; }
}

/* Devanagari needs the extra line, and its numerals are wider. */
html[lang="hi"] .how-steps li span,
html[lang="hi"] .fact-card span,
html[lang="hi"] .tut-caption { line-height: 1.7; }
html[lang="hi"] .tut-frame { font-size: 2.9cqw; }

@media (max-width: 480px) {
  html[lang="hi"] .tut-frame { font-size: 3.8cqw; }
}
