/* =====================================================================
   Linkhome — the assistant in the home page banner
   The banner becomes a dark, centred block: the headline, a large
   message box, and the couple's photograph behind them, faded back.
   A visitor says what they want; the conversation — and the request it
   turns into — happens right here.

   Everything below applies only while <html> carries the word "hc-on".
   Without it (no JavaScript, or the assistant cannot be used) nothing
   here takes effect and the banner is the Buy / Sell / Loans form and
   the photograph, exactly as before.
   ===================================================================== */
.hc{display:none}
html.hc-on .hc{display:block}
html.hc-on .hero-classic{display:none}

/* ---------- the block ---------- */
html.hc-on .hero{padding-top:0;overflow:hidden;overflow:clip}
html.hc-on .hero-grid{position:relative;isolation:isolate;display:block;padding:clamp(40px,7vh,84px) 0 clamp(36px,6vh,68px);text-align:center;color:#fff}
html.hc-on .hero-grid::before{content:"";position:absolute;z-index:-2;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);
  background:radial-gradient(120% 90% at 50% 120%,rgba(46,143,149,.6) 0%,rgba(46,143,149,0) 62%),var(--navy);
  border-radius:0 0 50% 50% / 0 0 34px 34px}
html.hc-on .hero-col{flex:none;max-width:920px;margin:0 auto}

/* the photograph, behind everything and faded back: the couple stand at the right, clear of the headline */
html.hc-on .hero-photo{position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;height:auto;aspect-ratio:auto;align-self:stretch;transform:translateX(-50%);
  border-radius:0 0 50% 50% / 0 0 34px 34px;overflow:hidden;pointer-events:none}
html.hc-on .hero-photo::before{display:none}
html.hc-on .hero-photo img{position:absolute;right:0;bottom:0;width:auto;height:118%;max-width:none;aspect-ratio:1;border:0;border-radius:0;box-shadow:none;object-fit:cover;object-position:50% 50%;opacity:.44;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48%);mask-image:linear-gradient(90deg,transparent 0,#000 48%)}
html.hc-on .hero-photo::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;
  background:linear-gradient(180deg,rgba(46,44,79,.3) 0%,rgba(46,44,79,0) 26%,rgba(46,44,79,0) 56%,rgba(46,44,79,.78) 100%)}

