/* Roomy — design tokens & global styles.
   Source of truth for colours/radii/shadows is the brief (WEBSITE-BRIEF.md §3). */
:root {
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --surface-2: #EDF0F4;
  --surface-3: #E5E9EF;

  --ink: #16181D;
  --ink-2: #4F5765;
  --ink-3: #646D7C;

  --line: #CDD4DD;
  --line-strong: #B6BFCB;

  --accent: #0C5A4E;
  --accent-700: #084A40;
  --accent-600: #0A5347;
  --accent-tint: #E2EDEA;
  --accent-ink: #0A4439;

  --amber: #9C5600;  --amber-tint: #F6E7CE;
  --green: #1C7A45;  --green-tint: #D9EEE0;
  --danger: #B23A35; --danger-tint: #FBEAE9;

  --shadow-sm: 0 1px 2px rgba(20,24,33,.12);
  --shadow: 0 6px 18px rgba(20,24,33,.08), 0 1px 3px rgba(20,24,33,.12);
  --shadow-lg: 0 16px 40px rgba(20,24,33,.16), 0 3px 8px rgba(20,24,33,.10);

  --r-card: 18px;
  --r-btn: 13px;
  --r-pill: 999px;

  --font: 'IBM Plex Sans', 'Noto Sans Devanagari', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Header — frosted "glass edge" instead of a hard border line */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .25s ease;
}
.site-header .rmy-bar a,
.site-header .nav-link,
.site-header select[data-lang-select] { transition: color .25s ease; }

/* Whiten header text ONLY over the dark area actually behind it, per zone —
   brand (left) and nav (right) are detected independently in base.html. The
   header is never tinted dark; over dark content its background goes transparent
   so the dark content itself provides contrast for the white text. */
