﻿/* ==========================================================================
   Service scenes — the four cards switch the whole page, not just the panel

   Design rule (Ken, 2026-11-28): the queue write-up is the base page. It is never
   removed or rewritten. Booking, Takeaway and Member are stacked on top of it:
   selecting one of those three hides the queue sections and reveals that service's
   own panel. Selecting queue again restores the base page exactly as it was,
   because nothing in it was ever touched.

   Two mechanisms, kept deliberately separate:

     body[data-svc]      which scene the page is in — sets the palette
     [data-svc-only]     base sections, hidden when a non-queue scene is open
     [data-svc-panel]    the stacked panels, shown when their scene is open
   ========================================================================== */

/* ------------------------------------------------------------- palettes --- */

/*
  Each scene is a full replacement for the palette variables, so every rule in
  home.css that already reads var(--h-blue-*) follows along without being
  duplicated. That is why the buttons, the eyebrow text, the badge, the ring and
  the aurora all change together rather than a handful of them being patched by
  hand.

  The hues are the same ones the demo scenes use, so the panel and the page never
  disagree about which service is showing:

    queue     blue      #3b82f6 / #2563eb   (the product's own colour)
    booking   violet    #8b5cf6 / #6d28d9   (calendar, appointment)
    takeaway  orange    #f97316 / #ea580c   (warm food counter)
    member    teal      #14b8a6 / #0d9488   (its own app, its own hue)
*/

