/* AIPhilox site styles.
   Paper and ink, hairline rules instead of shadows, one colour per product.
   Product colour reaches a block through --accent (set inline on the element). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --paper-2: #F3F5F9;
  --card: #F7F9FC;
  --ink: #0F1B33;
  --ink-2: #3D4A63;
  --ink-3: #5B6680;
  --rule: #DCE1EA;
  --rule-2: #C5CDDA;
  --cp: #00695C;   /* Contract Parity: jade */
  --ar: #8A5D0A;   /* AI Reception: key-tag brass */
  --pg: #2B4ACB;   /* PriceGuard: cobalt */
  --accent: var(--ink);

  /* Product colour as a surface (key tags, product heroes). White text sits on all three. */
  --cp-field: #00695C;
  --pg-field: #2B4ACB;
  --ar-field: #7C540A;
  --on-field: #FFFFFF;
  --on-field-2: rgba(255, 255, 255, 0.88);
  --on-field-3: rgba(255, 255, 255, 0.82);
  --field-rule: rgba(255, 255, 255, 0.3);
  /* Light versions of the product colours, for text on dark surfaces. */
  --cp-on-dark: #4FC9B4;
  --pg-on-dark: #8FA9FF;
  --ar-on-dark: #E5B04F;
  /* One dark band per page, for the section that needs weight. */
  --band: #0F1B33;
  --band-rule: #2A3A5A;
  --on-band: #EEF2F8;
  --on-band-2: #BAC4D6;
  --on-band-3: #8E9AB2;

  --display: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;   /* with FLAR 100 */
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 64px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E1626;
  --paper-2: #142036;
  --card: #15213A;
  --ink: #EEF2F8;
  --ink-2: #BAC4D6;
  --ink-3: #8E9AB2;
  --rule: #22314D;
  --rule-2: #33456A;
  --cp: #4FC9B4;
  --ar: #E5B04F;
  --pg: #8FA9FF;
  --cp-field: #0B5249;
  --pg-field: #233795;
  --ar-field: #6B490C;
  --band: #070E1A;
  --band-rule: #22314D;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 720px) {
  body { font-size: 17px; }
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Commissioner's flair axis (FLAR) gives display type its flared, carved terminals. */
h1, h2, h3, .wordmark, .tag-name, .menu-product-name, .nav-group-title, .nav-link,
.hotel-name, .calc-num, .figures dt, .features dt, .faq summary {
  font-variation-settings: "FLAR" 100;
}

p { margin: 0; text-wrap: pretty; }
.tag-line, .menu-product-line, .hotel-name, .choice-for { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: var(--radius);
}
.skip:focus { left: var(--gutter); }

.swatch {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* A plain underlined link, for "see the product" and in-page jumps. */
.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.wordmark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 959px) {
  .header-actions { gap: 10px; }
}

.lang {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
}
.lang:hover { color: var(--ink); text-decoration: underline; }

.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}
.nav-trigger[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"],
.nav-link:hover { background: var(--paper-2); }

.has-menu { position: relative; }

.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 390px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}
.nav-trigger[aria-expanded="true"] + .nav-menu { display: block; }

/* invisible bridge so the pointer can travel from trigger to menu */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 11px;
}

.nav-group-title,
.nav-mobile-extra { display: none; }

.menu-label {
  font-size: 13px;
  color: var(--ink-3);
  padding: 4px 10px 8px;
}

.menu-product {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 12px;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
}
.menu-product:hover { background: var(--paper-2); }
.menu-product .swatch { grid-row: 1 / span 2; margin-top: 8px; }
.menu-product-name { font-family: var(--display); font-size: 19px; font-weight: 680; line-height: 1.3; }
.menu-product-line { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 9px 14px;
  cursor: pointer;
}

@media (min-width: 960px) {
  .nav { margin-left: 28px; }
}

@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .lang { display: none; }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    overflow-y: auto;
    padding: 8px var(--gutter) 40px;
    background: var(--paper);
  }
  .nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-trigger { display: none; }

  .nav-menu {
    display: block;
    position: static;
    width: auto;
    padding: 0 0 20px;
    border: 0;
  }
  .nav-menu::before { display: none; }

  .nav-group-title {
    display: block;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    padding: 16px 0 4px;
  }
  .menu-label { padding: 0 0 8px; }
  .menu-product { padding: 12px 0; border-top: 1px solid var(--rule); border-radius: 0; }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 620;
    border-top: 1px solid var(--rule);
    border-radius: 0;
  }
  .nav-link:hover { background: none; }

  .nav-mobile-extra {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
  }
  .nav-lang { font-weight: 600; }
}