/* ---------- headline ---------- */
html.hc-on .hero h1{margin:0;font-size:clamp(38px,5.6vw,68px);line-height:1.06;letter-spacing:-.012em;color:#fff;text-shadow:0 2px 22px rgba(24,23,48,.5)}
html.hc-on .hero h1 .h1-ai{display:table;margin:.04em auto 0;padding:0 .08em;color:var(--cyan);
  background:linear-gradient(92deg,#FF8469 0%,#FFC2A8 42%,#7FD6E2 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}
html.hc-on .hero-lede{margin:clamp(14px,2.4vh,22px) auto 0 !important;max-width:700px;font-size:18px;line-height:1.6;color:rgba(255,255,255,.9);text-shadow:0 1px 14px rgba(24,23,48,.55);text-wrap:balance}

/* ---------- the message box ---------- */
.hc-start{max-width:920px;margin:clamp(22px,4vh,40px) auto 0;text-align:left;border:1px solid rgba(255,255,255,.22);border-radius:26px;background:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.hc-box{display:block !important;background:#fff;border:1px solid transparent;border-radius:25px;box-shadow:0 24px 60px rgba(13,12,30,.38);padding:14px 14px 14px 16px;transition:border-color .15s,box-shadow .15s}
.hc-box:focus-within{border-color:#fff;box-shadow:0 24px 60px rgba(13,12,30,.38),0 0 0 3px var(--cyan)}
.hc-row{display:flex;align-items:center;gap:12px}
.hc-mark{display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff}
.hc-mark svg{width:20px;height:auto;display:block}
.hero .hc-box input{flex:1 1 auto;min-width:0;height:52px;padding:0;border:0;border-radius:0;background:transparent;font-size:20px;font-weight:500;color:var(--navy)}
.hero .hc-box input:focus,.hero .hc-box input:focus-visible{outline:0}
.hero .hc-box input::placeholder{color:#76738E;opacity:1}
.hc-send{display:flex;align-items:center;justify-content:center;flex:none;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer;transition:filter .15s}
.hc-send:hover{filter:brightness(.94)}
.hc-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:6px}
.hc-chip{min-height:36px;padding:0 13px;border:1px solid #CFCCDB;border-radius:999px;background:#fff;font:inherit;font-size:13.5px;font-weight:500;line-height:1.2;color:var(--navy);cursor:pointer;transition:border-color .15s,background .15s}
.hc-chip:hover{border-color:var(--navy);background:var(--mint)}

.hc-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;padding:12px 18px 13px 22px;font-size:13.5px;line-height:1.4;color:rgba(255,255,255,.86)}
.hc-call{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 13px;border:1px solid rgba(255,255,255,.28);border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap;color:#fff;text-decoration:none}
.hc-call:hover{background:rgba(255,255,255,.16);color:#fff}
.hc-legal{margin:16px auto 0;max-width:760px;font-size:12.5px;line-height:1.7;color:rgba(255,255,255,.72);text-wrap:balance}
.hc :focus-visible{outline:2px solid #fff;outline-offset:2px}
.hc-box :focus-visible{outline-color:var(--navy)}

/* ---------- the conversation ----------
   The headline makes way; the block grows to the height of the window and the box stays at its foot. */
html.hc-talking .hero-grid{display:flex;flex-direction:column;min-height:calc(100vh - 73px);min-height:calc(100svh - 73px);padding-top:22px}
html.hc-talking .hero-col{display:flex;flex-direction:column;flex:1 1 auto;width:100%}
html.hc-talking .hero h1,html.hc-talking .hero-lede,html.hc-talking .hc-chips,html.hc-talking .hc-legal{display:none}
html.hc-talking .hc{display:flex;flex-direction:column;flex:1 1 auto}
html.hc-talking .hc-start{position:sticky;bottom:12px;z-index:2;width:100%;margin-top:26px;background:#434162;-webkit-backdrop-filter:none;backdrop-filter:none}
html.hc-talking .hc-start::before{content:"";position:absolute;z-index:-1;left:0;right:0;top:-26px;height:60px;background:linear-gradient(to bottom,rgba(46,44,79,0),rgba(46,44,79,.92) 26px);pointer-events:none}
.hc-thread{display:flex;flex-direction:column;gap:14px;flex:1 1 auto;width:100%;max-width:920px;margin:0 auto;text-align:left}
.hc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hc-who{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.hc-who::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--cyan)}
.hc-close{min-height:30px;padding:0 12px;border:1px solid rgba(255,255,255,.26);border-radius:999px;background:transparent;font:inherit;font-size:12.5px;font-weight:700;color:rgba(255,255,255,.86);cursor:pointer}
.hc-close:hover{background:rgba(255,255,255,.14);color:#fff}
.hc-msg{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.hc-msg p{margin:0;white-space:pre-wrap}
.hc-msg.user{align-self:flex-end;max-width:82%;padding:10px 18px;border-radius:18px 18px 4px 18px;background:rgba(255,255,255,.17)}
.hc-msg.bot{align-self:flex-start;max-width:100%;padding:16px 22px;border:1px solid rgba(255,255,255,.14);border-radius:4px 20px 20px 20px;background:rgba(13,12,30,.34)}
.hc-msg.note{border-color:rgba(255,132,105,.6);background:rgba(232,87,58,.18)}
.hc-dots{display:inline-flex;gap:5px;padding:6px 0}
.hc-dots i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.35;animation:hcDot 1.2s ease-in-out infinite}
.hc-dots i:nth-child(2){animation-delay:.18s}
.hc-dots i:nth-child(3){animation-delay:.36s}
@keyframes hcDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.hc-replies{display:flex;flex-wrap:wrap;gap:8px}
.hc-reply{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(255,255,255,.08);font:inherit;font-size:14px;font-weight:500;line-height:1.2;color:#fff;text-decoration:none;cursor:pointer}
.hc-reply:hover{background:#fff;border-color:#fff;color:var(--navy)}

/* ---------- the summary the visitor confirms ---------- */
.hc-card{align-self:stretch;padding:22px 24px 24px;border-radius:20px;background:#fff;color:var(--navy);box-shadow:0 20px 50px rgba(13,12,30,.35)}
.hc-card h3{margin:0 0 4px;font-family:var(--font-display);font-weight:400;font-size:24px;line-height:1.2}
.hc-card .hc-sub{margin:0 0 14px;font-size:13.5px;line-height:1.5;color:var(--muted)}
.hc-rows{margin:0;display:grid;grid-template-columns:1fr 1fr;column-gap:36px;border-top:1px solid var(--line)}
.hc-pair{display:flex;align-items:baseline;gap:14px;min-width:0;padding:9px 0;border-bottom:1px solid var(--line)}
.hc-pair.wide{grid-column:1 / -1}
.hc-rows dt{flex:none;width:118px;margin:0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.hc-rows dd{flex:1 1 auto;min-width:0;margin:0;font-size:14.5px;line-height:1.45;font-weight:700;overflow-wrap:anywhere}
.hc-agree{display:flex;align-items:flex-start;gap:10px;margin:16px 0 0;font-size:13px;line-height:1.55;color:var(--navy);cursor:pointer}
.hero .hc-agree input{flex:none;width:18px;height:18px;min-width:0;margin:1px 0 0;padding:0;border:0;accent-color:var(--accent)}
.hc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:16px}
.hc-go{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border:0;border-radius:999px;background:var(--accent);font:inherit;font-size:15.5px;font-weight:700;color:#fff;cursor:pointer;transition:filter .15s}
.hc-go:hover{filter:brightness(.94)}
.hc-go[disabled]{background:#CFCCDB;color:#fff;cursor:not-allowed;filter:none}
.hc-hint{font-size:13px;line-height:1.5;color:var(--muted)}
.hc-card .hc-err{margin:12px 0 0;font-size:13.5px;line-height:1.5;color:#B4321B}
.hc-card.sent{text-align:left}
.hc-card.sent h3::before{content:"";display:inline-block;width:22px;height:22px;margin-right:10px;border-radius:50%;vertical-align:-2px;
  background:var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat}
.hc-card.sent p{margin:8px 0 0;font-size:15px;line-height:1.6}
.hc-card :focus-visible{outline-color:var(--navy)}

/* ---------- smaller screens ---------- */
@media (max-width:1180px){
  html.hc-on .hero-photo img{height:108%;right:-9%;opacity:.3}
}
/* portrait tablets and phones: no room beside the headline, so the couple get a strip of their own above it */
@media (max-width:900px){
  html.hc-on .hero-grid{--strip:clamp(170px,46vw,300px);padding-top:calc(var(--strip) + 4px)}
  html.hc-on .hero-photo img{right:auto;bottom:auto;left:50%;top:calc(var(--strip) * -.24);width:calc(var(--strip) * 2.25);height:calc(var(--strip) * 2.25);transform:translateX(-50%);opacity:.62;
    -webkit-mask-image:linear-gradient(180deg,#000 0,#000 40%,transparent 58%);mask-image:linear-gradient(180deg,#000 0,#000 40%,transparent 58%)}
  html.hc-on .hero-photo::after{background:linear-gradient(180deg,rgba(46,44,79,.22) 0%,rgba(46,44,79,0) 30%)}
}
/* a phone held sideways: the box has to stay in view, so the strip goes */
@media (max-width:900px) and (max-height:560px){
  html.hc-on .hero-grid{padding-top:26px}
  html.hc-on .hero-photo{display:none}
}
@media (max-width:760px){
  html.hc-on .hero{padding-left:16px;padding-right:16px}
  html.hc-on .hero-grid{padding-bottom:34px}
  html.hc-on .hero-grid::before,html.hc-on .hero-photo{border-radius:0 0 50% 50% / 0 0 20px 20px}
  html.hc-on .hero h1{font-size:clamp(34px,10vw,46px)}
  html.hc-on .hero-lede{font-size:16px;margin-top:14px !important}
  .hc-start{margin-top:24px;border-radius:22px}
  .hc-box{border-radius:21px;padding:12px 12px 14px 14px}
  .hc-mark{width:34px;height:34px}
  .hc-mark svg{width:18px}
  .hero .hc-box input{height:46px;font-size:17px}
  .hc-send{width:44px;height:44px}
  .hc-chips{justify-content:flex-start;margin-top:8px}
  .hc-strip{padding:12px 14px 14px 16px;font-size:12.5px}
  .hc-legal{font-size:12px}
  html.hc-talking .hc-strip{display:none}
  .hc-msg{font-size:15.5px}
  .hc-msg.bot{padding:13px 16px}
  .hc-msg.user{max-width:88%}
  .hc-card{padding:18px 16px 20px;border-radius:18px}
  .hc-card h3{font-size:21px}
  .hc-rows{grid-template-columns:1fr}
  .hc-pair{gap:12px;padding:8px 0}
  .hc-rows dt{width:104px;font-size:13px}
  .hc-go{width:100%}
}
@media (max-width:480px){
  .hc-mark{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hc-dots i{animation:none}
}

/* ---------- in a conversation the photograph steps back (last, so that it overrides the widths above) ---------- */
html.hc-talking .hero-photo{bottom:auto;height:min(100%,calc(100vh - 73px));border-radius:0}
html.hc-talking .hero-photo img{opacity:.14}
html.hc-talking .hero-photo::after{background:linear-gradient(180deg,rgba(46,44,79,.2) 0%,rgba(46,44,79,.5) 60%,var(--navy) 100%)}
@media (max-width:1024px){
  html.hc-talking .hero-grid{min-height:calc(100vh - 65px);min-height:calc(100svh - 65px)}
}
@media (max-width:900px){
  html.hc-talking .hero-grid{padding-top:18px}
  html.hc-talking .hero-photo{display:none}
}
@media (max-width:760px){
  html.hc-talking .hero-grid{padding-top:14px}
}