body.home[data-svc="booking"] {
  --h-bg: #f7f5ff;
  --h-blue-1: #a78bfa;
  --h-blue-2: #f472b6;
  --h-blue-3: #c4b5fd;
  --h-blue-4: #7c3aed;
  --h-accent: #7c3aed;
  --h-accent-2: #6d28d9;
  --h-glow: rgba(139, 92, 246, 0.5);
  --svc-tint: rgba(139, 92, 246, 0.14);

  /* Same three-layer shape as the base page, in the scene's own hue, so switching
     services changes the colour of the wash without changing how the page is lit. */
  background-color: var(--h-bg);
  background-image:
    radial-gradient(1150px 640px at 50% -8%, rgba(167, 139, 250, 0.3), transparent 62%),
    radial-gradient(840px 540px at 94% 2%, rgba(244, 114, 182, 0.22), transparent 60%),
    linear-gradient(180deg, #f1ecfe 0%, #f6f2ff 520px, #faf8ff 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.home[data-svc="takeaway"] {
  --h-bg: #fffaf4;
  --h-blue-1: #fb923c;
  --h-blue-2: #fbbf24;
  --h-blue-3: #fdba74;
  --h-blue-4: #ea580c;
  --h-accent: #ea580c;
  --h-accent-2: #c2410c;
  --h-glow: rgba(249, 115, 22, 0.5);
  --svc-tint: rgba(249, 115, 22, 0.14);

  background-color: var(--h-bg);
  background-image:
    radial-gradient(1150px 640px at 50% -8%, rgba(251, 146, 60, 0.28), transparent 62%),
    radial-gradient(840px 540px at 94% 2%, rgba(251, 191, 36, 0.22), transparent 60%),
    linear-gradient(180deg, #fff3e4 0%, #fff8ee 520px, #fffcf7 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.home[data-svc="member"] {
  --h-bg: #f2fdfb;
  --h-blue-1: #2dd4bf;
  --h-blue-2: #5eead4;
  --h-blue-3: #99f6e4;
  --h-blue-4: #0d9488;
  --h-accent: #0d9488;
  --h-accent-2: #0f766e;
  --h-glow: rgba(20, 184, 166, 0.5);
  --svc-tint: rgba(13, 148, 136, 0.14);

  background-color: var(--h-bg);
  background-image:
    radial-gradient(1150px 640px at 50% -8%, rgba(45, 212, 191, 0.28), transparent 62%),
    radial-gradient(840px 540px at 94% 2%, rgba(94, 234, 212, 0.22), transparent 60%),
    linear-gradient(180deg, #e5fbf7 0%, #effdfb 520px, #f7fffd 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* The page background is on body.home, so a palette change has to fade rather
   than snap. Gradients cannot transition, but the colour underneath can, which
   is enough to stop it feeling like a hard cut. */
body.home {
  transition: background-color 0.5s ease, color 0.35s ease;
}

/* A soft wash behind the content in the service's own hue, so the page reads as
   themed even in the plain sections away from the cards.

   `[data-svc]` alone left the resting blue page without this layer: the attribute
   only exists after a card is clicked, so the page a visitor first lands on — the
   blue one — was the only scene that never got the wash. Matching on the attribute
   OR its absence covers both, while the three other scenes still override the tint
   through their own palette block. */
body.home .svc-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    70% 60% at 50% 0%,
    var(--svc-tint, transparent),
    transparent 72%
  );
}

/*
  Blue also gets a pool of light at the bottom of the section, under the cards.

  The wash above is anchored at 50% 0%, and this section is 719px tall, so it has
  faded to nothing long before the button row. Blue sits on a pale blue page, so the
  same gradient that reads as light on the violet/orange/teal pages all but vanishes
  here — which is why only this scene looked flat under the cards.

  Scoped to the resting and queue states: the other three scenes already show the
  light and must not be altered.
*/
body.home:not([data-svc]) .svc-menu::before,
body.home[data-svc="queue"] .svc-menu::before {
  background:
    radial-gradient(78% 34% at 50% 88%, rgba(59, 130, 246, 0.26), transparent 68%),
    radial-gradient(70% 60% at 50% 0%, var(--svc-tint, transparent), transparent 72%);
}

.svc-menu { position: relative; }

/* -------------------------------------------------- base queue sections --- */

/*
  Hidden when any non-queue scene is open. `display: none` rather than opacity or
  transform: this is a real switch, so the hidden sections must also leave the
  accessibility tree and the tab order.
*/
body.home[data-svc="booking"] [data-svc-only],
body.home[data-svc="takeaway"] [data-svc-only],
body.home[data-svc="member"] [data-svc-only] {
  display: none;
}

/* ------------------------------------------------------ stacked panels --- */

.svc-scene {
  position: relative;
  padding: 3.4rem 0 3rem;
  animation: svcSceneIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/*
  The header is sticky, so an anchor target scrolled to "start" lands underneath it
  and the section heading is clipped. Every in-page target reserves the header's
  height. This also covers the scene-switch path, where JS scrolls after revealing
  a section that was display:none a frame earlier.
*/
body.home section[id],
body.home [id]:target {
  scroll-margin-top: 5rem;
}

/* Alternating panels get the tinted background the rest of the page uses, so the
   stacked section does not look like a foreign block pasted in. */
.svc-scene-booking { background: rgba(139, 92, 246, 0.045); }
.svc-scene-takeaway { background: rgba(249, 115, 22, 0.045); }
.svc-scene-member { background: rgba(13, 148, 136, 0.045); }

/*
  The blue page's equivalent, which it never had.

  The three stacked scenes above each wrap their whole body in a panel carrying a
  0.045 wash of their own hue. That block is what reads as "the soft light below the
  four buttons" — it starts right under the card row and runs for the rest of the
  service's content. The blue page has no such panel: its sections (flow, hero-circle,
  pain, who, how, industries) are transparent, so the same light never appears and the
  cards look pasted onto bare background.

  Applied to the base sections themselves rather than to a new wrapper, because those
  sections are the blue page's body — wrapping them would mean restructuring the DOM
  for a colour.

  Only the first one after the cards gets the wash, the way the stacked scenes only
  tint their own panel: tinting every section would band the page.
*/
body.home:not([data-svc]) #flow,
body.home[data-svc="queue"] #flow {
  background: rgba(59, 130, 246, 0.045);
}

.svc-scene .section-head {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.svc-scene-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.svc-scene-card {
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: var(--radius, 14px);
  background: var(--h-card, #fff);
  border: 1px solid var(--h-line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.svc-scene-card:hover {
  border-color: var(--h-blue-1);
  box-shadow: 0 12px 28px var(--svc-tint, rgba(59, 130, 246, 0.14));
  transform: translateY(-2px);
}

.svc-scene-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 11px;
  background: var(--svc-tint, rgba(59, 130, 246, 0.12));
  color: var(--h-accent-2);
}

.svc-scene-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.svc-scene-card p {
  margin: 0.45rem 0 0;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--h-soft);
}

.svc-scene-note {
  margin: 1.8rem auto 0;
  max-width: 38rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm, 10px);
  background: var(--svc-tint, rgba(59, 130, 246, 0.08));
  border: 1px solid var(--h-line);
  color: var(--h-soft);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.svc-scene-note .btn { margin: 0.15rem; }

@keyframes svcSceneIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------- booking workflow --- */

/*
  A spine with branches, not a horizontal stepper.

  Four steps stacked vertically with a connecting line, because each step carries
  two or three branch options underneath it. Side by side, those branches would
  either be invisible or turn the section into a wall of text; stacked, the reading
  order matches the actual order of events.

  The line is drawn with a pseudo-element on the list rather than per step, so it
  stops at the last node instead of trailing into empty space.
*/
.flow-tree {
  margin-top: 2.6rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: var(--radius, 14px);
  background: var(--h-card, #fff);
  border: 1px solid var(--h-line);
  box-shadow: var(--shadow-sm);
}

.flow-tree-head { max-width: 40rem; }

.flow-tree-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.flow-tree-head > p {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--h-soft);
}

.flow-tree-steps {
  position: relative;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

/* The spine. Sits behind the numbers, offset so it runs through their centre. */
.flow-tree-steps::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  bottom: 1.4rem;
  left: 0.86rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--svc-tint, rgba(59, 130, 246, 0.28)),
    transparent 88%
  );
  pointer-events: none;
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.flow-node-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--h-blue-1), var(--h-blue-4));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 10px var(--svc-tint, rgba(59, 130, 246, 0.3));
}