@media (max-width: 479px) {
  .header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(64px, 9vw, 112px); }

.hero-title {
  font-size: clamp(44px, 7.2vw, 108px);
  font-weight: 760;
  line-height: 0.97;
  letter-spacing: -0.04em;
  max-width: 11.5em;
}
.hero-lead { margin-top: 24px; max-width: 32em; font-size: clamp(19px, 1.8vw, 24px); color: var(--ink-2); }

.doors {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 7vw, 88px);
}

@media (min-width: 900px) {
  /* subgrid keeps label, intro and product list on the same rows in both doors */
  .doors { grid-template-columns: 5fr 7fr; grid-template-rows: auto auto auto; column-gap: 64px; row-gap: 0; }
  .door { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}

.door { padding-top: 0; }
.door-title { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.door-who { margin-top: 8px; color: var(--ink-2); max-width: 32em; }

/* ---------- Audience sections ---------- */
.audience {
  padding-block: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--rule);
}

.audience-head { margin-bottom: clamp(48px, 7vw, 88px); }
.audience-lead { margin-top: 12px; max-width: 36em; font-size: 18px; color: var(--ink-2); }
.audience-title {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

/* ---------- Product blocks ---------- */
.product { display: grid; gap: 40px; }
.product + .product {
  margin-top: clamp(72px, 10vw, 128px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--rule);
}

@media (min-width: 960px) {
  .product { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .product--flip { grid-template-columns: 7fr 5fr; }
  .product--flip .product-text { order: 2; }
}

.product-name {
  display: flex;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.03em;
}

.product-line {
  margin-top: 12px;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--ink-2);
}

.product-body { margin-top: 22px; max-width: 36em; }

.facts { margin-top: 26px; border-top: 1px solid var(--rule); }
.facts li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.facts strong { color: var(--ink); font-weight: 600; }

.product-name .swatch { width: 0.2em; height: 0.2em; }
.proof { margin-top: 22px; font-size: 15.5px; color: var(--ink-2); }
.proof strong { color: var(--ink); font-weight: 600; }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 30px;
}

/* ---------- Product screenshots ----------
   Only real screens of the apps belong here. Until one exists, an empty frame holds its place.
   The one exception is the AI Reception example chat, which the user asked for (see below). */
.specimen { margin: 0; min-width: 0; }

.specimen figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.shot-pending {
  display: grid;
  place-content: center;
  gap: 6px;
  aspect-ratio: 16 / 10;
  padding: 24px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--rule-2);
  border-radius: var(--radius);
}
.shot-pending-title { font-weight: 600; }
.shot-pending-note { font-size: 14px; color: var(--ink-3); }

/* A real screenshot, in the app's light or dark theme to match the site's. */
.shot-frame {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}
.shot-img { display: block; width: 100%; height: auto; }
.shot-dark { display: none; }

:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

/* Wide product: the text sits in two columns, the screenshot runs the full width below. */
@media (min-width: 960px) {
  .product--wide { grid-template-columns: 1fr; gap: 56px; }
  .product--wide .product-text {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 64px;
    align-items: start;
  }
  .product--wide .product-details .facts { margin-top: 4px; }
}

/* ---------- Hotels in use ---------- */
.in-use {
  display: grid;
  gap: 20px;
  margin-top: clamp(80px, 11vw, 136px);
}
/* Same hairline and inset as each hotel, so the title lines up with the names. */
.in-use-head { padding-top: 16px; border-top: 1px solid var(--rule); }
.in-use-title { font-size: 22px; font-weight: 680; line-height: 1.25; }
.in-use-intro { margin-top: 8px; color: var(--ink-2); max-width: 24em; }

@media (min-width: 900px) {
  .in-use { grid-template-columns: 3fr 9fr; }
}

.hotels { display: grid; }
.hotels li { padding: 16px 0; border-top: 1px solid var(--rule); }
.hotels li:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 720px) {
  .hotels { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .hotels li:last-child { border-bottom: 0; }
}

.hotel-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 680;
  line-height: 1.15;
}
.hotel-place { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); }

/* ---------- Company ---------- */
.company {
  padding-block: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--rule);
}
.company-grid { display: block; }

