/* ==========================================================================
   Jubuna Solutions — main stylesheet
   Brand: bg #1A1A1A / accent #F5A623 / text #FFFFFF / muted #999999
          cards #222222 / borders #333333
   ========================================================================== */

[hidden] { display: none !important; }

:root {
  --bg: #1A1A1A;
  --bg-deep: #141414;
  --card: #222222;
  --card-2: #262626;
  --surface-hover: #1E1E1E;   /* hover fill for interactive surfaces (JUBU-135) */
  --border: #333333;
  --border-soft: #2B2B2B;
  --gold: #F5A623;
  --gold-hover: #FFB937;
  --gold-soft: rgba(245, 166, 35, 0.12);
  --gold-line: rgba(245, 166, 35, 0.35);
  --text: #FFFFFF;
  --muted: #999999;
  --muted-2: #B5B5B5;
  --green: #34C77B;
  --red: #E5534B;
  /* Radius scale (JUBU-125): THREE steps only. Use these, never a raw px value. */
  --r-sm: 8px;      /* controls + small chrome (buttons, nav links, inline messages) */
  --r-md: 14px;     /* surfaces (cards, panels, chat bubbles) */
  --r-lg: 24px;     /* large containers (tables, auth cards) */
  --r-pill: 999px;  /* pills + badges */
  /* Legacy aliases kept so existing rules keep working; they now point at the scale. */
  --radius: var(--r-md);
  --radius-lg: var(--r-lg);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;   /* JUBU-131 headline face */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--bg); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--border); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.fine-print { font-size: 0.82rem; color: var(--muted); margin: 0.6em 0 0; }

/* ---------- Wordmark ---------- */
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; }
.wordmark:hover { color: var(--text); }
.wordmark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin: 0 7px; flex: none; }
.wordmark-thin { font-weight: 300; color: var(--muted-2); }
.wordmark-lg { font-size: 1.5rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  /* JUBU-190: the bar is position:fixed and overlays page content, so it MUST be opaque.
     It previously had no background and relied on `.site-nav.scrolled` - but `scrolled` is
     toggled on the #siteNav MOUNT POINT (a <div>, no site-nav class) while this rule applies
     to the injected <header class="site-nav" id="siteNavBar">. The class therefore never
     matched the bar, and content showed straight through it. Solid unconditionally now, so
     legibility no longer depends on JS. */
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled, .site-nav.open {
  /* JUBU-190: the background now lives on the base .site-nav rule (see above) because the
     `scrolled` class is toggled on the mount point, not on this element. This rule keeps the
     visual separator for the scrolled/open state. */
  border-bottom-color: var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted-2); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { color: var(--bg); }
.nav-links a.btn:hover { color: #000; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: transform 0.25s ease, top 0.25s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.site-nav.open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.site-nav.open .nav-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.user-chip { display: flex; align-items: center; gap: 12px; }
.nav-user { font-weight: 600; color: var(--text); font-size: 0.92rem; white-space: nowrap; }
.user-chip-name { font-size: 0.92rem; color: var(--muted-2); font-weight: 500; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
  overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 0.98rem; padding: 13px 26px; line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hover); color: #000; box-shadow: 0 8px 28px rgba(245, 166, 35, 0.28); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: var(--bg);
  animation: spin 0.7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(255,255,255,0.25); border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 80px; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 380px at 18% 12%, rgba(245, 166, 35, 0.10), transparent 62%),
    radial-gradient(760px 480px at 85% 85%, rgba(245, 166, 35, 0.07), transparent 65%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; will-change: transform; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold);
  border-radius: 999px; padding: 7px 16px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
/* JUBU-132: the radiating pulse was a generic 'AI tell'. The dot is now a
   static indicator; motion is reserved for genuine state change. */
/* @keyframes pulse removed (JUBU-132) - no longer referenced. */ }
.hero-sub { color: var(--muted-2); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; margin: 0 auto 36px; }

.lead-form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.lead-form input[type="email"] {
  flex: 1; min-width: 0; background: rgba(20, 20, 20, 0.85); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r-sm); padding: 15px 18px; font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-form input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); }
.lead-form input[type="email"]::placeholder { color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.form-success {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold);
  border-radius: var(--r-sm); padding: 16px 22px; font-weight: 600; max-width: 560px; margin: 0 auto;
}
.form-error { color: var(--red); font-size: 0.9rem; margin-top: 12px; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: var(--r-pill); background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-first { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 84px)); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow { color: var(--gold); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.lead { color: var(--muted-2); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line), var(--shadow); }
/* JUBU-133: the stock 'cards float up' translateY was a generic default and
   made dense grids shimmer on hover. A border/glow shift signals
   interactivity without moving layout. */