.flow-node-body h4 {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.flow-node-body > p {
  margin: 0.35rem 0 0;
  font-size: 0.845rem;
  line-height: 1.65;
  color: var(--h-soft);
}

/* Branches. Quieter than the step text: they are options, not the flow itself. */
.flow-branches {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.flow-branches li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--h-faint);
}

/* A small elbow, so a branch reads as hanging off the step above rather than
   being another step. */
.flow-branches li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.52rem;
  width: 0.5rem;
  height: 0.5rem;
  border-left: 1.5px solid var(--h-line);
  border-bottom: 1.5px solid var(--h-line);
  border-bottom-left-radius: 3px;
}

.flow-tree-note {
  margin: 1.4rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm, 10px);
  background: rgba(15, 23, 42, 0.035);
  border: 1px dashed var(--h-line);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--h-faint);
}

@media (max-width: 40rem) {
  .flow-tree { padding: 1.25rem 1.1rem 1.35rem; }
  .flow-node { grid-template-columns: 1.6rem 1fr; gap: 0.7rem; }
  .flow-node-num { width: 1.6rem; height: 1.6rem; font-size: 0.72rem; }
  .flow-tree-steps::before { left: 0.79rem; }
}

/* ------------------------------------------------------ industry solutions --- */

/*
  One row of industry cards, one write-up underneath.

  Reuses the tinted-panel treatment from .svc-scene so an industry block reads as
  the same family of object, but it is its own component: industry content cuts
  across services, so it must not participate in the body[data-svc] switch.
*/
.sol-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.sol-card {
  display: grid;
  gap: 0.28rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--h-line);
  border-radius: var(--radius, 14px);
  background: var(--h-card, #fff);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sol-card:hover {
  border-color: var(--h-blue-1);
  box-shadow: 0 12px 28px var(--svc-tint, rgba(59, 130, 246, 0.14));
  transform: translateY(-2px);
}

.sol-card.is-active {
  border-color: var(--h-accent);
  background: linear-gradient(180deg, var(--svc-tint, rgba(59, 130, 246, 0.1)), var(--h-card) 70%);
  box-shadow: 0 14px 32px var(--svc-tint, rgba(59, 130, 246, 0.16));
}

.sol-card:focus-visible {
  outline: 2px solid var(--h-accent);
  outline-offset: 3px;
}

.sol-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.55rem;
  border-radius: 11px;
  background: var(--svc-tint, rgba(59, 130, 246, 0.12));
  color: var(--h-accent-2);
}

.sol-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.sol-tag {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--h-soft);
}

/* ------------------------------------------------------------- sol panel --- */

.sol-panel {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.4rem;
  padding: 1.6rem;
  border-radius: 18px;
  background: var(--h-card, #fff);
  border: 1px solid var(--h-line);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  animation: svcSceneIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sol-panel[hidden] { display: none; }

@media (min-width: 52rem) {
  .sol-panel { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

/* Placeholder slot. Fixed aspect ratio so a real screenshot dropped in later does
   not change the page height or push the copy around. */
.sol-shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 30%, var(--svc-tint, rgba(59, 130, 246, 0.14)), transparent 72%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px dashed var(--h-line);
}

.sol-shot-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.sol-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--h-ink);
}

.sol-body > p {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--h-soft);
}