.company-title {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.company-text { margin-top: 22px; max-width: 38em; font-size: 18px; color: var(--ink-2); }

.principles { display: grid; margin-top: 48px; }
.principles li { padding: 16px 0 22px; border-top: 1px solid var(--rule); }
.principles h3 { font-size: 22px; font-weight: 680; line-height: 1.25; }
.principles p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }

@media (min-width: 720px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---------- Demo ---------- */
.demo {
  padding-block: clamp(64px, 10vw, 128px);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.demo-grid { display: grid; gap: 40px; }

@media (min-width: 960px) {
  .demo-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
}

.demo-title {
  margin-top: 12px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.demo-text { margin-top: 20px; max-width: 32em; color: var(--ink-2); }
.demo-alt { margin-top: 14px; color: var(--ink-2); }

.demo-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label,
.field > legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--ink-3); }

.input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--ar); }
textarea.input { min-height: 120px; resize: vertical; }

.choices { display: grid; gap: 10px; }

@media (min-width: 640px) {
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.choice {
  position: relative;
  display: block;
  padding: 12px 34px 12px 42px;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice input {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ink);
}
.choice .swatch { position: absolute; right: 14px; top: 17px; }
.choice-name { display: block; font-size: 15px; font-weight: 600; }
.choice-for { display: block; font-size: 13px; color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 13px; color: var(--ink-3); max-width: 30em; }
.form-status {
  padding: 12px 14px;
  border-left: 2px solid var(--ink);
  background: var(--card);
  font-size: 14px;
}
.form-status[data-state="error"] { border-left-color: var(--ar); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 28px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 32px; }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 6fr 3fr 3fr; }
}

.footer-brand p { margin-top: 8px; color: var(--ink-2); max-width: 24em; }
.footer-title {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer-col .footer-title:first-child { margin-top: 0; }
.site-footer ul { display: grid; gap: 6px; margin-top: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-3);
}
.footer-tools { display: flex; align-items: center; gap: 20px; }
.footer-tools a { color: var(--ink-2); }

/* ---------- Theme switch (header) ----------
   Shows the moon in light mode and the sun in dark mode: the icon names the theme you switch to. */
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.theme-switch:hover { background: var(--paper-2); }
.theme-switch .icon-sun { display: none; }

:root[data-theme="dark"] .theme-switch .icon-sun { display: block; }
:root[data-theme="dark"] .theme-switch .icon-moon { display: none; }

/* ---------- Product pages ----------
   One product per page; the page sets --accent on <body> to the product's colour. */
.menu-product[aria-current="page"] { background: var(--paper-2); }
.site-footer a[aria-current="page"] { text-decoration: underline; }

.p-hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.p-crumb { font-size: 14px; color: var(--ink-3); }
.p-crumb a { color: inherit; text-decoration: none; }
.p-crumb a:hover { color: var(--ink); text-decoration: underline; }
.p-crumb span { margin-inline: 6px; }

.p-title {
  display: flex;
  align-items: center;
  gap: 0.28em;
  margin-top: 18px;
  font-size: clamp(46px, 6.6vw, 96px);
  font-weight: 760;
  line-height: 0.97;
  letter-spacing: -0.04em;
}
.p-title .swatch { width: 0.2em; height: 0.2em; }

.p-line {
  margin-top: 18px;
  max-width: 30ch;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--ink-2);
}
.p-lead { margin-top: 24px; max-width: 40em; font-size: 18px; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.p-section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.p-grid { display: block; }
.p-head { margin-bottom: clamp(36px, 5vw, 56px); }

.p-h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; max-width: 24ch; }
.p-prose { display: grid; gap: 14px; margin-top: 20px; max-width: 40em; }
.p-shot { margin-top: clamp(40px, 6vw, 64px); }

/* A worked example of a break: plain arithmetic, set like a ledger. */
.calc { margin: 32px 0 0; max-width: 40em; }
.calc-steps { border-top: 2px solid var(--ink); }
.calc-steps li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.calc-label { color: var(--ink-2); }
.calc-label small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.calc-num {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-result .calc-label { color: var(--ink); font-weight: 600; }
.calc-result .calc-num { color: var(--accent); font-weight: 600; }
.calc-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}
.calc figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.steps { display: grid; }
.steps li { padding: 18px 0 26px; border-top: 1px solid var(--rule); }
/* Step numbers: the steps really are a sequence, so they are numbered. */
.step-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.steps h3 { margin-top: 10px; font-size: 22px; font-weight: 680; line-height: 1.25; }
.steps li > p:last-child { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
}

