/* Nour, the Visitor Agent: the chat button and panel on every page (assets/js/nour.js, visitor-agent/README.md).
   Achraf, November 1, 2026: option B in light mode. A light glass panel over the page, Nour's red orb as its
   presence (the large one is WebGL, the small ones are these CSS layers), ink for the visitor's words, white glass
   for Nour's. In a voice call the whole panel becomes the call. Everything is scoped under .nour. */

.nour { --n-ink: #141110; --n-ink-2: #3b3330; --n-muted: #6c625a; --n-paper: #fbf8f3; --n-cream: #f5efe6;
  --n-red: #d7372b; --n-red-deep: #a91f16; --n-red-soft: rgba(215, 55, 43, .12); --n-green: #2b8550; --n-line: rgba(20, 17, 16, .09);
  --n-glass: rgba(255, 255, 255, .8); --n-ease: cubic-bezier(.16, 1, .3, 1);
  --n-mono: "Geist Mono", ui-monospace, Menlo, monospace; --n-serif: "Instrument Serif", Georgia, serif;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; color: var(--n-ink); }
.nour *, .nour *::before, .nour *::after { box-sizing: border-box; }
.nour [hidden] { display: none !important; }
.nour :where(button) { font: inherit; color: inherit; }
.nour :focus-visible { outline: 2px solid var(--n-red); outline-offset: 2px; }
.nour svg { display: block; }