.sol-points {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.sol-points li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--h-soft);
}

.sol-points li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--h-accent-2);
}

/* The scope note: what this industry setup does *not* do. Kept visually quieter
   than the bullets because it is a boundary, not a selling point. */
.sol-note {
  margin: 1.15rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm, 10px);
  background: rgba(15, 23, 42, 0.035);
  border-left: 3px solid var(--h-line);
  font-size: 0.8rem !important;
  line-height: 1.6;
  color: var(--h-faint) !important;
}

/* --------------------------------------------------------- scene banner --- */

/*
  A headline and a supporting paragraph above the panel, both swapping by scene.

  Driven by `body[data-svc]` rather than JS: the scene switch already sets that
  attribute for the palette, so reusing it means the banner can never disagree with
  the panel below — there is no second source of truth to drift.

  Queue is the resting state, so its copy shows both when body has no data-svc
  (the base page) and when data-svc="queue".
*/
/*
  Space above the banner, not just below.

  The banner is the first block inside <main>, and <main> has no top padding, so at
  0 margin the headline sat flush against the header's bottom border — it looked
  like the type was touching the line. 3.4rem matches the .svc-menu padding further
  down the page, so the top of the page breathes like the rest of it.

  padding rather than margin: a margin-top here would collapse against the parent
  and change the header's height, which is what pushed the type up in the first place.
*/
.scene-banner {
  margin: 0 0 1.35rem;
  padding-top: 3.4rem;
  text-align: center;
}