.features { display: grid; margin: 0; }
.features div { padding: 16px 0 20px; border-top: 1px solid var(--rule); }
.features dt { font-family: var(--display); font-size: 20px; font-weight: 680; }
.features dd { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); }

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 28px 0 0; }
.figures div { padding: 14px 0 18px; border-top: 1px solid var(--rule); }
.figures dt {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 720;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.figures dd { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }

@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.figures-note { max-width: 44em; margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }

.setup-list { max-width: 44em; margin-top: 24px; border-top: 1px solid var(--rule); }
.setup-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.setup-list strong { color: var(--ink); font-weight: 600; }

.faq { max-width: 52em; margin-top: 24px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 620;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.1;
  color: var(--accent);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 44em; padding: 0 0 20px; color: var(--ink-2); }

/* Small print on product pages, e.g. the PriceGuard non-affiliation note. */
.p-note { max-width: 44em; margin-top: 28px; font-size: 13px; color: var(--ink-3); }

/* The named hotels, on the hotel product pages. */
.p-section .hotels { margin-top: 28px; }

/* Link to the other product for the same audience (hotels only). */
.p-related { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }

/* An empty full-width frame stays low until the real screen arrives. No aspect-ratio here:
   with a min-height it would force the width up (3 x 220px) and overflow on phones. */
.p-shot .shot-pending { aspect-ratio: auto; min-height: clamp(220px, 28vw, 380px); }

/* ---------- Colour surfaces ----------
   The product colours used as surfaces: key tags (homepage doors, related product), the product
   page hero, and one dark band per page. Inside a surface the ink tokens are redefined, so the
   components inside keep working with light text. */

/* Key tag: a solid tag in the product's colour, with a punched hole like a hotel key tag. */
.tags { display: grid; gap: 12px; margin-top: 24px; }
.tag {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 128px;
  padding: 26px 28px 26px 68px;
  border-radius: 6px;
  background: var(--field);
  color: var(--on-field);
  text-decoration: none;
  transition: background-color 0.15s;
}
.tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 26px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);   /* the edge of a punched hole */
}
.tag:hover { background: color-mix(in srgb, var(--field) 86%, #000); }
.tag:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tag-name {
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.tag-line { max-width: 30em; color: var(--on-field-2); }
@media (min-width: 900px) {
  .door .tags { grid-auto-rows: 1fr; }   /* the single travel tag stands as tall as the two hotel tags */
}
.p-related .tags { max-width: 640px; margin-top: 16px; }

/* Product page hero on the product's colour. The swatch becomes the punched hole. */
.p-hero--field {
  --ink: var(--on-field);
  --ink-2: var(--on-field-2);
  --ink-3: var(--on-field-3);
  --rule: var(--field-rule);
  background: var(--field);
  color: var(--ink);
}
/* A long name ("Contract Parity") may wrap beside the card; the hole stays on the first line. */
.p-hero--field .p-title { align-items: flex-start; }
.p-hero--field .p-title .swatch { margin-top: 0.4em; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.p-hero--field .btn-ink { color: var(--field); }
@media (min-width: 900px) {
  .p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; }
}

/* A real card from the app, with notes on what it shows. On wide screens each note sits beside
   the card with a line to the spot it describes; on phones the notes are a list under the card. */
.anno { margin: 48px 0 0; }
.anno-media { position: relative; max-width: 360px; }
.anno-notes { display: grid; gap: 8px; margin-top: 20px; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.anno-notes li { display: flex; align-items: baseline; gap: 10px; }
.anno-notes li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-2px);
}
.anno figcaption { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) {
  .anno { width: 580px; margin: 0; }
  .anno-media { max-width: none; margin-right: 220px; }
  .anno-notes { margin: 0; }
  .anno-notes li {
    position: absolute;
    top: calc(var(--y) * 100%);
    left: calc(var(--x) * 100%);
    right: -220px;
    align-items: center;
    gap: 0;
    transform: translateY(-50%);
  }
  .anno-notes li::before { order: 0; width: 10px; height: 10px; background: var(--ink); box-shadow: 0 0 0 3px var(--field); transform: none; }
  .anno-notes li::after { content: ""; order: 1; flex: 1 1 auto; min-width: 12px; margin-right: 12px; border-top: 1px solid var(--ink-3); }
  .anno-notes li span { order: 2; flex: none; width: 188px; color: var(--ink); }
}

/* ---------- AI Reception: the example chat ----------
   The user asked for an example conversation in place of the empty frame (2026-11-17): on the
   homepage and in the AI Reception hero. It follows
   the guest screen of the app step by step, as the app's code does it: the hotel's English welcome,
   the guest's own language, the reply in that language, a confirmation card with the room locked
   from the QR link, the guest's "send", then the "sent" card. Department and request stay in
   English, as the app keeps them for staff. The caption says the hotel and the messages are an
   example. The chat keeps its own colours (--c-*), so it reads the same on paper, on the hero's
   colour and in the dark theme. Greek notes explain each step: beside the chat when the figure is
   580px or wider, as a list under it otherwise (a container query: the homepage column and the
   hero have different widths at the same viewport). */
.chat-demo { --ring: var(--paper); container: chat-demo / inline-size; margin: 0; min-width: 0; }
.p-hero--field .chat-demo { --ring: var(--field); }
.band .chat-demo { --ring: var(--band); }
/* Under the AI Reception steps, the staff card (below) uses the same frame. With the steps in
   three columns it stands in the middle of the band, under step 2, with its notes to the right.
   .chat-demo's margin: 0 comes later than .p-shot's, so the spacing is restated here. */
.p-shot.chat-demo { max-width: 580px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) {
  .p-shot.chat-demo { margin-left: calc(50% - 180px); }
}
.chat-demo-media { position: relative; max-width: 360px; }

.chat,
.staff {
  --c-bg: #FFFFFF;
  --c-bg-2: #F3F5F9;
  --c-ink: #0F1B33;
  --c-ink-2: #3D4A63;
  --c-ink-3: #5B6680;
  --c-rule: #DCE1EA;
  --c-accent: #8A5D0A;
  --c-on-accent: #FFFFFF;
  --c-ok: #15803D;
  --c-undo: #B42318;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-rule);
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
}
:root[data-theme="dark"] .chat,
:root[data-theme="dark"] .staff {
  --c-bg: #0E1626;
  --c-bg-2: #15213A;
  --c-ink: #EEF2F8;
  --c-ink-2: #BAC4D6;
  --c-ink-3: #8E9AB2;
  --c-rule: #2A3A5A;
  --c-accent: #E5B04F;
  --c-on-accent: #1B1405;
  --c-ok: #5BD08A;
  --c-undo: #F59088;
}
.chat svg,
.staff svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--c-rule); }
.chat-hotel { font-size: 15px; font-weight: 650; line-height: 1.3; }
.chat-role { font-size: 12px; color: var(--c-ink-3); }

