/* Orqe site. Tokens follow docs/design.md (60/30/10, green-tinted neutrals, motion tokens). */
:root {
  color-scheme: light;

  /* 60: page neutral, a very light green tint */
  --bg: #f4f6f2;
  /* 30: secondary surfaces */
  --surface: #e8ede5;
  --surface-strong: #d8e0d4;
  --card: #fcfdfa;
  /* 10: accent, primary action only (deep green) */
  --accent: #1f5a3d;
  --accent-hover: #174a31;
  --on-accent: #ffffff;

  --text: #18201b;
  --text-muted: #4f5a52;
  --line: #d2dacd;
  --hairline: rgba(24, 32, 27, 0.08);

  /* status colours: state only, small */
  --ok: #2f6b3a;
  --ok-bg: #dcecdc;
  --held: #8a5a00;
  --held-bg: #f5ead3;
  --confirmed: #2d5675;
  --confirmed-bg: #e0e9f0;

  /* glass */
  --glass-bg: rgba(252, 253, 250, 0.62);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(24px) saturate(170%);

  /* shadows: layered, tinted toward the neutral */
  --shadow-sm: 0 1px 2px rgba(24, 40, 28, 0.06), 0 2px 8px rgba(24, 40, 28, 0.04);
  --shadow-md: 0 1px 2px rgba(24, 40, 28, 0.06), 0 8px 24px -6px rgba(24, 40, 28, 0.12);
  --shadow-lg: 0 2px 4px rgba(24, 40, 28, 0.06), 0 28px 56px -14px rgba(24, 40, 28, 0.22);
  --shadow-accent: 0 1px 2px rgba(10, 40, 25, 0.25), 0 8px 20px -6px rgba(31, 90, 61, 0.5);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* landing page only: a small overshoot for lifts and entrances */
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-press: 100ms;
  --dur-pop: 200ms;
  --dur-move: 250ms;
  --dur-lift: 350ms;
  --dur-enter: 700ms;
  --stagger: 30ms;

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", sans-serif;
  --max: 1120px;
  --gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* Glass: used on a few surfaces only (cost on low-end phones) */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(252, 253, 250, 0.92); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Lift on hover: tiles and cards rise with a small spring. Hover is not gated on (hover: hover):
   some browsers and touch laptops report no hover even with a mouse. */
.tile, .card.plan, .part {
  transition: translate var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) var(--ease-out);
}
@media all {
  .tile:hover, .card.plan:hover, .part:hover {
    translate: 0 -6px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .tile:hover .today, .tile:hover .wa-msg, .tile:hover .night, .tile:hover .flow-node, .tile:hover .bars { translate: 0 -3px; }
}
.today, .wa-msg, .night, .flow-node, .bars { transition: translate var(--dur-lift) var(--ease-spring); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 242, 0.7);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-move) var(--ease-out), border-color var(--dur-move) var(--ease-out), background-color var(--dur-move) var(--ease-out);
}
.site-header.scrolled { background: rgba(244, 246, 242, 0.82); border-bottom-color: var(--hairline); box-shadow: 0 6px 24px -12px rgba(24, 40, 28, 0.18); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
  padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px;
  transition: color var(--dur-pop) var(--ease-out), background-color var(--dur-pop) var(--ease-out);
}
.nav a:hover { color: var(--text); background: rgba(24, 32, 27, 0.06); }
.site-header .btn { margin-left: auto; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* Logo mark: a ring and a dot. The dot opens into a ring, turns into a crescent, blooms into a flower and closes
   back to a dot, then rests for 5 seconds. Static wherever it is drawn without .mark-live (mockups, favicon). */
.logo-mark { width: 28px; height: 28px; overflow: visible; }
.oq-disc, .oq-cutter, .oq-p { transform-box: fill-box; transform-origin: center; }
.oq-cutter, .oq-p { transform: scale(0); }
@media (prefers-reduced-motion: no-preference) {
  .mark-live .oq-disc { animation: oq-disc 10.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .mark-live .oq-cutter { animation: oq-cut 10.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .mark-live .oq-p { animation: oq-petal 10.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .mark-loading .oq-disc { animation: oql-disc 5.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .mark-loading .oq-cutter { animation: oql-cut 5.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .mark-loading .oq-p { animation: oql-petal 5.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
}
@keyframes oq-disc {
  0%, 2.88% { transform: scale(1); }
  8.65%, 29.81% { transform: scale(1.24); }
  37.5%, 46.15% { transform: scale(0.57); }
  51.92%, 100% { transform: scale(1); }
}
@keyframes oq-cut {
  0%, 2.88% { transform: translate(0, 0) scale(0); }
  8.65%, 15.38% { transform: translate(0, 0) scale(0.75); }
  22.12%, 29.81% { transform: translate(2.64px, -2.2px) scale(1.08); }
  37.5%, 46.15% { transform: translate(0, 0) scale(0.27); }
  51.92%, 100% { transform: translate(0, 0) scale(0); }
}
@keyframes oq-petal {
  0% { transform: translate(0, 0) scale(0); }
  29.81% { transform: translate(0, 0) scale(0); animation-timing-function: cubic-bezier(0.34, 1.36, 0.64, 1); }
  37.5%, 46.15% { transform: translate(var(--x), var(--y)) scale(1); }
  51.92%, 100% { transform: translate(0, 0) scale(0); }
}
@keyframes oql-disc {
  0%, 5.56% { transform: scale(1); }
  16.67%, 57.41% { transform: scale(1.24); }
  72.22%, 88.89% { transform: scale(0.57); }
  100%, 100% { transform: scale(1); }
}
@keyframes oql-cut {
  0%, 5.56% { transform: translate(0, 0) scale(0); }
  16.67%, 29.63% { transform: translate(0, 0) scale(0.75); }
  42.59%, 57.41% { transform: translate(2.64px, -2.2px) scale(1.08); }
  72.22%, 88.89% { transform: translate(0, 0) scale(0.27); }
  100%, 100% { transform: translate(0, 0) scale(0); }
}
@keyframes oql-petal {
  0% { transform: translate(0, 0) scale(0); }
  57.41% { transform: translate(0, 0) scale(0); animation-timing-function: cubic-bezier(0.34, 1.36, 0.64, 1); }
  72.22%, 88.89% { transform: translate(var(--x), var(--y)) scale(1); }
  100%, 100% { transform: translate(0, 0) scale(0); }
}

/* Buttons: pill, soft depth, lift on hover, press to 0.97 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition:
    transform var(--dur-press) var(--ease-out),
    translate var(--dur-lift) var(--ease-spring),
    background-color var(--dur-pop) var(--ease-out),
    box-shadow var(--dur-move) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-dark {
  background: var(--text); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.86); color: var(--text);
  border-color: rgba(24, 32, 27, 0.1);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@media all {
  .btn:hover { translate: 0 -2px; }
  .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 2px 4px rgba(10, 40, 25, 0.25), 0 16px 30px -8px rgba(31, 90, 61, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  .btn-dark:hover { background: #2c3830; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 12px 24px -8px rgba(24, 32, 27, 0.5); }
  .btn-glass:hover { background: #fff; box-shadow: var(--shadow-md), inset 0 1px 0 #fff; }
}
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sky: soft, static light behind a few panels */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sky span { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; }
.sky span:nth-child(1) { top: -38vmax; left: -18vmax; background: radial-gradient(closest-side, rgba(176, 212, 172, 0.55), transparent); }
.sky span:nth-child(2) { top: -30vmax; right: -26vmax; background: radial-gradient(closest-side, rgba(190, 228, 222, 0.4), transparent); }
.sky span:nth-child(3) { top: 12vmax; left: 18vmax; background: radial-gradient(closest-side, rgba(204, 230, 200, 0.6), transparent); }
.sky span:nth-child(4) { bottom: -44vmax; left: -24vmax; background: radial-gradient(closest-side, rgba(168, 204, 176, 0.45), transparent); }

/* Hero */
.hero { position: relative; padding: 48px 0 24px; overflow: clip; }
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
/* one tinted glow per business; only opacity changes, so the crossfade stays on the compositor */
.glow span { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms var(--ease-in-out); background: radial-gradient(55% 50% at 50% 72%, var(--t), transparent 72%); }
.g-spa { --t: #dcefe4; }
.g-salon { --t: #e2ecd8; }
.g-dental { --t: #d6eeee; }
.g-pool { --t: #cde6d5; }
.hero[data-theme="spa"] .g-spa, .hero[data-theme="salon"] .g-salon, .hero[data-theme="dental"] .g-dental, .hero[data-theme="pool"] .g-pool { opacity: 1; }
.hero .wrap { z-index: 1; }
.hero-copy { display: grid; gap: 20px; max-width: 48rem; margin: 0 auto; text-align: center; justify-items: center; }
.hero-copy .lede { font-size: 1.15rem; line-height: 1.55; color: var(--text-muted); max-width: 40rem; }
.hero-copy .actions { justify-content: center; padding-top: 4px; }
@media (min-width: 900px) { .hero { padding: 72px 0 40px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(16px); animation: settle var(--dur-enter) var(--ease-spring) forwards; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
}

/* Showcase: one business at a time, drawn at a fixed design size and scaled to fit (--k) */
.showcase { position: relative; z-index: 1; margin-top: 32px; --k: 0.36; --ease-slide: cubic-bezier(0.32, 0.72, 0, 1); }
@media (min-width: 480px) { .showcase { --k: 0.5; } }
@media (min-width: 760px) { .showcase { --k: 0.76; } }
@media (min-width: 1100px) { .showcase { --k: 0.86; } }
.stage-frame { position: relative; height: calc(560px * var(--k) + 40px); touch-action: pan-y; }
.showcase.compact .stage-frame { height: calc(640px * var(--k) + 24px); }
.stage { position: absolute; top: 0; left: 50%; width: 920px; height: 560px; margin-left: -460px; transform: scale(var(--k)); transform-origin: top center; }
.showcase.compact .stage { width: 400px; height: 640px; margin-left: -200px; }

.scene {
  position: absolute; inset: 0; contain: layout style; will-change: transform, opacity;
  transition: transform 900ms var(--ease-slide), opacity 700ms var(--ease-slide), filter 700ms var(--ease-slide);
}
.scene:not(:first-child) { display: none; }
.js .scene:not(:first-child) { display: block; }
.scene[data-pos="active"] { z-index: 3; }
/* desktop: the businesses waiting behind are blurred, like cards at the back of a deck */
.scene[data-pos="next"] { z-index: 2; transform: translateX(32%) scale(0.8); opacity: 0.5; filter: blur(7px) saturate(0.8); }
.scene[data-pos="next2"] { z-index: 1; transform: translateX(56%) scale(0.66); opacity: 0.22; filter: blur(12px) saturate(0.7); }
.scene[data-pos="prev"] { z-index: 2; transform: translateX(-46%) scale(0.86); opacity: 0; filter: blur(7px); }
.scene:not([data-pos="active"]) { pointer-events: none; }
/* soft floor shadow under the devices */
.scene::after { content: ""; position: absolute; left: 6%; right: 10%; bottom: 4px; height: 36px; z-index: -1; background: radial-gradient(closest-side, rgba(20, 45, 30, 0.16), transparent); }
/* phones: plain slide, no blur (cheaper), swipe to change */
.showcase.compact .scene { transition: transform 600ms var(--ease-slide), opacity 450ms var(--ease-slide); }
.showcase.compact .scene[data-pos="next"], .showcase.compact .scene[data-pos="next2"] { transform: translateX(105%) scale(0.92); opacity: 0; filter: none; }
.showcase.compact .scene[data-pos="prev"] { transform: translateX(-105%) scale(0.92); opacity: 0; filter: none; }

/* Devices. translate = pointer depth (set by the script), scale = hover focus, transform = idle float. */
.laptop, .phone {
  will-change: transform;
  transition: translate 650ms var(--ease-out), scale 550ms var(--ease-spring), opacity 400ms var(--ease-out);
}
.laptop { position: absolute; left: 0; top: 24px; z-index: 1; width: 760px; --ls: 1; scale: var(--ls); }
.phone { position: absolute; right: 0; top: 44px; z-index: 2; transform-origin: 75% 50%; }
/* mouse hover (desktop only, set by the script): the device under the pointer comes forward */
.scene.focus-laptop .laptop { scale: calc(var(--ls) * 1.06); }
.scene.focus-laptop .phone { scale: 0.9; opacity: 0.35; }
.scene.focus-phone .phone { scale: 1.2; }
.scene.focus-phone .laptop { scale: calc(var(--ls) * 0.97); opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .scene[data-pos="active"] .laptop { animation: float 9s var(--ease-in-out) infinite alternate; }
  .scene[data-pos="active"] .phone { animation: float 7s var(--ease-in-out) -3s infinite alternate; }
  .showcase.compact .scene .laptop, .showcase.compact .scene .phone { animation: none; }
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Laptop */
.laptop-screen {
  width: 680px; height: 425px; margin: 0 auto; padding: 9px 9px 11px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(180deg, #1d2621, #0e1310);
  box-shadow: 0 30px 60px -24px rgba(20, 45, 30, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.laptop-base {
  position: relative; height: 18px; border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #eef2ee, #c6cfc8 55%, #a7b1a9);
  box-shadow: 0 18px 30px -12px rgba(20, 45, 30, 0.35);
}
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 110px; height: 6px; margin-left: -55px; border-radius: 0 0 8px 8px; background: #b3bdb5; }

/* Dashboard inside the laptop: the look the real dashboard follows (docs/design.md).
   60: white and off-white surfaces. 30: soft green-grey chips and cards. 10: the Walk-in button and the new booking. */
.app {
  position: relative; isolation: isolate; contain: layout paint; height: 100%; overflow: hidden; border-radius: 8px;
  display: grid; grid-template-columns: 112px 1fr;
  background: #f5f7f3; color: var(--text); font-size: 10px; line-height: 1.3;
}
.ic { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av {
  width: 14px; height: 14px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface-strong); color: var(--text); font-size: 6.5px; font-weight: 700; letter-spacing: 0;
}
.side { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 8px; background: #fff; border-right: 1px solid var(--hairline); }
.side-logo { display: flex; align-items: center; gap: 5px; padding: 0 4px; font-size: 12px; font-weight: 700; letter-spacing: -0.02em; }
.side-logo svg { width: 14px; height: 14px; }
.biz { display: grid; padding: 5px 7px; border-radius: 8px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.biz b { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz small { font-size: 8.5px; color: var(--text-muted); }
.nav-group { display: grid; gap: 1px; }
.nav-label { padding: 2px 6px; font-size: 8.5px; color: var(--text-muted); }
.nav-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; color: var(--text-muted); font-size: 9.5px; white-space: nowrap; }
.nav-item.on { background: var(--surface); color: var(--text); font-weight: 600; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 7px 4px 0; border-top: 1px solid var(--hairline); font-size: 9.5px; }

.app-main { min-width: 0; padding: 10px 12px; display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.main-head { display: flex; align-items: center; gap: 8px; }
.title { display: grid; line-height: 1.2; }
.title b { font-size: 14px; letter-spacing: -0.02em; }
.title small { font-size: 9px; color: var(--text-muted); }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--hairline); color: var(--text-muted); font-size: 9px; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #5fae7f; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 600;
  box-shadow: 0 1px 1px rgba(10, 40, 25, 0.2), 0 4px 10px -4px rgba(31, 90, 61, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.mini-btn .ic { width: 9px; height: 9px; }
.main-grid { display: grid; grid-template-columns: 1fr 140px; gap: 8px; min-height: 0; }
.card-m { background: #fff; border: 1px solid var(--hairline); border-radius: 10px; box-shadow: 0 1px 2px rgba(24, 40, 28, 0.04); }

.cal { --hr: 27px; padding: 7px 8px 6px; display: grid; grid-template-rows: auto auto 1fr; min-height: 0; }
.cal-top { display: flex; align-items: center; gap: 8px; padding-bottom: 5px; font-size: 9px; }
.seg { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--surface); }
.seg span { padding: 1px 8px; border-radius: 5px; color: var(--text-muted); }
.seg .on { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.legend { margin-left: auto; display: flex; gap: 8px; color: var(--text-muted); font-size: 8.5px; }
.legend span { display: inline-flex; align-items: center; gap: 3px; }
.legend span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; }
.lg-booked::before { background: #d3e9da; }
.lg-done::before { background: #e6eae5; border: 1px solid #d5dbd5; }
.lg-walkin::before { background: #fff; border: 1px solid #c9d3cb; }
.lg-held::before { border: 1px dashed #9aa79d; }
.cal-head { display: grid; grid-template-columns: 30px repeat(var(--cols), 1fr); padding: 2px 0 4px; font-size: 9.5px; font-weight: 600; }
.cal-head span { padding-left: 4px; }
.cal-body { position: relative; display: grid; grid-template-columns: 30px 1fr; height: calc(var(--rows) * var(--hr)); }
.hours { position: relative; }
.hr { position: absolute; top: calc(var(--s) * var(--hr) - 5px); font-size: 8.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lanes { position: relative; border-left: 1px solid var(--hairline); background: repeating-linear-gradient(180deg, var(--hairline) 0 1px, transparent 1px var(--hr)); }
.blk {
  position: absolute;
  top: calc(var(--s) * var(--hr) + 1px); height: calc(var(--d) * var(--hr) - 2px);
  left: calc(var(--c) * 100% / var(--cols) + 3px); width: calc(100% / var(--cols) - 6px);
  display: flex; align-items: flex-start; gap: 4px; padding: 3px 5px; border-radius: 6px; overflow: hidden;
  font-size: 9px; line-height: 1.15; transform-origin: top;
}
.blk .av { width: 13px; height: 13px; font-size: 6px; background: #fff; }
.blk .t { display: grid; min-width: 0; }
.blk b, .blk small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk b { font-weight: 600; }
.blk small { font-size: 8px; opacity: 0.8; }
.blk-short { align-items: center; padding-block: 1px; }
.blk-done { background: #eef1ec; color: #6b756e; }
.blk-booked { background: #ddeee2; color: #1d4a32; }
.blk-walkin { background: #fff; border: 1px solid #d3dcd5; color: var(--text-muted); }
.blk-held { border: 1px dashed #b6c2b9; color: var(--text-muted); background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(24, 32, 27, 0.035) 4px 8px); }
.blk-new { z-index: 1; background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(31, 90, 61, 0.7); }
.blk-new .av { background: rgba(255, 255, 255, 0.2); color: #fff; }
.now-line { position: absolute; left: 0; right: 0; top: calc(var(--now) * var(--hr)); z-index: 2; height: 1px; background: rgba(24, 32, 27, 0.45); }
.now-line::before { content: ""; position: absolute; left: -3px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }

.side-cards { display: grid; gap: 8px; align-content: start; }
.stat { display: grid; gap: 4px; padding: 8px 9px; }
.stat small, .att > small { font-size: 8.5px; color: var(--text-muted); }
.stat b { font-size: 16px; letter-spacing: -0.02em; }
.bar { height: 4px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: #9ccbab; transform-origin: left; }
.att { display: grid; gap: 7px; padding: 8px 9px; }
.att-row { display: flex; align-items: flex-start; gap: 6px; }
.att-row b { display: block; font-size: 9.5px; }
.att-row small { display: block; font-size: 8.5px; line-height: 1.25; color: var(--text-muted); }

.toast {
  position: absolute; bottom: 12px; left: calc(56px + 50%); z-index: 3; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: 10px;
  background: rgba(24, 32, 27, 0.92); color: #fff; box-shadow: var(--shadow-md); opacity: 0;
}
.toast b { margin-right: 4px; color: #a6e6c1; }

/* Phone: a WhatsApp-style chat.
   60: wallpaper and white bubbles. 30: green outgoing bubbles and bars. 10: the send button and reply buttons. */
.phone {
  width: 240px; padding: 8px; border-radius: 44px;
  background: linear-gradient(160deg, #36403a, #141a16);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 36px 70px -24px rgba(20, 45, 30, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone-screen {
  position: relative; height: 480px; overflow: hidden; contain: layout paint; border-radius: 36px;
  display: flex; flex-direction: column; background: #eae8e1; color: var(--text);
}
.sbar { flex: none; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 2px 20px 0 26px; font-size: 11px; font-weight: 600; background: #f7f8f5; }
.island { position: absolute; top: 9px; left: 50%; width: 76px; height: 21px; margin-left: -38px; border-radius: 999px; background: #0e120f; }
.sb-right { display: flex; align-items: center; gap: 4px; }
.sig { width: 13px; height: 8px; background: currentColor; clip-path: polygon(0 100%, 18% 100%, 18% 70%, 0 70%, 0 100%, 27% 100%, 27% 45%, 45% 45%, 45% 100%, 55% 100%, 55% 22%, 73% 22%, 73% 100%, 82% 100%, 82% 0, 100% 0, 100% 100%); }
.bat { position: relative; width: 18px; height: 9px; border: 1px solid currentColor; border-radius: 3px; }
.bat::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; border-radius: 1px; background: currentColor; }
.wa-head { flex: none; display: flex; align-items: center; gap: 7px; padding: 4px 12px 7px 6px; background: #f7f8f5; border-bottom: 1px solid var(--hairline); }
.wa-head .ic { width: 15px; height: 15px; stroke-width: 1.8; }
.wa-head .ic:first-child { width: 17px; height: 17px; stroke-width: 2.2; }
.wa-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-strong); font-size: 10px; font-weight: 700; }
.wa-who { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.wa-who b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-status { font-size: 10px; color: var(--text-muted); }
.wa-body {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 8px;
  background-color: #eae8e1;
  background-image: radial-gradient(rgba(24, 40, 28, 0.05) 1px, transparent 1.3px);
  background-size: 14px 14px;
}
.msgs { display: flex; flex-direction: column; gap: 5px; transition: transform 420ms var(--ease-out); will-change: transform; }
.day-chip { align-self: center; padding: 2px 8px; margin-bottom: 2px; border-radius: 6px; background: rgba(255, 255, 255, 0.9); color: var(--text-muted); font-size: 9.5px; }
.msg { display: grid; gap: 2px; max-width: 84%; }
.msg.in { align-self: flex-start; transform-origin: top left; }
.msg.out { align-self: flex-end; transform-origin: bottom right; }
.bub { padding: 5px 8px; border-radius: 9px; background: #fff; font-size: 11.5px; line-height: 1.35; box-shadow: 0 1px 0.5px rgba(24, 40, 28, 0.13); }
.msg.in .bub { border-top-left-radius: 3px; }
.msg.out .bub { background: #d7f2cd; border-top-right-radius: 3px; }
.bub .confirm { color: var(--ok); font-weight: 600; }
.meta { float: right; display: inline-flex; align-items: center; gap: 2px; margin: 5px 0 -3px 8px; font-size: 8.5px; color: rgba(24, 32, 27, 0.5); font-variant-numeric: tabular-nums; }
.tick { width: 13px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: color 300ms var(--ease-out); }
.msg.out.read .tick { color: #3b8f62; }
.btns { display: grid; gap: 2px; }
.btns span {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; padding: 4px 8px;
  border-radius: 8px; background: #fff; color: var(--accent); font-size: 11px; font-weight: 600;
  box-shadow: 0 1px 0.5px rgba(24, 40, 28, 0.13);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btns .ic { width: 10px; height: 10px; }
.btns.used span { color: var(--text-muted); }
.btns span.pressed { background: #e1efe5; color: var(--accent); animation: tap 260ms var(--ease-out); }
.typing-b { display: inline-flex; gap: 3px; padding: 9px 11px; }
.typing-b i { width: 5px; height: 5px; border-radius: 50%; background: #98a39b; animation: dot 1s var(--ease-in-out) infinite; }
.typing-b i:nth-child(2) { animation-delay: 150ms; }
.typing-b i:nth-child(3) { animation-delay: 300ms; }
.msg.enter { animation: msg-in 360ms var(--ease-spring) both; }
.wa-input { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 8px 16px; background: #f7f8f5; border-top: 1px solid var(--hairline); }
.wa-input > .ic { width: 16px; height: 16px; color: var(--text-muted); }
.field {
  flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; padding: 0 10px; overflow: hidden;
  border-radius: 999px; background: #fff; border: 1px solid var(--hairline); font-size: 11.5px; white-space: nowrap;
}
.ph { color: rgba(24, 32, 27, 0.4); }
.wa-input.typing .ph { display: none; }
.wa-input.typing .field { justify-content: flex-end; }
.wa-input.typing .typed::after { content: ""; display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
.send {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 2px 6px -2px rgba(31, 90, 61, 0.6);
}
.send .ic { grid-area: 1 / 1; width: 13px; height: 13px; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.send .snd { opacity: 0; transform: scale(0.6) rotate(-30deg); }
.wa-input.typing .snd { opacity: 1; transform: none; }
.wa-input.typing .mic { opacity: 0; transform: scale(0.6); }

/* Compact layout for phones: laptop at half size behind, phone in front */
.showcase.compact .laptop { top: 0; --ls: 0.5; transform-origin: top left; }
.showcase.compact .phone { right: 8px; top: 140px; }

/* Business switcher */
.switch {
  position: relative; z-index: 4; display: flex; gap: 4px; width: max-content; max-width: calc(100% - 32px);
  margin: 0 auto; padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.switch::-webkit-scrollbar { display: none; }
.switch button {
  position: relative; flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; overflow: hidden;
  background: transparent; color: var(--text-muted); font: inherit; font-size: 0.92rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: color var(--dur-pop) var(--ease-out), background-color var(--dur-pop) var(--ease-out), box-shadow var(--dur-pop) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.switch button:hover { color: var(--text); }
.switch button:active { transform: scale(0.97); }
.switch button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.switch button:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.progress { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.js .switch [aria-selected="true"] .progress { opacity: 1; }
.showcase.compact .progress { display: none; }
@media (max-width: 480px) { .switch button { padding: 0 12px; font-size: 0.85rem; } .progress { left: 12px; right: 12px; } }

/* When a business comes to the front: calendar fills in; the new booking lands once the chat confirms it */
@media (prefers-reduced-motion: no-preference) {
  .scene[data-pos="active"] .blk { animation: grow-blk 500ms var(--ease-out) both; animation-delay: calc(200ms + var(--c) * 70ms + var(--s) * 30ms); }
  .js .scene[data-pos="active"]:not(.booked) .blk-new { opacity: 0; animation: none; }
  .scene[data-pos="active"].booked .blk-new { animation: pop-new 650ms var(--ease-spring) both, ring 1100ms var(--ease-out) 250ms; }
  .scene[data-pos="active"] .bar i { animation: grow-x 900ms var(--ease-out) 400ms both; }
  .scene[data-pos="active"].booked .toast { animation: toast 3200ms var(--ease-out) 150ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .showcase.compact .scene { transition: opacity 300ms var(--ease-out); }
  .laptop, .phone { transition: opacity 200ms var(--ease-out); }
  .msgs { transition: none; }
}
@keyframes grow-blk { from { opacity: 0; transform: scaleY(0.6); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes pop-new { 0% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(31, 90, 61, 0.55); } to { box-shadow: 0 0 0 10px rgba(31, 90, 61, 0); } }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.95); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 4px); }
}
@keyframes msg-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes tap { 50% { transform: scale(0.96); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes settle { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* Sections */
section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { display: grid; gap: 12px; max-width: 42rem; margin-bottom: 40px; }
.section-head .muted { font-size: 1.1rem; }

.parts { display: grid; gap: 16px; }
.part { padding: 28px; display: grid; gap: 10px; align-content: start; }
@media (min-width: 820px) { .parts { grid-template-columns: repeat(3, 1fr); } }

/* Nixie countdown */
.nixie-section { padding-top: 0; }
.nixie-panel {
  position: relative; overflow: hidden; border-radius: 36px;
  padding: 40px 24px; display: grid; gap: 32px; align-items: center;
  background: radial-gradient(120% 90% at 70% 50%, #1d2620 0%, #0f1411 70%);
  color: #f1f4ef;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nixie-copy { display: grid; gap: 14px; max-width: 28rem; }
.nixie-copy p { color: rgba(241, 244, 239, 0.74); font-size: 1.1rem; }
@media (min-width: 900px) {
  .nixie-panel { grid-template-columns: 0.9fr 1.1fr; padding: 64px 56px; }
}
.nixie { --tw: clamp(36px, 8.4vw, 62px); display: grid; justify-items: center; gap: 18px; }
.nixie-label, .nixie-status { font-size: 0.9rem; color: rgba(241, 244, 239, 0.6); font-weight: 500; }
.nixie-status { min-height: 1.4em; transition: color var(--dur-move) var(--ease-out); }
.nixie.sent .nixie-status { color: #8ff0c0; }
.tubes { position: relative; display: flex; align-items: center; gap: calc(var(--tw) * 0.12); }
.tubes::after {
  content: ""; position: absolute; inset: 20% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(40, 220, 140, 0.18), transparent);
}
.tube {
  position: relative; display: grid; place-items: center;
  width: var(--tw); height: calc(var(--tw) * 1.75); border-radius: calc(var(--tw) * 0.36);
  background: linear-gradient(180deg, #2b3230 0%, #121615 45%, #1a201e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6),
    inset 0 0 22px rgba(40, 220, 140, 0.12),
    0 12px 24px -10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.tube::before {
  content: ""; position: absolute; top: 8%; bottom: 8%; left: 10%; width: 14%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
}
.tube::after {
  content: ""; position: absolute; inset: 16% 14%; border-radius: 6px;
  background: radial-gradient(circle, rgba(120, 255, 190, 0.18) 0.7px, transparent 1.2px) 0 0 / 4px 4px;
}
.tube > span { grid-area: 1 / 1; font-size: calc(var(--tw) * 1.05); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.ghost { color: rgba(120, 255, 190, 0.06); }
.digit {
  color: #d2ffe9;
  text-shadow: 0 0 2px #7dffc0, 0 0 6px #35e89a, 0 0 14px rgba(30, 210, 130, 0.85), 0 0 30px rgba(20, 190, 110, 0.5);
}
.colon { display: grid; gap: calc(var(--tw) * 0.22); }
.colon i { width: 5px; height: 5px; border-radius: 50%; background: #7dffc0; box-shadow: 0 0 6px #35e89a, 0 0 12px rgba(30, 210, 130, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .digit.flick { animation: flick 160ms var(--ease-out); }
  .nixie.sent .tubes { animation: pulse 300ms var(--ease-out); }
  .colon i { animation: blink 2s steps(1) infinite; }
}
@keyframes flick { 0% { opacity: 0.25; filter: blur(1.5px); } 40% { opacity: 0.85; } 100% { opacity: 1; filter: none; } }
@keyframes blink { 50% { opacity: 0.35; } }

/* Bento tiles */
.bento-section { background: linear-gradient(180deg, var(--bg), var(--surface) 30%, var(--surface) 70%, var(--bg)); overflow: hidden; }
.sky-soft span { opacity: 0.7; }
.bento-section .wrap { z-index: 1; }
.bento { display: grid; gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); border-radius: var(--radius-xl); padding: 24px; display: grid; gap: 24px; align-content: space-between; }
.tile-copy { display: grid; gap: 8px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-today { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile-today { grid-column: span 4; grid-row: span 2; grid-template-columns: 0.75fr 1.25fr; align-items: center; align-content: center; gap: 32px; }
  .bento .tile:nth-child(2), .bento .tile:nth-child(3) { grid-column: span 2; }
  .bento .tile:nth-child(4), .bento .tile:nth-child(5) { grid-column: span 3; }
}

/* Mock: Today list */
.today { background: var(--card); border-radius: 18px; padding: 6px 0; box-shadow: var(--shadow-sm); border: 1px solid var(--hairline); font-size: 0.92rem; }
.today-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px 8px; font-weight: 700; font-size: 1.05rem; }
.today-head .muted { font-weight: 500; font-size: 0.85rem; }
.row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hairline); min-height: 60px; }
.time { color: var(--text-muted); font-size: 0.85rem; }
.who { display: grid; line-height: 1.25; }
.who small { color: var(--text-muted); font-size: 0.8rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; justify-self: end; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.arrived { color: var(--ok); background: var(--ok-bg); }
.status.confirmed { color: var(--confirmed); background: var(--confirmed-bg); }
.status.held { color: var(--held); background: var(--held-bg); }
.swap { display: grid; justify-items: end; }
.swap > * { grid-area: 1 / 1; align-self: center; }
.tap {
  display: grid; justify-items: center; line-height: 1.1;
  background: var(--text); color: #fff; border-radius: 12px; padding: 7px 14px;
  font-weight: 600; font-size: 0.85rem; box-shadow: var(--shadow-sm);
}
.tap small { font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
/* without JS: show the end state */
.swap .tap { opacity: 0; }
.js .swap .tap { opacity: 1; }
.js .swap .status { opacity: 0; }
@media (min-width: 1000px) { .today { font-size: 0.98rem; } .row { min-height: 68px; } }

/* Mock: reminder message */
.wa-msg { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--hairline); font-size: 0.9rem; overflow: hidden; }
.wa-msg p { padding: 12px 14px; }
.wa-buttons { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hairline); }
.wa-buttons span { text-align: center; padding: 10px; font-weight: 600; color: var(--confirmed); }
.wa-buttons span + span { border-left: 1px solid var(--hairline); }

/* Mock: after hours */
.night { background: linear-gradient(160deg, #243029, #111612); color: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.night-time { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.night-msg { font-size: 0.88rem; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 8px 12px; justify-self: start; }

/* Mock: deposit flow */
.flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 0.85rem; }
.flow-node { background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow-sm); line-height: 1.3; }
.flow-end { color: var(--ok); font-weight: 600; }
.flow-line { height: 2px; min-width: 24px; position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.flow-line::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .flow-line::after { animation: travel 2.4s var(--ease-in-out) infinite; }
}
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* Mock: report */
.report { display: grid; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars span { flex: 1; height: calc(var(--h) * 100%); background: var(--surface-strong); border-radius: 6px 6px 3px 3px; transform-origin: bottom; }
.bars .now { background: var(--text); }
.report-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; }
.report-label .muted { font-weight: 500; }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { padding: 28px; display: grid; gap: 20px; }
.plan.featured { border: 1.5px solid var(--text); box-shadow: var(--shadow-lg); }
.plan-top { display: grid; gap: 4px; }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.plan .btn { width: 100%; }
.pricing-notes { margin-top: 28px; display: grid; gap: 6px; font-size: 0.95rem; color: var(--text-muted); max-width: 46rem; }
.offer { margin-top: 28px; padding: 24px 28px; display: grid; gap: 6px; }

/* FAQ: one grouped list */
.faq { max-width: 48rem; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq details { padding: 0 24px; transition: background-color var(--dur-pop) var(--ease-out); }
.faq details + details { border-top: 1px solid var(--hairline); }
@media all { .faq details:hover { background: rgba(24, 32, 27, 0.025); } }
.faq summary { cursor: pointer; font-weight: 600; min-height: 64px; display: flex; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateX(-4px) rotate(45deg); transition: transform var(--dur-lift) var(--ease-spring);
  margin-right: 4px;
}
.faq details[open] summary::after { transform: translateX(-4px) translateY(3px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: settle 300ms var(--ease-out); } }

/* Closing */
.closing { padding-top: 24px; }
.closing-panel {
  position: relative; overflow: hidden; border-radius: 36px;
  padding: 48px 24px; display: grid; gap: 16px; justify-items: center; text-align: center;
  background: linear-gradient(180deg, #e3eedf, var(--card));
  border: 1px solid var(--hairline); box-shadow: var(--shadow-md);
}
.closing-panel > :not(.sky) { position: relative; z-index: 1; }
.closing-panel .muted { font-size: 1.1rem; max-width: 30rem; }
.closing-panel .actions { justify-content: center; padding: 8px 0; }
.sky-panel span { width: 50vmax; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-style: normal; font-size: 0.95rem; }
.contact-list a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration-color: transparent; transition: text-decoration-color var(--dur-pop) var(--ease-out); }
.contact-list a:hover { text-decoration-color: currentColor; }
.contact-list span { flex-basis: 100%; }
@media (min-width: 900px) { .closing-panel { padding: 80px 48px; } }

/* Footer */
.site-footer { padding: 40px 0 48px; font-size: 0.9rem; color: var(--text-muted); }
.site-footer .wrap { display: grid; gap: 14px; border-top: 1px solid var(--hairline); padding-top: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }

/* Reveals: the small script adds .js to <html> and .in when a block enters the screen.
   Without JS everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
  .js .reveal.in { animation: rise var(--dur-enter) var(--ease-spring) both; }
  .js .parts .reveal:nth-child(2), .js .plans .reveal:nth-child(2), .js .bento .reveal:nth-child(2) { animation-delay: 90ms; }
  .js .parts .reveal:nth-child(3), .js .plans .reveal:nth-child(3), .js .bento .reveal:nth-child(3) { animation-delay: 180ms; }
  .js .bento .reveal:nth-child(4) { animation-delay: 90ms; }
  .js .bento .reveal:nth-child(5) { animation-delay: 180ms; }

  .js .bars span { transform: scaleY(0.08); }
  .js .tile.in .bars span { animation: grow 800ms var(--ease-spring) both; }
  .js .tile.in .bars span:nth-child(2) { animation-delay: 60ms; }
  .js .tile.in .bars span:nth-child(3) { animation-delay: 120ms; }
  .js .tile.in .bars span:nth-child(4) { animation-delay: 180ms; }
  .js .tile.in .bars span:nth-child(5) { animation-delay: 240ms; }
  .js .tile.in .bars span:nth-child(6) { animation-delay: 300ms; }

  .js .tile.in .swap .tap { animation: tap-out 260ms var(--ease-in) 1500ms both; }
  .js .tile.in .swap .status { animation: tap-in 450ms var(--ease-spring) 1580ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 0; transition: opacity 300ms var(--ease-out); }
  .js .reveal.in { opacity: 1; }
  .js .swap .tap { opacity: 0; }
  .js .swap .status { opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px) scale(0.98); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0.08); } to { transform: none; } }
@keyframes tap-out { 0% { opacity: 1; transform: none; } 40% { transform: scale(0.94); } 100% { opacity: 0; transform: scale(0.9); filter: blur(4px); } }
@keyframes tap-in { 0% { opacity: 0; transform: scale(0.8); filter: blur(4px); } 70% { opacity: 1; filter: none; } 100% { opacity: 1; transform: none; } }

/* Legal pages */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 46rem; display: grid; gap: 16px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 16px; letter-spacing: -0.015em; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