/* ---------------- the small orb (CSS) ---------------- */
.nour-orb { --s: 40px; position: relative; flex: none; display: block; width: var(--s); height: var(--s); }
.nour-orb i { position: absolute; display: block; border-radius: 50%; pointer-events: none; }
.nour-orb .o-halo { inset: -38%; background: radial-gradient(circle, rgba(215, 55, 43, .34), rgba(215, 55, 43, 0) 64%); }
.nour-orb .o-body { inset: 0; background: radial-gradient(circle at 34% 28%, #ffb3a6 0%, #ef5444 20%, #c42a1e 52%, #6d0f09 100%);
  box-shadow: inset 0 calc(var(--s) * -.14) calc(var(--s) * .28) rgba(70, 6, 3, .45), inset 0 calc(var(--s) * .05) calc(var(--s) * .1) rgba(255, 200, 190, .35), 0 calc(var(--s) * .16) calc(var(--s) * .36) calc(var(--s) * -.12) rgba(169, 31, 22, .6); }
.nour-orb .o-swirl { inset: 4%; opacity: .75; mix-blend-mode: soft-light;
  background: conic-gradient(from 0deg, rgba(255, 214, 200, 0) 0deg, rgba(255, 214, 200, .95) 70deg, rgba(120, 8, 4, .1) 150deg, rgba(255, 150, 125, .85) 230deg, rgba(90, 6, 3, .2) 300deg, rgba(255, 214, 200, 0) 360deg);
  -webkit-mask: radial-gradient(circle, #000 52%, transparent 71%); mask: radial-gradient(circle, #000 52%, transparent 71%); }
.nour-launch .o-swirl, .nour-head .o-swirl { animation: nour-spin 7s linear infinite; }
.nour-by .o-swirl, .nour-ty .o-swirl { display: none; }
.nour-orb .o-core { inset: 24%; background: radial-gradient(circle, rgba(255, 226, 214, .95), rgba(255, 140, 120, 0) 70%); mix-blend-mode: screen; }
.nour-orb .o-ring { inset: -16%; border: 1.5px solid transparent; opacity: 0; transition: opacity .3s; }
.nour-orb .o-gloss { top: 8%; left: 19%; width: 40%; height: 27%; border-radius: 50%; transform: rotate(-22deg);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 72%); }
.nour-orb.is-idle .o-core, .nour-orb.is-idle .o-halo { animation: nour-breathe 4.6s ease-in-out infinite; }
.nour-orb.is-thinking .o-ring { opacity: 1; border-top-color: var(--n-red); border-right-color: rgba(215, 55, 43, .25); animation: nour-spin .9s linear infinite; }
.nour-orb.is-thinking .o-core { animation: nour-breathe 1.1s ease-in-out infinite; }
.nour-orb.is-speaking .o-core { animation: nour-talk .42s ease-in-out infinite alternate; }
.nour-orb.is-speaking .o-halo { animation: nour-breathe .84s ease-in-out infinite; }
.nour-orb.is-listening .o-ring { opacity: 1; border-color: rgba(20, 17, 16, .35); animation: nour-ping 1.6s var(--n-ease) infinite; }
.nour-orb.is-resting { filter: saturate(.8) brightness(.96); }
.nour-orb.is-resting .o-core, .nour-orb.is-resting .o-halo { animation: nour-breathe 7.5s ease-in-out infinite; }
.nour-orb.is-resting .o-swirl { animation-duration: 20s; }
@keyframes nour-breathe { 0%, 100% { transform: scale(.94); opacity: .78; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes nour-talk { from { transform: scale(.82); opacity: .7; } to { transform: scale(1.22); opacity: 1; } }
@keyframes nour-spin { to { transform: rotate(360deg); } }
@keyframes nour-ping { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }

/* ---------------- the button ---------------- */
.nour-launch { position: fixed; z-index: 150; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(20, 17, 16, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 22px 44px -20px rgba(20, 17, 16, .38), 0 14px 50px -24px rgba(215, 55, 43, .55);
  transition: transform .35s var(--n-ease), box-shadow .35s var(--n-ease), opacity .3s, visibility .3s; }
.nour-launch .nour-orb { --s: 44px; }
.nour-lorb { position: relative; flex: none; display: block; }
.nour-ping { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(232, 80, 64, .75); opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 236, 230, .3), 0 0 12px 1px rgba(215, 55, 43, .5);
  animation: nour-sonar 4.6s cubic-bezier(.16, .84, .44, 1) 2.2s 3; }
.nour-ping + .nour-ping { animation-delay: 2.55s; }
@keyframes nour-sonar { 0% { transform: scale(.9); opacity: .8; } 42%, 100% { transform: scale(1.85); opacity: 0; } }
/* the light around the button's edge: a ring the width of the border (the masked span) with a glow outside it */
.nour-edge { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(232, 72, 56, .85)) drop-shadow(0 0 9px rgba(215, 55, 43, .45)); }
.nour-edge > i { position: absolute; inset: 0; border-radius: inherit; padding: 2px; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nour-edge i i { position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; translate: -50% -50%; opacity: 0;
  background: conic-gradient(from 0deg, rgba(215, 55, 43, 0) 0deg 250deg, rgba(215, 55, 43, .9) 318deg, rgba(255, 196, 180, 1) 334deg, rgba(215, 55, 43, 0) 350deg);
  animation: nour-edge 7.5s cubic-bezier(.45, .05, .35, 1) 1.6s 2; }
@keyframes nour-edge { 0% { transform: rotate(0deg); opacity: 0; } 8%, 52% { opacity: 1; } 66%, 100% { transform: rotate(360deg); opacity: 0; } }
.nour-launch.is-enter { animation: nour-launch-in 1.1s var(--n-ease) .7s backwards; }
.nour-launch.is-enter .nour-orb { animation: nour-orb-in 1.3s var(--n-ease) .8s backwards; }
@keyframes nour-launch-in { from { opacity: 0; transform: translateY(22px) scale(.86); } }
@keyframes nour-orb-in { 0% { transform: scale(.3) rotate(-40deg); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.nour-launch.is-hint .nour-l2 { max-width: 240px; opacity: 1; padding-left: 4px; }
/* the site's mobile menu covers the page: the launcher steps aside while it is open */
body:has(#mobileMenu:not([hidden])) .nour-launch { display: none; }
.nour-launch:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 26px 50px -20px rgba(20, 17, 16, .42), 0 18px 60px -22px rgba(215, 55, 43, .7); }
.nour-launch .o-halo { transition: inset .5s var(--n-ease); }
.nour-launch:hover .o-halo { inset: -55%; }
.nour-launch > .nour-lorb .nour-orb { transition: transform .5s var(--n-ease); }
.nour-launch:hover > .nour-lorb .nour-orb { transform: scale(1.07) rotate(-10deg); }
.nour-launch:active { transform: scale(.97); transition-duration: .12s; }
.nour-l1 { display: block; font-size: 15px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.nour-l1 small { display: block; margin-top: 3px; font-family: var(--n-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--n-muted); }
.nour-l2 { display: flex; align-items: center; gap: 8px; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-family: var(--n-serif); font-style: italic; font-size: 17px; color: var(--n-ink-2); transition: max-width .5s var(--n-ease), opacity .3s; }
.nour-l2 svg { width: 22px; height: 22px; padding: 6px; border-radius: 50%; background: var(--n-ink); fill: none; stroke: var(--n-cream); stroke-width: 1.6; }
.nour-launch:hover .nour-l2, .nour-launch:focus-visible .nour-l2 { max-width: 240px; opacity: 1; padding-left: 4px; }
/* touch screens: no label left open after a tap; the one-time hint still shows where the screen has room for it.
   Closed, the label also gives back the gap before it, so the button keeps its size. */
@media (hover: none) {
  .nour-l2 { margin-left: -12px; transition: max-width .5s var(--n-ease), opacity .3s, margin-left .5s var(--n-ease); }
  .nour-launch:hover .nour-l2, .nour-launch:focus-visible .nour-l2 { max-width: 0; opacity: 0; padding-left: 0; }
  .nour-launch.is-hint .nour-l2 { max-width: 240px; opacity: 1; padding-left: 4px; margin-left: 0; }
}
@media (hover: none) and (max-width: 389px) { .nour-l2 { display: none; } }

/* ---------------- the panel ---------------- */
.nour-panel { position: fixed; z-index: 151; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 36px)); height: min(700px, calc(100dvh - 36px)); display: flex; flex-direction: column; overflow: hidden; overflow: clip;
  border-radius: 28px; color: var(--n-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .975), rgba(249, 245, 239, .985));
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 1px rgba(20, 17, 16, .06), 0 50px 100px -40px rgba(20, 17, 16, .42), 0 30px 90px -50px rgba(215, 55, 43, .45);
  transform-origin: bottom right; animation: nour-pop .55s var(--n-ease); }
@keyframes nour-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@supports (height: 1cqh) { .nour-panel { container-type: size; } }
.nour-aura { position: absolute; z-index: 0; inset: 0 0 auto; height: 46%; overflow: hidden; pointer-events: none; opacity: .9; transition: opacity .8s; }
.nour-aura i { position: absolute; left: -30%; right: -30%; top: -80%; height: 180%;
  background: radial-gradient(34% 38% at 32% 58%, rgba(215, 55, 43, .17), rgba(215, 55, 43, 0) 70%), radial-gradient(30% 34% at 68% 50%, rgba(255, 138, 110, .16), rgba(255, 138, 110, 0) 70%), radial-gradient(26% 30% at 50% 70%, rgba(255, 196, 170, .22), rgba(255, 196, 170, 0) 72%);
  animation: nour-aura 18s ease-in-out infinite alternate; }
.nour[data-rest="resting"] .nour-aura i, .nour[data-rest="off"] .nour-aura i, .nour[data-rest="down"] .nour-aura i { animation-duration: 36s; }
@keyframes nour-aura { 0% { transform: translate3d(-4%, 0, 0) rotate(-4deg) scale(1); } 50% { transform: translate3d(3%, 3%, 0) rotate(3deg) scale(1.06); } 100% { transform: translate3d(5%, -2%, 0) rotate(-2deg) scale(.98); } }
.nour[data-rest="resting"] .nour-aura, .nour[data-rest="off"] .nour-aura, .nour[data-rest="down"] .nour-aura { opacity: .45; }
@media (max-width: 560px) {
  .nour-panel { inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; }
}

.nour-head { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--n-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .38)); }
.nour-head .nour-orb { --s: 40px; }
.nour-head .nour-orb::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3fbf72; border: 2px solid #fff; }
.nour.is-off .nour-head .nour-orb::after { background: #b6aca3; }
.nour-title { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; row-gap: 1px; }
.nour-title b { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.nour-tag { justify-self: start; font-family: var(--n-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--n-ink-2); border: 1px solid rgba(20, 17, 16, .14); border-radius: 6px; padding: 2px 6px; }
.nour-sub, .nour-live { grid-column: 1 / -1; height: 21px; line-height: 21px; font-size: 14.5px; color: var(--n-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nour-sub { font-family: var(--n-serif); font-style: italic; }
.nour-live { font-family: var(--n-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--n-red-deep); display: flex; align-items: center; gap: 7px; }
.nour-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--n-red); animation: nour-blink 1.2s ease-in-out infinite; }
.nour.is-call .nour-sub { display: none; }
.nour-x { flex: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--n-line); transition: background .2s; }
.nour-x:hover { background: #fff; }
.nour-x svg { width: 13px; height: 13px; stroke: var(--n-ink); stroke-width: 1.7; fill: none; }

/* ---------------- the stage: the large orb, on the greeting and in a call ---------------- */
.nour-stage { --d: 128px; position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--d) * .24 + 12px) 22px 14px; scrollbar-width: thin; scrollbar-color: rgba(20, 17, 16, .18) transparent; }
.nour-stage.is-scroll { -webkit-mask: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
/* a panel too short for the orb, the heading and the card while Nour cannot answer: rather than show the orb, then
   the heading, cut through at the top, they step aside for the card (fit() in nour.js) */
.nour-stage.is-tight { padding-top: 14px; }
.nour-stage.is-tight .nour-dial, .nour-stage.is-tighter .nour-h { display: none; }
.nour.is-call .nour-stage { --d: 176px; padding: calc(var(--d) * .26 + 12px) 20px 14px; }
@supports (height: 1cqh) {
  .nour-stage { --d: clamp(76px, 16cqh, 120px); }
  .nour.is-call .nour-stage { --d: clamp(110px, 26cqh, 176px); }
}
/* centered when there is room, from the top (and scrolling) when there is not, so nothing ever runs into the header */
.nour-stage-in { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.nour.is-call .nour-stage-in { gap: 16px; }
.nour-dial { position: relative; flex: none; width: var(--d); height: var(--d); margin-bottom: calc(var(--d) * .14); transition: width .6s var(--n-ease), height .6s var(--n-ease); }
.nour.is-fresh .nour-dial { animation: nour-bloom 1.1s var(--n-ease) .05s backwards; }
@keyframes nour-bloom { 0% { opacity: 0; transform: scale(.55); } 60% { opacity: 1; } 100% { transform: none; } }
.nour-gl { position: absolute; inset: -30%; width: 160%; height: 160%; }
.nour-fallback { display: none; position: absolute; inset: 0; --s: var(--d); }
/* the orbit: a fine ring between the orb and the ticks, with a small red light travelling around it */
.nour-orbit { position: absolute; inset: -8%; border-radius: 50%; border: 1px solid rgba(215, 55, 43, .14); animation: nour-spin 12s linear infinite reverse; }
.nour-orbit i { position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--n-red); box-shadow: 0 0 0 3px rgba(215, 55, 43, .14), 0 0 12px 2px rgba(215, 55, 43, .55); }
.nour[data-orb="thinking"] .nour-orbit { animation-duration: 2.4s; }
.nour[data-orb="speaking"] .nour-orbit { animation-duration: 5s; }
.nour[data-orb="resting"] .nour-orbit { animation-duration: 40s; opacity: .55; }
.nour[data-orb="resting"] .nour-ticks { animation-duration: 160s; }
.nour.no-gl .nour-fallback { display: block; }
.nour-ticks { position: absolute; inset: -17%; width: 134%; height: 134%; animation: nour-spin 80s linear infinite; }
.nour-ticks line { stroke: rgba(20, 17, 16, .2); stroke-width: 1.1; stroke-linecap: round; transition: stroke .4s; }
.nour[data-call="speaking"] .nour-ticks line { stroke: rgba(215, 55, 43, .5); }
.nour[data-call="listening"] .nour-ticks line { stroke: rgba(20, 17, 16, .38); }
.nour[data-orb="thinking"] .nour-ticks { animation-duration: 9s; }

.nour-hello { display: grid; justify-items: center; gap: 6px; width: 100%; max-width: 330px; }
.nour.is-fresh .nour-hello > * { animation: nour-rise .7s var(--n-ease) both; }
.nour.is-fresh .nour-h { animation-delay: .18s; }
.nour.is-fresh .nour-greet { animation-delay: .3s; }
.nour.is-fresh .nour-rest { animation-delay: .38s; }
.nour[data-rest="resting"] .nour-greet, .nour[data-rest="off"] .nour-greet, .nour[data-rest="down"] .nour-greet { display: none; }
/* the card when Nour cannot answer: under the greeting, or at the end of a conversation */
.nour-rest { display: grid; justify-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 14px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62)); border: 1px solid rgba(20, 17, 16, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 18px 36px -26px rgba(20, 17, 16, .45); }
.nour-rest.is-log { align-self: stretch; width: auto; margin-top: 6px; animation: nour-rise .45s var(--n-ease); }
.nour-rest-t { display: flex; align-items: center; justify-content: center; gap: 9px; }
.nour-rest-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--n-red-deep);
  background: radial-gradient(circle at 35% 30%, #fff, rgba(215, 55, 43, .1)); border: 1px solid rgba(215, 55, 43, .2); box-shadow: 0 8px 18px -10px rgba(215, 55, 43, .6); }
.nour-rest-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nour-rest b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--n-ink); }
.nour-rest p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--n-ink-2); }
.nour-rest-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 40px; padding: 9px 15px 9px 17px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #2a2320, #141110); box-shadow: 0 10px 22px -12px rgba(20, 17, 16, .8); transition: transform .25s var(--n-ease); }
.nour-rest-go:hover { transform: translateY(-1px); }
.nour-rest-go svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nour-snote { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--n-ink-2); background: rgba(20, 17, 16, .045); }
.nour-h { margin: 0; font-size: 27px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: var(--n-ink); }
.nour-h em { font-family: var(--n-serif); font-weight: 400; font-style: italic; font-size: 1.14em; letter-spacing: 0; color: var(--n-red); }
.nour-h span { color: var(--n-red); }
.nour-greet { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--n-ink-2); text-wrap: balance; }
.nour-nb { white-space: nowrap; }