.chat-log { display: grid; gap: 10px; padding: 14px 12px; }
.msg { position: relative; display: flex; align-items: flex-start; gap: 8px; }
.msg-guest { justify-content: flex-end; }
.msg-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.msg-guest .msg-avatar { background: var(--c-bg-2); color: var(--c-ink-2); border: 1px solid var(--c-rule); }
.msg-bubble { max-width: 85%; padding: 7px 11px; border-radius: 14px; }
.msg-bot .msg-bubble { background: var(--c-bg-2); border: 1px solid var(--c-rule); border-bottom-left-radius: 4px; }
.msg-guest .msg-bubble { background: var(--c-accent); color: var(--c-on-accent); border-bottom-right-radius: 4px; }
.msg-dots { display: none; }

/* The request card and the "sent" card take turns in one place, so nothing else moves. */
.chat-cell { display: grid; }
.chat-cell > * { grid-area: 1 / 1; min-width: 0; }
.chat-card { padding: 10px 12px; border: 1px solid; border-radius: 10px; color: var(--c-ink-2); }
.chat-card b { color: var(--c-ink); font-weight: 600; }
.chat-card-title { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--c-ink); font-weight: 600; }
.chat-confirm {
  visibility: hidden;   /* it shows only while the example plays (site.js) */
  align-self: start;
  border-color: color-mix(in srgb, var(--c-accent) 50%, transparent);
  background: color-mix(in srgb, var(--c-accent) 6%, var(--c-bg));
}
.chat-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 140px;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  background: var(--c-bg-2);
  color: var(--c-ink);
}
.chat-room svg { color: var(--c-ink-3); }
.chat-ok { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--c-ok); }
.chat-ok svg { width: 12px; height: 12px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-btn,
.staff-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.chat-btn-main { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.chat-sent { display: grid; gap: 10px; align-content: start; }
.chat-done {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-color: color-mix(in srgb, var(--c-ok) 45%, transparent);
  background: color-mix(in srgb, var(--c-ok) 8%, var(--c-bg));
}
.chat-done .chat-card-title { color: var(--c-ok); }
.chat-time { font-size: 12px; color: var(--c-ink-3); }
.chat-btn-undo { color: var(--c-undo); border-color: color-mix(in srgb, var(--c-undo) 45%, transparent); }

.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-rule); }
.chat-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--c-rule);
  border-radius: 8px;
  white-space: nowrap;
}
.chat-field:empty::before { content: attr(data-placeholder); color: var(--c-ink-3); }
.chat-field.is-long { justify-content: flex-end; }   /* a long line shows its end, as an input does */
.chat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.chat-field:empty + .chat-send { opacity: 0.5; }   /* as in the app: nothing to send yet */