.site-header.on-dark-brand,
.site-header.on-dark-nav { background: transparent !important; }
/* brand zone: the logo link only (direct child of .rmy-bar) */
.site-header.on-dark-brand .rmy-bar > a { color: #fff !important; }
/* nav zone: links, language select and the mobile burger */
.site-header.on-dark-nav .nav-link,
.site-header.on-dark-nav select[data-lang-select] { color: #fff !important; }
.site-header.on-dark-nav .nav-link:hover { color: #CFE3DD !important; }
.site-header.on-dark-nav .rmy-burger-line,
.site-header.on-dark-nav .rmy-burger-line::before,
.site-header.on-dark-nav .rmy-burger-line::after { background: #fff !important; }

/* Burger (mobile only) */
.rmy-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink);
}
.rmy-burger-box { position: relative; width: 22px; height: 16px; display: block; }
.rmy-burger-line, .rmy-burger-line::before, .rmy-burger-line::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s ease, top .25s ease;
}
.rmy-burger-line { top: 7px; }
.rmy-burger-line::before { top: -7px; }
.rmy-burger-line::after { top: 7px; }
.rmy-burger.open .rmy-burger-line { background: transparent; }
.rmy-burger.open .rmy-burger-line::before { top: 0; transform: rotate(45deg); }
.rmy-burger.open .rmy-burger-line::after { top: 0; transform: rotate(-45deg); }

/* Mobile dropdown menu — overlays content instead of pushing it */
.rmy-mobile-menu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  overflow: hidden;
  max-height: 0;
  background: var(--bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 18px 30px -20px rgba(20, 24, 33, .45);
  transition: max-height .3s cubic-bezier(.2,.8,.2,1);
}
.rmy-mobile-menu.open { max-height: 440px; }
.rmy-mobile-inner {
  display: flex; flex-direction: column;
  padding: 8px 18px 22px;
  gap: 2px;
}
.rmy-mlink {
  font-size: 16px; font-weight: 500; color: var(--ink-2);
  padding: 14px 6px; border-bottom: 1px solid rgba(205,212,221,.45);
}
.rmy-mlink:active { color: var(--ink); }
.rmy-mlang {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6px; color: var(--ink-2);
  border-bottom: 1px solid rgba(205,212,221,.45);
}
.rmy-mlang select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 9px 32px 9px 14px; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F5765' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.rmy-mcta { margin-top: 16px; display: block; }

.eyebrow {
  display: flex;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-size: 13px;
}

@keyframes rmyPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Hover states (ported from the design's style-hover attributes) */
.nav-link { transition: color .15s ease; }
.nav-link:hover { color: var(--ink); }
.footer-link { transition: color .15s ease; }
.footer-link:hover { color: var(--ink); }
.btn-accent { transition: background .15s ease; }
.btn-accent:hover { background: var(--accent-700); }
.btn-white { transition: background .15s ease; }
.btn-white:hover { background: var(--surface-2); }
.btn-ghost { transition: border-color .15s ease; }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dark { transition: border-color .15s ease, color .15s ease; }
.btn-ghost-dark:hover { border-color: var(--line-strong); }

/* Embedded real-product UIs (tablet / reception) */
.embed-fit { position: relative; width: 100%; overflow: hidden; }
.embed-fit iframe { display: block; border: 0; background: #fff; }
.embed-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid var(--surface-3);
}

/* Mobile "pan" mode — wide desktop dashboards (reception / provider / admin)
   would be illegible squished to phone width, so on small screens we render
   them at a legible scale inside a horizontally-swipeable window. The window
   chrome (.win-bar) stays put; only the screen below it pans. embeds.js wraps
   the iframe in an .embed-sizer sized to the scaled pixels so the scroll width
   is correct (CSS transforms don't change layout box size on their own). */
.embed-fit.embed-pan {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.embed-fit.embed-pan::-webkit-scrollbar { display: none; }
.embed-sizer { position: relative; flex: none; }
.embed-panwrap { position: relative; }
/* swipe hint chip — sits over the window, fades after the first swipe */
.embed-swipe-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 7; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  background: rgba(22, 24, 29, .82); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 24, 33, .28);
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
}
.embed-swipe-hint.show { opacity: 1; }
.embed-swipe-hint svg { animation: rmySwipe 1.5s ease-in-out infinite; }
@keyframes rmySwipe {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
}
.win-bar {
  height: 42px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--surface-3);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.win-dot { width: 11px; height: 11px; border-radius: 999px; flex: none; }
/* --- presentation overlays (rendered by embeds.js) --- */
/* Simulated touch cursor — a light-grey disc that glides to each control and
   "taps" it, so the walkthrough reads like a screen recording. */
.embed-cursor {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(70, 80, 92, .42);
  box-shadow: 0 2px 10px rgba(20, 24, 33, .3);
  transform: translate(-50%, -50%);
  opacity: 0; pointer-events: none;
  transition: left .48s cubic-bezier(.45,.05,.2,1), top .48s cubic-bezier(.45,.05,.2,1), opacity .25s ease;
}
.embed-cursor.on { opacity: 1; }
.embed-cursor.tap { animation: rmyCursorPress .36s ease; }
@keyframes rmyCursorPress {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(.6); background: rgba(70, 80, 92, .58); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.embed-ctrl {
  position: absolute; right: 16px; bottom: 16px; z-index: 7;
  width: 44px; height: 44px; border-radius: 999px;
  border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background .15s ease, transform .15s ease;
}
.embed-ctrl:hover { background: var(--accent-700); transform: translateY(-1px); }
.embed-invite {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(12,28,24,.46);
  backdrop-filter: blur(1.5px);
  opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity .3s ease;
}
.embed-invite.show { opacity: 1; pointer-events: auto; }
/* a light-grey finger (hand below) pressing UP into the grey circle above it —
   the small circle sits concentric inside the big one, same look as the cursor */
.embed-tap-demo { position: relative; width: 84px; height: 104px; margin: 0 auto; }
.embed-tap-dot {
  position: absolute; left: 50%; top: 24px; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(70,80,92,.16); border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 2px 8px rgba(20,24,33,.3);
}
.embed-tap-dot::before { /* small concentric circle */
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(70,80,92,.72);
}
.embed-tap-dot::after { /* ripple ring, concentric with the dot */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.78); opacity: 0;
  animation: rmyTapRing2 1.6s ease-out infinite;
}
.embed-tap-hand {
  position: absolute; left: 50%; top: 22px; margin-left: -32px;
  width: 64px; height: 64px; color: #D9DEE4;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.4));
  animation: rmyHandPress 1.6s ease-in-out infinite;
}
.embed-invite-text {
  font-weight: 600; font-size: 17px; color: #fff;
  background: rgba(12,28,24,.55); padding: 9px 18px; border-radius: 999px;
}
@keyframes rmyHandPress { /* press UP into the circle */
  0%, 100% { transform: translateY(0); }
  42%, 58% { transform: translateY(-8px); }
}
@keyframes rmyTapRing2 {
  0%, 30% { opacity: 0; transform: scale(.5); }
  46% { opacity: .7; transform: scale(.9); }
  100% { opacity: 0; transform: scale(2); }
}
/* mock AI-concierge chat panel (over the tablet) */
.embed-chat {
  position: absolute; inset: 0; z-index: 8;
  display: none; align-items: center; justify-content: center;
  background: rgba(12, 28, 24, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.embed-chat.open { display: flex; }
.embed-chat-panel {
  width: 92%; max-width: 430px; height: 88%; max-height: 540px;
  background: var(--surface); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: rmyChatIn .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes rmyChatIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.embed-chat-head {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 13px 15px; font-weight: 600; font-size: 15px;
}
.embed-chat-close {
  margin-left: auto; background: transparent; border: none; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .85;
}
.embed-chat-close:hover { opacity: 1; }
.embed-chat-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 9px; background: var(--bg);
}
.embed-chat-msg {
  max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  animation: rmyMsgIn .26s ease;
}
@keyframes rmyMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.embed-chat-msg.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.embed-chat-msg.guest { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.embed-chat-msg.typing { display: flex; gap: 4px; align-items: center; }
.embed-chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: rmyDot 1s infinite ease-in-out; }
.embed-chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.embed-chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rmyDot { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.embed-chat-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; background: var(--surface); }
.embed-chat-input { display: flex; gap: 8px; }
.embed-chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font: inherit; font-size: 13.5px; outline: none; color: var(--ink); background: var(--surface); cursor: pointer;
}
.embed-chat-send { background: var(--accent); color: #fff; border: none; border-radius: 10px; width: 42px; cursor: pointer; font-size: 16px; }
.embed-chat-send:hover { background: var(--accent-700); }
.embed-chat-hint {
  display: none; margin-bottom: 9px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
  background: var(--accent-tint); border-radius: 10px; padding: 9px 12px;
}
.embed-chat-hint.show { display: block; }
.embed-chat-hint a { color: var(--accent); font-weight: 600; }

.embed-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(8px);
  z-index: 8; max-width: 84%;
  background: #16181D; color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}
.embed-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Hero lede: one short paragraph under the H1 — the key positioning line,
   kept visually quiet so the hero stays airy. */
.hero-lede {
  font-size: 18px; line-height: 1.55; color: #4F5765;
  margin: 18px 0 0; max-width: 44em; text-wrap: pretty;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .recep-intro { grid-template-columns: 1fr !important; gap: 18px !important; align-items: start !important; }
  .benefits-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-h1 { font-size: 38px !important; }
  .cta-body { padding: 48px 32px !important; }
}

@media (max-width: 620px) {
  .rmy-bar { padding: 13px 18px !important; gap: 14px !important; }
  .rmy-nav { gap: 16px !important; font-size: 14px !important; }
  .rmy-section { padding-left: 18px !important; padding-right: 18px !important; }
  .benefits-grid { grid-template-columns: 1fr !important; }
  .hero-h1 { font-size: 32px !important; }
  .hero-lede { font-size: 15.5px; margin-top: 14px; }
  .cta-body { padding: 40px 24px !important; }
  .tablet-wrap { padding: 18px 14px 22px !important; border-radius: 20px !important; }
}

/* Phones: replace the inline nav with a burger dropdown. */
@media (max-width: 760px) {
  .rmy-nav { display: none !important; }
  .rmy-burger { display: flex; }
}

/* ============================================================
   Product page — system schema + alternating element sections
   ============================================================ */
.prod-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 56px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--surface-3);
}
.prod-row:first-of-type { border-top: none; }
.prod-row.rev .prod-media { order: 2; }       /* image on the right */
.prod-media { min-width: 0; }
.prod-copy .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-tint); color: var(--accent);
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.prod-copy h2 {
  font-family: var(--serif); font-weight: 700; font-size: 33px;
  line-height: 1.12; margin: 0 0 14px; color: var(--ink);
}
.prod-copy p { font-size: 16.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 18px; }
.prod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prod-list li { display: flex; gap: 11px; font-size: 15px; color: var(--ink); }
.prod-list li span { color: var(--accent); flex: none; font-weight: 700; }
.prod-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-tint); border-radius: 999px; padding: 5px 13px; margin-bottom: 14px;
}
.prod-tag.soon { color: var(--amber); background: var(--amber-tint); }

/* Concept tiles (services, AI, server, external) drawn as illustrations */
.concept {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--surface-3); background: var(--surface);
}
.concept-canvas { aspect-ratio: 16 / 10; width: 100%; display: block; }

/* present-mode showcase embeds reuse .embed-frame; lock pointer for the static ones */
.prod-static iframe { pointer-events: none; }

@media (max-width: 880px) {
  .prod-row { grid-template-columns: 1fr !important; gap: 22px !important; padding: 40px 0 !important; }
  .prod-row.rev .prod-media { order: 0; }
  .prod-copy h2 { font-size: 28px; }
  .contacts-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr !important; }
  /* full-width primary actions read better under the thumb on phones */
  #contactForm button[type="submit"] { width: 100% !important; }
  .cta-body .btn-white, .cta-body .btn-ghost { flex: 1 1 100% !important; text-align: center; }
}

/* Legal document pages (privacy policy) */
.legal h2 {
  font-family: var(--serif); font-weight: 700; font-size: 23px;
  color: var(--ink); margin: 30px 0 10px;
}
.legal p { font-size: 15.5px; color: var(--ink-2); line-height: 1.62; margin: 0 0 13px; }
.legal p strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); font-weight: 600; }
