/* IRIVI landing · Persuade.
   Airy forest first screen of the accepted page + one compact working window (concept B):
   dialogue → deal → meeting → payment on labelled demo data.
   Loaded only by subscriptions/public/landing.html. Every selector is scoped under .lp;
   shared primitives (.page-width, .button, .lime-button, .text-action, .avatar, .check-icon,
   .visually-hidden) and tokens come from marketing.css. View switching is CSS-only
   (native radio group + :has, each radio aria-controls its pane). landing.js only upgrades
   «Связано…» text into buttons and fills a short polite status after a view change. */

.lp{--lp-forest-2:#16483f;--lp-accent:#2f6b55;--lp-ease:cubic-bezier(.16,1,.3,1);--lp-wait-bg:#fff3d1;--lp-wait:#7a4e00}
.lp svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lp .text-action svg,.lp .button svg{width:20px;height:20px;stroke-width:2;transition:transform .2s var(--lp-ease)}
.lp .text-action:hover svg,.lp-plan .button:hover svg{transform:translateX(3px)}

/* First screen */
.lp-hero{padding-block:64px 52px;background:var(--forest);color:#fff}
.lp-hero :focus-visible{outline-color:var(--lime)}
/* Light secondary action on forest; hover keeps the shared lime from marketing.css. */
.lp-hero .text-action{color:#fff}
.lp-hero .text-action:hover{color:var(--lime)}
.lp-hero-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:28px 56px;align-items:end}
.lp-hero h1{font-size:clamp(40px,4.7vw,68px);line-height:1.04;letter-spacing:-.035em}
.lp-hero h1 span{display:block;color:var(--lime)}
.lp-lead{max-width:40ch;color:var(--on-forest);font-size:clamp(17px,1.45vw,20px);line-height:1.5}
.lp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;margin-top:28px}

/* Stage: the window hangs from the forest band into the paper */
.lp-stage{position:relative;padding-bottom:4px}
.lp-stage::before{content:'';position:absolute;inset:0 0 auto;height:clamp(150px,15vw,216px);background:var(--forest)}
.lp-figure{position:relative;margin-block:0}
.lp-window{border-radius:20px;background:var(--white);box-shadow:0 44px 84px -46px rgb(6 30 25 / .62),0 2px 8px rgb(9 46 39 / .1);overflow:hidden;animation:lp-rise .9s var(--lp-ease) both}
@keyframes lp-rise{from{transform:translateY(36px)}}
.lp-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:10px 16px 10px 18px;border-bottom:1px solid var(--line-soft);background:var(--paper)}
.lp-bar-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:750}
.lp-bar-title img{width:28px;height:28px}
.lp-demo{padding:3px 10px;border-radius:999px;background:var(--lp-wait-bg);color:var(--lp-wait);font-size:13px;font-weight:750;white-space:nowrap}
.lp-body{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:428px}

/* View switch: a native radio group drawn as the cabinet's own navigation rail */
.lp-switch{position:relative;display:grid;align-content:start;gap:4px;min-width:0;margin:0;padding:16px 12px;border:0;border-right:1px solid var(--line-soft);background:var(--paper)}
.lp-switch::before{content:'';position:absolute;left:41px;top:46px;width:2px;height:192px;background:var(--line)}
.lp-opt{position:relative;display:block;cursor:pointer}
.lp-opt input{position:absolute;top:0;left:0;width:1px;height:1px;margin:0;opacity:0}
.lp-opt-in{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;border-radius:12px;transition:background-color .2s ease-out}
.lp-ico{position:relative;z-index:1;display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--muted);transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}
.lp-ico svg{width:18px;height:18px}
.lp-opt-text{min-width:0}
.lp-opt strong,.lp-opt small{display:block}
.lp-opt strong{font-size:15px;line-height:1.3}
.lp-opt small{color:var(--muted);font-size:13px;line-height:1.35}
.lp-opt:hover .lp-opt-in{background:var(--sage)}
.lp-opt input:checked+.lp-opt-in{background:var(--ok-bg);color:var(--forest)}
.lp-opt input:checked+.lp-opt-in .lp-ico{border-color:var(--forest);background:var(--forest);color:var(--lime)}
/* Inset ring: never clipped by the window's overflow or covered by a neighbouring option. */
.lp-opt input:focus-visible+.lp-opt-in{outline:3px solid var(--focus);outline-offset:-3px}