.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted-2); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { border-top: 1px solid var(--border); padding-top: 26px; }
.step-num { display: block; font-size: 2.2rem; font-weight: 900; color: var(--gold); letter-spacing: -0.03em; margin-bottom: 12px; }
.step p { color: var(--muted-2); margin: 0; }

/* ---------- CTA band ---------- */
.band {
  background: linear-gradient(140deg, #242424 0%, #1E1C17 100%);
  border: 1px solid var(--gold-line); border-radius: 24px; padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow);
}
.band-copy p { color: var(--muted-2); margin: 0; }
.lead-form-band { flex-direction: column; max-width: none; }
.lead-form-band .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 40px; background: var(--bg-deep); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tagline { color: var(--gold); font-weight: 600; margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer-links a { color: var(--muted-2); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; gap: 26px; margin-bottom: 72px; }
.tier-card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; display: flex; flex-direction: column; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tier-card:hover { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line), var(--shadow); }
.tier-featured { border-color: var(--gold-line); }
.ribbon { position: absolute; top: -13px; left: 34px; background: var(--gold); color: var(--bg); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; padding: 5px 14px; }
.tier-tag { color: var(--muted); font-size: 0.95rem; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; }
.amount-sm { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.per { color: var(--muted); font-size: 0.92rem; }
.price-sub { margin-top: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.feature-list { list-style: none; margin: 22px 0 30px; padding: 0; flex: 1; }
.feature-list li { position: relative; padding: 7px 0 7px 30px; color: var(--muted-2); font-size: 0.96rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.compare-wrap { margin-bottom: 72px; }
.compare-title { text-align: center; margin-bottom: 28px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.96rem; }
.compare thead th { background: var(--card-2); font-weight: 700; }
.compare tbody th { color: var(--muted-2); font-weight: 500; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--text); }
.tick { color: var(--gold); font-weight: 600; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 16px; color: var(--gold); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; color: var(--muted-2); margin: 0; }

/* ---------- Messages ---------- */
.msg { border-radius: var(--r-sm); padding: 13px 16px; font-size: 0.92rem; margin-bottom: 18px; }
.msg-error { background: rgba(229, 83, 75, 0.12); border: 1px solid rgba(229, 83, 75, 0.4); color: #F1A09B; }
.msg-info { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); }
.msg a { text-decoration: underline; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(800px 500px at 50% -10%, rgba(245,166,35,0.08), transparent 60%), var(--bg); }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); }
.auth-card .wordmark-lg { margin-bottom: 26px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-card > .muted { font-size: 0.94rem; margin-bottom: 26px; }
.provider-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg-deep); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 18px; font-size: 0.97rem; font-weight: 600; cursor: pointer; margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.provider-btn:hover { border-color: var(--gold-line); background: var(--surface-hover); }
.provider-btn[disabled] { opacity: 0.6; pointer-events: none; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--muted-2); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-sm); padding: 13px 16px; font-size: 0.98rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16); }
.field input[disabled] { opacity: 0.55; }
.auth-foot { text-align: center; margin: 26px 0 0; font-size: 0.9rem; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--gold); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gold); animation: spin 0.8s linear infinite; margin: 8px auto 22px; }
.result-card { text-align: center; }
.result-icon { width: 60px; height: 60px; margin: 0 auto 18px; color: var(--gold); }
.result-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* ---------- Booking ---------- */




.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; }
.next-list { margin: 0; padding-left: 20px; color: var(--muted-2); }
.next-list li { margin-bottom: 12px; }
.next-list strong { color: var(--text); }

