/* ==========================================================================
   BeatsCard - Digital Business Card, shared design system
   One compact card layout. Themes only redefine the tokens in :root.
   ========================================================================== */

:root {
  /* --- Client palette: every theme overrides these --- */
  --ink: #14161a;
  --ink-2: #5b6169;
  --ink-3: #949aa2;
  --card: #ffffff;
  --canvas: #eceae6;          /* page behind the card on desktop */
  --tint: #f6f6f4;            /* subtle block fill inside the card */
  --line: rgba(20, 22, 26, 0.10);
  --accent: #14161a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(20, 22, 26, 0.06);

  /* --- Typography: themes override --- */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.03em;

  /* --- Scale: a card, not a page. Type stays modest. --- */
  --t-micro: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-name: clamp(1.6rem, 1.25rem + 1.5vw, 2.1rem);
  --t-section: 0.7rem;

  /* --- Layout --- */
  --card-w: 470px;            /* the card never grows past this */
  --pad: 1.25rem;             /* horizontal padding inside the card */
  --gap: 1.5rem;              /* space between card blocks */

  /* --- Shape & motion --- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.05);
  --shadow: 0 1px 2px rgba(16, 18, 22, 0.04), 0 10px 30px -14px rgba(16, 18, 22, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --bar-h: 56px;              /* sticky action bar - kept low so it doesn't
                                 eat the card; .card reserves this much space */
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--tint); }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------- The card --- */
/* Mobile: full-bleed. Desktop: a floating card on a tinted canvas. */
.card {
  position: relative;
  width: 100%;
  max-width: var(--card-w);
  margin-inline: auto;
  background: var(--card);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 0.5rem);
}

@media (min-width: 560px) {
  body { padding-block: 2.5rem; }
  .card {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 4px 12px -4px rgba(16, 18, 22, 0.1), 0 40px 80px -40px rgba(16, 18, 22, 0.45);
    padding-bottom: 0;
  }
  .bar { display: none; }        /* no thumb-reach problem on desktop */
}

.block { padding-inline: var(--pad); }
.block + .block { margin-top: var(--gap); }

.rule { height: 1px; margin: var(--gap) var(--pad) 0; background: var(--line); border: 0; }

/* -------------------------------------------------------------- Head --- */
.head { position: relative; }

.head__cover {
  position: relative;
  aspect-ratio: 2 / 1;        /* shorter than 16:9 - this is a card, not a hero */
  max-height: 46vh;
  overflow: hidden;
  background: var(--tint);
}

.head__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: coverIn 1.8s var(--ease) forwards;
}

@keyframes coverIn { to { transform: scale(1); } }

/* Scrim keeps the logo edge readable against any photograph */
.head__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.30) 100%);
}

.head__body {
  position: relative;
  padding: 0 var(--pad);
  margin-top: -34px;            /* logo overlaps the cover */
  text-align: center;
}

/* No cover photograph: a flat accent band instead of a stock image.
   Used where the business publishes no usable wide imagery. */
.head--nocover::before {
  content: "";
  display: block;
  height: 104px;
  background: var(--accent);
}

.head__logo {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.9rem;
  border-radius: 24px;
  overflow: hidden;
  padding: 7px;
  background: #fff;
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
}

/* Logos are marks, not photographs - never crop them */
.head__logo img { width: 100%; height: 100%; object-fit: contain; background: transparent; }

/* Fallback monogram when no logo file exists yet */
.head__logo--mono {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.head__name {
  font-family: var(--font-display);
  font-size: var(--t-name);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.head__owner {
  margin-top: 0.35rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.head__category {
  margin-top: 0.5rem;
  font-size: var(--t-sm);
  color: var(--accent);
  font-weight: 600;
}

.head__tagline {
  margin-top: 0.5rem;
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-wrap: pretty;
}

.head__place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.head__place svg { width: 13px; height: 13px; }

/* Verified-style chip - purely a visual anchor, claims nothing */
.head__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.head__chip svg { width: 13px; height: 13px; }

/* ---------------------------------------------- Primary action tiles --- */
.acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.acts[data-count="4"] { grid-template-columns: repeat(4, 1fr); }

.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 76px;
  padding: 0.75rem 0.35rem;
  border-radius: var(--r-md);
  background: var(--tint);
  border: 1px solid transparent;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.act svg { width: 20px; height: 20px; }
.act__icon { display: grid; place-items: center; color: var(--accent); transition: color 0.25s var(--ease); }
.act:active { transform: scale(0.96); }

@media (hover: hover) {
  .act:hover { background: var(--accent); color: var(--accent-ink); }
  .act:hover .act__icon { color: inherit; }
}

.act--wa .act__icon { color: #25d366; }

/* ------------------------------------------------------------ Buttons -- */
.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-line);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: scale(0.975); }

@media (hover: hover) { .btn:hover { opacity: 0.88; } }

.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line); }