/* Panes */
.lp-panes{min-width:0;padding:28px 32px}
.lp-pane{display:none;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-areas:"art head" "art links";grid-template-rows:auto 1fr;gap:20px 36px;align-items:start;animation:lp-pane .45s var(--lp-ease) both}
.lp-window:has(#lp-v-chat:checked) .lp-pane-chat,
.lp-window:has(#lp-v-deal:checked) .lp-pane-deal,
.lp-window:has(#lp-v-cal:checked) .lp-pane-cal,
.lp-window:has(#lp-v-pay:checked) .lp-pane-pay{display:grid}
@keyframes lp-pane{from{opacity:0;transform:translateY(8px)}}
.lp-pane-head{grid-area:head}
.lp-pane-head h3{font-size:24px}
.lp-pane-head p{margin-top:8px;color:var(--muted);font-size:15px;line-height:1.55}
.lp-art{grid-area:art;min-width:0;margin:0;padding:0;list-style:none}
.lp-links{grid-area:links;min-width:0}
.lp-links>p{margin-bottom:8px;color:var(--muted);font-size:13px;font-weight:700}
.lp-links ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
/* Without JS: neutral related-items text. landing.js turns each into a button. */
.lp-rel{display:block;font-size:14px;line-height:1.45}
.lp-rel b{margin-right:4px;color:var(--forest);font-weight:800}
button.lp-rel{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);text-align:left;transition:border-color .2s ease-out,background-color .2s ease-out}
button.lp-rel:hover{border-color:var(--forest);background:var(--paper)}
button.lp-rel svg{width:18px;height:18px;color:var(--forest);stroke-width:2;transition:transform .2s var(--lp-ease)}
button.lp-rel:hover svg{transform:translateX(3px)}
/* 3px ring + 2px offset fits the 6px list gap and the pane padding inside the clipped window. */
button.lp-rel:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

.lp-chat{display:grid;align-content:start;gap:8px;padding:16px;border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--paper)}
.lp-who{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.lp-who strong,.lp-who small{display:block;line-height:1.3}
.lp-who small{color:var(--muted);font-size:13px}
.lp-msg{width:fit-content;max-width:86%;padding:9px 14px;border:1px solid var(--line-soft);border-radius:12px 12px 12px 4px;background:var(--white);font-size:15px;line-height:1.45}
.lp-msg-in{margin-left:auto;border-color:var(--lime);border-radius:12px 12px 4px 12px;background:var(--lime);color:var(--forest);font-weight:650}
.lp-sys{display:flex;align-items:center;justify-self:center;gap:8px;margin-top:4px;padding:4px 12px 4px 4px;border-radius:999px;background:var(--ok-bg);color:var(--forest);font-size:13px;font-weight:750}
.lp-sys .check-icon{width:22px;height:22px}
.lp-sys .check-icon svg{width:13px;height:13px}

.lp-deal{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.lp-deal-head{padding:16px 18px 14px}
.lp-deal-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.lp-deal-name strong{font-size:22px;letter-spacing:-.02em}
.lp-pill{padding:3px 10px;border-radius:999px;background:var(--ok-bg);color:var(--forest);font-size:13px;font-weight:750;white-space:nowrap}
.lp-deal-sub{margin-top:2px;color:var(--muted);font-size:14px}
.lp-kv{margin:0}
.lp-kv div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 16px;padding:10px 18px;border-top:1px solid var(--line-soft);font-size:14px}
.lp-kv dt{color:var(--muted)}
.lp-kv dd{margin:0;font-weight:750}
.lp-kv .lp-next{background:var(--ok-bg);color:var(--forest)}
.lp-kv .lp-next dt{color:var(--forest);font-weight:650}
.lp-kv .lp-next dd{font-weight:800}
.lp-hist{padding:12px 18px 16px;border-top:1px solid var(--line-soft)}
.lp-hist-title{margin-bottom:8px;color:var(--muted);font-size:13px;font-weight:700}
.lp-hist ol{position:relative;display:grid;gap:8px;margin:0;padding:0;list-style:none}
.lp-hist ol::before{content:'';position:absolute;left:4px;top:8px;bottom:8px;width:2px;background:var(--line)}
.lp-hist li{position:relative;padding-left:22px;font-size:14px;line-height:1.45}
.lp-hist li::before{content:'';position:absolute;left:0;top:6px;width:10px;height:10px;border:2px solid var(--forest);border-radius:50%;background:var(--white)}
.lp-hist li:last-child::before{background:var(--forest)}
.lp-hist b{margin-right:4px;color:var(--forest);font-weight:800}

.lp-agenda,.lp-paybox{border:1px solid var(--line-soft);border-radius:var(--radius);overflow:hidden}
.lp-agenda ul,.lp-pays{display:grid;margin:0;padding:0;list-style:none}
.lp-day{padding:10px 16px;border-bottom:1px solid var(--line-soft);background:var(--paper);color:var(--forest);font-size:14px;font-weight:800}
.lp-agenda li,.lp-pays li{display:flex;align-items:center;gap:14px;padding:14px 16px}
.lp-agenda li+li,.lp-pays li+li{border-top:1px solid var(--line-soft)}
.lp-linked{background:var(--paper)}
.lp-time{display:grid;place-items:center;flex-shrink:0;width:64px;min-height:48px;border-radius:10px;background:var(--sage);color:var(--forest);font-size:18px;font-weight:800;line-height:1}
.lp-time-on{background:var(--lime)}
.lp-agenda li>p:last-child,.lp-pays li>p{flex:1;min-width:0;font-size:15px;line-height:1.45}
.lp-agenda strong,.lp-agenda span,.lp-pays li>p strong,.lp-pays li>p span{display:block}
.lp-agenda span,.lp-pays li>p span{margin-top:2px;color:var(--muted);font-size:14px}
.lp-pays .check-icon{width:24px;height:24px}
.lp-pays .check-icon svg{width:14px;height:14px}
.lp-open{display:block;flex-shrink:0;width:24px;height:24px;border:2px solid #7f8f86;border-radius:50%}
.lp-status{flex-shrink:0;padding:3px 10px;border-radius:999px;background:var(--ok-bg);color:var(--forest);font-size:13px;font-weight:750}
.lp-status-wait{background:var(--lp-wait-bg);color:var(--lp-wait)}
.lp-paynote{padding:14px 16px;border-top:1px solid var(--line-soft);background:var(--paper);color:#38463f;font-size:14px;line-height:1.5}
.lp-paynote strong{display:block;color:var(--forest);font-size:15px}

.lp-cap{margin-top:14px;color:var(--muted);font-size:13px}

/* How it works: the accepted three steps, without repeating the window's examples */
.lp-how{margin-top:72px;padding-block:72px 64px;border-block:1px solid var(--line-soft);background:var(--sage)}
.lp-how h2 span{display:block;color:var(--lp-accent)}
.lp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:40px;padding:0;list-style:none}
.lp-steps li{padding-right:40px}
.lp-step-head{display:flex;align-items:center;gap:14px}
.lp-step-head>span{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--forest);color:var(--lime);font-size:17px;font-weight:800}
.lp-step-head h3{font-size:22px;white-space:nowrap}
.lp-steps li:not(:last-child) .lp-step-head::after{content:'';flex:1 1 24px;height:2px;margin-right:-40px;background:color-mix(in srgb,var(--forest) 28%,transparent)}
.lp-steps p{max-width:34ch;margin:12px 0 0 54px;color:#38463f;font-size:16px;line-height:1.55}
.lp-plan{display:flex;align-items:center;justify-content:space-between;gap:20px 48px;margin-top:44px;padding-top:32px;border-top:1px solid var(--line)}
.lp-plan-title{color:var(--forest);font-size:22px;font-weight:800;line-height:1.25;letter-spacing:-.02em}
.lp-plan-title+p{max-width:70ch;margin-top:8px;color:var(--muted);font-size:15px}
.lp-plan .button{flex-shrink:0}

/* Connect */
.lp-connect{padding-block:56px 40px}
.lp-connect-banner{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:40px 44px;border-radius:18px;background:var(--lime);color:var(--forest)}
.lp-connect-banner h2{font-size:clamp(30px,3vw,42px)}
.lp-connect-banner p{max-width:56ch;margin-top:12px;font-size:17px}
.lp-connect-banner .button{flex-shrink:0}
.lp-connect-banner :focus-visible{outline-color:var(--forest)}
.lp-contact{display:flex;flex-wrap:wrap;align-items:center;gap:0 28px;margin:10px 4px 0;color:var(--muted);font-size:14px;line-height:1.5}
.lp-contact p{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;min-width:0}
.lp-contact-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-weight:700;overflow-wrap:anywhere}

/* Without :has() the switch cannot drive the panes: show every pane in order instead. */
@supports not selector(:has(*)){
  .lp-body{grid-template-columns:1fr}
  .lp-switch{display:none}
  .lp-pane{display:grid}
  .lp-pane+.lp-pane{margin-top:28px;padding-top:28px;border-top:1px solid var(--line-soft)}
  .lp-links{display:none}
}
@media (forced-colors:active){
  .lp-opt input:checked+.lp-opt-in{outline:2px solid CanvasText;outline-offset:-2px}
  .lp-opt input:focus-visible+.lp-opt-in{outline:3px solid Highlight;outline-offset:-3px}
  button.lp-rel{border-color:ButtonText}
}

@media (max-width:1120px){
  .lp-hero-grid{gap:24px 36px}
  .lp-body{grid-template-columns:208px minmax(0,1fr)}
  .lp-panes{padding:24px}
  .lp-pane{gap:18px 24px}
  .lp-steps li{padding-right:28px}
  .lp-steps li:not(:last-child) .lp-step-head::after{margin-right:-28px}
  .lp-steps p{margin-left:0}
  .lp-connect-banner{padding:32px}
}
@media (max-width:860px){
  .lp-hero{padding-block:44px 40px}
  .lp-hero-grid{grid-template-columns:1fr}
  .lp-hero h1 span{display:inline}
  .lp-stage::before{height:120px}
  .lp-body{grid-template-columns:1fr;min-height:0}
  .lp-switch{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:8px;border-right:0;border-bottom:1px solid var(--line-soft)}
  .lp-switch::before{left:12.5%;right:12.5%;top:33px;width:auto;height:2px}
  .lp-opt-in{flex-direction:column;justify-content:center;gap:6px;min-height:72px;padding:8px 4px;text-align:center}
  .lp-opt small{display:none}
  .lp-opt strong{font-size:14px}
  .lp-bar{flex-wrap:wrap;row-gap:6px}
  .lp-panes{position:relative}
  .lp-pane{grid-template-columns:1fr;grid-template-areas:"head" "art" "links";grid-template-rows:auto;gap:14px}
  /* The selected switch item already names the view: keep the heading for assistive tech only. */
  .lp-pane-head h3{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .lp-pane-head p{margin-top:0;font-size:15px}
  .lp-who{gap:8px;margin-bottom:2px}
  .lp-who .avatar{width:26px;height:26px;font-size:12px}
  .lp-who>span:last-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}
  .lp-who strong{font-size:14px}
  .lp-msg{font-size:16px}
  .lp-sys{font-size:14px}
  .lp-links>p{font-size:14px}
  .lp-rel,.lp-kv div,.lp-hist li,.lp-paynote{font-size:15px}
  .lp-links ul{display:flex;flex-wrap:wrap}
  .lp-links li{flex:1 1 220px}
  .lp-how{margin-top:56px;padding-block:52px 48px}
  .lp-steps{grid-template-columns:1fr;gap:24px}
  .lp-steps li{position:relative;padding:0 0 0 54px}
  .lp-steps li .lp-step-head{margin-left:-54px}
  .lp-steps li:not(:last-child) .lp-step-head::after{display:none}
  .lp-steps li:not(:last-child)::before{content:'';position:absolute;left:19px;top:44px;bottom:-20px;width:2px;background:color-mix(in srgb,var(--forest) 28%,transparent)}
  .lp-steps p{margin-top:6px}
  .lp-plan{flex-direction:column;align-items:flex-start}
  .lp-connect-banner{flex-direction:column;align-items:flex-start;gap:24px}
}
@media (max-width:600px){
  .lp-hero{padding-block:32px 32px}
  .lp-hero h1{font-size:clamp(36px,10vw,46px);line-height:1.08}
  .lp-hero h1 span{display:block}
  .lp-lead{font-size:17px}
  .lp-actions{gap:8px 20px;margin-top:24px}
  .lp-actions .button{width:100%}
  .lp-stage::before{height:96px}
  .lp-figure{width:calc(100% - 20px)}
  .lp-window{border-radius:16px}
  .lp-bar{min-height:48px;padding:8px 12px}
  .lp-bar-title{font-size:14px}
  .lp-bar-title img{width:24px;height:24px}
  .lp-switch{padding:6px}
  .lp-switch::before{top:31px}
  .lp-panes{padding:14px 12px 16px}
  .lp-chat{padding:12px 10px}
  .lp-msg{max-width:92%}
  .lp-deal-head{padding:14px 14px 12px}
  .lp-deal-name strong{font-size:20px}
  .lp-kv div,.lp-hist{padding-inline:14px}
  .lp-agenda li,.lp-pays li{gap:12px;padding:12px}
  .lp-day{padding-inline:12px}
  .lp-time{width:58px;min-height:46px;font-size:17px}
  .lp-paynote{padding:12px}
  .lp-links li{flex-basis:100%}
  .lp-cap{margin-inline:6px}
  .lp-how{margin-top:48px;padding-block:40px 36px}
  .lp-how h2{font-size:31px}
  .lp-step-head h3{font-size:20px}
  .lp-plan{margin-top:32px;padding-top:24px}
  .lp-plan-title{font-size:20px}
  .lp-plan .button{width:100%}
  .lp-connect{padding-block:40px 24px}
  .lp-connect-banner{padding:24px 20px;border-radius:14px}
  .lp-connect-banner h2{font-size:28px}
  .lp-connect-banner p{font-size:16px}
  .lp-connect-banner .button{width:100%}
  .lp-contact{flex-direction:column;align-items:flex-start;margin-top:8px}
}
@media (max-width:380px){
  .lp-opt strong{font-size:13px}
  .lp-demo{font-size:12px}
}