/* ---------- Dashboard ---------- */
.dash-body { background: var(--bg-deep); }
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-top: calc(var(--nav-h) + 36px); padding-bottom: 80px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.side-link { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: var(--r-sm); color: var(--muted-2); font-weight: 500; font-size: 0.95rem; background: none; border: 0; cursor: pointer; font-family: inherit; transition: background 0.15s ease, color 0.15s ease; }
.side-link:hover { color: var(--text); background: var(--card-2); }
.side-link.active { color: var(--gold); background: var(--gold-soft); }
.side-hr { margin: 8px 4px; border-top: 1px solid var(--border-soft); }
.dash-title { font-size: 1.7rem; margin-bottom: 26px; }
.dash-sec { display: none; }
.dash-sec.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-head h3 { margin: 0; }
.plan-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.kv { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; font-weight: 700; text-transform: capitalize; margin: 0; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-live { background: rgba(52, 199, 123, 0.14); color: var(--green); border: 1px solid rgba(52, 199, 123, 0.4); }
/* JUBU-126: three visual states. 'building' replaces 'provisioning', and paused
   folds into 'offline' - the label text carries the distinction, not a 4th colour. */
.status-pill.is-building { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
/* Compatibility alias: older markup/JS may still emit is-provisioning. */
.status-pill.is-provisioning { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
/* JUBU-132: pulse removed here too; the pill's colour already communicates
   the state, and a blinking dot reads as decoration rather than status. */
.status-pill.is-offline, .status-pill.is-paused { background: rgba(153, 153, 153, 0.12); color: var(--muted); border: 1px solid var(--border); }
.status-pill.sm { padding: 4px 12px; font-size: 0.78rem; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.94rem; }
.activity li:last-child { border-bottom: 0; }
.activity .a-date { color: var(--muted); white-space: nowrap; font-size: 0.85rem; }
.activity .a-body { color: var(--muted-2); }
.activity .a-body strong { color: var(--text); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 560px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border-soft); }
.chat-agent { font-weight: 700; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 78%; border-radius: 14px; padding: 12px 16px; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-msg.agent { background: var(--card-2); border: 1px solid var(--border-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--gold); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.system { background: transparent; border: 1px dashed var(--border); color: var(--muted); align-self: center; font-size: 0.85rem; text-align: center; }
.chat-msg.typing { display: inline-flex; gap: 5px; align-items: center; }
.chat-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat-msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat-input { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--border-soft); }
.chat-input input { flex: 1; min-width: 0; background: var(--bg-deep); border: 1px solid var(--border); color: var(--text); border-radius: var(--r-sm); padding: 13px 16px; font-size: 0.95rem; font-family: inherit; }
.chat-input input:focus { outline: none; border-color: var(--gold); }

/* ---------- Settings ---------- */
.settings-form { max-width: 520px; }
.notif-set { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 18px 20px 10px; margin: 8px 0 22px; }
.notif-set legend { font-size: 0.88rem; font-weight: 600; color: var(--muted-2); padding: 0 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--muted-2); font-size: 0.95rem; cursor: pointer; }
.check input { accent-color: var(--gold); width: 17px; height: 17px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card-2); color: var(--text); border: 1px solid var(--gold-line); border-radius: var(--r-sm); padding: 13px 22px; font-size: 0.92rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 300; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { border-color: rgba(229, 83, 75, 0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-link { width: auto; }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    /* JUBU-190: solid for consistency with the fixed nav (was 2% see-through). */
    background: var(--bg-deep);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links a.btn { margin-top: 14px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .cards, .steps, .tiers, .stat-cards { grid-template-columns: 1fr; }
  .lead-form { flex-direction: column; }
  .lead-form .btn { width: 100%; }
  .user-chip-name { display: none; }
}
@media (max-width: 520px) {
  .auth-card { padding: 32px 24px; }
  .tier-card { padding: 30px 24px; }
  .chat { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot, .scroll-cue span, .status-pill.is-provisioning::before { animation: none; }
  .btn, .card, .tier-card { transition: none; }
}


/* ===== W116: legal/document prose (privacy, terms) ===== */
.prose { max-width: 76ch; }
.prose h2 { margin: 2.1rem 0 .6rem; font-size: 1.2rem; letter-spacing: .01em; }
.prose h3 { margin: 1.5rem 0 .5rem; font-size: 1.02rem; }
.prose p, .prose li { color: rgba(255,255,255,.82); line-height: 1.72; }
.prose p { margin: .75rem 0; }
.prose ul, .prose ol { margin: .7rem 0 .9rem 1.15rem; }
.prose li { margin: .38rem 0; }
.prose strong { color: #fff; }
.prose a { color: var(--gold, #f5a623); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold-hover, #ffb937); }
.prose table, .table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .93rem; }
.prose table th, .table th { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--gold-line, rgba(245,166,35,.35)); color: #fff; font-weight: 600; }
.prose table td, .table td { padding: .6rem .7rem; border-bottom: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.82); vertical-align: top; }
.prose code { font-size: .9em; }

/* ===== Req 8: booking layout =====
   Google's Appointment Schedule embed is laid out for roughly a 640px column and
   does not stretch. Widening the iframe alone therefore just added dead white
   space. Instead: size the frame to what the widget actually needs, centre it, and
   put the guidance beside it on wide screens. The client gets a properly
   proportioned, readable calendar instead of a stretched, half-empty one. */
.book-page .container { max-width: min(1240px, 96vw); }
.book-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
.book-frame-wrap {
  padding: 12px;
  /* the widget's natural width; never stretch it */
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.book-frame { width: 100%; height: 780px; border: 0; border-radius: var(--r-sm); background: #fff; }
.book-side { display: flex; flex-direction: column; gap: 24px; }
/* wide screens: calendar beside the guidance, calendar first and dominant */
@media (min-width: 1080px) {
  .book-grid { grid-template-columns: minmax(0, 680px) minmax(0, 1fr); justify-content: center; }
  .book-frame-wrap { margin: 0; }
  .book-frame { height: 820px; }
}

/* ===== Req 8: never strand a client on the booking page ===== */
.book-escape { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.book-escape p { margin: 0; }

/* ===== Canonical site navigation (single source of truth: site-nav.js) =====
   The nav is injected on every page so it can never drift again. Styles here cover
   the link groups, the account chip + dropdown, and the mobile collapse. */

.site-nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav-links .nav-group { display: flex; align-items: center; gap: 4px; }
.site-nav-links a {
  padding: 8px 12px; border-radius: var(--r-sm); color: inherit;
  text-decoration: none; font-size: .95rem; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.site-nav-links a:hover { color: var(--gold, #f5a623); }
.site-nav-links a.is-current { color: var(--gold, #f5a623); }
.site-nav-links a.is-current::after {
  content: ''; display: block; height: 2px; margin-top: 4px;
  background: var(--gold, #f5a623); border-radius: var(--r-pill);
}
.nav-cta { margin-left: 8px; }
/* JUBU: the nav CTA is a gold button, so its label is dark - the same as every other
   gold button. Without this, the generic `.nav-links a { color: var(--muted-2) }`
   rule (a light grey, for plain nav links) could win by source order and render
   "Add Agent" light grey on gold. Scoped to .nav-cta so no other nav element moves. */
.nav-links a.nav-cta,
.site-nav-links a.nav-cta,
a.nav-cta { color: var(--bg); }
.nav-links a.nav-cta:hover,
.site-nav-links a.nav-cta:hover,
a.nav-cta:hover { color: #000; }
.nav-back { margin-left: auto; color: inherit; text-decoration: none; font-size: .95rem; }
.nav-back:hover { color: var(--gold, #f5a623); }

/* ---- account chip + dropdown ---- */
.user-chip-wrap { position: relative; display: inline-flex; align-items: center; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  border-radius: 999px; text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  transition: border-color .15s ease, background .15s ease;
}
.user-chip:hover { border-color: var(--gold-line, rgba(245,166,35,.35)); background: rgba(245,166,35,.08); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; overflow: hidden; flex: 0 0 28px;
  background: var(--gold, #f5a623); color: var(--bg); font-weight: 700; font-size: .8rem;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-chip .caret { font-size: .7rem; opacity: .75; }
.user-chip-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }

.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; z-index: 60;
  display: flex; flex-direction: column; padding: 6px;
  background: #1f1f1f; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.user-menu[hidden] { display: none; }
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0;
  background: transparent; color: inherit; font: inherit; font-size: .93rem;
  border-radius: var(--r-sm); text-decoration: none; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: rgba(245,166,35,.12); color: var(--gold, #f5a623); }

/* ---- mobile ---- */
@media (max-width: 900px) {
  .site-nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 16px;
    background: var(--bg); border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 40px rgba(0,0,0,.45); display: none;
  }
  .site-nav-links.is-open { display: flex; }
  .site-nav-links .nav-group { flex-direction: column; align-items: stretch; }
  .site-nav-links a { padding: 11px 12px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .user-chip-wrap { margin-top: 6px; }
  .user-chip { width: 100%; justify-content: flex-start; }
  .user-menu { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

/* ===== Payment method list (agent-payment) =====
   Vertical stack, so the options read as a list of choices rather than a row of
   buttons. The selected option carries a visible tick; the action button sits
   directly beneath so the sequence "choose a method -> continue" is unambiguous
   (root UX fix: the selector used to look like the action). */
.pay-grid-stack { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pay-grid-stack .pay-option {
  position: relative; text-align: left; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: start;
}
.pay-grid-stack .pay-option .pay-name { font-weight: 600; }
.pay-grid-stack .pay-option .pay-desc { margin: 4px 0 0; grid-column: 1 / -1; }
.pay-grid-stack .pay-option .pay-badge { align-self: start; }
.pay-check {
  display: none; position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold, #f5a623); color: var(--bg);
  font-size: .8rem; font-weight: 700; line-height: 22px; text-align: center;
}
.pay-option.selected .pay-check { display: block; }
.pay-option.selected { border-color: var(--gold, #f5a623); }
.pay-option.is-disabled,
.pay-option:disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
.pay-option.is-disabled .pay-badge { opacity: 1; }
/* ===== JUBU-127: single-surface stat row =====
   These blocks used to be .panel.stat: a bordered card inside .stat-cards inside a
   .panel - three containers for one row of numbers. .stat-cards is now the only
   surface and each stat is a cell separated by a hairline. */
.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; background: var(--card-2); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); overflow: hidden;
}
.stat {
  padding: 18px 20px; background: none; border: 0; box-shadow: none;
  border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.stat:last-child { border-right: 0; }
.stat dt, .stat .stat-label {
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; margin: 0 0 6px;
}
.stat dd, .stat .stat-value { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--text); }
@media (max-width: 620px) { .stat { border-right: 0; } }

/* ===== JUBU-131: display face for headlines =====
   Inter remains the UI/body face. Headlines move to a variable serif so the page has
   a voice rather than the default agent look. Scoped to h1/h2 and .hero-sub's
   headline context ONLY - never to buttons, nav, labels or data. */
h1, h2, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}
h1 { font-weight: 700; }
h2 { font-weight: 600; }
/* Keep UI chrome unambiguously in Inter. */
.btn, button, input, select, textarea, nav, .site-nav, .status-pill, dt, dd, table {
  font-family: var(--font);
}
/* JUBU-130: helper line under a form field (timezone detection note). */
.field-note { color: var(--muted); font-size: 0.82rem; margin: 6px 0 0; }

/* JUBU-137 status pills — owner spec 2026-09-19.
   inactive supersedes every other state: a cancelled subscription must never show
   "Live" or "Warning" no matter what the droplet is doing. */
.status-pill.is-inactive {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--muted-2, #B5B5B5);
}
.status-pill.is-warning {
  background: rgba(245, 166, 35, 0.14);
  border-color: rgba(245, 166, 35, 0.45);
  color: var(--gold, #F5A623);
}
.status-pill.is-building {
  background: rgba(245, 166, 35, 0.10);
  border-color: rgba(245, 166, 35, 0.30);
  color: var(--gold, #F5A623);
}
.status-pill.is-live {
  background: rgba(46, 204, 113, 0.14);
  border-color: rgba(46, 204, 113, 0.45);
  color: #2ECC71;
}
.status-pill.is-offline {
  background: rgba(231, 76, 60, 0.14);
  border-color: rgba(231, 76, 60, 0.42);
  color: #E74C3C;
}
/* The pending-cancellation note under the status panel. */
#cancelPendingNote { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
#cancelPendingNote p { margin: 0; }


/* ===========================================================================
   JUBU-163 — authoritative agent-status pill palette (owner spec 2026-09-28)

   Placed LAST so it deterministically overrides the earlier, conflicting pill
   definitions (`.is-building` was defined twice in gold, making Building and
   Warning the SAME COLOUR - they could not be told apart).

   States and meanings:
     Live      subscription in effect, droplet on, messaging OK        green
     Warning   subscription in effect, droplet on, messaging/gateway down  yellow
     Offline   subscription IN EFFECT but droplet OFF                  red
     Building  provisioning in progress                                BLUE
     Paused    client-chosen pause; droplet off, destruction clock NOT started  grey
     Inactive  subscription OVER, droplet off, destruction clock RUNNING        grey
   =========================================================================== */

.status-pill.is-live {
  background: rgba(46, 204, 113, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.45);
  color: #2ECC71;
}

.status-pill.is-warning {
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #F5A623;
}

.status-pill.is-offline {
  background: rgba(231, 76, 60, 0.14);
  border: 1px solid rgba(231, 76, 60, 0.42);
  color: #E74C3C;
}

/* Building is BLUE, deliberately distinct from Warning's amber. */
.status-pill.is-building,
.status-pill.is-provisioning {
  background: rgba(74, 143, 212, 0.14);
  border: 1px solid rgba(74, 143, 212, 0.45);
  color: #4A8FD4;
}

/* Paused: droplet off but the destruction clock has NOT started. Grey, like Inactive -
   both mean "not running" - but it carries an inline resume date. */
.status-pill.is-paused {
  background: rgba(153, 153, 153, 0.12);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Inactive: subscription over, droplet off, destruction clock running. */
.status-pill.is-inactive {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted-2, #B5B5B5);
}
