/**
 * Stay FAQ — light SaaS (DaisyUI theme + layout helpers).
 * Source: design/visual-system.md · reference: light cards / royal blue CTA.
 */

[data-theme="stay"] {
  color-scheme: light;
  --p: 59.526% 0.193 255.13;
  --pc: 100% 0 0;
  --s: 70.079% 0.143 162.48;
  --sc: 20% 0.02 162;
  --a: 78.5% 0.14 85;
  --ac: 25% 0.05 85;
  --n: 37.45% 0.03 255;
  --nc: 98% 0.005 255;
  --b1: 100% 0 0;
  --b2: 98.2% 0.004 255;
  --b3: 94.5% 0.01 255;
  --bc: 27% 0.03 255;
  --in: 68% 0.14 230;
  --inc: 100% 0 0;
  --su: 68% 0.14 160;
  --suc: 100% 0 0;
  --wa: 78% 0.14 75;
  --wac: 25% 0.05 75;
  --er: 60% 0.2 25;
  --erc: 100% 0 0;
  --rounded-box: 1rem;
  --rounded-btn: 0.85rem;
  --rounded-badge: 9999px;
  --animation-btn: 0.2s;
  --animation-input: 0.2s;
  --btn-focus-scale: 0.98;
  --border-btn: 1px;
  --tab-border: 1px;
  --tab-radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  overflow-x: clip;
}

body.stay-body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #f9fafb;
  color: #111827;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.btn-primary {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.font-display {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.page-bg {
  background: #f9fafb;
}

.soft-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pastel-blue {
  background: #dbeafe;
  color: #2563eb;
}
.pastel-purple {
  background: #ede9fe;
  color: #7c3aed;
}
.pastel-green {
  background: #d1fae5;
  color: #059669;
}
.pastel-amber {
  background: #fef3c7;
  color: #d97706;
}
.pastel-pink {
  background: #fce7f3;
  color: #db2777;
}

.icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle--sm {
  width: 2.5rem;
  height: 2.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.05rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 48rem;
  margin-inline: auto;
}

.cta-band {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #eef2ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 1.25rem;
}

.phone-frame {
  width: min(100%, 290px);
  margin-inline: auto;
  background: #0f172a;
  border-radius: 2.25rem;
  padding: 0.85rem 0.7rem 1rem;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.22);
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.5rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: #1e293b;
  z-index: 2;
}

.phone-screen {
  background: #fff;
  border-radius: 1.65rem;
  overflow: hidden;
  min-height: 440px;
  margin-top: 0.35rem;
}

.phone-bar {
  background: #2481cc;
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.bubble-guest {
  align-self: flex-end;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.65rem 0.85rem;
  max-width: 85%;
  font-size: 0.8rem;
  line-height: 1.4;
}

.bubble-bot {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 0.65rem 0.85rem;
  max-width: 90%;
  font-size: 0.8rem;
  line-height: 1.4;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .app-shell {
    grid-template-columns: 16.5rem minmax(0, 1fr);
  }
}

.app-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-sidebar {
  display: none;
  background: #fff;
  border-right: 1px solid #eef0f4;
  padding: 1.25rem 1rem;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .app-sidebar {
    display: flex;
  }
}

.app-mobile-chrome {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.app-mobile-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-padding-inline: 1rem;
}

.app-mobile-nav::after {
  content: "";
  flex: 0 0 0.5rem;
}

.app-mobile-nav > a,
.app-mobile-nav > form,
.app-mobile-nav > details {
  flex: 0 0 auto;
}

.app-mobile-nav .btn {
  white-space: nowrap;
}

.app-mobile-nav summary {
  list-style: none;
}

.app-mobile-nav summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 1024px) {
  .app-mobile-nav,
  .app-mobile-chrome {
    display: none;
  }
}

.app-sidebar .brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.5rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: #3b82f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.app-sidebar .nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.app-sidebar .nav-link[aria-current="page"] {
  background: #eff6ff;
  color: #2563eb;
}

.app-main {
  padding: 1.25rem max(1rem, env(safe-area-inset-right, 0px)) 2.5rem max(1rem, env(safe-area-inset-left, 0px));
}

@media (min-width: 768px) {
  .app-main {
    padding: 1.5rem max(1.75rem, env(safe-area-inset-right, 0px)) 3rem max(1.75rem, env(safe-area-inset-left, 0px));
  }
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.1;
  min-height: 2.1rem;
}

.metric-delta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill--ok {
  background: #d1fae5;
  color: #047857;
}

.status-pill--warn {
  background: #fef3c7;
  color: #b45309;
}

.status-pill--fail {
  background: #fee2e2;
  color: #b91c1c;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #f9fafb;
}