.chat-notes { display: grid; gap: 8px; margin-top: 20px; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.chat-notes li { display: flex; align-items: baseline; gap: 10px; }
.chat-notes li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-2px);
}
.chat-demo figcaption { max-width: 36em; }
@container chat-demo (min-width: 580px) {
  .chat-demo-media { width: 360px; max-width: none; }
  .chat-notes { margin: 0; }
  /* Each note sits beside the chat; site.js sets --y to the middle of the part it describes. */
  .chat-notes li {
    position: absolute;
    top: calc(var(--y) * 100%);
    left: calc(100% - 5px);
    width: 225px;
    align-items: center;
    gap: 0;
    transform: translateY(-50%);
  }
  .chat-notes li::before { order: 0; width: 10px; height: 10px; background: var(--ink); box-shadow: 0 0 0 3px var(--ring); transform: none; }
  .chat-notes li::after { content: ""; order: 1; flex: 1 1 auto; min-width: 12px; margin-right: 12px; border-top: 1px solid var(--ink-3); }
  .chat-notes li span { order: 2; flex: none; width: 188px; color: var(--ink); }
}

/* AI Reception: the staff side, under the steps (step 3). The user wanted something other than
   the hero's chat there (2026-11-17), so this is the same request as the spa sees it, drawn as the
   app's staff screen draws it: the page title, the
   department tabs (a tab shows its count only when it has requests; the selected one is filled),
   then the card. It shares the chat's frame, notes and colours. */
.staff { display: grid; gap: 12px; padding: 16px 14px; border-radius: 12px; }
.staff {
  --c-new-bg: #EAF1FE;
  --c-new-ink: #1D4ED8;
  --c-dot: #EC4899;   /* the app colours each department by a hash of its name: "Spa" is pink-500 */
}
:root[data-theme="dark"] .staff {
  --c-new-bg: #172A4D;
  --c-new-ink: #8CB4FF;
}
.staff-title { font-size: 17px; font-weight: 650; line-height: 1.25; }
.staff-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.staff-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--c-ink-3);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.staff-tab.is-current { background: var(--c-accent); color: var(--c-on-accent); }
.staff-count { padding: 0 6px; border-radius: 999px; font-size: 11px; }
.staff-tab.is-current .staff-count { background: color-mix(in srgb, var(--c-on-accent) 20%, transparent); }
.staff-card { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--c-rule); border-radius: 10px; }
.staff-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.staff-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-badge {
  padding: 1px 8px;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  color: var(--c-ink);
  font-size: 11px;
  font-weight: 600;
}
.staff-badge-new { border-color: transparent; background: var(--c-new-bg); color: var(--c-new-ink); }
.staff-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.staff-card-details { margin-top: 2px; overflow: hidden; color: var(--c-ink-3); white-space: nowrap; text-overflow: ellipsis; }   /* one line, as in the app */
.staff-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--c-ink-3); font-size: 12.5px; }
.staff-meta span { display: inline-flex; align-items: center; gap: 4px; }
.staff-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.staff-dept { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.staff-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-dot); }
.staff-btn-done { color: var(--c-ok); border-color: var(--c-ok); }

/* ---------- Legal pages (the privacy policy) ----------
   Plain text set for reading. Each section starts on a hairline; on wide screens its heading
   sits in a narrow column and the text beside it, at most 40em wide. */