/* the call */
.nour-callui { display: grid; justify-items: center; gap: 12px; width: 100%; }
.nour-states { display: flex; gap: 2px; margin: 0; padding: 3px; list-style: none; border-radius: 999px; background: rgba(20, 17, 16, .05); border: 1px solid var(--n-line); }
.nour-states li { font-family: var(--n-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--n-muted); padding: 6px 11px; border-radius: 999px; transition: background .3s, color .3s, box-shadow .3s; }
.nour-states li.on { background: #fff; color: var(--n-ink); box-shadow: 0 4px 12px -6px rgba(20, 17, 16, .35); }
.nour-meter { display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; }
.nour-meter i { width: 3px; height: 100%; border-radius: 3px; background: rgba(20, 17, 16, .28); transform: scaleY(.1); transition: background .3s; }
.nour[data-call="speaking"] .nour-meter i { background: var(--n-red); }
.nour[data-call="listening"] .nour-meter i { background: var(--n-ink); }
.nour-who { margin: 0; font-family: var(--n-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--n-muted); }
.nour-words { margin: -4px 0 0; min-height: 2.5em; max-width: 340px; font-family: var(--n-serif); font-style: italic; font-size: 22px; line-height: 1.25; color: var(--n-ink);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nour-words[data-who="visitor"] { color: var(--n-ink-2); }
.nour-end { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 4px; padding: 14px; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #e1483b, #c22c21);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 30px -14px rgba(194, 44, 33, .75); transition: transform .2s; }
.nour-end:hover { transform: translateY(-1px); }
.nour-end svg { width: 18px; height: 18px; fill: #fff; }
.nour.is-call .nour-log, .nour.is-call .nour-chips, .nour.is-call .nour-row { display: none; }
.nour.is-fresh .nour-log { display: none; }

/* ---------------- the conversation ---------------- */
.nour-log { position: relative; z-index: 1; flex: 1; min-height: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px); mask-image: linear-gradient(180deg, transparent 0, #000 16px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(20, 17, 16, .18) transparent; }
.nour-by { display: flex; align-items: center; gap: 7px; margin: 6px 0 -4px 2px; font-family: var(--n-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--n-muted); }
.nour-by .nour-orb { --s: 13px; }
.nour-by .nour-orb .o-halo { display: none; }
.nour-msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; animation: nour-rise .45s var(--n-ease); }
@keyframes nour-rise { from { opacity: 0; transform: translateY(8px); } }
.nour-msg.out { align-self: flex-start; border-top-left-radius: 6px; color: var(--n-ink); background: var(--n-glass); border: 1px solid rgba(20, 17, 16, .07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 16px 32px -24px rgba(20, 17, 16, .4); }
.nour-msg.in { align-self: flex-end; border-bottom-right-radius: 6px; color: var(--n-cream); background: linear-gradient(180deg, #2a2320, #141110);
  box-shadow: 0 14px 28px -18px rgba(20, 17, 16, .7); }
.nour-msg a { color: var(--n-red-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(169, 31, 22, .35); }
.nour-msg.in a { color: inherit; }
.nour-src { display: grid; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--n-line); white-space: normal; }
.nour-src-h { font-family: var(--n-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--n-muted); }
.nour-src > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.nour-src a { position: relative; display: grid; gap: 1px; padding: 8px 26px 8px 10px; border-radius: 12px; text-decoration: none; color: var(--n-ink);
  background: rgba(245, 239, 230, .75); border: 1px solid var(--n-line); transition: border-color .2s, background .2s; min-width: 0; }
.nour-src a:hover { background: #fff; border-color: rgba(215, 55, 43, .35); }
.nour-src b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nour-src code { font-family: var(--n-mono); font-size: 10.5px; color: var(--n-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nour-src svg { position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; fill: none; stroke: var(--n-red); stroke-width: 1.6; }
.nour-step { align-self: stretch; display: flex; align-items: flex-start; gap: 9px; padding: 0 4px; font-family: var(--n-mono); font-size: 11px; letter-spacing: .04em; color: var(--n-muted); animation: nour-rise .35s ease; }
.nour-step i { flex: none; width: 13px; height: 13px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--n-red); display: grid; place-items: center; }
.nour-step i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--n-red); }
.nour-step span { min-width: 0; }
.nour-step::after { content: ""; flex: 1; min-width: 12px; height: 1px; margin-top: 8px; background: linear-gradient(90deg, var(--n-line), transparent); }
.nour-step.is-note { gap: 10px; padding: 9px 12px; border-radius: 14px; font-family: inherit; font-size: 13.5px; line-height: 1.5; letter-spacing: 0; color: var(--n-ink-2); background: rgba(20, 17, 16, .045); }
.nour-step.is-note::after { content: none; }
.nour-step.is-note i { width: 7px; height: 7px; margin-top: 7px; border: 0; background: rgba(20, 17, 16, .3); }
.nour-step.is-note i::after { content: none; }
.nour-ty { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-family: var(--n-mono); font-size: 11px; color: var(--n-muted);
  background: var(--n-glass); border: 1px solid rgba(20, 17, 16, .07); box-shadow: 0 12px 26px -20px rgba(20, 17, 16, .4); animation: nour-rise .3s ease; }
.nour-ty .nour-orb { --s: 20px; }
.nour-ty .nour-orb .o-halo { display: none; }
.nour-ty > i { width: 4px; height: 4px; border-radius: 50%; background: var(--n-muted); animation: nour-blink 1s infinite; }
.nour-ty > i:nth-of-type(n+2) { margin-left: -4px; }
.nour-ty > i:nth-last-child(2) { animation-delay: .15s; }
.nour-ty > i:last-child { animation-delay: .3s; }
@keyframes nour-blink { 50% { opacity: .2; } }
.nour-card { align-self: stretch; padding: 14px 15px; border-radius: 18px; font-size: 14px; animation: nour-rise .45s var(--n-ease);
  background: linear-gradient(180deg, rgba(43, 133, 80, .08), rgba(255, 255, 255, .85)); border: 1px solid rgba(43, 133, 80, .28); box-shadow: 0 16px 34px -26px rgba(43, 133, 80, .7); }
.nour-card-h { display: flex; align-items: center; gap: 11px; padding-bottom: 11px; margin-bottom: 4px; border-bottom: 1px solid rgba(43, 133, 80, .18); }
.nour-card-h i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--n-green); box-shadow: 0 6px 14px -6px rgba(43, 133, 80, .8); }
.nour-card-h svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; }
.nour-card-h b { display: block; font-size: 14.5px; font-weight: 600; }
.nour-card-h small { display: block; font-family: var(--n-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--n-green); }
.nour-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; margin: 0; }
.nour-card dt, .nour-card dd { padding: 7px 0; border-top: 1px solid rgba(20, 17, 16, .06); }
.nour-card dt:first-of-type, .nour-card dd:first-of-type { border-top: 0; }
.nour-card dt { font-family: var(--n-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--n-muted); padding-top: 9px; }
.nour-card dd { margin: 0; overflow-wrap: anywhere; }

/* the first questions */
.nour-chips { flex: none; align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 6px 0 2px; }
.nour.is-fresh .nour-chips > * { animation: nour-rise .6s var(--n-ease) both; }
.nour.is-fresh .nour-chips > :nth-child(1) { animation-delay: .42s; }
.nour.is-fresh .nour-chips > :nth-child(2) { animation-delay: .48s; }
.nour.is-fresh .nour-chips > :nth-child(3) { animation-delay: .54s; }
.nour.is-fresh .nour-chips > :nth-child(4) { animation-delay: .6s; }
.nour-chips:empty { display: none; }
.nour-chips-h { flex-basis: 100%; text-align: center; font-family: var(--n-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--n-muted); margin-bottom: 2px; }
.nour-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 12px 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: var(--n-glass); border: 1px solid rgba(20, 17, 16, .09); box-shadow: 0 10px 22px -18px rgba(20, 17, 16, .5); transition: transform .25s var(--n-ease), border-color .2s, opacity .3s; }
.nour-chip:hover { transform: translateY(-1px); border-color: rgba(215, 55, 43, .4); }
.nour-chip svg { width: 11px; height: 11px; fill: none; stroke: var(--n-muted); stroke-width: 1.7; transition: transform .3s var(--n-ease), stroke .2s; }
.nour-chip:hover svg { stroke: var(--n-red); transform: translateX(2px); }

/* ---------------- writing ---------------- */
.nour-foot { position: relative; z-index: 2; flex: none; padding: 10px 12px max(12px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--n-line); background: rgba(255, 255, 255, .5); }
.nour.is-call .nour-foot { border-top: 0; background: transparent; padding-top: 0; }
.nour-row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(20, 17, 16, .11);
  box-shadow: 0 10px 24px -20px rgba(20, 17, 16, .45); transition: border-color .2s, box-shadow .2s; }