.scene-headline {
  margin: 0;
  /* Sized close to the hero title (which tops out at 3.15rem) rather than like a
     section subtitle: this is the first thing a visitor reads. All four headlines
     are a single line now, so the reserved height is one line plus letter-spacing
     slack — enough to keep the panel below from moving when the scene changes,
     without leaving a band of dead space under the type. */
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.16;
  color: var(--h-ink);
  min-height: 1.16em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The emphasised phrase keeps the brand gradient — the same blue→teal the logo
   ends on. Applied per scene so each headline highlights its own key idea. */
.scene-mark {
  background: linear-gradient(100deg, #2563eb, #0891b2 55%, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Safari needs the fill to be transparent, not just the background clipped. */
  -webkit-text-fill-color: transparent;
}

/*
  The verb in the queue headline, coloured separately from the rest of the sentence.

  "客人掃描一下" is the action; "企喺度等" at the end is the outcome, and that one
  already owns the blue→teal→green gradient via .scene-mark. Giving 掃描 the same
  gradient would make two highlighted phrases compete and the sentence read as one
  long coloured block, so this one is a flat ink-blue instead — the same hue family,
  pulled darker than the body text so it still registers as emphasis.

  Solid rather than a gradient on purpose: at two characters wide a gradient is
  invisible, and the whole point here is to be seen.
*/
.scene-scan {
  color: #1d4ed8;
  font-weight: 800;
}

.scene-sub {
  margin: 0.75rem auto 0;
  max-width: 46rem;
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--h-soft);
  /* Four paragraphs of very different length — the queue one is roughly twice the
     others. Reserving a floor keeps the panel from shifting when the scene changes,
     while still letting a longer paragraph push the banner taller rather than clip. */
  min-height: 5.4em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.scene-line {
  display: none;
  max-width: 34ch;
}

.scene-sub .scene-line { max-width: 46rem; }

/* Queue is the resting state: no data-svc, or data-svc="queue". */
body:not([data-svc]) .scene-line[data-line="queue"],
body[data-svc="queue"] .scene-line[data-line="queue"],
body[data-svc="booking"] .scene-line[data-line="booking"],
body[data-svc="takeaway"] .scene-line[data-line="takeaway"],
body[data-svc="member"] .scene-line[data-line="member"] {
  display: block;
  animation: sceneLineIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sceneLineIn {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 40rem) {
  /* One line of type here too. The 1.28rem this replaces was the old subtitle size;
     the banner is the first thing on a phone screen, so it stays a headline. */
  .scene-headline { font-size: 1.5rem; min-height: 1.2em; }
  .scene-banner { padding-top: 2.4rem; }
  .scene-sub { font-size: 0.82rem; min-height: 7.6em; }
  .scene-line { max-width: 100%; }
}

/* ------------------------------------------------------ billing period --- */

/*
  Two buttons, not a switch: the annual option carries a second line ("one month
  free") that a toggle knob cannot hold. Sits between the section heading and the
  service tabs, because it applies to every service — reading order follows scope.
*/
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin: 2rem auto 0;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--h-line);
}

/* The section is centred, so the inline-flex bar needs to be centred by its parent. */
#pricing .billing-toggle { display: flex; width: fit-content; }

.billing-opt {
  display: grid;
  gap: 0.02rem;
  padding: 0.5rem 1.15rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.billing-opt:hover { background: rgba(15, 23, 42, 0.04); }

.billing-opt:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.billing-opt.is-active {
  background: var(--h-card, #fff);
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.16);
}

/* Green here, not the page accent: this is the same "this one is chosen" signal as
   the selected plan frame, so the two should look like the same decision. */
.billing-free {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #059669;
  text-transform: none;
}

.billing-opt.is-active .billing-free { color: #047857; }

.billing-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--h-faint);
  text-align: center;
}

/* Both price blocks occupy the same slot, so switching period does not make the
   card jump in height. */
.tier-price .price-monthly,
.tier-price .price-annual {
  display: block;
}

.tier-price [hidden] { display: none !important; }

/* "per year" is a longer word than "per month"; it must not wrap onto its own line
   and unbalance the cards. */
.tier-price .price-annual small { white-space: nowrap; }

/* ------------------------------------------------------- tier selection --- */

/*
  Clicking a plan highlights the whole card, the way scanqueue.com's plan picker
  does. The point is that the card — not just its button — reads as the thing you
  chose, so the eye has one large target instead of hunting for a small tick.

  The highlight is green, deliberately fixed (--g-600 / --g-500), not tied to the
  page accent. The accent shifts with the service scene — violet on booking, orange
  on takeaway — and a selected plan should not change colour just because the
  visitor is looking at a different service. Green also matches the product's
  original brand colour before the page went blue, so it reads as "chosen" rather
  than "this service is active".

  The selected state is additive: an unselected card keeps exactly the styling it
  had, so the section still looks right before anything is clicked. Only one card
  per panel can be selected, and the `tier-hot` "Most popular" badge is independent
  of selection — a card can be both, and the badge must not be mistaken for "chosen".
*/
.price-panel .tier {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

/*
  Hover: the card lifts and throws a shadow, so it reads as a physical thing you can
  pick up rather than a flat panel. Three signals together — a small rise, a deeper
  shadow, and a tinted edge — because a transform alone on a white card against a
  white page is almost invisible.

  The lift is 4px, not more: with four cards in a row a larger rise starts to look
  like the card is detaching from the grid. The shadow grows rather than appearing
  from nothing, so the transition has something continuous to animate.
*/
.price-panel .tier:hover {
  border-color: #34d399;
  transform: translateY(-4px);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.1),
    0 4px 10px rgba(15, 23, 42, 0.05);
}

/* A selected card already sits proud with its green frame. On hover it must not be
   pushed back down or lose the frame, so this overrides the lift with a slightly
   stronger version of the selected shadow instead. */
.price-panel .tier.is-selected:hover {
  border-color: #10b981;
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px #10b981,
    0 22px 46px rgba(16, 185, 129, 0.24);
}

/*
  The selected card gets a 2px green frame drawn with an inset ring rather than a
  thicker border, so selecting a card does not shift the grid by a pixel. Two rings:
  a solid inner one for the crisp edge, a soft outer glow for weight.

  The green is the brand gradient's end stop (#10b981 from the logo), not the
  page's older legacy green (--g-500 #37b986, which leans yellow). The logo's teal
  is what the mark ends on, so using anything else would put two different greens
  side by side in the header and the pricing table.

  Deliberately no tick badge and no recoloured button. The reference (scanqueue)
  keeps the CTA blue and lets the frame alone carry the selection — adding a tick
  and a green button on top made the chosen card read as a different component
  rather than the same card, chosen. One signal is stronger than three.
*/
.price-panel .tier.is-selected {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), var(--white, #fff) 55%);
  box-shadow:
    0 0 0 2px #10b981,
    0 18px 40px rgba(16, 185, 129, 0.18);
}

/* "Most popular" sits top-left when the card is also selected, so the tick and the
   badge never overlap. */
.price-panel .tier.is-selected .tier-badge {
  top: 0.7rem;
  right: auto;
  left: 0.75rem;
  background: #d1fae5;
  color: #065f46;
}

/* Keyboard: the card takes focus when its button is tabbed to, so the highlight
   tracks the keyboard the same way it tracks the pointer. */
.price-panel .tier:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #10b981, 0 12px 28px rgba(16, 185, 129, 0.16);
}