.login-card {
  width: min(100%, 26rem);
}

.chart-svg {
  width: 100%;
  height: 180px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.1rem 0.75rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 6.5rem;
}

.quick-action:hover {
  color: #2563eb;
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  min-width: 0;
}

.mobile-top > a {
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .mobile-top {
    display: none;
  }
}

.lang-select {
  width: auto;
  max-width: min(11rem, 42vw);
  min-width: 0;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
}

.page-lead {
  color: #6b7280;
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 0.95rem;
}

.page-head {
  margin-bottom: 1.25rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 639px) {
  .row-actions--fill .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    justify-content: center;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eef0f4;
  font-size: 0.8rem;
  color: #6b7280;
}

.stars {
  color: #059669;
  font-weight: 700;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.stay-nav.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 4.25rem;
  padding-block: 0.5rem;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  overflow: visible;
}

.stay-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding-inline: 1rem;
}

@media (min-width: 1024px) {
  .stay-nav-inner {
    padding-inline: 2rem;
  }
}

.stay-nav-brand,
.stay-nav .navbar-start {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto !important;
}

.stay-nav-links,
.stay-nav .navbar-center {
  display: none !important;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  margin-inline-start: 1.25rem;
  overflow: hidden;
}

.stay-nav-actions,
.stay-nav .navbar-end {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto !important;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-inline-start: 1rem;
}

.stay-nav-cta {
  display: none;
}

.stay-nav-burger {
  display: inline-flex;
}

@media (min-width: 1536px) {
  .stay-nav-links,
  .stay-nav .navbar-center {
    display: flex !important;
  }

  .stay-nav-cta {
    display: inline-flex !important;
  }

  .stay-nav-burger {
    display: none !important;
  }
}

.stay-nav .brand-lockup {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stay-nav .dropdown-content {
  width: min(18rem, calc(100vw - 2rem));
}

.hero-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}

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

.cta-band .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .cta-band .btn {
    width: auto;
  }
}

.alert-success {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
}

.row--warn td {
  background: #fffbeb;
}

.alert-warning {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

.alert-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.stay-nav .menu a {
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.stay-nav .menu.menu-horizontal {
  flex-wrap: nowrap;
}

.stay-nav .menu.menu-horizontal > li > a {
  padding-inline: 0.5rem;
  white-space: nowrap;
}

@media (min-width: 1536px) {
  .stay-nav .menu.menu-horizontal > li > a {
    padding-inline: 0.75rem;
  }
}

.form-control .label {
  padding: 0 0 0.4rem;
  height: auto;
  min-height: 0;
}

.form-control .label-text {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.input.input-bordered,
.select.select-bordered,
.textarea.textarea-bordered {
  border-width: 1px;
  border-color: #e5e7eb;
}

.input.input-bordered,
.select.select-bordered:not(.select-sm):not(.select-xs) {
  min-height: 3rem;
  height: 3rem;
}

.select.select-sm,
.stay-nav .lang-select {
  min-height: 2rem;
  height: 2rem;
}

.select.select-xs {
  min-height: 1.75rem;
  height: 1.75rem;
}

.btn:not(.btn-sm):not(.btn-xs):not(.btn-lg):not(.btn-circle) {
  min-height: 3rem;
  height: 3rem;
}

textarea.textarea-bordered {
  resize: vertical;
  max-width: 100%;
}

.app-mobile-nav .btn,
.join .btn {
  height: 2rem;
  min-height: 2rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 9rem;
}

.metric-card .metric-meta {
  margin-top: auto;
  min-height: 1.15rem;
  font-size: 0.75rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.page-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.cal-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.cal-month {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

@media (max-width: 639px) {
  .cal-toolbar {
    grid-template-columns: 1fr auto;
  }

  .cal-toolbar .join {
    grid-column: 1 / -1;
  }

  .cal-month {
    justify-self: start;
  }
}

.field-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .field-toolbar {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .field-toolbar .form-control {
    flex: 1 1 auto;
    min-width: 0;
  }

  .field-toolbar .btn {
    height: 3rem;
    min-height: 3rem;
  }
}

.field-pair {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .field-pair {
    flex-direction: row;
    align-items: stretch;
  }

  .field-pair .btn {
    height: 3rem;
    min-height: 3rem;
  }
}

.hero-cta .btn {
  height: 3rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
}

.table :where(th, td) {
  vertical-align: top;
}

.plan-card {
  height: 100%;
}

.soft-card .check li {
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  border-radius: 0;
  padding: 0.75rem 0;
  background: transparent;
}

.soft-card .check li:first-child {
  padding-top: 0;
}

.soft-card .check li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