.nour-row:focus-within { border-color: rgba(215, 55, 43, .45); box-shadow: 0 0 0 4px rgba(215, 55, 43, .12), 0 10px 24px -20px rgba(20, 17, 16, .45); }
.nour-row input { flex: 1; min-width: 0; padding: 6px 0; border: 0; outline: none; background: transparent; color: var(--n-ink); font: inherit; font-size: 16px; }
.nour-row input::placeholder { color: var(--n-muted); }
.nour .nour-row input:focus-visible { outline: none; }
.nour-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s, opacity .3s; }
.nour-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nour-mic { color: var(--n-ink); background: rgba(20, 17, 16, .05); border: 1px solid var(--n-line); }
.nour-mic:hover { background: var(--n-red-soft); color: var(--n-red-deep); border-color: rgba(215, 55, 43, .3); }
.nour-send { color: #fff; background: linear-gradient(180deg, #e1483b, #c22c21); box-shadow: 0 8px 18px -10px rgba(194, 44, 33, .9); }
.nour-send:hover { transform: translateY(-1px); }
.nour-send:disabled { cursor: default; transform: none; color: rgba(20, 17, 16, .34); background: rgba(20, 17, 16, .07); box-shadow: none; }
.nour-row:has(input:disabled) { background: rgba(255, 255, 255, .6); box-shadow: none; }
/* the line is coming back: the questions and the microphone wait, dimmed, for Nour */
.nour.is-off .nour-chip, .nour.is-off .nour-mic { opacity: .45; pointer-events: none; }
.nour-row input:disabled { cursor: not-allowed; }
.nour-fine { margin: 8px 6px 0; font-size: 11.5px; line-height: 1.45; color: var(--n-muted); text-wrap: pretty; }
.nour-fine a { color: var(--n-ink-2); white-space: nowrap; }

@container (max-height: 640px) {
  .nour-stage { --d: clamp(72px, 14cqh, 120px); padding-right: 18px; padding-bottom: 10px; padding-left: 18px; }
  .nour-stage-in { gap: 10px; }
  .nour-dial { margin-bottom: calc(var(--d) * .1); }
  .nour-greet { font-size: 14px; line-height: 1.5; }
  .nour-chips { gap: 6px 5px; padding-top: 0; }
  .nour-chips-h { display: none; }
  .nour-chip { min-height: 34px; gap: 6px; padding: 6px 10px 6px 12px; font-size: 12.5px; }
  .nour-rest { margin-top: 6px; padding: 12px 14px; }
  .nour-rest-go { margin-top: 2px; min-height: 36px; padding: 8px 14px 8px 16px; }
  .nour.is-call .nour-stage { --d: clamp(96px, 21cqh, 176px); }
  .nour.is-call .nour-stage-in { gap: 10px; }
  .nour-meter { height: 28px; }
  .nour-words { font-size: 19px; min-height: 0; }
  .nour-end { padding: 12px; }
}
/* a very short panel (a phone on its side): the header already says Nour is resting, so the card keeps only
   the time and the way to the Contact page */
@container (max-height: 420px) {
  .nour-hello > .nour-rest .nour-rest-t { display: none; }
}
@container (max-width: 340px) {
  .nour-stage { padding-right: 14px; padding-left: 14px; }
  .nour-chip { font-size: 12px; }
}
@media (max-width: 560px) {
  .nour-launch { padding-right: 16px; }
  /* typing in one of the page's own forms: the button steps aside */
  .nour.is-typing .nour-launch { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
  .nour-words { font-size: 20px; }
}
@media (pointer: coarse) {
  .nour-x, .nour-icon { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .nour *, .nour *::before, .nour *::after { animation: none !important; transition: none !important; }
}
@media print { .nour { display: none !important; } }