/* ------------------------------------------------------------ price tabs --- */

/*
  Four independent price ladders do not fit on screen at once: sixteen tier cards
  side by side would be unreadable and would hide the point of the change (that
  each service is bought on its own). Tabs keep one ladder visible at a time and
  make the "four services" structure explicit in the tab bar itself.
*/
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.2rem 0 0;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--h-line);
  justify-content: center;
}

.price-tab {
  display: grid;
  gap: 0.05rem;
  padding: 0.55rem 1.15rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  color: var(--h-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.price-tab span {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-tab small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--h-faint);
}

.price-tab:hover { background: rgba(15, 23, 42, 0.04); }

.price-tab.is-active {
  background: var(--h-card, #fff);
  border-color: var(--h-accent);
  color: var(--h-accent-2);
  box-shadow: 0 6px 16px var(--svc-tint, rgba(59, 130, 246, 0.16));
}

.price-tab.is-active small { color: var(--h-accent-2); opacity: 0.75; }

.price-tab:focus-visible {
  outline: 2px solid var(--h-accent);
  outline-offset: 3px;
}

/* The panels are siblings, so `hidden` alone switches them. No opacity tricks:
   a hidden price table must also leave the tab order. */
.price-panel[hidden] { display: none; }

/* "Price TBD" is a real state, not a placeholder to be styled away. It should look
   deliberately unfinished so nobody ships it believing a number is there. */
.price-panel [data-price-tbd] {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--h-faint);
  font-style: italic;
}

/* ------------------------------------------------------------ add-on block --- */

/*
  Messages sit outside the tier tables on purpose. If this sat inside a plan card a
  merchant would reasonably read it as included, and the whole "messages cost extra"
  point would be lost in a bullet list.
*/
.addon-block {
  margin-top: 2.6rem;
  padding: 1.6rem 1.5rem 1.75rem;
  border-radius: var(--radius, 14px);
  background: var(--h-card, #fff);
  border: 1px solid var(--h-line);
  box-shadow: var(--shadow-sm);
}

.addon-head { max-width: 40rem; }

.addon-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.addon-head p {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--h-soft);
}

.addon-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.addon-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid var(--h-line);
}

.addon-name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.addon-price {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--h-ink);
}

.addon-card [data-price-tbd] {
  font-size: 1rem;
  color: var(--h-faint);
  font-style: italic;
}

.addon-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--h-soft);
}

/* The membership panel is a note, not a table: MemberQR is a separate product with
   its own pricing, so printing tier cards here would be a lie. */
.price-member-note {
  margin-top: 2.4rem;
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius, 14px);
  background: var(--h-card, #fff);
  border: 1px dashed var(--h-line);
  text-align: center;
}

.price-member-note p {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--h-soft);
}

.price-member-note .btn { margin-top: 1.1rem; }

/* Sits under everything, stating plainly that the numbers are not set. */
.price-tbd-note {
  margin-top: 1.6rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm, 10px);
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed var(--h-line);
  text-align: center;
}

/* ---------------------------------------------------------- the cards --- */

/*
  Baseline only: the card's own gradient wash and a hairline border, which is how
  the row looked before any of the button styling passes.

  Deliberately nothing else here. No hover recolour, no selected border, no ring, no
  lift — those were experiments the user has dropped. The shared rules in
  styles.css (.svc-card, .svc-card:hover, .svc-card-primary) still apply underneath,
  so the row keeps its original behaviour; this block only restores the gradient
  fill, which the shared stylesheet does not carry for plain cards.

  The one thing kept from the newer work is `appearance: none` and the reset below,
  because the cards are <button> elements now: without it a browser default button
  chrome would show through and the row would look nothing like the original.
*/
body.home .svc-card {
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.07), var(--h-card, #fff) 62%);
}

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 40rem) {
  .svc-scene { padding: 2.6rem 0 2.2rem; }
  .svc-scene-grid { gap: 0.75rem; margin-top: 1.7rem; }
  .svc-scene-card { padding: 1.1rem 1.05rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-scene { animation: none; }
  body.home { transition: none; }
}