.legal { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.legal .p-title.legal-title { font-size: clamp(40px, 5.4vw, 72px); }
.legal-date { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.legal-scope { margin-top: 14px; max-width: 40em; color: var(--ink-2); }
.legal-section {
  display: grid;
  gap: 12px 40px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.legal-head + .legal-section { margin-top: clamp(48px, 6vw, 72px); }
.legal-section h2 { font-size: 22px; font-weight: 680; line-height: 1.25; }
.legal-text { display: grid; gap: 14px; max-width: 40em; color: var(--ink-2); }
.legal-text a { color: var(--ink); }
.legal-text ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.legal-text b { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .legal-section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* The dark band. */
.band {
  --ink: var(--on-band);
  --ink-2: var(--on-band-2);
  --ink-3: var(--on-band-3);
  --rule: var(--band-rule);
  --accent: var(--accent-on-dark, var(--on-band));
  background: var(--band);
  color: var(--ink);
  border-top: 0;
}
.band + section { border-top: 0; }
.band .shot-pending { background: transparent; border-color: var(--band-rule); }

/* ---------- Motion ----------
   A few moments, each tied to what the page shows:
   - homepage: the key tags are hung one by one on load, and swing a little on hover;
   - product heroes: the notes are drawn onto the real card, top to bottom;
   - worked examples (.calc): the sum plays one line at a time when it is reached;
   - AI Reception: the request's path lights up step by step, and the example chat plays once
     when it comes into view (on the homepage too);
   - FAQ answers open smoothly; a product picked with "Ζητήστε demo" flashes in the form.
   At most one load moment and one scroll moment per page.
   .motion is set in <head> only when the visitor allows motion. States hidden until
   revealed also need .io, which site.js adds once its observer exists. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Key tags hang from the punched hole (left 26px + 8px radius). */
  .motion .tag { transform-origin: 34px 50%; }
  .motion .door .tag {
    --hang: tag-hang 0.9s cubic-bezier(0.25, 0.8, 0.3, 1) calc(0.15s + var(--i, 0) * 0.12s) both;
    animation: var(--hang);
  }
  .motion .door:nth-child(2) .tag { --i: 1; }
  .motion .door:nth-child(2) .tag + .tag { --i: 2; }
  .motion .tag:hover { animation: tag-swing 0.9s ease-in-out; }
  /* Keep the hang animation first in the list, so leaving the tag doesn't replay it. */
  .motion .door .tag:hover { animation: var(--hang), tag-swing 0.9s ease-in-out; }

  /* Product hero notes: dot, then line, then label. */
  @media (min-width: 900px) {
    .motion .anno-notes li { --d: calc(0.4s + var(--n, 0) * 0.16s); }
    .motion .anno-notes li:nth-child(2) { --n: 1; }
    .motion .anno-notes li:nth-child(3) { --n: 2; }
    .motion .anno-notes li:nth-child(4) { --n: 3; }
    .motion .anno-notes li:nth-child(5) { --n: 4; }
    .motion .anno-notes li::before { animation: note-dot 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d) both; }
    .motion .anno-notes li::after { transform-origin: left center; animation: line-draw 0.4s ease-out calc(var(--d) + 0.1s) both; }
    .motion .anno-notes li span { animation: note-label 0.4s ease-out calc(var(--d) + 0.3s) both; }
  }

  /* Worked example: one line at a time, then the result lands. */
  .motion.io .calc[data-reveal]:not(.is-in) .calc-steps li { opacity: 0; }
  .motion.io .calc[data-reveal].is-in .calc-steps li { animation: calc-row 0.45s ease-out both; }
  .motion.io .calc[data-reveal].is-in .calc-steps li:nth-child(2) { animation-delay: 0.35s; }
  .motion.io .calc[data-reveal].is-in .calc-steps li:nth-child(3) { animation-delay: 0.7s; }
  .motion.io .calc[data-reveal].is-in .calc-steps li:nth-child(4) { animation-delay: 1.1s; }
  .motion.io .calc[data-reveal].is-in .calc-result .calc-num { animation: calc-hit 0.5s ease-out 1.45s both; }

  /* AI Reception: the request travels from the guest to the spa. */
  .motion.io .steps[data-reveal] li { position: relative; }
  .motion.io .steps[data-reveal] li:nth-child(2) { --n: 1; }
  .motion.io .steps[data-reveal] li:nth-child(3) { --n: 2; }
  .motion.io .steps[data-reveal] li::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
  }
  .motion.io .steps[data-reveal]:not(.is-in) li > * { opacity: 0; }
  .motion.io .steps[data-reveal].is-in li::before { animation: line-draw 0.55s ease-in-out calc(var(--n, 0) * 0.55s) both; }
  .motion.io .steps[data-reveal].is-in li > * { animation: fade-in 0.4s ease-out calc(var(--n, 0) * 0.55s + 0.3s) both; }
  /* The path above takes about 1.8 s; the example chat under the steps waits that long (site.js, PATH_MS). */

  /* FAQ: the answer opens instead of jumping (where the browser supports it). */
  .motion { interpolate-size: allow-keywords; }
  .motion .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete;
  }
  .motion .faq details[open]::details-content { block-size: auto; }

  /* Demo form: a product picked from a "Ζητήστε demo" button flashes once, after the scroll. */
  .motion .choice.just-picked { animation: picked 1.2s ease-out 0.7s backwards; }

  /* AI Reception example chat (site.js). .is-armed comes only from the script, when it is about
     to play the conversation; without it the finished conversation shows. Hidden steps use
     opacity only, so the notes can be measured in place. */
  .chat-demo.is-armed [data-step]:not(.is-on):not(.is-typing) { opacity: 0; }
  .chat-demo.is-armed .msg.is-on .msg-bubble,
  .chat-demo.is-armed .msg-guest.is-on .msg-avatar,
  .chat-demo.is-armed .chat-confirm.is-on,
  .chat-demo.is-armed .chat-sent.is-on { animation: chat-in 0.32s ease-out both; }
  .chat-demo.is-armed .msg.is-typing .msg-bubble { opacity: 0; }
  .chat-demo.is-armed .msg.is-typing .msg-dots {
    position: absolute;
    top: 0;
    left: 34px;
    display: flex;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid var(--c-rule);
    border-radius: 14px 14px 14px 4px;
    background: var(--c-bg-2);
  }
  .chat-demo.is-armed .msg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink-3); animation: chat-dot 0.9s ease-in-out infinite; }
  .chat-demo.is-armed .msg-dots i:nth-child(2) { animation-delay: 0.15s; }
  .chat-demo.is-armed .msg-dots i:nth-child(3) { animation-delay: 0.3s; }
  .chat-demo.is-armed .chat-confirm.is-on { visibility: visible; }
  .chat-demo.is-armed .chat-confirm.is-gone { visibility: hidden; }
  .chat-demo.is-armed .chat-btn { transition: transform 0.12s ease-out, filter 0.12s ease-out; }
  .chat-demo.is-armed .chat-btn.is-pressed { transform: scale(0.94); filter: brightness(0.85); }
  .chat-demo.is-armed .chat-field.is-typing::after {
    content: "";
    flex: none;
    width: 1px;
    height: 1.2em;
    margin-left: 1px;
    background: currentColor;
    animation: chat-caret 1s steps(1) infinite;
  }
  .chat-demo.is-armed .chat-notes li { transition: opacity 0.3s ease-out; }
  .chat-demo.is-armed .chat-notes li:not(.is-on) { opacity: 0; }
  @container chat-demo (min-width: 580px) {
    .chat-demo.is-armed .chat-notes li.is-on::before { animation: note-dot 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
    .chat-demo.is-armed .chat-notes li.is-on::after { transform-origin: left center; animation: line-draw 0.4s ease-out 0.1s both; }
    .chat-demo.is-armed .chat-notes li.is-on span { animation: note-label 0.4s ease-out 0.3s both; }
  }

  /* The staff card under the AI Reception steps: the counts appear and the request arrives in
     the spa's list (the same .is-armed rule above hides them until then). */
  .staff-demo.is-armed .staff-count.is-on { animation: chat-in 0.3s ease-out both; }
  .staff-demo.is-armed .staff-card.is-on { animation: staff-in 0.45s ease-out both; }

  /* Product intro (see site.js): the hero waits hidden while the name lands. */
  .intro .p-hero .p-title,
  .intro .p-hero .p-hero-text > :not(.p-title),
  .intro .p-hero .anno { opacity: 0; }
  .intro .p-hero .p-title { position: relative; z-index: 2; }
  /* The enlarged h1 box is wider than its words; clip it so the page never scrolls sideways. */
  .intro .p-hero { overflow-x: clip; }
}

@keyframes tag-hang {
  from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); }
  55% { opacity: 1; transform: translateY(0) rotate(0.6deg); }
  80% { transform: rotate(-0.2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes tag-swing {
  0%, 100% { transform: none; }
  30% { transform: rotate(0.9deg); }
  60% { transform: rotate(-0.5deg); }
  85% { transform: rotate(0.2deg); }
}
@keyframes note-dot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes note-label { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes calc-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes calc-hit { 0% { transform: scale(0.92); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes picked {
  0% { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  35% { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); }
  100% { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 12px transparent; }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes staff-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.45; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes chat-caret { 50% { opacity: 0; } }