@media (hover: hover) {
  .btn--ghost:hover { opacity: 1; background: var(--accent-soft); --btn-line: var(--accent); }
}

.btn--wa { --btn-bg: #25d366; --btn-ink: #042d18; }
.btn--block { display: flex; width: 100%; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* ---------------------------------------------------- Section titles --- */
.title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: var(--t-section);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ------------------------------------------------------------- About --- */
.about { font-size: var(--t-base); color: var(--ink-2); text-wrap: pretty; }

/* ---------------------------------------------------------- Services --- */
.svcs { display: grid; gap: 0.4rem; }

.svc {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--tint);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.svc__dot {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.svc__dot svg { width: 15px; height: 15px; }

/* Tappable rows open the product/service on the client's website */
.svc--link { -webkit-tap-highlight-color: transparent; }
.svc--link:active { transform: scale(0.99); }

.svc__go {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.svc__go svg { width: 15px; height: 15px; }

@media (hover: hover) {
  .svc--link:hover { background: var(--accent-soft); }
  .svc--link:hover .svc__go { transform: translateX(2px); color: var(--accent); }
}

/* Name and note must stack - as inline spans they collide when the note wraps */
.svc__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.svc__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: pretty;
}

.svc__note {
  display: block;
  font-size: var(--t-micro);
  color: var(--ink-3);
  line-height: 1.4;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- Info --- */
.info { display: grid; }

.info__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.25rem;
  border-radius: var(--r-sm);
  transition: background-color 0.25s var(--ease);
}

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

@media (hover: hover) {
  a.info__row:hover { background: var(--accent-soft); }
}

.info__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.info__icon svg { width: 16px; height: 16px; }
/* Two-column row: fixed label column, value column takes the rest.
   As bare inline spans these ran together ("PHONE+91 96571 37365"), so both
   sides are explicit flex items with a guaranteed gap between them. */
.info__text {
  display: flex;
  align-items: baseline;     /* label sits on the value's first baseline */
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.info__label {
  flex: 0 0 90px;
  font-size: var(--t-micro);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Long emails and URLs wrap inside their own column instead of overflowing */
.info__value,
.info__text > .hours {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info__value {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

/* Long single-token values (emails, URLs) - shrink rather than break mid-word */
.info__value--long { font-size: 0.8125rem; letter-spacing: -0.005em; }

/* Narrow phones: give the value column back some room */
@media (max-width: 379px) {
  .info__text { gap: 8px; }
  .info__label { flex-basis: 78px; }
}

.info__go { flex: none; color: var(--ink-3); }
.info__go svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- Hours --- */
/* Sits in the value column of an .info__row, so no extra top margin */
.hours { display: grid; gap: 0.25rem; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-2);
}

.hours strong { font-weight: 600; color: var(--ink); }

/* ----------------------------------------------------------- Gallery --- */
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.gal__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  aspect-ratio: 1 / 1;
  background: var(--tint);
  cursor: zoom-in;
  padding: 0;
}

.gal__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) { .gal__item:hover img { transform: scale(1.08); } }

/* ----------------------------------------------------------- Socials --- */
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.social {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social svg { width: 19px; height: 19px; }
.social:active { transform: scale(0.92); }

@media (hover: hover) {
  .social:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
}

/* ------------------------------------------------------ Connect / CTA -- */
.connect {
  margin-top: var(--gap);
  padding: 1.5rem var(--pad) 1.75rem;
  background: var(--tint);
  text-align: center;
}

.connect h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}

.connect p { margin-top: 0.35rem; font-size: var(--t-sm); color: var(--ink-2); }
.connect .pair { margin-top: 1.15rem; }

/* ------------------------------------------------------------ Footer --- */
.foot {
  padding: 1.4rem var(--pad) 1.6rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.foot__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* "Powered by BeatsCard" mark - the BeatsCracker logo, not a letter tile.
   background-size: contain keeps the whole lockup visible at its own aspect
   ratio: never cropped, never stretched. Generated cards override --foot-logo
   with an absolute URL (and the white lockup on dark designs); the fallback
   here serves the static demo cards on the same subdomain. */
.foot__mark {
  flex: 0 0 auto;
  width: 36px;
  height: 30px;
  /* Declaring the fallback inline (rather than as a local custom property)
     keeps the value the generator sets on :root winning. */
  background-image: var(--foot-logo, url("/assets/beatscard-logo.png"));
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.foot__line { margin-top: 0.4rem; font-size: var(--t-micro); color: var(--ink-3); }

/* The floating demo chip sits over this corner - give the footer room */
body[data-chip="true"] .foot { padding-bottom: 4.75rem; }

.foot__cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* -------------------------------------------------- Sticky action bar -- */
/* Constrained to the card's own width - a full-bleed bar would hang outside
   the card on viewports between the card width and the desktop breakpoint. */
.bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  width: 100%;
  max-width: var(--card-w);
  z-index: 60;
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}

/* Exactly two equal actions - chosen from whatever the business publishes */
.bar .btn { flex: 1 1 0; min-width: 0; min-height: 40px; padding-inline: 0.5rem; font-size: 0.8125rem; }
.bar .btn svg { width: 1.05em; height: 1.05em; }
.bar .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- Lightbox --- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(9, 10, 12, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox[data-open="true"] { opacity: 1; visibility: visible; }

/* --- top row: counter + close --- */
.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox__count {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.25s var(--ease);
}

@media (hover: hover) { .lightbox__close:hover { background: rgba(255,255,255,0.22); } }

/* --- stage --- */
.lightbox__stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-inline: 1rem;
}

.lightbox__stage img {
  max-width: min(100%, 720px);
  max-height: 100%;
  width: auto;
  border-radius: var(--r-md);
  background: transparent;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.lightbox[data-open="true"] .lightbox__stage img { opacity: 1; transform: scale(1); }
.lightbox[data-loading="true"] .lightbox__stage img { opacity: 0.35; }

/* --- prev / next --- */
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 0.35rem; }
.lightbox__nav--next { right: 0.35rem; }
.lightbox__nav[hidden] { display: none; }

@media (hover: hover) { .lightbox__nav:hover { background: rgba(255,255,255,0.2); } }

/* --- caption --- */
.lightbox__cap {
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: var(--t-sm);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

.lightbox__cap:empty { display: none; }

/* ----------------------------------------------------------- Toast ----- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom));
  z-index: 150;
  padding: 0.65rem 1.15rem;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 26, 0.94);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* The demo chip lives in the same corner - stack the toast above it */
body[data-chip="true"] .toast { bottom: calc(var(--bar-h) + 4rem + env(safe-area-inset-bottom)); }

@media (min-width: 560px) {
  .toast { bottom: 1.5rem; }
  body[data-chip="true"] .toast { bottom: 4.5rem; }
}

/* ---------------------------------------------------- Demo sales chip -- */
/* Only present on the demo builds. Small, dismissible, never dominant. */
.demo-chip {
  position: fixed;
  z-index: 55;
  right: 0.75rem;
  bottom: calc(var(--bar-h) + 0.7rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 26, 0.94);
  backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(0,0,0,0.7);
  font-size: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

.demo-chip[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.demo-chip b { font-weight: 650; }
.demo-chip span { color: rgba(255,255,255,0.58); }

.demo-chip a {
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: #fff;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
}

.demo-chip button {
  width: 22px; height: 22px;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1;
}

@media (min-width: 560px) { .demo-chip { bottom: 1.25rem; right: 1.25rem; } }

/* ------------------------------------------------------------ Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------- Small-phone tuning --- */
/* 360-390px: trim padding and shrink the action tiles so nothing crowds. */
@media (max-width: 400px) {
  :root {
    --pad: 1.1rem;
    --gap: 1.3rem;
  }

  .head__logo { width: 78px; height: 78px; }
  .head__body { margin-top: -30px; }

  .act { min-height: 70px; gap: 0.35rem; padding: 0.65rem 0.25rem; }
  .act svg { width: 18px; height: 18px; }

  .btn { min-height: 46px; padding-inline: 1rem; }
  .pair { gap: 0.4rem; }

  .svc { padding: 0.7rem 0.8rem; gap: 0.7rem; }
  .gal { gap: 0.3rem; }
}

/* Very narrow (≤340px): a 4-tile action row has to become 2×2 */
@media (max-width: 340px) {
  .acts[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
}

/* Placeholder token - makes unfilled client data obvious at a glance */
.ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.4em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--ink-2);
}
